/**
 * ExamWindow Mobile-First App Experience Stylesheet
 * 
 * Specifically optimized for mobile viewports (320px - 768px).
 * Desktop viewports (>= 769px) are strictly preserved and unaffected.
 *
 * @package ExamWindow
 * @version 1.6.0
 */

/* ==========================================================================
   1. DESKTOP EXCLUSIONS & SAFE GUARDS (>= 769px)
   ========================================================================== */
@media (min-width: 769px) {
  .ew-mobile-header-actions,
  .ew-mobile-bottom-nav,
  .ew-bottom-sheet,
  .ew-mobile-search-sheet,
  .ew-mobile-sticky-apply-bar,
  .ew-mobile-quick-chips,
  .ew-mobile-table-scroll-hint {
    display: none !important;
  }
}

/* ==========================================================================
   2. MOBILE APP EXPERIENCE (< 769px)
   ========================================================================== */
@media (max-width: 768px) {

  :root {
    --ew-mob-header-h: 56px;
    --ew-mob-nav-h: 62px;
    --ew-mob-radius: 12px;
    --ew-mob-pad: 16px;
    --ew-mob-font-sans: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }

  /* Viewport & Horizontal Overflow Prevention */
  html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }

  /* Body Clearance for Bottom Navigation */
  body {
    padding-bottom: calc(var(--ew-mob-nav-h) + env(safe-area-inset-bottom, 0px) + 16px) !important;
  }

  /* Additional Clearance when Sticky Apply Bar is Present */
  body.has-sticky-apply {
    padding-bottom: calc(var(--ew-mob-nav-h) + 64px + env(safe-area-inset-bottom, 0px) + 20px) !important;
  }

  /* Modal Open Body Lock */
  body.ew-sheet-open,
  body.ew-search-open {
    overflow: hidden !important;
    touch-action: none;
  }

  /* Container Gutters */
  .wrap {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* ==========================================================================
     3. COMPACT MOBILE APP HEADER
     ========================================================================== */
  header.site {
    position: sticky !important;
    top: 0 !important;
    z-index: 990 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
    padding: 0 !important;
    min-height: var(--ew-mob-header-h) !important;
  }

  header.site .wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    min-height: var(--ew-mob-header-h) !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    gap: 8px !important;
  }

  .logo {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    color: #0f172a !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }

  .logo span {
    color: var(--brand, #0b5fff) !important;
  }

  .custom-logo {
    max-height: 38px !important;
    width: auto !important;
  }

  /* Mobile Header Action Buttons Group */
  .ew-mobile-header-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .ew-mobile-icon-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #334155 !important;
    cursor: pointer !important;
    padding: 0 !important;
    position: relative !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    text-decoration: none !important;
  }

  .ew-mobile-icon-btn:active,
  .ew-mobile-icon-btn:focus {
    background: #e2e8f0 !important;
    color: #0f172a !important;
  }

  /* Bell Pulse Dot */
  .ew-bell-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
  }

  /* Header Menu Toggle Reset */
  .menu-toggle.ew-mobile-menu-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    cursor: pointer !important;
  }

  /* Default WP Menu Dropdown on Mobile is hidden; replaced by App Drawer */
  nav.main {
    display: none !important;
  }

  /* ==========================================================================
     4. FIXED APP BOTTOM NAVIGATION BAR
     ========================================================================== */
  .ew-mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: calc(var(--ew-mob-nav-h) + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.08) !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: space-around !important;
    margin: 0 !important;
  }

  .ew-bottom-tab {
    flex: 1 1 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 6px 2px !important;
    min-width: 0 !important;
    min-height: 48px !important;
    color: #64748b !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    position: relative !important;
    transition: color 0.15s ease, transform 0.1s ease;
    user-select: none !important;
    -webkit-user-select: none !important;
  }

  .ew-bottom-tab:active {
    transform: scale(0.94);
  }

  .ew-tab-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
  }

  .ew-tab-icon svg {
    width: 22px !important;
    height: 22px !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    transition: stroke 0.15s ease, stroke-width 0.15s ease;
  }

  .ew-tab-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  /* Active Bottom Nav Tab */
  .ew-bottom-tab.is-active {
    color: var(--brand, #0b5fff) !important;
  }

  .ew-bottom-tab.is-active .ew-tab-icon svg {
    stroke: var(--brand, #0b5fff) !important;
    stroke-width: 2.3 !important;
  }

  .ew-bottom-tab.is-active::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 25% !important;
    right: 25% !important;
    height: 3px !important;
    background: var(--brand, #0b5fff) !important;
    border-radius: 0 0 4px 4px !important;
  }

  /* ==========================================================================
     5. MOBILE "MORE" SLIDE-UP BOTTOM SHEET
     ========================================================================== */
  .ew-bottom-sheet {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1050 !important;
    display: none !important;
    align-items: flex-end !important;
    justify-content: center !important;
  }

  .ew-bottom-sheet.is-open {
    display: flex !important;
  }

  .ew-sheet-backdrop {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    animation: ewFadeIn 0.2s ease-out forwards;
  }

  .ew-sheet-panel {
    position: relative !important;
    width: 100% !important;
    max-height: 85vh !important;
    background: #ffffff !important;
    border-radius: 20px 20px 0 0 !important;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 12px 18px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 2 !important;
    animation: ewSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .ew-sheet-drag-handle {
    width: 40px !important;
    height: 4px !important;
    background: #cbd5e1 !important;
    border-radius: 4px !important;
    margin: 4px auto 14px !important;
  }

  .ew-sheet-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 18px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }

  .ew-sheet-heading {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
  }

  .ew-sheet-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: none !important;
    font-size: 1.3rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
  }

  /* Sheet Navigation Grid */
  .ew-sheet-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
  }

  .ew-sheet-grid-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 14px !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    text-decoration: none !important;
    transition: background 0.15s ease, border-color 0.15s ease;
  }

  .ew-sheet-grid-item:active {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
  }

  .ew-grid-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    color: #ffffff !important;
  }

  .ew-grid-icon.icon-key { background: #8b5cf6 !important; }
  .ew-grid-icon.icon-syllabus { background: #0b5fff !important; }
  .ew-grid-icon.icon-state { background: #059669 !important; }
  .ew-grid-icon.icon-search { background: #ea580c !important; }

  .ew-grid-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 2px !important;
  }

  .ew-grid-sub {
    font-size: 0.78rem !important;
    color: #64748b !important;
  }

  /* Top States Quick Chips */
  .ew-sheet-section {
    margin-bottom: 20px !important;
  }

  .ew-sheet-section-title {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #64748b !important;
    margin-bottom: 10px !important;
  }

  .ew-sheet-chips {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }

  .ew-sheet-chips a {
    display: inline-block !important;
    padding: 6px 12px !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-radius: 18px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: 1px solid #e2e8f0 !important;
  }

  .ew-sheet-chips a:active {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
  }

  /* Utility Links List */
  .ew-sheet-links-list {
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }

  .ew-sheet-link-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 13px 16px !important;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    min-height: 48px !important;
  }

  .ew-sheet-link-item:last-child {
    border-bottom: none !important;
  }

  .ew-sheet-link-item:active {
    background: #f8fafc !important;
  }

  .ew-sheet-link-item svg {
    color: #64748b !important;
    flex-shrink: 0 !important;
  }

  .ew-sheet-link-item span:first-of-type {
    flex: 1 !important;
  }

  .ew-link-arrow {
    font-size: 1.2rem !important;
    color: #94a3b8 !important;
  }

  /* ==========================================================================
     6. MOBILE QUICK SEARCH OVERLAY MODAL
     ========================================================================== */
  .ew-mobile-search-sheet {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1060 !important;
    display: none !important;
    align-items: flex-start !important;
    justify-content: center !important;
  }

  .ew-mobile-search-sheet.is-open {
    display: flex !important;
  }

  .ew-mobile-search-backdrop {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
  }

  .ew-mobile-search-content {
    position: relative !important;
    width: 100% !important;
    background: #ffffff !important;
    padding: 16px 18px 24px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    z-index: 2 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    animation: ewSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .ew-mobile-search-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 14px !important;
  }

  .ew-mobile-search-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
  }

  .ew-mobile-search-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: none !important;
    font-size: 1.3rem !important;
    cursor: pointer !important;
  }

  .ew-mobile-search-form {
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }

  .ew-mobile-search-input-wrap {
    flex: 1 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
  }

  .ew-mobile-search-input-wrap svg {
    position: absolute !important;
    left: 12px !important;
    color: #94a3b8 !important;
    pointer-events: none !important;
  }

  .ew-mobile-search-input {
    width: 100% !important;
    padding: 12px 14px 12px 38px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    box-sizing: border-box !important;
  }

  .ew-mobile-search-input:focus {
    border-color: var(--brand, #0b5fff) !important;
    background: #ffffff !important;
    outline: none !important;
  }

  .ew-mobile-search-submit {
    background: var(--brand, #0b5fff) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0 16px !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    cursor: pointer !important;
    min-height: 44px !important;
  }

  .ew-mobile-quick-keywords {
    margin-top: 10px !important;
  }

  .ew-quick-kw-label {
    display: block !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    margin-bottom: 8px !important;
  }

  .ew-quick-kw-chips {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
  }

  .ew-quick-kw-chips a {
    display: inline-block !important;
    padding: 5px 10px !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-radius: 16px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: 1px solid #e2e8f0 !important;
  }

  /* ==========================================================================
     7. APP-STYLE HOMEPAGE DASHBOARD EXPERIENCE
     ========================================================================== */
  .hero {
    padding: 24px 0 20px !important;
    background-image: linear-gradient(135deg, #0b5fff 0%, #1e40af 100%) !important;
  }

  .hero h1 {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
  }

  .hero p {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
    margin-bottom: 16px !important;
    opacity: 0.9 !important;
  }

  /* Mobile Quick Category Pill Scroller */
  .ew-mobile-quick-chips {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 12px 14px !important;
    margin: -10px -14px 18px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  .ew-mobile-quick-chips::-webkit-scrollbar {
    display: none !important;
  }

  .ew-mob-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 8px 14px !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    flex-shrink: 0 !important;
    min-height: 36px !important;
  }

  .ew-mob-chip.is-active,
  .ew-mob-chip:active {
    background: var(--brand, #0b5fff) !important;
    color: #ffffff !important;
    border-color: var(--brand, #0b5fff) !important;
  }

  /* State Chips Scroller on Homepage */
  .state-chips-container {
    margin: 12px 0 20px !important;
    padding: 12px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--ew-mob-radius) !important;
  }

  .state-chips-container .chips {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
    padding-bottom: 4px !important;
  }

  .state-chips-container .chips::-webkit-scrollbar {
    display: none !important;
  }

  .state-chips-container .chips a {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    border-radius: 16px !important;
  }

  /* Homepage Category Boxes Grid */
  .grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin: 16px 0 !important;
  }

  .box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--ew-mob-radius) !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
    overflow: hidden !important;
    margin: 0 !important;
  }

  .box-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 14px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  .box-header h2 {
    font-size: 1.05rem !important;
    margin: 0 !important;
    font-weight: 700 !important;
  }

  .box-header h2 a {
    color: #0f172a !important;
    text-decoration: none !important;
  }

  .box-header-view-all {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: var(--brand, #0b5fff) !important;
    text-decoration: none !important;
  }

  .box ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .box li {
    padding: 12px 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
  }

  .box li:last-child {
    border-bottom: none !important;
  }

  .box li a {
    display: block !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    margin-bottom: 4px !important;
  }

  .box li a:active {
    color: var(--brand, #0b5fff) !important;
  }

  .box li small {
    display: block !important;
    font-size: 0.78rem !important;
    color: #64748b !important;
  }

  .box-footer {
    padding: 10px 14px !important;
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
    text-align: center !important;
  }

  .box-footer .view-all-link {
    display: block !important;
    padding: 8px 12px !important;
    background: #f1f5f9 !important;
    border-radius: 8px !important;
    color: var(--brand, #0b5fff) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
  }

  /* ==========================================================================
     8. MODERN RECRUITMENT LISTING CARDS (ARCHIVES & SEARCH)
     ========================================================================== */
  .cards-grid,
  .search-results-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    margin-bottom: 24px !important;
  }

  .search-result-card,
  .ew-job-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--ew-mob-radius) !important;
    padding: 14px 16px !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin-bottom: 0 !important;
  }

  .card-badges {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
  }

  .search-result-card h2,
  .ew-job-card h2 {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
    margin: 0 0 10px !important;
    font-weight: 700 !important;
  }

  .search-result-card h2 a,
  .ew-job-card h2 a {
    color: #0f172a !important;
    text-decoration: none !important;
  }

  .job-meta-list {
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
    color: #475569 !important;
    margin-bottom: 12px !important;
    background: #f8fafc !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
  }

  .card-footer {
    padding-top: 10px !important;
    border-top: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  .card-footer .btn {
    flex: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
  }

  /* Filter Toolbar on Category Jobs Hub */
  .ew-jobs-filter-toolbar {
    padding: 14px 12px !important;
    margin-bottom: 18px !important;
  }

  .ew-jobs-filter-toolbar .filter-pills-wrap {
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    padding-bottom: 2px !important;
  }

  .ew-jobs-filter-toolbar .filter-pills-wrap::-webkit-scrollbar {
    display: none !important;
  }

  .ew-filter-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 0.82rem !important;
    padding: 6px 12px !important;
  }

  /* ==========================================================================
     9. MOBILE TABLE TRANSFORMATION: 2-COLUMN STACKED CARDS
     ========================================================================== */
  .ew-data-table {
    display: block !important;
    width: 100% !important;
    border: none !important;
    background: transparent !important;
  }

  .ew-data-table thead {
    display: block !important;
  }

  .ew-data-table thead tr {
    display: block !important;
  }

  .ew-data-table thead th {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    border-radius: 10px 10px 0 0 !important;
    font-size: 0.95rem !important;
    padding: 12px 14px !important;
    background: #17365d !important;
    color: #ffffff !important;
  }

  .ew-data-table tbody {
    display: block !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-top: none !important;
    border-radius: 0 0 10px 10px !important;
    overflow: hidden !important;
  }

  .ew-data-table tbody tr {
    display: flex !important;
    flex-direction: column !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }

  .ew-data-table tbody tr:last-child {
    border-bottom: none !important;
  }

  .ew-data-table tbody td:first-child {
    width: 100% !important;
    padding: 0 0 4px 0 !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    border: none !important;
    background: transparent !important;
  }

  .ew-data-table tbody td:last-child {
    width: 100% !important;
    padding: 0 !important;
    font-size: 0.92rem !important;
    color: #0f172a !important;
    border: none !important;
    line-height: 1.45 !important;
    background: transparent !important;
  }

  /* Multi-Column Tables with Scroll Hint */
  .tablewrap {
    position: relative !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 10px !important;
    margin: 16px 0 !important;
    max-width: 100% !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
  }

  .ew-mobile-table-scroll-hint {
    display: block !important;
    font-size: 0.72rem !important;
    color: #64748b !important;
    text-align: right !important;
    padding: 4px 10px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  /* ==========================================================================
     10. PROFESSIONAL SINGLE JOB DETAILS & STICKY ACTION BAR
     ========================================================================== */
  .single-job-container,
  .single-article-container {
    margin: 12px 0 24px !important;
  }

  .single-article-header h1 {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
    margin: 0 0 10px !important;
  }

  .article-share-bar {
    gap: 6px !important;
    margin-bottom: 18px !important;
  }

  .share-btn {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    min-height: 38px !important;
    border-radius: 8px !important;
  }

  /* Official Links Box */
  .ew-links-box {
    padding: 16px !important;
    margin: 20px 0 !important;
    border-radius: var(--ew-mob-radius) !important;
  }

  .ew-links-box h3 {
    font-size: 1.1rem !important;
    margin-bottom: 12px !important;
  }

  .ew-links-box table.sz-table,
  .ew-links-box table.sz-table tbody,
  .ew-links-box table.sz-table tr,
  .ew-links-box table.sz-table td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: none !important;
    padding: 0 !important;
  }

  .ew-links-box table.sz-table tr {
    margin-bottom: 12px !important;
    background: #ffffff !important;
    padding: 12px !important;
    border-radius: 8px !important;
    border: 1px solid #bbf7d0 !important;
  }

  .ew-links-box table.sz-table tr:last-child {
    margin-bottom: 0 !important;
  }

  .ew-links-box table.sz-table td:first-child {
    margin-bottom: 8px !important;
    font-size: 0.88rem !important;
  }

  .ew-links-box table.sz-table td .btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    min-height: 42px !important;
    padding: 10px !important;
    font-size: 0.9rem !important;
  }

  /* Sticky "Apply Now" Mobile Floating Bar */
  .ew-mobile-sticky-apply-bar {
    position: fixed !important;
    bottom: calc(var(--ew-mob-nav-h) + env(safe-area-inset-bottom, 0px)) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 995 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08) !important;
    padding: 8px 14px !important;
    display: flex !important;
    justify-content: center !important;
  }

  .ew-sticky-apply-inner {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 500px !important;
  }

  .ew-sticky-btn-apply {
    flex: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #16a34a !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 11px 16px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    min-height: 46px !important;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35) !important;
    transition: transform 0.1s ease;
  }

  .ew-sticky-btn-apply:active {
    transform: scale(0.97);
  }

  .ew-sticky-btn-pdf {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: #f8fafc !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    padding: 11px 14px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    min-height: 46px !important;
    white-space: nowrap !important;
  }

  /* ==========================================================================
     11. FOOTER MOBILE OPTIMIZATION
     ========================================================================== */
  footer.site {
    margin-top: 30px !important;
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 24px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .footer-col {
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 18px !important;
  }

  .footer-col:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  .footer-col-title {
    font-size: 1rem !important;
    margin-bottom: 12px !important;
  }

  .footer-links-list li a {
    padding: 6px 0 !important;
    display: inline-block !important;
    font-size: 0.9rem !important;
  }

  .footer-social-bar {
    justify-content: flex-start !important;
    gap: 12px !important;
    margin-top: 14px !important;
  }

  .social-badge {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }

  /* ==========================================================================
     12. ANIMATIONS & MICRO-INTERACTIONS
     ========================================================================== */
  @keyframes ewFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes ewSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  @keyframes ewSlideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
  }

  /* Minimum 44px Touch Targets */
  button, input, select, textarea, .btn, .share-btn, .ew-mob-chip, .ew-bottom-tab {
    min-height: 44px;
    box-sizing: border-box;
  }
}
