/* Nellai Jobs — mobile app shell (≤991px, body.ih-mobile-app) */

#ihMobileAppShell {
  display: none;
}

@media (min-width: 992px) {
  #ihMobileAppShell {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

.ih-mobile-app-top,
.ih-mobile-app-nav {
  display: none;
}

@media (max-width: 991px) {
  body.ih-mobile-app {
    background: #f0f4f2;
    -webkit-tap-highlight-color: transparent;
  }

  body.ih-mobile-app .ih-mobile-app-top {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10050;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 8px 16px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
    background: #fff;
    border-bottom: 1px solid var(--ih-border, #e3ebe5);
    box-shadow: 0 2px 12px rgba(45, 125, 70, 0.06);
  }

  body.ih-mobile-app .ih-mobile-app-top__start {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  body.ih-mobile-app .ih-mobile-app-top__menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: var(--ih-bg, #f4f8f5);
    color: var(--ih-primary, #2d7d46);
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
  }

  body.ih-mobile-app .ih-mobile-app-top__brand {
    display: flex;
    align-items: center;
    min-width: 0;
  }

  body.ih-mobile-app .ih-mobile-app-top__brand img {
    max-height: 34px;
    max-width: 140px;
    width: auto;
    height: auto;
  }

  body.ih-mobile-app .ih-mobile-app-top__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--ih-dark, #1a2e22);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.ih-mobile-app .ih-mobile-app-top__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  body.ih-mobile-app .ih-mobile-app-top__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--ih-bg, #f4f8f5);
    color: var(--ih-primary, #2d7d46);
    font-size: 17px;
    text-decoration: none;
  }

  body.ih-mobile-app .ih-mobile-app-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10050;
    align-items: stretch;
    justify-content: space-around;
    min-height: 64px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff;
    border-top: 1px solid var(--ih-border, #e3ebe5);
    box-shadow: 0 -4px 20px rgba(45, 125, 70, 0.08);
  }

  body.ih-mobile-app .ih-mobile-app-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px 10px;
    font-size: 11px;
    font-weight: 500;
    color: #6b7c72;
    text-decoration: none;
    transition: color 0.2s;
  }

  body.ih-mobile-app .ih-mobile-app-nav__item i {
    font-size: 20px;
    line-height: 1;
  }

  body.ih-mobile-app .ih-mobile-app-nav__item.is-active {
    color: var(--ih-primary, #2d7d46);
  }

  body.ih-mobile-app .ih-mobile-app-nav__item.is-active i {
    transform: scale(1.05);
  }

  /* Hide desktop chrome */
  body.ih-mobile-app .ih-site-header,
  body.ih-mobile-app .header-span,
  body.ih-mobile-app .sp-header-span,
  body.ih-mobile-app .ih-footer,
  body.ih-mobile-app .main-footer {
    display: none !important;
  }

  body.ih-mobile-app .ih-mobile-nav-panel {
    top: calc(56px + env(safe-area-inset-top, 0px));
    height: calc(100vh - 56px - env(safe-area-inset-top, 0px));
    width: min(320px, 88vw);
    z-index: 10040;
  }

  body.ih-mobile-app .page-content,
  body.ih-mobile-app .ih-dashboard-shell,
  body.ih-mobile-app .sp-page-wrapper--dashboard {
    padding-top: calc(56px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  body.ih-mobile-app .page-wrapper {
    min-height: 100vh;
  }

  /* Home banner — app-style hero */
  body.ih-mobile-app .banner-section.-type-11 {
    background: linear-gradient(160deg, #2d7d46 0%, #1f5c33 100%);
    margin: 0;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
  }

  body.ih-mobile-app .banner-section.-type-11 .ih-banner-curve {
    display: none;
  }

  body.ih-mobile-app .banner-section.-type-11 .content-column .inner-column {
    padding: 20px 0 24px;
  }

  body.ih-mobile-app .banner-section.-type-11 .ih-banner-eyebrow {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
  }

  body.ih-mobile-app .banner-section.-type-11 .title-box h1 {
    font-size: 26px;
    line-height: 1.25;
    color: #fff;
  }

  body.ih-mobile-app .banner-section.-type-11 .title-box .text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
  }

  body.ih-mobile-app .banner-section.-type-11 .image-column {
    display: none;
  }

  body.ih-mobile-app .ih-banner-search {
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }

  body.ih-mobile-app .ih-banner-search .ih-banner-search__field {
    border-radius: 12px;
    margin-bottom: 8px;
  }

  body.ih-mobile-app .ih-banner-search .ih-banner-search__submit .theme-btn {
    width: 100%;
    border-radius: 12px;
  }

  body.ih-mobile-app .ih-banner-actions {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }

  body.ih-mobile-app .ih-banner-actions .theme-btn {
    flex: 1;
    min-width: 140px;
    border-radius: 12px;
    text-align: center;
  }

  /* Sections — card stacks */
  body.ih-mobile-app .job-section,
  body.ih-mobile-app .job-categories {
    padding: 20px 0;
  }

  body.ih-mobile-app .sec-title {
    margin-bottom: 16px;
  }

  body.ih-mobile-app .sec-title h2 {
    font-size: 20px;
  }

  body.ih-mobile-app .sec-title .text {
    font-size: 13px;
  }

  body.ih-mobile-app .ih-education-jobs .row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin: 0 -15px;
    padding: 0 15px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body.ih-mobile-app .ih-education-jobs .row::-webkit-scrollbar {
    display: none;
  }

  body.ih-mobile-app .ih-education-jobs .category-block {
    flex: 0 0 auto;
    width: 140px;
    scroll-snap-align: start;
    padding: 0;
  }

  body.ih-mobile-app .ih-education-jobs .inner-box {
    border-radius: 16px;
    padding: 16px 12px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(45, 125, 70, 0.08);
    border: 1px solid var(--ih-border, #e3ebe5);
  }

  body.ih-mobile-app .ih-job-types-pills {
    gap: 8px;
  }

  body.ih-mobile-app .ih-job-types-pill {
    font-size: 13px;
    padding: 8px 14px;
  }

  /* Job cards — full-width app tiles */
  body.ih-mobile-app .job-block {
    padding: 0 0 12px;
  }

  body.ih-mobile-app .job-block .inner-box {
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--ih-border, #e3ebe5);
    box-shadow: 0 2px 10px rgba(45, 125, 70, 0.06);
    padding: 16px;
    transition: transform 0.15s;
  }

  body.ih-mobile-app .job-block .inner-box:active {
    transform: scale(0.98);
  }

  body.ih-mobile-app .job-block .company-logo img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
  }

  body.ih-mobile-app .job-block h4 {
    font-size: 16px;
    margin-bottom: 6px;
  }

  body.ih-mobile-app .job-block .job-info {
    font-size: 13px;
  }

  /* Candidate dashboard */
  body.ih-mobile-app .sp-dashboard-menu-toggle {
    display: none;
  }

  body.ih-mobile-app .sp-user-sidebar {
    z-index: 10060;
  }

  body.ih-mobile-app .sp-sidebar-backdrop {
    z-index: 10055;
  }

  body.ih-mobile-app .sp-upper-title-box h3 {
    font-size: 22px;
  }

  body.ih-mobile-app .sp-dashboard-content {
    border-radius: 16px;
  }

  /* Partner / ad banners */
  body.ih-mobile-app .ih-partner-banner {
    border-radius: 12px;
    margin: 12px 15px;
  }

  /* FAQ compact */
  body.ih-mobile-app .faq-section {
    padding: 24px 0;
  }
}
