  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --navy: #0f1b33;
    --navy-mid: #162338;
    --navy-light: #1a2d52;
    --gold: #d4a840;
    --gold-light: #f0c84a;
    --cream: #faf7f0;
    --cream-dark: #f0ebe0;
    --white: #ffffff;
    --gold-border: rgba(212,168,64,0.25);
    --gold-border-strong: rgba(212,168,64,0.4);
    --text-muted: rgba(255,255,255,0.65);
    --text-faint: rgba(255,255,255,0.5);
    --navy-text-muted: rgba(15,27,51,0.6);
    --proxima: "proxima-nova", "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: Georgia, 'Times New Roman', serif;
    background: var(--cream);
    color: var(--navy);
    overflow-x: hidden;
  }

  h1,h2,h3,h4,h5,h6,button,.nav-link,.tab-btn,.section-title {
    font-family: var(--proxima);
    letter-spacing: -0.01em;
  }

  a { text-decoration: none; color: inherit; }
  button { cursor: pointer; border: none; background: none; font-family: inherit; }
  img { max-width: 100%; display: block; }

  /* ---- Animations ---- */
  @keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
  @keyframes sparkle {
    0%{opacity:0;transform:translateY(0) scale(0)}
    10%{opacity:0.8;transform:translateY(-10px) scale(1)}
    50%{opacity:0.4;transform:translateY(-40px) scale(0.8)}
    100%{opacity:0;transform:translateY(-80px) scale(0)}
  }
  @keyframes fadeSlide { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes crossfade { 0%,100%{opacity:1} 25%{opacity:1} 33%{opacity:0} 88%{opacity:0} }

  .sparkle-dot {
    position: absolute; width: 4px; height: 4px;
    background: rgba(255,255,255,0.6); border-radius: 50%;
    animation: sparkle 8s ease-in-out infinite;
  }

  /* ---- Layout ---- */
  .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

  .grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
  .grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
  @media(max-width:900px){ .grid-3{grid-template-columns:repeat(2,1fr)} }
  @media(max-width:600px){ .grid-3,.grid-2{grid-template-columns:1fr} }

  /* ---- Header ---- */
  #header {
    background: var(--navy);
    border-bottom: 1px solid var(--gold-border);
    position: sticky; top: 0; z-index: 200;
    box-shadow: 0 2px 16px rgba(0,0,0,0.3);
  }
  .header-inner {
    display: flex; align-items: center;
    justify-content: flex-start; gap: 48px; height: 88px;
  }
  .header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
  .logo-btn {
    display: flex; align-items: center;
    background: none; border: none; cursor: pointer;
    padding: 0; margin-left: -24px; margin-right: 24px;
  }

  .logo-btn img {
    transform: scale(1.25);
    transform-origin: left center;
  }
  .logo-text { display: flex; flex-direction: column; line-height: 1.05; }
  .logo-top { font-weight: 300; font-size: 18px; color: white; letter-spacing: 0.01em; font-family: var(--proxima); }
  .logo-main { font-weight: 800; font-size: 22px; color: white; font-family: var(--proxima); }
  .logo-chinese { font-size: 10px; color: var(--gold); letter-spacing: 0.05em; font-family: Georgia, serif; margin-top: 2px; }

  nav { display: flex; align-items: center; gap: 32px; }
  .nav-link {
    font-weight: 600; font-size: 19px;
    color: white !important;
    background: none; border: none; cursor: pointer;
    transition: opacity 0.15s;
    font-family: var(--proxima) !important;
  }
  .nav-link:hover { opacity: 0.72; }
  .nav-link.active { color: var(--gold) !important; opacity: 1; }
  .dropdown-trigger.active { color: var(--gold) !important; opacity: 1; }

  /* Dropdown */
  .dropdown { position: relative; }
  .dropdown-trigger {
    display: flex; align-items: center; gap: 4px;
    font-weight: 600; font-size: 19px; color: white !important;
    background: none; border: none; cursor: pointer;
    font-family: var(--proxima) !important;
    transition: opacity 0.15s;
  }
  .dropdown-trigger:hover { opacity: 0.72; }
  .dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0; margin-top: 0; padding-top: 12px;
    min-width: 280px; background: transparent;
    z-index: 100;
  }
  .dropdown-menu-inner {
    background: var(--cream);
    border: 1px solid var(--cream-dark); border-radius: 10px;
    box-shadow: 0 12px 48px rgba(15,27,51,0.18); padding: 4px 0;
  }
  .dropdown:hover .dropdown-menu { display: block; }
  .sub-dropdown { position: relative; }
  .sub-dropdown-menu {
    display: none; position: absolute; left: 100%; top: 8px;
    min-width: 240px; background: var(--cream);
    border: 1px solid var(--cream-dark); border-radius: 10px;
    box-shadow: 0 12px 48px rgba(15,27,51,0.18); z-index: 101; padding: 4px 0;
  }
  .sub-dropdown:hover .sub-dropdown-menu { display: block; }
  .dropdown-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; color: var(--navy);
    font-family: var(--proxima); font-size: 17px; font-weight: 500;
    transition: background 0.15s, color 0.15s; cursor: pointer;
    background: none; border: none; width: 100%; text-align: left;
  }
  .dropdown-item:hover { background: var(--cream-dark); color: var(--navy); }

  .cta-btn {
    background: var(--cream);
    color: var(--navy); font-weight: 700; font-size: 15px;
    padding: 11px 22px; border-radius: 8px; border: none; cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
    font-family: var(--proxima);
  }
  .cta-btn:hover { transform: scale(1.05); opacity: 0.92; }

  /* Mobile nav */
  .mobile-toggle { display: none; color: white; background: none; border: none; cursor: pointer; }
  .mobile-menu { display: none; border-top: 1px solid var(--gold-border); padding: 16px 0; }
  .mobile-menu.open { display: block; max-height: calc(100vh - 70px); overflow-y: auto; }
  .mobile-nav-link {
    display: block; width: 100%; text-align: left;
    padding: 12px 0; font-weight: 600; font-size: 15px; color: white;
    border-bottom: 1px solid var(--gold-border); background: none; border-left: none; border-right: none;
    cursor: pointer;
  }
  @media(max-width:768px){
    #header nav, .header-right { display: none !important; }
    .mobile-toggle { display: block !important; }
  }

  /* ---- Buttons ---- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: inherit; font-weight: 600; border-radius: 8px;
    cursor: pointer; transition: all 0.15s; border: none; text-decoration: none;
  }
  .btn-lg { padding: 14px 28px; font-size: 16px; }
  .btn-md { padding: 11px 22px; font-size: 15px; }
  .btn-sm { padding: 8px 16px; font-size: 13px; }
  .btn-primary { background: linear-gradient(135deg, var(--navy), var(--gold)); color: white; }
  .btn-white { background: white; color: var(--navy); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
  .btn-gold { background: var(--gold); color: var(--navy); font-weight: 700; }
  .btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--gold-border); }
  .btn-outline-white { background: rgba(255,255,255,0.12); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.3); color: white; border-radius: 999px; }
  .btn:hover { transform: scale(1.05); opacity: 0.92; }

  /* ---- Hero ---- */
  .hero {
    position: relative; padding: 96px 0; min-height: 580px;
    display: flex; align-items: center; overflow: hidden;
  }
  .hero-slider {
    position: absolute; inset: 0; pointer-events: none;
  }
  .hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.5s ease; pointer-events: none;
  }
  .hero-slide.active { opacity: 1; }
  .hero-overlay {
    position: absolute; inset: 0;
    background: rgba(15,27,51,0.75); pointer-events: none;
  }
  .hero-content { position: relative; z-index: 10; max-width: 700px; margin: 0 auto; text-align: center; }
  .hero-title { font-size: clamp(36px,6vw,64px); font-weight: 700; color: white; line-height: 1.1; margin-bottom: 24px; font-family: var(--proxima); }
  .hero-title-highlight {
    display: inline-block; padding: 6px 16px;
    backdrop-filter: blur(8px); border-radius: 16px;
    background: rgba(212,168,64,0.15); color: var(--gold);
    border: 1px solid rgba(212,168,64,0.3);
    font-family: Georgia, 'Times New Roman', serif;
    font-style: normal;
  }
  .hero-subtitle { color: #ffffff; font-size: 18px; font-style: normal; margin-bottom: 36px; line-height: 1.6; font-family: Georgia, serif; }
  .hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

  /* ---- Marquee ---- */
  .marquee-section { padding: 48px 0; background: var(--cream); overflow: hidden; border-top: 1px solid var(--cream-dark); border-bottom: 1px solid var(--cream-dark); }
  .marquee-title { text-align: center; color: var(--navy-text-muted); margin-bottom: 32px; font-size: 12px; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; font-family: var(--proxima); }
  .marquee-track { display: flex; animation: marquee 30s linear infinite; width: max-content; }
  .marquee-track:hover { animation-play-state: paused; }
  .marquee-logo {
    flex-shrink: 0; width: 160px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    background: white; border-radius: 10px;
    border: 1px solid var(--cream-dark); margin: 0 12px; padding: 12px;
    font-size: 13px; font-weight: 600; color: var(--navy); text-align: center;
    box-shadow: 0 2px 8px rgba(15,27,51,0.06);
  }

  /* ---- Stats ---- */
  .stats-section { padding: 0; background: var(--cream); }
  .stats-inner { max-width: 1000px; margin: 0 auto; padding: 72px 24px; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
  .stat-card {
    background: white; padding: 48px 32px; text-align: center;
    border-radius: 16px; border: 1px solid var(--cream-dark);
    box-shadow: 0 2px 12px rgba(15,27,51,0.06);
    transition: all 0.3s; position: relative;
  }
  .stat-card:hover { background: var(--navy-mid); box-shadow: 0 8px 32px rgba(15,27,51,0.2); }
  .stat-card:hover .stat-value-gold { background: none; -webkit-background-clip: unset; -webkit-text-fill-color: white; background-clip: unset; color: white; }
  .stat-card:hover .stat-label { color: rgba(255,255,255,0.85); }
  .stat-card:hover .stat-icon svg { stroke: white; }
  .stat-icon { margin-bottom: 16px; display: flex; justify-content: center; }
  .stat-value { font-size: clamp(52px,7vw,72px); font-weight: 800; margin-bottom: 12px; color: white; font-family: var(--proxima); line-height: 1; }
  .stat-value-gold { font-size: clamp(52px,7vw,72px); font-weight: 800; margin-bottom: 12px; font-family: var(--proxima); line-height: 1; background: linear-gradient(180deg,var(--gold),var(--gold-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; transition: all 0.3s; }
  .stat-label { color: var(--navy); font-size: 15px; font-family: Georgia, 'Times New Roman', serif; font-weight: 500; line-height: 1.4; transition: color 0.3s; }
  @media(max-width:600px){ .stats-inner { grid-template-columns: 1fr; } }

  /* ---- Section separator ---- */
  .sep { height: 1px; background: linear-gradient(90deg, transparent, var(--cream-dark), transparent); margin: 0 24px; }

  /* ---- Carousel ---- */
  .carousel-section { padding: 64px 0; background: var(--navy); }
  .carousel-wrap { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 48px rgba(18,58,102,0.15); }
  .carousel-img { width: 100%; aspect-ratio: 16/7; object-fit: cover; display: block; transition: all 0.5s; }
  .carousel-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,58,102,0.8) 0%, transparent 60%); pointer-events: none; }
  .carousel-badge {
    position: absolute; top: 16px; right: 16px;
    background: var(--cream); backdrop-filter: blur(8px);
    border-radius: 999px; padding: 10px 24px; border: 1px solid rgba(15,27,51,0.15);
    color: var(--navy); font-weight: 700; font-size: 17px; font-family: var(--proxima);
  }
  .carousel-caption {
    position: absolute; bottom: 16px; left: 16px; right: 16px;
    background: rgba(255,255,255,0.12); backdrop-filter: blur(16px);
    border-radius: 12px; padding: 20px 24px; border: 1px solid rgba(255,255,255,0.25);
    color: white; font-size: clamp(14px,2.5vw,18px); font-style: normal; line-height: 1.5;
  }
  .carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--navy); color: white; border: none; cursor: pointer;
    font-size: 20px; display: flex; align-items: center; justify-content: center; z-index: 10;
  }
  .carousel-btn-prev { left: 16px; }
  .carousel-btn-next { right: 16px; }
  .carousel-dots { position: absolute; bottom: 100px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
  .carousel-dot { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.4); border: none; cursor: pointer; transition: all 0.3s; }
  .carousel-dot.active { width: 24px; background: white; }
  .carousel-dot:not(.active) { width: 8px; }

  /* ---- Audience cards ---- */
  .audience-card {
    background: white; border: 1px solid var(--cream-dark);
    border-radius: 12px; overflow: hidden; text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(15,27,51,0.06);
  }
  .audience-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(15,27,51,0.12); }
  .audience-card img { width: 100%; height: 240px; object-fit: cover; }
  .audience-card-body { padding: 36px 32px; }
  .audience-card h3 { font-weight: 700; font-size: 22px; margin-bottom: 14px; color: var(--navy); }
  .audience-card p { color: var(--navy); font-size: 19px; line-height: 1.7; }

  /* ---- CTA section ---- */
  .cta-section { padding: 80px 0; background: var(--navy); }
  .cta-section h2 { font-size: clamp(24px,4vw,36px); font-weight: 700; color: white; margin-bottom: 16px; }
  .cta-section p { color: rgba(255,255,255,0.85); font-size: 18px; margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }

  /* ---- Page hero (inner pages) ---- */
  .page-hero { padding: 80px 0; background: var(--navy); text-align: center; }
  .page-hero h1 { font-size: clamp(32px,5vw,52px); font-weight: 700; color: white; margin-bottom: 16px; }
  .page-hero p { color: rgba(255,255,255,0.85); font-size: 18px; }

  /* ---- Sections ---- */
  .section { padding: 80px 0; }
  .section-title { font-size: clamp(24px,4vw,36px); font-weight: 700; font-family: var(--proxima); }
  .section-subtitle { color: var(--text-muted); font-size: 16px; line-height: 1.7; }

  /* ---- Value cards (about) ---- */
  .value-card {
    border: 1px solid var(--cream-dark); border-radius: 12px; padding: 24px;
    background: white; transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(15,27,51,0.05);
  }
  .value-card:hover { border-color: var(--gold-border-strong); box-shadow: 0 8px 24px rgba(15,27,51,0.1); transform: translateY(-3px); }
  .value-icon { background: var(--cream); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
  .value-title { font-weight: 700; font-size: 17px; color: var(--navy); font-family: var(--proxima); }
  .value-desc { color: var(--navy-text-muted); font-size: 14px; line-height: 1.6; margin-top: 8px; }

  /* ---- Feature cards ---- */
  .feature-card {
    background: white; border: 1px solid var(--cream-dark);
    border-radius: 12px; padding: 32px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(15,27,51,0.05);
  }
  .feature-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(15,27,51,0.1); }
  .feature-icon { width: 56px; height: 56px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
  .feature-card h3 { font-weight: 700; font-size: 18px; margin-bottom: 10px; color: var(--navy); font-family: var(--proxima); }
  .feature-card p { color: var(--navy-text-muted); font-size: 14px; line-height: 1.6; }

  /* ---- FAQ ---- */
  .faq-item { border-bottom: 1px solid rgba(212,168,64,0.15); }
  .faq-trigger {
    width: 100%; text-align: left; padding: 18px 0;
    font-size: 18px; font-weight: 600; color: white;
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    background: none; border: none; cursor: pointer;
    font-family: var(--proxima);
  }
  .faq-trigger svg { flex-shrink: 0; transition: transform 0.3s; }
  .faq-trigger.open svg { transform: rotate(180deg); }
  .faq-body { padding-bottom: 16px; font-size: 17px; color: var(--navy); line-height: 1.8; font-family: Georgia, serif; display: none; }
  .faq-body.open { display: block; }

  /* ---- Step cards ---- */
  .step-card {
    position: relative; background: white;
    border: 1px solid var(--cream-dark); border-radius: 16px;
    padding: 48px 32px 32px; transition: box-shadow 0.2s; color: var(--navy);
    box-shadow: 0 2px 12px rgba(15,27,51,0.06);
  }
  .step-card:hover { box-shadow: 0 8px 40px rgba(15,27,51,0.12); border-color: var(--gold-border-strong); }
  .step-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: -20px; left: 32px;
  }
  .step-card ul li { color: var(--navy) !important; }

  /* ---- Badges ---- */
  .badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(212,168,64,0.1); border: 1px solid rgba(212,168,64,0.4);
    border-radius: 999px; padding: 8px 16px; color: var(--gold);
    font-size: 13px; font-weight: 600; transition: transform 0.2s;
  }
  .badge:hover { transform: scale(1.05); }
  .badge-icon { background: rgba(255,255,255,0.2); border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }

  /* ---- Sparkles bg ---- */
  .sparkles-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

  /* ---- Pricing ---- */
  .pricing-toggle {
    display: inline-flex; background: rgba(15,27,51,0.06);
    border: 1px solid rgba(15,27,51,0.18); border-radius: 10px; padding: 6px; gap: 4px;
  }
  .tab-btn { padding: 12px 22px; font-size: 17px; font-weight: 600; border-radius: 8px; transition: all 0.2s; color: var(--navy); background: none; border: none; cursor: pointer; }
  .tab-btn.active { background: var(--navy); color: white; box-shadow: 0 4px 16px rgba(15,27,51,0.25); }

  .pricing-card {
    background: white; border: 1px solid var(--gold-border);
    border-radius: 16px; padding: 40px 32px; box-shadow: 0 8px 32px rgba(18,58,102,0.08);
  }
  .pricing-check { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
  .pricing-check span { font-size: 13px; color: #666; }

  .plan-card {
    background: white; border: 1px solid var(--gold-border);
    border-radius: 16px; padding: 32px; position: relative;
    transition: box-shadow 0.2s;
  }
  .plan-card.popular { border: 2px solid var(--navy-light); box-shadow: 0 8px 32px rgba(52,82,157,0.15); transform: scale(1.03); }
  .plan-popular-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--navy-light); color: white; border-radius: 999px;
    padding: 4px 16px; font-size: 12px; font-weight: 700; white-space: nowrap;
  }

  /* ---- Contact form ---- */
  .contact-form { background: white; border-radius: 16px; padding: 40px; border: 1px solid var(--gold-border); box-shadow: 0 8px 32px rgba(18,58,102,0.08); }
  .form-label { display: block; font-weight: 600; font-size: 17px; margin-bottom: 6px; color: var(--navy); }
  .form-input {
    width: 100%; padding: 12px 14px; border: 1px solid rgba(15,27,51,0.2);
    border-radius: 8px; font-family: Georgia, serif; font-size: 17px;
    color: var(--navy); background: white; outline: none; transition: border-color 0.2s;
  }
  .form-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,168,64,0.15); }
  textarea.form-input { resize: vertical; }
  .radio-pill input[type="radio"] { display: none; }
  .radio-pill label {
    display: inline-block; padding: 8px 16px;
    border: 2px solid rgba(15,27,51,0.2); border-radius: 999px;
    font-size: 13px; cursor: pointer; transition: all 0.15s;
    color: var(--navy); background: white; font-family: Georgia, serif;
  }
  .radio-pill input[type="radio"]:checked + label { background: var(--navy); border-color: var(--navy); color: white; }

  /* Multi select dropdown */
  .multi-select { position: relative; }
  .multi-trigger {
    width: 100%; padding: 10px 12px; border: 1px solid rgba(15,27,51,0.2);
    border-radius: 8px; background: white; display: flex; justify-content: space-between;
    align-items: center; font-size: 14px; cursor: pointer; color: #aaa;
    font-family: Georgia, serif;
  }
  .multi-trigger.has-value { color: var(--navy); }
  .multi-options {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: white; border: 1px solid rgba(15,27,51,0.15); border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 10; padding: 4px; margin-top: 4px;
  }
  .multi-options.open { display: block; }
  .multi-option {
    display: flex; align-items: center; gap: 8px; padding: 10px 12px;
    border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--navy);
    transition: background 0.1s; font-family: Georgia, serif;
  }
  .multi-option:hover { background: #fdf6e8; }
  .multi-checkbox {
    width: 16px; height: 16px; border: 2px solid rgba(212,168,64,0.25);
    border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .multi-checkbox.checked { background: var(--navy); border-color: var(--navy); }

  /* ---- Step process ---- */
  .process-step { display: flex; gap: 16px; margin-bottom: 28px; }
  .process-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--gold)); display: flex; align-items: center; justify-content: center; }
  .process-title { font-weight: 700; font-size: 16px; margin-bottom: 6px; color: white; }
  .process-desc { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.6; }

  /* ---- Gallery ---- */
  .gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
  .gallery-item { overflow: hidden; border-radius: 10px; }
  .gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.3s; }
  .gallery-item img:hover { transform: scale(1.05); }

  /* ---- Job cards ---- */
  .job-card {
    background: white; border: 1px solid rgba(15,27,51,0.1);
    border-radius: 12px; padding: 24px; display: flex;
    justify-content: space-between; align-items: center; gap: 16px;
    transition: box-shadow 0.2s; margin-bottom: 12px;
  }
  .job-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
  .job-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; color: var(--navy); }
  .job-meta { color: rgba(15,27,51,0.6); font-size: 14px; }

  /* ---- No match section ---- */
  .no-match-grid { display: grid; grid-template-columns: 1fr 2fr; border-radius: 20px; overflow: hidden; background: rgba(255,255,255,0.12); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.25); max-width: 800px; margin: 0 auto; }
  .no-match-grid img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; object-position: center top; display: block; }
  .no-match-content { padding: 40px; }

  /* ---- China hub ---- */
  .china-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 24px; max-width: 1000px; margin: 0 auto; align-items: stretch; }
  .china-card { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
  .china-card-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; color: white; font-family: var(--proxima); }
  .china-card-desc { color: rgba(255,255,255,0.7); font-size: 13px; line-height: 1.6; }

  /* ---- Glass card ---- */
  .glass-card { background: rgba(255,255,255,0.12); backdrop-filter: blur(16px); border-radius: 16px; padding: 40px; border: 1px solid rgba(255,255,255,0.25); }

  /* ---- Example request cards ---- */
  .req-card { background: white; border: 1px solid rgba(15,27,51,0.1); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: transform 0.2s, box-shadow 0.2s; }
  .req-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
  .req-card-header { padding: 12px 16px; }
  .req-card-header span { color: white; font-weight: 700; font-size: 16px; }
  .req-card-body { padding: 16px; }
  .req-quote { background: var(--cream); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; padding: 12px 14px; margin-bottom: 10px; }
  .req-quote:last-child { margin-bottom: 0; }
  .req-quote p { font-size: 17px; font-style: normal; font-weight: 500; line-height: 1.5; color: var(--navy); }

  /* ---- Gold border card ---- */
  .gold-border-wrap { position: relative; border-radius: 12px; }
  .gold-border-wrap::before { content: ''; position: absolute; inset: -2px; border-radius: 14px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); z-index: 0; }
  .gold-border-inner { position: relative; z-index: 1; background: white; border-radius: 12px; overflow: hidden; }

  /* ---- Footer ---- */
  footer { background: var(--navy); color: white; padding: 64px 0 32px; }
  .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
  @media(max-width:768px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
  @media(max-width:480px){ .footer-grid { grid-template-columns: 1fr; } }
  .footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
  .footer-desc { color: rgba(255,255,255,0.7); font-size: 15px; max-width: 280px; line-height: 1.7; }
  .footer-heading { font-weight: 700; font-size: 18px; margin-bottom: 16px; }
  .footer-link { display: block; color: rgba(255,255,255,0.7); font-size: 16px; margin-bottom: 8px; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--proxima); }
  .footer-link:hover { color: var(--gold); }
  .footer-contact { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.7); font-size: 16px; margin-bottom: 8px; }
  .footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
  .footer-copy { color: rgba(255,255,255,0.5); font-size: 16px; }
  .footer-legal { display: flex; gap: 20px; align-items: center; }
  .footer-legal span { color: rgba(255,255,255,0.5); font-size: 16px; }
  .footer-legal-link { color: rgba(255,255,255,0.5); font-size: 16px; background: none; border: none; cursor: pointer; font-family: var(--proxima); padding: 0; transition: color 0.15s; }
  .footer-legal-link:hover { color: var(--gold); }
  .footer-linkedin { color: rgba(255,255,255,0.45); display: flex; align-items: center; transition: color 0.15s; }
  .footer-linkedin:hover { color: #0a66c2; }

  /* Hide footer & gold separator when any portal is active */
  body:has(.page.active .portal-layout) footer,
  body:has(.page.active .portal-layout) main + div[style] { display: none !important; }

  /* ---- Pages visibility ---- */
  .page { display: none; }
  .page.active { display: block; animation: fadeSlide 0.4s ease; }

  /* ---- Success state ---- */
  .success-page { padding: 120px 0; text-align: center; }
  .success-page h2 { font-size: 32px; font-weight: 700; margin-bottom: 16px; }
  .success-page p { color: var(--text-muted); font-size: 16px; margin-bottom: 32px; }

  /* ---- Inline gold text ---- */
  .gold { color: var(--gold); }
  .gold-gradient { background: linear-gradient(180deg,var(--gold),var(--gold-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

  /* ---- Pricing tags ---- */
  .price-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, var(--gold), var(--gold));
    color: white; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700;
  }

  /* ---- Partner hero (image bg) ---- */
  .image-hero {
    position: relative; min-height: 480px;
    display: flex; align-items: center; overflow: hidden;
    background-size: cover; background-position: center;
  }
  .image-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.65), rgba(0,0,0,0.35), transparent); pointer-events: none; }
  .image-hero-content { position: relative; z-index: 10; max-width: 560px; margin-left: 0; padding-left: 0; }
  .step-badge { display: inline-flex; align-items: center; background: rgba(255,255,255,0.95); border-radius: 999px; padding: 8px 20px; margin-bottom: 16px; }
  .step-badge span { font-weight: 700; font-size: 17px; color: var(--navy); }

  /* ---- Misc ---- */
  .text-center { text-align: center; }
  .mb-4 { margin-bottom: 16px; }
  .mb-6 { margin-bottom: 24px; }
  .mb-8 { margin-bottom: 32px; }
  .mb-12 { margin-bottom: 48px; }
  .mt-8 { margin-top: 32px; }
  .mt-12 { margin-top: 48px; }

  .study-hero { background: linear-gradient(135deg, #1a2d52, #5a4a9e, #7c5cbf); }

  svg { flex-shrink: 0; }

  @media(max-width:768px) {
    .no-match-grid, .china-grid { grid-template-columns: 1fr; }
    .china-grid img { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-btns { flex-direction: column; align-items: center; }
  }

  /* ===== MOBILE RESPONSIVE FIXES ===== */

  /* Gallery grid: 2 cols on small screens, 1 col on very small */
  @media(max-width:600px){ .gallery-grid { grid-template-columns: repeat(2,1fr); } }
  @media(max-width:400px){ .gallery-grid { grid-template-columns: 1fr; } }

  /* Job cards: allow wrapping so Apply button doesn't overflow */
  .job-card { flex-wrap: wrap; }

  /* Popular pricing card: remove scale transform to prevent horizontal overflow */
  @media(max-width:640px){ .plan-card.popular { transform: none; } }

  @media(max-width:768px){
    /* Founding team: stack image above text */
    #founders-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
    #founders-grid > img { height: 280px !important; }

    /* Contact page: stack process steps above the form */
    .contact-layout-grid { grid-template-columns: 1fr !important; gap: 32px !important; }

    /* Contact form: reduce horizontal padding */
    .contact-form { padding: 24px 20px !important; }

    /* Join the Team inner card: reduce padding */
    .join-team-card { padding: 32px 24px !important; }

    /* About mission value cards: reduce heavy padding */
    #mission-values-grid .value-card { padding: 28px 24px !important; }
  }

  @media(max-width:600px){
    /* Contact form name/last name fields: stack vertically */
    .name-grid { grid-template-columns: 1fr !important; }

    /* Pricing tab buttons: smaller text to fit on narrow screens */
    .tab-btn { font-size: 14px !important; padding: 8px 12px !important; }
  }

  /* ===== CLIENT LOGIN BUTTON ===== */
  .login-btn {
    background: transparent; color: white;
    border: 1.5px solid rgba(255,255,255,0.4);
    font-weight: 600; font-size: 15px;
    padding: 10px 18px; border-radius: 8px; cursor: pointer;
    transition: all 0.15s; font-family: var(--proxima);
    display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  }
  .login-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.75); }

  /* Portal header mode — hide nav, show centered title */
  #header-portal-title {
    display: none;
    position: absolute; left: 50%; transform: translateX(-50%);
    font-family: var(--proxima); font-weight: 700; font-size: 18px;
    color: white; letter-spacing: 0.5px; pointer-events: none;
  }
  #header.portal-mode nav,
  #header.portal-mode .header-right { display: none !important; }
  #header-portal-logout { display: none; }
  #header.portal-mode #header-portal-logout { display: flex; align-items: center; gap: 6px; margin-left: auto; }
  #header.portal-mode #header-portal-title { display: block; }

  /* Landing mode — hide nav & header controls, show single Book a Call CTA */
  body.landing-mode > footer,
  body.landing-mode > div[style*="height:2px"] { display: none !important; }
  #header.landing-mode nav,
  #header.landing-mode .header-right,
  #header.landing-mode #mobile-hamburger { display: none !important; }
  #header-landing-cta { display: none; }
  #header.landing-mode #header-landing-cta {
    display: inline-block; margin-left: auto;
    background: var(--gold); color: var(--navy);
    font-family: var(--proxima); font-weight: 800; font-size: 13px;
    letter-spacing: 0.05em; text-transform: uppercase;
    padding: 10px 22px; border-radius: 6px; border: none; cursor: pointer;
    transition: background 0.15s;
  }
  #header.landing-mode #header-landing-cta:hover { background: var(--gold-light); }

  /* Landing page sections */
  .lp-hero {
    background: var(--navy); padding: 100px 0 90px;
    position: relative; overflow: hidden;
  }
  .lp-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(212,168,64,0.07) 0%, transparent 70%);
    pointer-events: none;
  }
  .lp-hero-badge {
    display: inline-block;
    background: rgba(212,168,64,0.12); border: 1px solid rgba(212,168,64,0.45);
    color: var(--gold); font-family: var(--proxima);
    font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 6px 16px; border-radius: 100px; margin-bottom: 28px;
  }
  .lp-h1 {
    font-family: var(--proxima); font-size: clamp(36px,5.5vw,62px);
    font-weight: 800; color: white; line-height: 1.08;
    letter-spacing: -0.02em; margin-bottom: 24px; max-width: 800px;
  }
  .lp-h1 em { font-style: normal; color: var(--gold); }
  .lp-hero-sub {
    font-family: Georgia, serif; font-size: clamp(17px,2vw,21px);
    color: rgba(255,255,255,0.72); line-height: 1.6;
    max-width: 580px; margin-bottom: 44px;
  }
  .lp-hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
  .lp-btn-primary {
    background: var(--gold); color: var(--navy);
    font-family: var(--proxima); font-weight: 800; font-size: 15px;
    letter-spacing: 0.04em; text-transform: uppercase;
    padding: 16px 36px; border-radius: 8px; border: none; cursor: pointer;
    box-shadow: 0 4px 20px rgba(212,168,64,0.3);
    transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
  }
  .lp-btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212,168,64,0.4); }
  .lp-btn-ghost {
    color: rgba(255,255,255,0.75); font-family: var(--proxima);
    font-weight: 600; font-size: 14px; background: none; border: none;
    cursor: pointer; display: flex; align-items: center; gap: 6px; transition: color 0.15s;
  }
  .lp-btn-ghost:hover { color: white; }
  .lp-hero-stats {
    display: flex; gap: 48px; flex-wrap: wrap;
    margin-top: 64px; padding-top: 48px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .lp-stat-val { font-family: var(--proxima); font-size: 32px; font-weight: 800; color: var(--gold); line-height: 1; }
  .lp-stat-label { font-family: Georgia,serif; font-size: 15px; color: rgba(255,255,255,0.55); margin-top: 6px; line-height: 1.4; max-width: 130px; }
  .lp-section { padding: 96px 0; }
  .lp-section-bg-white { background: white; }
  .lp-section-bg-cream { background: var(--cream); }
  .lp-section-bg-navy { background: var(--navy); }
  .lp-label {
    font-family: var(--proxima); font-size: 11px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
  }
  .lp-h2 {
    font-family: var(--proxima); font-size: clamp(28px,3.5vw,40px);
    font-weight: 800; color: var(--navy); line-height: 1.12;
    letter-spacing: -0.015em; margin-bottom: 16px;
  }
  .lp-h2-light { color: white; }
  .lp-sub {
    font-family: Georgia, serif; font-size: 18px;
    color: rgba(15,27,51,0.62); line-height: 1.65; max-width: 520px;
  }
  .lp-sub-light { color: rgba(255,255,255,0.58); }
  .lp-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(212,168,64,0.45) 20%, rgba(212,168,64,0.45) 80%, transparent 100%);
  }
  /* Outcomes grid */
  .lp-outcomes-grid {
    display: grid; grid-template-columns: repeat(2,1fr);
    gap: 0; margin-top: 60px;
    border: 1.5px solid var(--cream-dark); border-radius: 16px; overflow: hidden;
  }
  .lp-outcome-item {
    padding: 40px 36px; background: white;
    border-right: 1.5px solid var(--cream-dark);
    border-bottom: 1.5px solid var(--cream-dark);
    transition: background 0.2s;
  }
  .lp-outcome-item:nth-child(even) { border-right: none; }
  .lp-outcome-item:nth-child(5), .lp-outcome-item:nth-child(6) { border-bottom: none; }
  .lp-outcome-item:hover { background: #f8f5ee; }
  .lp-outcome-num { font-family: var(--proxima); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 14px; }
  .lp-outcome-title { font-family: var(--proxima); font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 10px; }
  .lp-outcome-body { font-family: Georgia,serif; font-size: 16px; color: rgba(15,27,51,0.65); line-height: 1.6; }
  /* Who cards */
  .lp-who-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 52px; }
  .lp-who-card {
    background: white; border: 1.5px solid var(--cream-dark); border-radius: 14px; padding: 36px 28px;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .lp-who-card:hover { border-color: rgba(212,168,64,0.45); box-shadow: 0 6px 28px rgba(212,168,64,0.1); }
  .lp-who-icon { width: 44px; height: 44px; background: rgba(212,168,64,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
  .lp-who-title { font-family: var(--proxima); font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
  .lp-who-body { font-family: Georgia,serif; font-size: 16px; color: rgba(15,27,51,0.65); line-height: 1.6; }
  .lp-who-note {
    margin-top: 40px; background: rgba(212,168,64,0.07);
    border: 1px solid rgba(212,168,64,0.25); border-radius: 12px; padding: 24px 28px;
    font-family: Georgia,serif; font-size: 16px; color: rgba(15,27,51,0.7); line-height: 1.65; max-width: 720px;
  }
  .lp-who-note strong { color: var(--navy); font-weight: 600; }
  /* Programme grid */
  .lp-prog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 60px; align-items: start; }
  .lp-prog-items { display: flex; flex-direction: column; gap: 0; }
  .lp-prog-item { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .lp-prog-item:last-child { border-bottom: none; }
  .lp-prog-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; flex-shrink: 0; margin-top: 7px; }
  .lp-prog-item-title { font-family: var(--proxima); font-size: 15px; font-weight: 700; color: white; margin-bottom: 4px; }
  .lp-prog-item-body { font-family: Georgia,serif; font-size: 15px; color: rgba(255,255,255,0.55); line-height: 1.55; }
  .lp-prog-aside {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(212,168,64,0.2);
    border-radius: 16px; padding: 40px 36px; position: sticky; top: 100px;
  }
  .lp-aside-label { font-family: var(--proxima); font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
  .lp-aside-spec { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .lp-aside-spec:last-of-type { border-bottom: none; }
  .lp-aside-key { font-family: Georgia,serif; font-size: 15px; color: rgba(255,255,255,0.5); }
  .lp-aside-val { font-family: var(--proxima); font-size: 14px; font-weight: 700; color: white; text-align: right; }
  .lp-aside-cta {
    display: block; width: 100%; background: var(--gold); color: var(--navy);
    font-family: var(--proxima); font-weight: 800; font-size: 14px;
    letter-spacing: 0.04em; text-transform: uppercase; padding: 15px; border-radius: 8px;
    border: none; cursor: pointer; margin-top: 28px;
    transition: background 0.15s, transform 0.12s;
  }
  .lp-aside-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
  /* Dates */
  .lp-dates-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 52px; }
  .lp-date-card { border: 1.5px solid var(--cream-dark); border-radius: 14px; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
  .lp-date-card:hover { border-color: rgba(212,168,64,0.45); box-shadow: 0 6px 28px rgba(15,27,51,0.08); }
  .lp-date-header { background: var(--navy); padding: 20px 24px; }
  .lp-date-season { font-family: var(--proxima); font-size: 13px; font-weight: 800; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; }
  .lp-date-body { padding: 24px; background: white; }
  .lp-date-dates { font-family: var(--proxima); font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
  .lp-date-detail { font-family: Georgia,serif; font-size: 15px; color: rgba(15,27,51,0.6); line-height: 1.55; margin-bottom: 20px; }
  .lp-date-badge {
    display: inline-block; background: rgba(212,168,64,0.1); border: 1px solid rgba(212,168,64,0.25);
    color: rgba(15,27,51,0.7); font-family: var(--proxima); font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 20px;
  }
  /* Why pillars */
  .lp-why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 52px; }
  .lp-why-pillar { padding: 36px 28px; border: 1.5px solid var(--cream-dark); border-radius: 14px; background: white; transition: border-color 0.2s; }
  .lp-why-pillar:hover { border-color: rgba(212,168,64,0.45); }
  .lp-why-num { font-family: var(--proxima); font-size: 36px; font-weight: 800; color: rgba(212,168,64,0.25); line-height: 1; margin-bottom: 16px; }
  .lp-why-title { font-family: var(--proxima); font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
  .lp-why-body { font-family: Georgia,serif; font-size: 16px; color: rgba(15,27,51,0.65); line-height: 1.6; }
  /* FAQ */
  .lp-faq-list { margin-top: 52px; border: 1.5px solid var(--cream-dark); border-radius: 14px; overflow: hidden; max-width: 760px; }
  .lp-faq-item { border-bottom: 1px solid var(--cream-dark); }
  .lp-faq-item:last-child { border-bottom: none; }
  .lp-faq-q {
    width: 100%; text-align: left; padding: 22px 28px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    background: white; font-family: var(--proxima); font-size: 15px; font-weight: 700; color: var(--navy);
    cursor: pointer; transition: background 0.15s;
  }
  .lp-faq-q:hover, .lp-faq-q.open { background: var(--cream); }
  .lp-faq-chevron { flex-shrink: 0; transition: transform 0.2s; color: rgba(15,27,51,0.4); }
  .lp-faq-q.open .lp-faq-chevron { transform: rotate(180deg); color: var(--gold); }
  .lp-faq-a { display: none; padding: 0 28px 22px; font-family: Georgia,serif; font-size: 16px; color: rgba(15,27,51,0.68); line-height: 1.7; background: var(--cream); }
  .lp-faq-a.open { display: block; }
  /* CTA section */
  .lp-cta-block { background: var(--navy); padding: 100px 0; text-align: center; position: relative; overflow: hidden; }
  .lp-cta-block::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(212,168,64,0.08) 0%, transparent 70%); pointer-events: none; }
  .lp-cta-title { font-family: var(--proxima); font-size: clamp(28px,4vw,46px); font-weight: 800; color: white; letter-spacing: -0.015em; line-height: 1.1; margin-bottom: 18px; }
  .lp-cta-sub { font-family: Georgia,serif; font-size: 19px; color: rgba(255,255,255,0.6); margin-bottom: 44px; line-height: 1.5; }
  /* LP footer */
  .lp-footer { background: var(--navy); border-top: 1px solid rgba(255,255,255,0.07); padding: 32px 0; text-align: center; }
  .lp-footer p { font-family: var(--proxima); font-size: 13px; color: rgba(255,255,255,0.35); }
  .lp-footer a { color: rgba(255,255,255,0.5); cursor: pointer; }
  .lp-footer a:hover { color: var(--gold); }
  /* LP responsive */
  @media (max-width: 900px) {
    .lp-prog-grid { grid-template-columns: 1fr; }
    .lp-prog-aside { position: static; }
    .lp-outcomes-grid { grid-template-columns: 1fr; }
    .lp-outcome-item:nth-child(even) { border-right: 1.5px solid var(--cream-dark); }
    .lp-outcome-item:nth-child(5) { border-bottom: 1.5px solid var(--cream-dark); }
    .lp-outcome-item:last-child { border-bottom: none; }
    .lp-who-cards, .lp-why-grid, .lp-dates-row { grid-template-columns: 1fr; }
    .lp-hero-stats { gap: 32px; }
    .lp-section { padding: 72px 0; }
  }
  @media (max-width: 640px) {
    .lp-hero { padding: 72px 0 64px; }
    .lp-hero-badge { font-size: 11px; }
    .lp-outcome-item { padding: 28px 22px; }
    .lp-faq-q { padding: 18px 20px; font-size: 14px; }
    .lp-faq-a { padding: 0 20px 18px; }
    .lp-prog-aside { padding: 28px 24px; }
  }

  /* Language dropdown */
  .lang-dropdown-wrap { position: relative; display: inline-flex; align-items: center; }
  .lang-toggle {
    display: flex; align-items: center; gap: 4px;
    background: transparent; color: white;
    border: 1.5px solid rgba(255,255,255,0.4);
    font-weight: 700; font-size: 13px; letter-spacing: 0.5px;
    border-radius: 6px; padding: 6px 10px; cursor: pointer;
    transition: all 0.15s; font-family: var(--proxima);
    white-space: nowrap;
  }
  .lang-toggle:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.75); }
  .lang-dropdown {
    display: none; position: absolute; right: 0; top: calc(100% + 6px);
    background: white; border: 1px solid var(--cream-dark); border-radius: 8px;
    min-width: 80px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 500; overflow: hidden;
  }
  .lang-dropdown.open { display: block; }
  .lang-dropdown-item {
    display: block; width: 100%; text-align: center;
    padding: 10px 16px; font-family: var(--proxima); font-size: 13px;
    font-weight: 600; color: var(--navy); background: none; border: none; cursor: pointer;
  }
  .lang-dropdown-item:hover { background: var(--cream); }
  .lang-dropdown-item.lang-active { color: var(--gold); }

  /* Login dropdown */
  .login-dropdown-wrap { position: relative; display: inline-block; }
  .login-dropdown-wrap.open .login-dropdown { display: block; }
  .login-dropdown {
    display: none; position: absolute; top: calc(100% + 8px); right: 0;
    background: white; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    min-width: 170px; overflow: hidden; z-index: 1000;
  }
  .login-dropdown-item {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 13px 18px; background: none; border: none; cursor: pointer;
    font-family: var(--proxima); font-size: 15px; font-weight: 600;
    color: var(--navy); text-align: left; transition: background 0.15s;
  }
  .login-dropdown-item:hover { background: #f4f5f8; }
  .login-dropdown-item + .login-dropdown-item { border-top: 1px solid #eee; }

  /* User avatar menu (shown when logged in) */
  .user-menu-wrap { position: relative; display: none; }
  .user-menu-wrap.visible { display: block; }
  .user-avatar-btn {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 8px; padding: 8px 14px; cursor: pointer;
    font-family: var(--proxima); font-size: 14px; font-weight: 600; color: white;
    transition: all 0.15s;
  }
  .user-avatar-btn:hover { background: rgba(255,255,255,0.18); }
  .user-avatar {
    width: 28px; height: 28px; border-radius: 50%; background: var(--gold);
    color: var(--navy); display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; font-family: var(--proxima); flex-shrink: 0;
  }
  .user-dropdown {
    display: none; position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--cream); border-radius: 10px;
    border: 1px solid var(--cream-dark);
    box-shadow: 0 12px 40px rgba(15,27,51,0.18); padding: 4px 0;
    min-width: 188px; z-index: 200;
  }
  .user-menu-wrap.open .user-dropdown { display: block; }
  .user-dropdown-item {
    display: block; width: 100%; text-align: left;
    padding: 10px 16px; font-family: var(--proxima); font-size: 15px; font-weight: 500;
    color: var(--navy); background: none; border: none; cursor: pointer; transition: background 0.12s;
  }
  .user-dropdown-item:hover { background: var(--cream-dark); }
  .user-dropdown-divider { height: 1px; background: var(--cream-dark); margin: 4px 0; }
  .user-dropdown-item.danger { color: #c0392b; }

  /* ===== AUTH MODAL ===== */
  .auth-overlay {
    position: fixed; inset: 0; background: rgba(10,18,40,0.78);
    backdrop-filter: blur(6px); z-index: 1000;
    display: none; align-items: flex-start; justify-content: center;
    padding: 20px; overflow-y: auto;
  }
  .auth-overlay.open { display: flex; }
  .auth-modal {
    background: white; border-radius: 16px;
    box-shadow: 0 28px 80px rgba(10,18,40,0.45);
    width: 100%; max-width: 440px; position: relative;
    overflow: hidden; animation: fadeSlide 0.22s ease;
    margin: auto 0;
  }
  .auth-modal-top {
    background: var(--navy); padding: 30px 32px 24px; text-align: center; position: relative;
  }
  .auth-modal-logo { font-family: var(--proxima); font-weight: 800; font-size: 18px; color: white; }
  .auth-modal-tagline { font-family: var(--proxima); font-size: 12px; color: var(--gold); letter-spacing: 0.05em; margin-top: 3px; }
  .auth-close {
    position: absolute; top: 10px; right: 14px;
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,0.55); font-size: 24px; line-height: 1; padding: 4px 6px;
    transition: color 0.15s;
  }
  .auth-close:hover { color: white; }
  .auth-tabs { display: flex; border-bottom: 1px solid var(--cream-dark); }
  .auth-tab-btn {
    flex: 1; padding: 13px 0; font-family: var(--proxima); font-size: 15px; font-weight: 600;
    background: var(--cream); color: rgba(15,27,51,0.45); border: none; cursor: pointer;
    border-bottom: 3px solid transparent; transition: all 0.15s;
  }
  .auth-tab-btn.active { background: white; color: var(--navy); border-bottom-color: var(--gold); }
  .auth-body { padding: 26px 32px 30px; }
  .auth-panel { display: none; }
  .auth-panel.active { display: block; }
  .auth-field { margin-bottom: 16px; }
  .auth-label { display: block; font-family: var(--proxima); font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 5px; letter-spacing: 0.04em; text-transform: uppercase; }
  .auth-input {
    width: 100%; padding: 11px 13px; border: 1.5px solid var(--cream-dark); border-radius: 8px;
    font-size: 15px; font-family: var(--proxima); color: var(--navy); background: var(--cream);
    transition: border 0.15s, box-shadow 0.15s; outline: none;
  }
  .auth-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15,27,51,0.08); background: white; }
  .auth-input.err { border-color: #e74c3c; }
  .auth-field-err { font-family: var(--proxima); font-size: 12px; color: #e74c3c; margin-top: 4px; display: none; }
  .auth-field-err.show { display: block; }
  .auth-alert {
    border-radius: 8px; padding: 10px 14px; font-family: var(--proxima); font-size: 13px;
    margin-bottom: 14px; display: none;
  }
  .auth-alert.show { display: block; }
  .auth-alert.error { background: #fdf0f0; border: 1px solid #f5c6c6; color: #c0392b; }
  .auth-alert.success { background: #f0fdf4; border: 1px solid #b7ebc8; color: #1a7c3e; }
  .auth-submit {
    width: 100%; padding: 13px; background: var(--navy); color: white;
    border: none; border-radius: 8px; font-family: var(--proxima); font-size: 16px;
    font-weight: 700; cursor: pointer; transition: opacity 0.15s; margin-top: 4px;
  }
  .auth-submit:hover { opacity: 0.87; }
  .auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }
  .auth-footnote { text-align: center; margin-top: 18px; font-family: var(--proxima); font-size: 11px; color: rgba(15,27,51,0.4); }
  .auth-forgot { text-align: right; margin-top: -8px; margin-bottom: 14px; }
  .auth-forgot-link { background: none; border: none; cursor: pointer; font-family: var(--proxima); font-size: 12px; color: var(--navy); opacity: 0.45; text-decoration: underline; }
  .auth-forgot-link:hover { opacity: 0.9; }
  @media(max-width:500px) {
    .auth-modal { border-radius: 12px; }
    .auth-body { padding: 20px 20px 24px; }
    .auth-modal-top { padding: 24px 20px 20px; }
  }

  /* ===== DASHBOARD ===== */
  .dash-topbar {
    background: var(--navy); padding: 14px 0;
    border-bottom: 1px solid var(--gold-border);
  }
  .dash-topbar-inner { display: flex; align-items: center; justify-content: space-between; }
  .dash-greeting { font-family: var(--proxima); font-size: 15px; font-weight: 600; color: white; }
  .dash-greeting span { color: var(--gold); }
  .dash-logout-btn {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
    color: white; border-radius: 6px; padding: 7px 14px;
    font-family: var(--proxima); font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all 0.15s; display: flex; align-items: center; gap: 6px;
  }
  .dash-logout-btn:hover { background: rgba(255,255,255,0.18); }
  .dash-card {
    background: white; border-radius: 12px;
    border: 1px solid var(--cream-dark);
    padding: 24px; box-shadow: 0 2px 12px rgba(15,27,51,0.06);
  }
  .dash-card-icon {
    width: 44px; height: 44px; border-radius: 10px; background: var(--navy);
    display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
  }
  .dash-card-title { font-family: var(--proxima); font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
  .dash-card-desc { font-family: var(--proxima); font-size: 14px; color: rgba(15,27,51,0.6); line-height: 1.6; }
  .dash-coming-soon {
    display: inline-block; background: var(--gold); color: var(--navy);
    font-family: var(--proxima); font-size: 10px; font-weight: 800;
    padding: 3px 8px; border-radius: 20px; letter-spacing: 0.06em; text-transform: uppercase;
    margin-top: 10px;
  }
  .dash-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border: 1px solid var(--gold-border-strong);
    border-radius: 14px; padding: 36px 40px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  }
  @media(max-width:768px) {
    .dash-banner { padding: 28px 24px; }
    #dash-quick-grid, #dash-features-grid { grid-template-columns: 1fr !important; }
  }
  @media(min-width:769px) and (max-width:1024px) {
    #dash-quick-grid, #dash-features-grid { grid-template-columns: repeat(2,1fr) !important; }
  }

  /* ===== PORTAL SIDEBAR LAYOUT ===== */
  .portal-layout { display: flex; min-height: calc(100vh - 60px); }
  .portal-sidebar { width: 220px; flex-shrink: 0; background: white; border-right: 1px solid var(--cream-dark); display: flex; flex-direction: column; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; padding: 20px 0 16px; }
  .portal-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
  .portal-nav-item { display: flex; align-items: center; gap: 10px; font-family: var(--proxima); font-size: 14px; font-weight: 600; color: rgba(15,27,51,0.5); background: none; border: none; cursor: pointer; padding: 10px 12px; border-radius: 8px; text-align: left; width: 100%; transition: background 0.15s, color 0.15s; white-space: nowrap; }
  .portal-nav-item:hover { background: var(--cream); color: var(--navy); }
  .portal-nav-item.active { background: rgba(15,27,51,0.07); color: var(--navy); }
  .portal-nav-section-label { font-family: var(--proxima); font-size: 10.5px; font-weight: 700; color: rgba(15,27,51,0.35); text-transform: uppercase; letter-spacing: 1.5px; padding: 18px 22px 6px; }
  .portal-sidebar-footer { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--cream-dark); }
  .portal-sidebar-logout { display: flex; align-items: center; gap: 9px; font-family: var(--proxima); font-size: 13px; font-weight: 600; color: rgba(15,27,51,0.45); background: none; border: none; cursor: pointer; padding: 10px 12px; border-radius: 8px; width: 100%; transition: background 0.15s, color 0.15s; }
  .portal-sidebar-logout:hover { background: #fef2f2; color: #b91c1c; }
  .portal-main-content { flex: 1; min-width: 0; overflow-x: hidden; }
  .hp-goal-tile { position:relative; display:flex; flex-direction:column; align-items:center; gap:10px; background:white; border:1px solid var(--cream-dark); border-radius:14px; padding:22px 16px; cursor:pointer; font-family:var(--proxima); font-size:13px; font-weight:600; color:var(--navy); text-align:center; line-height:1.35; transition:border-color 0.2s,box-shadow 0.2s,transform 0.15s; }
  .hp-goal-tile:hover { border-color:var(--navy); box-shadow:0 4px 16px rgba(15,27,51,0.1); transform:translateY(-2px); }
  .hp-goal-tile--soon { color:rgba(15,27,51,0.35); cursor:default; background:#f9f9f7; border-color:#e8e4dc; }
  .hp-goal-tile--soon svg { stroke:rgba(15,27,51,0.22) !important; }
  .hp-goal-tile--soon:hover { border-color:#e8e4dc; box-shadow:none; transform:none; }
  .hp-goal-tile-soon-badge { position:absolute; top:8px; right:8px; font-size:9px; font-weight:700; font-family:var(--proxima); color:rgba(15,27,51,0.4); background:rgba(15,27,51,0.07); border-radius:4px; padding:2px 6px; text-transform:uppercase; letter-spacing:0.04em; }
  /* ── Admin mobile top bar & drawer backdrop: hidden on desktop ── */
  .ap-mobile-topbar { display: none; }
  .ap-drawer-backdrop { display: none; }

  /* ===== PORTAL MOBILE ===== */
  @media(max-width:768px) {
    /* ── Student/Teacher portal: Sidebar → fixed bottom tab bar ── */
    #page-dashboard .portal-layout,
    #page-teacher-dashboard .portal-layout { flex-direction: column; min-height: calc(100vh - 60px); }
    #page-dashboard .portal-sidebar,
    #page-teacher-dashboard .portal-sidebar {
      width: 100%; height: 62px;
      position: fixed; bottom: 0; left: 0; right: 0; top: auto;
      border-right: none; border-top: 1px solid var(--cream-dark);
      flex-direction: row; padding: 0; z-index: 200;
      overflow-x: auto; overflow-y: hidden;
      -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    #page-dashboard .portal-sidebar::-webkit-scrollbar,
    #page-teacher-dashboard .portal-sidebar::-webkit-scrollbar { display: none; }
    #page-dashboard .portal-nav,
    #page-teacher-dashboard .portal-nav { flex-direction: row; padding: 0; gap: 0; }
    #page-dashboard .portal-nav-item,
    #page-teacher-dashboard .portal-nav-item {
      flex-direction: column; font-size: 9px; padding: 6px 10px 8px;
      border-radius: 0; gap: 3px; min-width: 64px; height: 62px;
      justify-content: center; white-space: nowrap;
    }
    #page-dashboard .portal-nav-item.active,
    #page-teacher-dashboard .portal-nav-item.active { background: var(--cream); border-top: 2px solid var(--navy); }
    #page-dashboard .portal-nav-section-label,
    #page-teacher-dashboard .portal-nav-section-label { display: none; }
    #page-dashboard .portal-sidebar-footer,
    #page-teacher-dashboard .portal-sidebar-footer { display: none; }
    #page-dashboard .portal-main-content,
    #page-teacher-dashboard .portal-main-content { padding-bottom: 70px; }

    /* ── Hide main site header when admin portal is active ── */
    body:has(#page-admin-dashboard.active) #header { display: none !important; }

    /* ── Admin portal: slide-out drawer navigation ── */
    #page-admin-dashboard .portal-layout { flex-direction: column; min-height: 100vh; }

    /* Mobile top bar for admin */
    .ap-mobile-topbar {
      display: flex; align-items: center; justify-content: space-between;
      position: sticky; top: 0; z-index: 210;
      background: linear-gradient(180deg, #0f1b33 0%, #111e36 100%);
      padding: 0 16px; height: 56px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .ap-mobile-topbar-title {
      font-family: var(--proxima); font-size: 15px; font-weight: 700;
      color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .ap-mobile-hamburger {
      display: flex; align-items: center; justify-content: center;
      width: 44px; height: 44px; background: none; border: none; cursor: pointer;
      border-radius: 10px; transition: background 0.15s;
    }
    .ap-mobile-hamburger:hover { background: rgba(255,255,255,0.1); }
    .ap-mobile-hamburger svg { stroke: white; }

    /* Admin sidebar becomes a drawer */
    #page-admin-dashboard .portal-sidebar {
      position: fixed; top: 0; left: 0; bottom: 0;
      width: 280px; max-width: 85vw; height: 100vh;
      z-index: 300;
      transform: translateX(-100%);
      transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
      overflow-y: auto; overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      padding: 16px 0 24px;
      border-right: none;
      box-shadow: none;
    }
    #page-admin-dashboard .portal-sidebar.ap-drawer-open {
      transform: translateX(0);
      box-shadow: 8px 0 40px rgba(0,0,0,0.5);
    }

    /* Drawer backdrop */
    .ap-drawer-backdrop {
      display: none; position: fixed; inset: 0; z-index: 299;
      background: rgba(0,0,0,0.5);
      -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    }
    .ap-drawer-backdrop.visible { display: block; }

    /* Keep section toggles & nav items touch-friendly */
    #page-admin-dashboard .ap-section-toggle { padding: 14px 14px 12px; min-height: 48px; }
    #page-admin-dashboard .portal-nav-item { min-height: 44px; padding: 11px 12px; }

    /* Sidebar footer visible in drawer */
    #page-admin-dashboard .portal-sidebar-footer { display: block; }

    /* Main content fills the viewport */
    #page-admin-dashboard .portal-main-content { padding-bottom: 0; }

    /* Dashboard home grids */
    #dash-panel-home [style*="grid-template-columns:1fr 1fr"] { grid-template-columns:1fr !important; }
    #dash-panel-home [style*="grid-template-columns:repeat(4"] { grid-template-columns:repeat(2,1fr) !important; }
    #dash-panel-home [style*="grid-template-columns:repeat(5"] { grid-template-columns:repeat(2,1fr) !important; }
    #dash-panel-home [style*="grid-template-columns:repeat(3"] { grid-template-columns:1fr !important; }
    #dash-panel-home [style*="grid-template-columns:1fr auto 1fr auto 1fr"] { grid-template-columns:1fr !important; }
    #dash-panel-home [style*="grid-template-columns:repeat(3,1fr);padding:20px"] { grid-template-columns:1fr 1fr !important; }

    /* My Students */
    .cm-body-grid { grid-template-columns: 1fr !important; }

    /* Goal tiles in catalogue */
    #dash-panel-catalogue [style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }

    /* Course grid */
    #course-grid { grid-template-columns: 1fr !important; }

    /* Course filter bar scrollable */
    .course-filter-bar { flex-wrap: nowrap !important; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .course-filter-bar::-webkit-scrollbar { display: none; }
    .course-filter-btn { flex-shrink: 0; }

    /* Project card header wrapping */
    #dash-panel-mycourses [style*="background:var(--navy)"] { padding: 18px 16px !important; }

    /* Invoices — stack as cards */
    .inv-table-header { display: none !important; }
    .inv-row { grid-template-columns: 1fr !important; gap: 6px !important; padding: 14px 16px !important; }
    .inv-row > div:first-child { font-size: 15px; }

    /* Invoice PDF modal — full screen */
    #invoice-pdf-modal { padding: 0 !important; }
    #invoice-pdf-modal > div { max-width: 100% !important; height: 100vh !important; border-radius: 0 !important; }

    /* Portal hero banner */
    #dash-panel-home .dash-banner { padding: 24px 16px !important; }
    #dash-panel-home .dash-banner h1 { font-size: 22px !important; }

    /* ── Admin panel content — mobile optimisations ── */

    /* Tighter container padding on admin panels */
    #page-admin-dashboard .container { padding-left: 14px; padding-right: 14px; }

    /* Panel header sections — tighter on mobile */
    #page-admin-dashboard [id^="ap-panel-"] > section:first-child { padding: 24px 0 18px !important; }
    #page-admin-dashboard [id^="ap-panel-"] > section:first-child h2 { font-size: 22px !important; }

    /* Admin inline grids: force single or double column */
    #page-admin-dashboard [style*="grid-template-columns:1fr 1fr 1fr"] { grid-template-columns: 1fr !important; }
    #page-admin-dashboard [style*="grid-template-columns:repeat(auto-fit,minmax(180px"] { grid-template-columns: 1fr 1fr !important; }
    #page-admin-dashboard [style*="grid-template-columns:repeat(auto-fit,minmax(160px"] { grid-template-columns: 1fr 1fr !important; }
    #page-admin-dashboard [style*="grid-template-columns:repeat(auto-fit,minmax(150px"] { grid-template-columns: 1fr 1fr !important; }
    #page-admin-dashboard [style*="grid-template-columns:repeat(auto-fill,minmax(320px"] { grid-template-columns: 1fr !important; }
    #page-admin-dashboard [style*="grid-template-columns:repeat(auto-fill,minmax(300px"] { grid-template-columns: 1fr !important; }
    #page-admin-dashboard [style*="grid-template-columns:repeat(auto-fill,minmax(280px"] { grid-template-columns: 1fr !important; }
    #page-admin-dashboard [style*="grid-template-columns:repeat(auto-fill,minmax(260px"] { grid-template-columns: 1fr !important; }
    #page-admin-dashboard [style*="grid-template-columns:repeat(auto-fill,minmax(220px"] { grid-template-columns: 1fr !important; }

    /* Fixed-column grid rows (document rows, bill rows, etc.) — make scrollable */
    #page-admin-dashboard [style*="grid-template-columns:100px 1fr 140px 80px 90px"],
    #page-admin-dashboard [style*="grid-template-columns:90px 1fr 130px 120px 90px"] {
      grid-template-columns: 1fr !important; gap: 4px !important;
    }

    /* Directory detail panel: stack instead of side-by-side */
    #page-admin-dashboard [style*="grid-template-columns:minmax(0,1fr) 380px"] {
      grid-template-columns: 1fr !important;
    }

    /* Tables: horizontally scrollable wrapper */
    #page-admin-dashboard table { font-size: 12px !important; }
    #page-admin-dashboard th { padding: 8px 10px !important; font-size: 10px !important; }
    #page-admin-dashboard td { padding: 8px 10px !important; }

    /* Filter bars — wrap & stack */
    #page-admin-dashboard [style*="display:flex"][style*="flex-wrap:wrap"] { gap: 8px !important; }
    #page-admin-dashboard select { font-size: 13px !important; min-height: 38px; }
    #page-admin-dashboard .container > [style*="display:flex"][style*="gap:12px"] {
      flex-wrap: wrap !important;
    }

    /* Buttons in filter bars — touch-friendly */
    #page-admin-dashboard button[onclick*="Refresh"],
    #page-admin-dashboard button[onclick*="Import"],
    #page-admin-dashboard button[onclick*="Coverage"],
    #page-admin-dashboard button[onclick*="Modal"],
    #page-admin-dashboard button[onclick*="modal"] {
      min-height: 38px; font-size: 12px !important;
    }

    /* Card padding tighter */
    .cf-entity-card, .pf-ccy-card { padding: 16px 14px !important; }
    .proj-card-body { padding: 14px 14px 10px !important; }
    .proj-card-footer { padding: 10px 14px !important; }
    .proj-member-card { padding: 14px !important; gap: 10px !important; }

    /* Workday panel — daily row grid: stack time + content */
    #page-admin-dashboard [style*="grid-template-columns:80px 1fr"] {
      grid-template-columns: 1fr !important;
    }

    /* Project detail overlay — full screen on mobile */
    #proj-detail-overlay {
      width: 100vw !important; max-width: 100vw !important;
      border-radius: 0 !important; left: 0 !important; right: 0 !important;
    }
    .proj-tab-btn { padding: 12px 14px !important; font-size: 12px !important; }

    /* Cash flow filter bar — stack Import/Check buttons below */
    #ap-panel-cashflow [style*="margin-left:auto"] { margin-left: 0 !important; }

    /* Weekly view cards */
    #page-admin-dashboard [style*="grid-template-columns:repeat(auto-fit,minmax(320px"] {
      grid-template-columns: 1fr !important;
    }

    /* Invoice builder / brochure builder forms */
    #page-admin-dashboard [style*="grid-template-columns:1fr 1fr;gap:12px"],
    #page-admin-dashboard [style*="grid-template-columns:1fr 1fr;gap:16px"],
    #page-admin-dashboard [style*="grid-template-columns:1fr 1fr;gap:20px"] {
      grid-template-columns: 1fr !important;
    }

    /* Modals — full width on mobile */
    #page-admin-dashboard [style*="position:fixed"][style*="z-index"] > [style*="max-width"] {
      max-width: 100% !important; width: 100% !important;
      margin: 0 !important; border-radius: 12px 12px 0 0 !important;
      max-height: 90vh !important;
    }
  }

  /* ===== COMPANY TIMELINE ===== */
  .tl-card {
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(15,27,51,0.1);
    border-left: 4px solid var(--gold);
    padding: 22px 20px;
    box-shadow: 0 2px 18px rgba(15,27,51,0.07);
    position: relative;
  }
  .tl-year {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .tl-text {
    color: var(--navy);
    font-size: 14.5px;
    line-height: 1.75;
    margin: 0;
  }
  .tl-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
  }
  .tl-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--navy);
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    white-space: normal;
    word-break: break-word;
  }
  .tl-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--navy);
    border: 3px solid var(--gold);
    flex-shrink: 0;
    position: relative;
    z-index: 3;
  }
  .tl-connector {
    width: 2px;
    background: rgba(212,168,64,0.5);
    margin: 0 auto;
  }
  /* Mobile vertical timeline */
  @media(max-width:767px) {
    .tl-desktop { display: none !important; }
    .tl-mobile  { display: block !important; }
  }
  @media(min-width:768px) {
    .tl-mobile  { display: none !important; }
  }
  .tl-mobile-item {
    display: flex;
    gap: 20px;
    position: relative;
  }
  .tl-mobile-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 24px;
    bottom: -24px;
    width: 2px;
    background: rgba(212,168,64,0.4);
  }
  .tl-mobile-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--navy);
    border: 3px solid var(--gold);
    flex-shrink: 0;
    margin-top: 4px;
    position: relative;
    z-index: 2;
  }

  /* ── Course Catalog ─────────────────────────────────────── */
  .course-catalog-wrap { background: #f5f6f8; padding: 0 0 80px; }

  /* Hero */
  .dash-hero {
    background: var(--navy);
    padding: 48px 0 36px;
  }
  .dash-hero-title {
    font-family: var(--proxima);
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 800;
    color: white;
    line-height: 1.3;
    max-width: 680px;
    margin: 0 0 32px;
  }
  .dash-stats-strip {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 24px;
  }
  .dash-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 32px 0 0;
    margin-right: 32px;
    border-right: 1px solid rgba(255,255,255,0.18);
  }
  .dash-stat:last-child { border-right: none; }
  .dash-stat-val {
    font-family: var(--proxima);
    font-size: 22px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
  }
  .dash-stat-label {
    font-family: var(--proxima);
    font-size: 14px;
    color: white;
    font-weight: 500;
  }
  @media (max-width: 560px) {
    .dash-stat { padding: 8px 0; margin: 0; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); width: 100%; }
    .dash-stat:last-child { border-bottom: none; }
  }

  /* Filter bar — sits on light background */
  .course-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 28px 0 4px;
  }
  .course-filter-btn {
    font-family: var(--proxima);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 24px;
    border: 1.5px solid #d0d4de;
    background: white;
    color: rgba(15,27,51,0.6);
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
  }
  .course-filter-btn:hover { border-color: var(--navy); color: var(--navy); }
  .course-filter-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: white;
  }

  /* Grid */
  .course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 20px;
  }
  @media (max-width: 900px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .course-grid { grid-template-columns: 1fr; } }

  /* Card */
  .course-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
  }
  .course-card-ribbon {
    position: absolute;
    top: 18px;
    right: -28px;
    width: 110px;
    background: var(--gold);
    color: white;
    font-family: var(--proxima);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: center;
    padding: 5px 0;
    transform: rotate(35deg);
    z-index: 10;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  }
  .course-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.13); transform: translateY(-3px); }
  .course-card.hidden { display: none; }

  .course-card-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
    flex-shrink: 0;
  }
  .course-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
  }
  .course-card:hover .course-card-img img { transform: scale(1.04); }

  .course-card-body {
    padding: 18px 20px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .course-card-title {
    font-family: var(--proxima);
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.3;
    margin: 0;
  }
  .course-card-meta-row {
    font-family: var(--proxima);
    font-size: 12px;
    color: rgba(15,27,51,0.45);
    font-weight: 600;
    display: flex;
    gap: 6px;
    align-items: center;
  }
  .course-dot { color: rgba(15,27,51,0.25); }

  /* Footer: tutor badge + CTA */
  .course-card-footer {
    padding: 12px 20px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #f0f2f5;
  }
  .tutor-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
  }
  .tutor-avatars {
    display: flex;
    flex-shrink: 0;
  }
  .tutor-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -6px;
    background: var(--navy-light);
  }
  .tutor-avatar:first-child { margin-left: 0; background: var(--navy); }
  .tutor-avatar:nth-child(2) { background: #2a4a7a; }
  .tutor-avatar:nth-child(3) { background: var(--navy-light); }
  .tutor-badge-text {
    font-family: var(--proxima);
    font-size: 11px;
    color: rgba(15,27,51,0.5);
    line-height: 1.35;
    font-weight: 500;
  }
  .course-card-btn-gold {
    font-family: var(--proxima);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 22px;
    border: none;
    background: var(--gold);
    color: var(--navy);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.18s, transform 0.12s;
  }
  .course-card-btn-gold:hover { background: #c49830; transform: translateY(-1px); }

  /* Advisor CTA */
  .course-advisor-cta {
    margin-top: 40px;
    background: white;
    border-radius: 14px;
    border: 1px solid #e4e6ec;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
  }
  .course-advisor-cta p { font-family: var(--proxima); margin: 0; }
  .course-advisor-cta .cta-title { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
  .course-advisor-cta .cta-sub { font-size: 13px; color: rgba(15,27,51,0.55); line-height: 1.5; }

  /* ── Course Detail Overlay ──────────────────────────────── */
  .cd-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: #f5f6f8;
    overflow-y: auto;
    display: none;
    flex-direction: column;
  }
  .cd-overlay.open { display: flex; }

  .cd-topbar {
    background: var(--navy);
    position: sticky; top: 0; z-index: 10;
    padding: 0 24px;
    height: 56px;
    display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0;
  }
  .cd-back-btn {
    font-family: var(--proxima); font-size: 13px; font-weight: 700;
    color: rgba(255,255,255,0.75); background: none; border: none;
    cursor: pointer; display: flex; align-items: center; gap: 6px;
    padding: 6px 0; transition: color 0.15s;
  }
  .cd-back-btn:hover { color: white; }
  .cd-topbar-title {
    font-family: var(--proxima); font-size: 14px; font-weight: 700;
    color: rgba(255,255,255,0.55);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 50%;
  }

  .cd-hero {
    background: var(--navy);
    padding: 36px 0 40px;
    color: white;
  }
  .cd-hero-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
  .cd-cat-pill {
    display: inline-block;
    font-family: var(--proxima); font-size: 11px; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase;
    background: var(--gold); color: var(--navy);
    padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
  }
  .cd-hero h1 {
    font-family: var(--proxima); font-size: 32px; font-weight: 800;
    color: white; margin: 0 0 12px; line-height: 1.2; max-width: 680px;
  }
  .cd-hero-meta {
    display: flex; gap: 20px; flex-wrap: wrap;
    font-family: var(--proxima); font-size: 13px;
    color: rgba(255,255,255,0.6);
  }
  .cd-hero-meta span { display: flex; align-items: center; gap: 5px; }

  .cd-body {
    max-width: 1100px; margin: 0 auto; padding: 36px 24px 80px;
    display: grid; grid-template-columns: 1fr 380px; gap: 28px;
    align-items: start;
  }
  @media (max-width: 860px) { .cd-body { grid-template-columns: 1fr; } }

  /* Left column */
  .cd-video-wrap {
    border-radius: 14px; overflow: hidden;
    background: var(--navy);
    aspect-ratio: 16/9;
    position: relative;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  }
  .cd-video-wrap iframe {
    width: 100%; height: 100%; border: none; display: block;
  }
  .cd-video-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 12px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    cursor: pointer;
  }
  .cd-play-btn {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--gold); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s, background 0.2s;
  }
  .cd-play-btn:hover { transform: scale(1.1); background: #c49830; }
  .cd-video-label {
    font-family: var(--proxima); font-size: 13px; font-weight: 700;
    color: rgba(255,255,255,0.55); letter-spacing: 0.05em;
  }

  .cd-section-title {
    font-family: var(--proxima); font-size: 11px; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(15,27,51,0.4); margin-bottom: 10px; margin-top: 28px;
  }
  .cd-section-title:first-child { margin-top: 0; }
  .cd-intro-text {
    font-family: var(--proxima); font-size: 15px; color: rgba(15,27,51,0.72);
    line-height: 1.75; margin-bottom: 6px;
  }
  .cd-who-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 8px;
  }
  .cd-who-list li {
    font-family: var(--proxima); font-size: 14px;
    color: rgba(15,27,51,0.7); line-height: 1.5;
    display: flex; align-items: flex-start; gap: 8px;
  }
  .cd-who-list li::before {
    content: ''; display: block; width: 7px; height: 7px;
    border-radius: 50%; background: var(--gold);
    flex-shrink: 0; margin-top: 6px;
  }

  /* Right column — syllabus */
  .cd-syllabus-card {
    background: white; border-radius: 14px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    position: sticky; top: 72px;
  }
  .cd-syllabus-header {
    background: var(--navy); padding: 18px 22px;
    font-family: var(--proxima); font-size: 14px; font-weight: 800;
    color: white; display: flex; align-items: center; gap: 8px;
  }
  .cd-session {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex; gap: 14px; align-items: flex-start;
  }
  .cd-session:last-child { border-bottom: none; }
  .cd-session-num {
    font-family: var(--proxima); font-size: 15px; font-weight: 800;
    color: var(--gold); min-width: 34px; padding-top: 2px;
  }
  .cd-session-info { flex: 1; }
  .cd-session-title {
    font-family: var(--proxima); font-size: 18px; font-weight: 700;
    color: var(--navy); margin-bottom: 4px;
  }
  .cd-session-desc {
    font-family: var(--proxima); font-size: 16px;
    color: rgba(15,27,51,0.52); line-height: 1.6;
  }

  .cd-cta-bar {
    max-width: 1100px; margin: 0 auto 0;
    padding: 0 24px 40px;
  }
  .cd-cta-inner {
    background: var(--navy); border-radius: 14px;
    padding: 26px 30px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
  }
  .cd-cta-inner p {
    font-family: var(--proxima); margin: 0;
    color: rgba(255,255,255,0.75); font-size: 14px; line-height: 1.5;
  }
  .cd-cta-inner strong { color: white; font-size: 16px; display: block; margin-bottom: 4px; }
  .cd-enquire-btn {
    font-family: var(--proxima); font-size: 14px; font-weight: 800;
    background: var(--gold); color: var(--navy);
    border: none; border-radius: 30px;
    padding: 13px 28px; cursor: pointer;
    white-space: nowrap; flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
  }
  .cd-enquire-btn:hover { background: #c49830; transform: translateY(-1px); }

  /* ── Pricing Matrix ─────────────────────────────────────── */
  .cd-pricing-wrap {
    max-width: 1100px; margin: 0 auto;
    padding: 0 24px 32px;
  }
  .cd-pricing-label {
    font-family: var(--proxima); font-size: 11px; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(15,27,51,0.4); margin-bottom: 14px;
  }
  .cd-pricing-card {
    background: white; border-radius: 14px;
    border: 1px solid #e8e8e8; overflow: hidden;
  }
  .cd-pricing-note {
    font-family: var(--proxima); font-size: 12px;
    color: rgba(15,27,51,0.45); padding: 12px 20px;
    border-top: 1px solid #f0f0f0; text-align: center;
  }
  /* Two-column layout: table + info panel */
  .cd-pricing-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 16px;
    align-items: start;
  }
  @media (max-width: 700px) { .cd-pricing-layout { grid-template-columns: 1fr; } }

  /* Info panel */
  .cd-pricing-info {
    background: white; border-radius: 14px;
    border: 1px solid #e8e8e8;
    padding: 24px 20px;
    min-height: 200px;
    display: flex; align-items: center; justify-content: center;
    position: sticky; top: 72px;
  }
  .cd-info-placeholder {
    display: flex; flex-direction: column;
    align-items: center; gap: 10px; text-align: center;
  }
  .cd-info-placeholder p {
    font-family: var(--proxima); font-size: 13px;
    color: rgba(15,27,51,0.3); line-height: 1.5; margin: 0;
  }
  .cd-info-active {
    display: none; flex-direction: column;
    align-items: center; text-align: center; gap: 12px; width: 100%;
  }
  .cd-info-active.visible { display: flex; }
  .cd-info-pph {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
  }
  .cd-info-pph-value {
    font-family: var(--proxima); font-size: 38px; font-weight: 800;
    color: var(--navy); line-height: 1;
  }
  .cd-info-pph-label {
    font-family: var(--proxima); font-size: 11px; font-weight: 700;
    color: rgba(15,27,51,0.45); letter-spacing: 0.06em; text-transform: uppercase;
  }
  .cd-info-saving-badge {
    font-family: var(--proxima); font-size: 12px; font-weight: 800;
    background: #e8f5e9; color: #2e7d32;
    padding: 5px 14px; border-radius: 20px; letter-spacing: 0.03em;
  }
  .cd-info-saving-badge.no-saving {
    background: #f5f5f5; color: rgba(15,27,51,0.4);
  }
  .cd-info-breakdown {
    width: 100%; border-top: 1px solid #f0f0f0; padding-top: 12px;
    display: flex; flex-direction: column; gap: 8px;
  }
  .cd-info-row {
    font-family: var(--proxima); font-size: 12px;
    color: rgba(15,27,51,0.55); line-height: 1.6;
  }
  .cd-info-row strong { color: var(--navy); font-weight: 700; }
  .cd-info-baseline {
    font-family: var(--proxima); font-size: 11px;
    color: rgba(15,27,51,0.35); font-style: italic;
  }

  /* Clickable price cells */
  .cd-price-cell { cursor: pointer; transition: background 0.15s; }
  .cd-price-cell:hover { background: #eef2ff !important; color: var(--navy-light); }
  .cd-price-cell.cd-cell-active {
    background: var(--navy) !important;
    color: white !important; font-weight: 800;
  }
  .cd-price-cell.cd-cell-active.cell-highlight { background: var(--navy) !important; }

  /* Scroll wrapper — handles overflow on small screens */
  .cd-pricing-scroll { overflow-x: auto; width: 100%; }
  .cd-pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--proxima);
    table-layout: fixed;
  }
  /* First column wider, five price columns share the rest equally */
  .cd-pricing-table col.col-label { width: 30%; }
  .cd-pricing-table col.col-price { width: 14%; }
  .cd-pricing-table thead th {
    background: var(--navy);
    color: rgba(255,255,255,0.6);
    font-size: 11px; font-weight: 800;
    letter-spacing: 0.06em; text-transform: uppercase;
    padding: 13px 8px; text-align: center;
    overflow: hidden; text-overflow: ellipsis;
    border-right: 1px solid rgba(255,255,255,0.07);
  }
  .cd-pricing-table thead th:first-child {
    text-align: left; padding-left: 16px;
    color: rgba(255,255,255,0.45);
  }
  .cd-pricing-table thead th.col-highlight {
    background: #1a2d52; color: var(--gold);
  }
  .cd-pricing-table tbody tr:nth-child(odd) td { background: #fafafa; }
  .cd-pricing-table tbody tr:nth-child(even) td { background: white; }
  .cd-pricing-table tbody tr:hover td { background: #f0f4ff; }
  .cd-pricing-table tbody td {
    padding: 12px 8px; text-align: center;
    font-size: 14px; font-weight: 600; color: var(--navy);
    border-right: 1px solid #f0f0f0;
    border-top: 1px solid #f0f0f0;
    overflow: hidden;
  }
  .cd-pricing-table tbody td:first-child {
    text-align: left; padding-left: 16px;
    font-size: 11px; font-weight: 800;
    color: rgba(15,27,51,0.5); letter-spacing: 0.04em;
    text-transform: uppercase; background: #f5f6f8 !important;
    border-right: 2px solid #e8e8e8;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .cd-pricing-table tbody td.cell-highlight {
    background: #fff8e6 !important;
    color: #8a6200; font-weight: 800;
    position: relative;
  }
  /* Popular badge now lives in the <th>, not in cells */
  .cd-pricing-table thead th.col-highlight .col-popular {
    display: block; font-size: 9px; font-weight: 800; letter-spacing: 1.2px;
    text-transform: uppercase; color: var(--gold); margin-bottom: 4px;
  }

  /* ============================================================
     GLOBAL MOBILE RESPONSIVE — SITE-WIDE FIXES
     Target: max-width 768px (tablets & phones)
             max-width 480px (small phones)
     ============================================================ */

  @media(max-width:768px) {

    /* ── Section vertical padding ── */
    section, .section { padding-top: 48px !important; padding-bottom: 48px !important; }

    /* ── Card paddings ── */
    .glass-card     { padding: 24px 18px !important; }
    .feature-card   { padding: 24px 18px !important; }
    .value-card     { padding: 28px 20px !important; }
    .pricing-card   { padding: 28px 20px !important; }
    .plan-card      { padding: 24px 18px !important; }
    .stat-card      { padding: 28px 16px !important; }
    .audience-card-body { padding: 22px 18px !important; }
    .step-card      { padding: 24px 18px 24px 18px !important; }

    /* ── Step icon reposition (was absolute left:32px) ── */
    .step-icon { left: 18px !important; top: 22px !important; }

    /* ── Audience card image height ── */
    .audience-card img { height: 180px !important; }

    /* ── Marquee logos: smaller on mobile ── */
    .marquee-logo { width: 120px !important; height: 60px !important; }
    .marquee-logo img { max-height: 36px !important; max-width: 100px !important; }

    /* ── FAQ font sizes ── */
    .faq-trigger { font-size: 15px !important; }
    .faq-body    { font-size: 15px !important; }

    /* ── Audience card text ── */
    .audience-card p { font-size: 16px !important; }

    /* ── Carousel controls: bigger tap targets ── */
    .carousel-btn { width: 36px !important; height: 36px !important; }
    .carousel-dots { bottom: 12px !important; }

    /* ── Contact form ── */
    .contact-form { padding: 20px 16px !important; }
    .form-label   { font-size: 14px !important; }

    /* ── Footer ── */
    .footer-link  { font-size: 14px !important; }

    /* ── Page hero (inner pages) ── */
    .page-hero { padding: 40px 20px !important; }
    .page-hero h1 { font-size: clamp(26px,7vw,42px) !important; }
    .page-banner-small { padding: 32px 20px 28px !important; }

    /* ── Image hero sections (partner sourcing etc) ── */
    .image-hero { min-height: 320px !important; }

    /* ── CTA section ── */
    .cta-section { padding: 48px 20px !important; }
    .cta-section p { font-size: 15px !important; }

    /* ── Pricing tab buttons ── */
    .tab-btn { font-size: 13px !important; padding: 8px 12px !important; }

    /* ── Name grid (contact form) ── */
    .name-grid { grid-template-columns: 1fr !important; }

    /* ── Hide hover-only tooltip hint in carousels ── */
    #ps-hover-hint { display: none !important; }

    /* ── Login/auth modal ── */
    .auth-modal { width: 95vw !important; border-radius: 12px !important; }

    /* ── General inline grids that escape class-based targeting ── */
    [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
  }

  @media(max-width:480px) {

    /* ── Extra tight card paddings ── */
    .glass-card, .feature-card, .value-card,
    .pricing-card, .plan-card, .stat-card { padding: 20px 14px !important; }

    /* ── Hero buttons stack and fill width ── */
    .hero-btns { flex-direction: column !important; gap: 10px !important; }
    .hero-btns .btn { width: 100% !important; text-align: center !important; justify-content: center !important; }

    /* ── Section titles ── */
    .section-title { font-size: clamp(20px,6vw,28px) !important; }

    /* ── Marquee logos even smaller ── */
    .marquee-logo { width: 90px !important; height: 48px !important; }

    /* ── Carousel caption ── */
    .carousel-caption h3 { font-size: 14px !important; }
    .carousel-caption p  { font-size: 12px !important; display: none; }

    /* ── Footer grid full single column ── */
    .footer-grid { grid-template-columns: 1fr !important; }

    /* ── Step cards: ensure icon doesn't overlap text ── */
    .step-card { padding-left: 14px !important; }

    /* ── Auth modal very small phones ── */
    .auth-body { padding: 16px 14px 20px !important; }
  }

/* ── Skeleton pulse ── */
@keyframes pulse { 0%,100% { opacity:0.5; } 50% { opacity:1; } }

/* ── Admin sidebar: dark base so ALL text is always white ── */
#page-admin-dashboard .portal-sidebar {
  background: linear-gradient(180deg, #0f1b33 0%, #111e36 100%);
  border-right-color: rgba(255,255,255,0.06);
}
/* Dashboard top nav item */
#page-admin-dashboard .portal-sidebar > nav > .portal-nav-item {
  color: rgba(255,255,255,0.75);
}
#page-admin-dashboard .portal-sidebar > nav > .portal-nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: white;
}
#page-admin-dashboard .portal-sidebar > nav > .portal-nav-item.active {
  background: rgba(255,255,255,0.13);
  color: white;
}
#page-admin-dashboard .portal-sidebar > nav > .portal-nav-item svg {
  stroke: rgba(255,255,255,0.6);
}
/* Sidebar footer / logout */
#page-admin-dashboard .portal-sidebar-footer {
  border-top-color: rgba(255,255,255,0.1);
}
#page-admin-dashboard .portal-sidebar-logout {
  color: rgba(255,255,255,0.5);
}
#page-admin-dashboard .portal-sidebar-logout:hover {
  background: rgba(220,50,50,0.15);
  color: #ff8080;
}



/* ── Admin sidebar coloured sections ── */
.ap-section {
  margin: 6px 8px;
  border-radius: 14px;
  overflow: visible;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.12);
  padding-bottom: 10px;
}
.ap-section .portal-nav { padding: 4px 6px 6px; }
.ap-section .portal-nav-section-label { padding: 16px 14px 8px; }
.ap-section .portal-nav-item {
  border-radius: 9px;
  margin: 1px 0;
  white-space: normal;
  line-height: 1.3;
  padding: 9px 10px;
  height: auto;
}
.hiring-nav-badge {
  margin-left: auto;
  flex-shrink: 0;
  background: #c0392b;
  color: white;
  font-family: var(--proxima);
  font-size: 10.5px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
  letter-spacing: 0;
}

/* ── Collapsible section toggle ── */
.ap-section-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 12px 14px 10px; text-align: left;
  font-family: var(--proxima); font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: white;
  transition: opacity 0.15s;
}
.ap-section-toggle:hover { opacity: 1 !important; }
.ap-section-arrow {
  width: 14px; height: 14px; flex-shrink: 0;
  transition: transform 0.2s ease;
}
.ap-section.collapsed .ap-section-arrow { transform: rotate(-90deg); }
.ap-section.collapsed .portal-nav { display: none; }
.ap-section.collapsed { padding-bottom: 2px; }

/* Products — amber/gold */
.ap-section-products { background: linear-gradient(145deg, #c9943a 0%, #a57420 100%); }
.ap-section-products .ap-section-toggle { color: #fff8e6; opacity: 1; }
.ap-section-products .ap-section-arrow { stroke: rgba(255,248,230,0.8); }
.ap-section-products .portal-nav-item { color: #fff8e6; }
.ap-section-products .portal-nav-item:hover { background: rgba(255,255,255,0.15); color: white; }
.ap-section-products .portal-nav-item.active { background: rgba(255,255,255,0.22); color: white; box-shadow: inset 0 1px 0 rgba(255,255,255,0.2); }
.ap-section-products .portal-nav-item svg { stroke: rgba(255,248,230,0.7); }

/* Projects & Performance — slate blue */
.ap-section-projects { background: linear-gradient(145deg, #1e3a5f 0%, #0f2038 100%); }
.ap-section-projects .ap-section-toggle { color: rgba(255,255,255,0.95); opacity: 1; }
.ap-section-projects .portal-nav-item { color: rgba(255,255,255,0.9); }
.ap-section-projects .portal-nav-item:hover { background: rgba(255,255,255,0.12); color: white; }
.ap-section-projects .portal-nav-item.active { background: rgba(255,255,255,0.2); color: white; box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); }
.ap-section-projects .portal-nav-item svg { stroke: rgba(255,255,255,0.75); }

/* Financials & Documents — forest green */
.ap-section-financials { background: linear-gradient(145deg, #1e5c3a 0%, #0f3020 100%); }
.ap-section-financials .ap-section-toggle { color: rgba(255,255,255,0.95); opacity: 1; }
.ap-section-financials .portal-nav-item { color: rgba(255,255,255,0.9); }
.ap-section-financials .portal-nav-item:hover { background: rgba(255,255,255,0.12); color: white; }
.ap-section-financials .portal-nav-item.active { background: rgba(255,255,255,0.2); color: white; box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); }
.ap-section-financials .portal-nav-item svg { stroke: rgba(255,255,255,0.75); }
.ap-section-financials .ap-subnav-item { padding-left: 32px; font-size: 12.5px; }

/* People & Places — rose/wine */
.ap-section-people { background: linear-gradient(145deg, #8b2858 0%, #5a1838 100%); }
.ap-section-people .ap-section-toggle { color: rgba(255,255,255,0.95); opacity: 1; }
.ap-section-people .portal-nav-item { color: rgba(255,255,255,0.9); }
.ap-section-people .portal-nav-item:hover { background: rgba(255,255,255,0.12); color: white; }
.ap-section-people .portal-nav-item.active { background: rgba(255,255,255,0.2); color: white; box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); }
.ap-section-people .portal-nav-item svg { stroke: rgba(255,255,255,0.75); }

/* Admin Tools — deep indigo */
.ap-section-tools { background: linear-gradient(145deg, #2e2e52 0%, #1a1a34 100%); }
.ap-section-tools .ap-section-toggle { color: rgba(255,255,255,0.95); opacity: 1; }
.ap-section-tools .portal-nav-item { color: rgba(255,255,255,0.9); }
.ap-section-tools .portal-nav-item:hover { background: rgba(255,255,255,0.12); color: white; }
.ap-section-tools .portal-nav-item.active { background: rgba(255,255,255,0.2); color: white; box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); }
.ap-section-tools .portal-nav-item svg { stroke: rgba(255,255,255,0.75); }

/* Project Specific Tools — dark red */
.ap-section-project-tools { background: linear-gradient(145deg, #6b1a1a 0%, #3d0a0a 100%); }
.ap-section-project-tools .ap-section-toggle { color: rgba(255,255,255,0.95); opacity: 1; }
.ap-section-project-tools .portal-nav-item { color: rgba(255,255,255,0.9); }
.ap-section-project-tools .portal-nav-item:hover { background: rgba(255,255,255,0.12); color: white; }
.ap-section-project-tools .portal-nav-item.active { background: rgba(255,255,255,0.2); color: white; box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); }
.ap-section-project-tools .portal-nav-item svg { stroke: rgba(255,255,255,0.75); }

/* Permissions Manager section (super-admin only) */
.ap-section-permissions { background: linear-gradient(145deg, #2c1a4a 0%, #1a0e30 100%); }
.ap-section-permissions .ap-section-toggle { color: rgba(255,255,255,0.95); opacity: 1; }
.ap-section-permissions .portal-nav-item { color: rgba(255,255,255,0.9); }
.ap-section-permissions .portal-nav-item:hover { background: rgba(255,255,255,0.12); color: white; }
.ap-section-permissions .portal-nav-item.active { background: rgba(255,255,255,0.2); color: white; box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); }
.ap-section-permissions .portal-nav-item svg { stroke: rgba(255,255,255,0.75); }

/* English Residency Singapore — collapsible week */
.ec-week-header { display:flex; align-items:center; gap:10px; padding:14px 18px; background:white; border:1px solid var(--cream-dark); border-radius:12px; cursor:pointer; transition:background 0.15s; margin-bottom:2px; }
.ec-week-header:hover { background:#fafaf7; }
.ec-week-header .ec-arrow { width:16px; height:16px; transition:transform 0.2s; flex-shrink:0; }
.ec-week-header.open .ec-arrow { transform:rotate(180deg); }
.ec-week-body { display:none; }
.ec-week-header.open + .ec-week-body { display:block; }
.ec-day-row { display:grid; grid-template-columns:50px 1fr 1fr 1fr auto; gap:12px; align-items:start; padding:12px 18px; border-bottom:1px solid var(--cream-dark); font-size:13px; }
.ec-day-row:last-child { border-bottom:none; }
.ec-day-row.ec-assessment { background:rgba(201,168,76,0.06); }
@media (max-width: 768px) { .ec-day-row { grid-template-columns:1fr; gap:6px; } }

.ap-section-workspace { background: linear-gradient(145deg, #0d7377 0%, #085f63 100%); }
.ap-section-workspace .ap-section-toggle { color: rgba(255,255,255,0.95); opacity: 1; }
.ap-section-workspace .portal-nav-item { color: rgba(255,255,255,0.9); }
.ap-section-workspace .portal-nav-item:hover { background: rgba(255,255,255,0.12); color: white; }
.ap-section-workspace .portal-nav-item.active { background: rgba(255,255,255,0.2); color: white; box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); }
.ap-section-workspace .portal-nav-item svg { stroke: rgba(255,255,255,0.75); }

/* Three Month Strategy whiteboard grid */
.tms-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .tms-grid { grid-template-columns: 1fr; } }

/* Strategy Hub gallery card */
.sh-card {
  background: white;
  border: 1.5px solid var(--cream-dark);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(15,27,51,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sh-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15,27,51,0.08); }
.sh-card-cover { width: 100%; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #e5e0d0 0%, #cfc6ae 100%); object-fit: cover; display: block; }
.sh-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.sh-card-title { font-family: var(--proxima); font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 6px; line-height: 1.3; }
.sh-card-meta { font-family: var(--proxima); font-size: 11px; color: rgba(15,27,51,0.45); margin-bottom: 10px; }
.sh-card-excerpt { font-family: Georgia, serif; font-size: 13px; color: rgba(15,27,51,0.65); line-height: 1.5; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sh-card-edit { margin-top: auto; padding: 8px 14px; background: var(--navy); color: white; border: none; border-radius: 8px; font-family: var(--proxima); font-size: 12px; font-weight: 700; cursor: pointer; align-self: flex-start; }
.sh-card-edit:hover { background: #1a2a4a; }

/* Strategy — red */
.ap-section-strategy { background: linear-gradient(145deg, #c0392b 0%, #7b1a12 100%); }
.ap-section-strategy .ap-section-toggle { color: rgba(255,255,255,0.95); opacity: 1; }
.ap-section-strategy .portal-nav-item { color: rgba(255,255,255,0.9); }
.ap-section-strategy .portal-nav-item:hover { background: rgba(255,255,255,0.12); color: white; }
.ap-section-strategy .portal-nav-item.active { background: rgba(255,255,255,0.2); color: white; box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); }
.ap-section-strategy .portal-nav-item svg { stroke: rgba(255,255,255,0.75); }

/* Transaction table */
#tx-table th { padding: 10px 14px; text-align: left; font-family: var(--proxima); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(15,27,51,0.45); background: #f9f8f5; border-bottom: 1px solid var(--cream-dark); white-space: nowrap; }
#tx-table td { padding: 10px 14px; border-bottom: 1px solid var(--cream-dark); color: var(--navy); vertical-align: middle; font-size: 13px; }
#tx-table tr:last-child td { border-bottom: none; }
#tx-table tr:hover td { background: #fafaf7; }
.tx-inflow  { color: #27ae60; font-weight: 700; }
.tx-outflow { color: #e74c3c; font-weight: 700; }
.tx-badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 10px; }
.tx-badge-inflow  { background: #d4edda; color: #155724; }
.tx-badge-outflow { background: #f8d7da; color: #721c24; }
.tx-badge-other   { background: #e2e3e5; color: #383d41; }

/* Cash flow entity card */
.cf-entity-card { background: white; border-radius: 14px; border: 1px solid var(--cream-dark); padding: 22px 20px; }
.cf-ccy-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f5f3ee; gap: 8px; flex-wrap: wrap; }
.cf-ccy-row:last-child { border-bottom: none; }
.cf-bar-wrap { height: 5px; background: #f0ebe0; border-radius: 3px; overflow: hidden; flex: 1; min-width: 60px; }
.cf-bar-inflow  { height: 100%; background: #27ae60; border-radius: 3px; }
.cf-bar-outflow { height: 100%; background: #e74c3c; border-radius: 3px; }

/* ── Project gallery cards ── */
.proj-card {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--cream-dark);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.18s, transform 0.18s;
  display: flex;
  flex-direction: column;
}
.proj-card:hover { box-shadow: 0 8px 28px rgba(15,27,51,0.12); transform: translateY(-3px); }
.proj-card-accent { height: 5px; flex-shrink: 0; }
.proj-card-body { padding: 18px 18px 14px; flex: 1; display: flex; flex-direction: column; }
.proj-card-footer { padding: 12px 18px; border-top: 1px solid var(--cream-dark); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.proj-status-badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--proxima); font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; }
.proj-status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* ── Project detail overlay tabs ── */
.proj-tab-btn { font-family: var(--proxima); font-size: 13px; font-weight: 600; color: rgba(15,27,51,0.5); background: none; border: none; cursor: pointer; padding: 14px 20px; border-bottom: 3px solid transparent; transition: color 0.15s, border-color 0.15s; white-space: nowrap; }
.proj-tab-btn:hover { color: var(--navy); }
.proj-tab-btn.active { color: #162847; border-bottom-color: #162847; font-weight: 700; }

/* ── Project team member cards ── */
.proj-member-card { background: white; border-radius: 12px; border: 1px solid var(--cream-dark); padding: 18px; display: flex; align-items: flex-start; gap: 14px; }
.proj-member-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--proxima); font-size: 16px; font-weight: 800; color: white; flex-shrink: 0; }

/* ── Project finance cards ── */
.pf-ccy-card { background: white; border-radius: 14px; border: 1px solid var(--cream-dark); padding: 22px 20px; }
.pf-cat-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f5f3ee; }
.pf-cat-row:last-child { border-bottom: none; }
.pf-bar { height: 6px; border-radius: 3px; transition: width 0.5s ease; }

/* ── Document cards ── */
.doc-card {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--cream-dark);
  padding: 20px 18px 16px;
  cursor: pointer;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}
.doc-card:hover { box-shadow: 0 6px 24px rgba(15,27,51,0.1); transform: translateY(-2px); border-color: #c8d8c0; }

/* ── FX Ticker ── */
@keyframes fxTickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
#ap-fx-ticker { overflow: hidden; }
#ap-fx-ticker-inner { will-change: transform; }
#ap-fx-ticker-inner:hover { animation-play-state: paused; }

/* ── FX Card ── */
.ap-fx-card {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--cream-dark);
  padding: 20px 18px 16px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.ap-fx-card:hover { box-shadow: 0 6px 24px rgba(15,27,51,0.1); transform: translateY(-2px); }
.ap-fx-card.ap-fx-selected { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy); }
.ap-fx-badge {
  display: inline-block;
  font-family: var(--proxima);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.ap-fx-badge-strong    { background: #d4edda; color: #155724; }
.ap-fx-badge-gaining   { background: #d1ecf1; color: #0c5460; }
.ap-fx-badge-stable    { background: #e2e3e5; color: #383d41; }
.ap-fx-badge-slipping  { background: #fff3cd; color: #856404; }
.ap-fx-badge-weak      { background: #f8d7da; color: #721c24; }
.ap-fx-badge-pegged    { background: #e2e3e5; color: #383d41; }

/* ── Scroll fade-in ── */
.fade-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-section { opacity: 1 !important; transform: none !important; transition: none !important; }
}


/* ═══════════════════════════════════════════════════════════
   HIRING & ONBOARDING PIPELINE
   ═══════════════════════════════════════════════════════════ */

/* ── Kanban board ── */
.hiring-kanban {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  align-items: flex-start;
  -webkit-overflow-scrolling: touch;
}
.hiring-kanban::-webkit-scrollbar { height: 5px; }
.hiring-kanban::-webkit-scrollbar-thumb { background: var(--cream-dark); border-radius: 3px; }

/* ── Column ── */
.hk-col {
  background: white;
  border-radius: 14px;
  border: 1.5px solid var(--cream-dark);
  min-width: 210px;
  width: 210px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.hk-col.hk-drag-over {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,168,76,0.35), 0 4px 16px rgba(0,0,0,0.1);
}
.hk-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  color: white;
  font-family: var(--proxima);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.hk-col-count {
  background: rgba(255,255,255,0.22);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 8px;
  min-width: 20px;
  text-align: center;
}

/* ── Cards area ── */
.hk-cards {
  padding: 10px 9px 4px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 56px;
  flex: 1;
}
.hk-card {
  background: #f9f8f5;
  border: 1.5px solid var(--cream-dark);
  border-radius: 10px;
  padding: 11px 12px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s, opacity 0.15s;
  user-select: none;
}
.hk-card:hover { border-color: rgba(15,27,51,0.3); box-shadow: 0 2px 8px rgba(0,0,0,0.07); }
.hk-card.hk-card-selected {
  border-color: var(--navy) !important;
  background: rgba(15,27,51,0.04) !important;
  box-shadow: 0 0 0 2px rgba(15,27,51,0.12) !important;
}
.hk-card.hk-dragging { opacity: 0.35; transform: scale(0.96); }
.hk-card-name { font-family: var(--proxima); font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.hk-card-subject { font-family: var(--proxima); font-size: 11.5px; color: rgba(15,27,51,0.5); margin-bottom: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk-card-meta { display: flex; align-items: center; justify-content: space-between; font-family: var(--proxima); font-size: 11px; color: rgba(15,27,51,0.38); flex-wrap: wrap; gap: 4px; }

/* ── Document requirements list in column ── */
.hk-doc-req {
  border-top: 1px solid var(--cream-dark);
  padding: 9px 13px 8px;
  background: #faf9f7;
}
.hk-doc-req-label {
  font-family: var(--proxima);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: rgba(15,27,51,0.38);
  margin-bottom: 5px;
}
.hk-doc-req-item {
  font-family: var(--proxima);
  font-size: 11px;
  color: rgba(15,27,51,0.55);
  padding: 2px 0;
  line-height: 1.4;
}

/* ── Add teacher button at column bottom ── */
.hk-add-btn {
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid var(--cream-dark);
  padding: 9px 13px;
  text-align: left;
  font-family: var(--proxima);
  font-size: 12px;
  font-weight: 600;
  color: rgba(15,27,51,0.38);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.hk-add-btn:hover { color: var(--navy); background: var(--cream); }

/* ── Detail panel wrapper ── */
.hiring-detail { margin-top: 22px; }
.hd-panel { background: white; border-radius: 16px; border: 1.5px solid var(--cream-dark); overflow: hidden; }

/* ── Panel header ── */
.hd-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--cream-dark);
  background: #f5f3ef;
  flex-wrap: wrap;
  gap: 12px;
}
.hd-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-family: var(--proxima);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hd-teacher-name { font-family: var(--proxima); font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 3px; }
.hd-teacher-meta { font-family: var(--proxima); font-size: 12.5px; color: rgba(15,27,51,0.5); }
.hd-close-btn { background: none; border: none; font-size: 18px; cursor: pointer; color: rgba(15,27,51,0.35); padding: 4px 6px; line-height: 1; border-radius: 6px; transition: background 0.15s; }
.hd-close-btn:hover { background: var(--cream-dark); color: var(--navy); }
.hd-btn-edit {
  font-family: var(--proxima); font-size: 12px; font-weight: 600;
  padding: 7px 16px; border: 1.5px solid var(--cream-dark); border-radius: 8px;
  background: white; cursor: pointer; color: rgba(15,27,51,0.65);
  transition: border-color 0.15s, color 0.15s;
}
.hd-btn-edit:hover { border-color: var(--navy); color: var(--navy); }

/* ── Panel body: two-column layout ── */
.hd-panel-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  border-bottom: 1px solid var(--cream-dark);
}
@media (max-width: 860px) {
  .hd-panel-body { grid-template-columns: 1fr; }
}
.hd-left { padding: 22px; border-right: 1px solid var(--cream-dark); }
.hd-right { padding: 22px; overflow-y: auto; max-height: 480px; }

/* ── Section titles ── */
.hd-section-title {
  font-family: var(--proxima); font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: rgba(15,27,51,0.4);
  margin-bottom: 11px;
}

/* ── Contact grid ── */
.hd-contact-grid { display: grid; grid-template-columns: 66px 1fr; gap: 5px 10px; align-items: start; }
.hd-contact-label { font-family: var(--proxima); font-size: 11.5px; font-weight: 600; color: rgba(15,27,51,0.42); padding-top: 1px; }
.hd-contact-val { font-family: var(--proxima); font-size: 13px; color: var(--navy); word-break: break-word; }
.hd-contact-val a { color: var(--navy); text-decoration: underline; }

/* ── Stage move buttons ── */
.hd-stage-btn {
  font-family: var(--proxima); font-size: 11px; font-weight: 600;
  padding: 5px 10px; border: 1.5px solid var(--cream-dark); border-radius: 20px;
  background: white; cursor: pointer; color: rgba(15,27,51,0.55);
  transition: all 0.15s;
}
.hd-stage-btn:hover { border-color: var(--navy); color: var(--navy); }
.hd-stage-btn-active { font-weight: 700; }

/* ── Document checklist ── */
.hd-stage-section { margin-bottom: 18px; }
.hd-stage-label {
  font-family: var(--proxima); font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px; color: rgba(15,27,51,0.5);
  padding: 5px 10px; border-radius: 6px; margin-bottom: 7px; display: block;
}
.hd-doc-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid #f0ede7;
}
.hd-doc-row:last-child { border-bottom: none; }
.hd-doc-status {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.hd-doc-ok { background: #d4f5e4; color: #1a6b3c; }
.hd-doc-missing { background: #ffe4e4; color: #c0392b; }
.hd-doc-info { flex: 1; min-width: 0; }
.hd-doc-name { font-family: var(--proxima); font-size: 12.5px; font-weight: 600; color: var(--navy); }
.hd-doc-meta { font-family: var(--proxima); font-size: 11px; color: rgba(15,27,51,0.42); margin-top: 2px; }
.hd-doc-actions { display: flex; gap: 5px; align-items: center; flex-shrink: 0; }
.hd-btn-dl {
  background: #e4f5ec; color: #1a6b3c; border: none;
  border-radius: 6px; padding: 5px 8px; font-size: 13px; cursor: pointer;
  font-weight: 700; transition: background 0.15s;
}
.hd-btn-dl:hover { background: #c5ecd8; }
.hd-btn-upload {
  background: var(--cream); color: rgba(15,27,51,0.65);
  border: 1.5px solid var(--cream-dark); border-radius: 6px;
  padding: 4px 10px; font-family: var(--proxima); font-size: 11px; font-weight: 600;
  cursor: pointer; white-space: nowrap; display: inline-block; transition: all 0.15s;
}
.hd-btn-upload:hover { border-color: var(--navy); color: var(--navy); }

/* ── Notes section ── */
.hd-notes-section { padding: 20px 22px; }
.hd-notes-area {
  width: 100%; min-height: 110px;
  border: 1.5px solid var(--cream-dark); border-radius: 10px;
  padding: 12px 14px; font-family: var(--proxima); font-size: 13.5px;
  color: var(--navy); resize: vertical; outline: none; box-sizing: border-box;
  line-height: 1.65; transition: border-color 0.15s;
}
.hd-notes-area:focus { border-color: var(--navy); }
.hd-btn-save-notes {
  font-family: var(--proxima); font-size: 13px; font-weight: 700;
  padding: 9px 24px; border: none; border-radius: 8px;
  background: var(--navy); color: white; cursor: pointer; transition: background 0.15s;
}
.hd-btn-save-notes:hover { background: #0f1b33; }

/* ── Pipeline quick-action bar (stage 1 AT teachers) ── */
.hd-action-bar {
  background: #fafafa; border: 1.5px solid var(--cream-dark);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 20px;
}
.hd-action-bar .hd-section-title { margin-bottom: 12px; }
.hd-action-btn {
  width: 100%; font-family: var(--proxima); font-size: 13px; font-weight: 700;
  padding: 11px 16px; border: none; border-radius: 9px; cursor: pointer;
  text-align: left; transition: opacity 0.15s, filter 0.15s; letter-spacing: 0.1px;
}
.hd-action-btn:hover { filter: brightness(0.92); }
.hd-action-next   { background: #dcfce7; color: #15803d; }
.hd-action-remove { background: #fee2e2; color: #dc2626; }
.hd-action-spam   { background: #fef3c7; color: #b45309; }

/* ── Confirmation overlay ── */
.hiring-confirm-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.hiring-confirm-box {
  background: white; border-radius: 16px; padding: 32px 28px;
  max-width: 380px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}
.hiring-confirm-title {
  font-family: var(--proxima); font-size: 17px; font-weight: 800;
  color: var(--navy); margin-bottom: 12px;
}
.hiring-confirm-msg {
  font-family: var(--proxima); font-size: 14px; color: rgba(15,27,51,0.7);
  line-height: 1.6; margin-bottom: 24px;
}
.hiring-confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }
.hiring-confirm-cancel {
  font-family: var(--proxima); font-size: 13px; font-weight: 600;
  padding: 9px 20px; border: 1.5px solid var(--cream-dark); border-radius: 8px;
  background: white; cursor: pointer; color: rgba(15,27,51,0.6);
  transition: border-color 0.15s;
}
.hiring-confirm-cancel:hover { border-color: var(--navy); color: var(--navy); }
.hiring-confirm-ok {
  font-family: var(--proxima); font-size: 13px; font-weight: 700;
  padding: 9px 20px; border: none; border-radius: 8px;
  color: white; cursor: pointer; transition: filter 0.15s;
}
.hiring-confirm-ok:hover { filter: brightness(0.88); }

/* ── View Application Responses button ── */
.hd-btn-view-responses {
  width: 100%; font-family: var(--proxima); font-size: 13px; font-weight: 700;
  padding: 10px 14px; border: 1.5px solid var(--gold-border-strong); border-radius: 9px;
  background: rgba(212,168,64,0.08); color: var(--navy); cursor: pointer;
  text-align: left; transition: background 0.15s, border-color 0.15s;
  display: flex; align-items: center; gap: 6px;
}
.hd-btn-view-responses:hover {
  background: rgba(212,168,64,0.16); border-color: var(--gold);
}

/* ── Application responses popup ── */
.ar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.48);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.ar-box {
  background: white; border-radius: 18px; width: 90%; max-width: 520px;
  max-height: 80vh; display: flex; flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  overflow: hidden;
}
.ar-header {
  position: relative; padding: 24px 28px 18px;
  border-bottom: 1.5px solid var(--cream-dark);
}
.ar-title {
  font-family: var(--proxima); font-size: 17px; font-weight: 800;
  color: var(--navy); margin-bottom: 3px;
}
.ar-subtitle {
  font-family: var(--proxima); font-size: 13px; color: rgba(15,27,51,0.5);
}
.ar-close {
  position: absolute; top: 18px; right: 20px;
  font-size: 16px; color: rgba(15,27,51,0.4); cursor: pointer;
  background: none; border: none; line-height: 1; padding: 4px;
  border-radius: 6px; transition: background 0.12s, color 0.12s;
}
.ar-close:hover { background: var(--cream-dark); color: var(--navy); }
.ar-body {
  padding: 20px 28px 28px; overflow-y: auto; flex: 1;
}
.ar-row {
  display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px;
  padding: 10px 0; border-bottom: 1px solid var(--cream-dark);
  font-family: var(--proxima); font-size: 13.5px; align-items: start;
}
.ar-row:last-child { border-bottom: none; }
.ar-label {
  color: rgba(15,27,51,0.5); font-weight: 600; padding-top: 1px;
}
.ar-val {
  color: var(--navy); line-height: 1.55; word-break: break-word;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT CATALOGUE
   ═══════════════════════════════════════════════════════════ */

/* ── Grid layout ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

/* ── List layout ── */
.cat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Cards ── */
.cat-card {
  background: white;
  border: 1.5px solid var(--cream-dark);
  border-radius: 14px;
  padding: 16px 16px 14px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.cat-card:hover { border-color: rgba(15,27,51,0.25); box-shadow: 0 4px 16px rgba(0,0,0,0.07); transform: translateY(-1px); }
.cat-card-selected { border-color: var(--navy) !important; box-shadow: 0 0 0 3px rgba(15,27,51,0.12) !important; }

/* ── List row ── */
.cat-list-row {
  background: white;
  border: 1.5px solid var(--cream-dark);
  border-radius: 10px;
  padding: 13px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cat-list-row:hover { border-color: rgba(15,27,51,0.25); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

/* ── Card text ── */
.cat-card-name {
  font-family: var(--proxima);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.35;
}
.cat-card-meta {
  font-family: var(--proxima);
  font-size: 11.5px;
  color: rgba(15,27,51,0.5);
  margin-bottom: 3px;
}
.cat-card-inst {
  font-family: var(--proxima);
  font-size: 11.5px;
  color: rgba(15,27,51,0.4);
  margin-bottom: 7px;
}
.cat-card-desc {
  font-family: var(--proxima);
  font-size: 12px;
  color: rgba(15,27,51,0.55);
  line-height: 1.5;
  margin-top: 8px;
  border-top: 1px solid var(--cream-dark);
  padding-top: 8px;
}

/* ── Badge ── */
.cat-badge {
  font-family: var(--proxima);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-block;
  white-space: nowrap;
}

/* ── Skeleton loading ── */
.cat-skeleton { pointer-events: none; min-height: 130px; }
.cat-skel-badge { height: 22px; width: 70px; border-radius: 20px; background: #ede9e0; margin-bottom: 12px; animation: cat-pulse 1.4s ease-in-out infinite; }
.cat-skel-title { height: 16px; width: 85%; border-radius: 4px; background: #e8e4dc; margin-bottom: 8px; animation: cat-pulse 1.4s ease-in-out infinite 0.1s; }
.cat-skel-line  { height: 12px; width: 65%; border-radius: 4px; background: #edeae3; margin-bottom: 6px; animation: cat-pulse 1.4s ease-in-out infinite 0.2s; }
.cat-skel-line.short { width: 45%; }
@keyframes cat-pulse { 0%,100%{opacity:1} 50%{opacity:0.45} }

/* ── Filter bar ── */
.cat-filter-btn {
  font-family: var(--proxima);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border: 1.5px solid var(--cream-dark);
  border-radius: 20px;
  background: white;
  cursor: pointer;
  color: rgba(15,27,51,0.65);
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.cat-filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.cat-filter-badge {
  background: var(--navy);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 0 6px;
  min-width: 16px;
  text-align: center;
}
.cat-clear-btn {
  font-family: var(--proxima);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border: 1.5px solid #e53e3e;
  border-radius: 20px;
  background: none;
  cursor: pointer;
  color: #e53e3e;
  transition: background 0.15s;
}
.cat-clear-btn:hover { background: #fff0f0; }

/* ── Filter dropdown ── */
.cat-filter-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 500;
  background: white;
  border: 1.5px solid var(--cream-dark);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 8px 0;
  min-width: 180px;
  max-height: 280px;
  overflow-y: auto;
}
.cat-fdd-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  font-family: var(--proxima);
  font-size: 13px;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.1s;
}
.cat-fdd-item:hover { background: var(--cream); }
.cat-fdd-item input[type="checkbox"] { cursor: pointer; accent-color: var(--navy); }

/* ── Detail drawer ── */
.cat-drawer-panel {
  background: white;
  border: 1.5px solid var(--cream-dark);
  border-radius: 16px;
  overflow: hidden;
}
.cat-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--cream-dark);
  background: #f5f3ef;
  gap: 12px;
}
.cat-drawer-body {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0;
}
.cat-detail-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 12px;
  padding: 9px 0;
  border-bottom: 1px solid #f0ede7;
  align-items: start;
  grid-column: span 1;
}
.cat-detail-label {
  font-family: var(--proxima);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(15,27,51,0.4);
  padding-top: 2px;
}
.cat-detail-val {
  font-family: var(--proxima);
  font-size: 13px;
  color: var(--navy);
  line-height: 1.5;
  word-break: break-word;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-drawer-body { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   ADMIN SIDEBAR — SYNC BUTTON
   ═══════════════════════════════════════════════════════════ */
.ap-sync-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9px;
  padding: 9px 12px;
  margin-bottom: 6px;
  font-family: var(--proxima);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-align: left;
}
.ap-sync-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.22);
  color: white;
}
.ap-sync-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.ap-sync-btn svg {
  flex-shrink: 0;
  stroke: rgba(255,255,255,0.65);
}
.ap-sync-btn:hover:not(:disabled) svg { stroke: white; }

/* spinning state */
.ap-sync-btn.syncing svg { animation: ap-spin 0.9s linear infinite; }
@keyframes ap-spin { to { transform: rotate(360deg); } }

/* status line */
.ap-sync-status {
  font-family: var(--proxima);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  padding: 0 4px 6px;
  line-height: 1.4;
  min-height: 0;
  transition: color 0.3s;
}
.ap-sync-status.ok    { color: rgba(100,220,140,0.8); }
.ap-sync-status.error { color: rgba(255,120,120,0.8); }

/* ── Sidebar sub-section label (non-clickable category divider) ── */
.portal-nav-sublabel {
  font-family: var(--proxima);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.38);
  padding: 10px 14px 4px;
  pointer-events: none;
  user-select: none;
}

/* ── Sidebar sub-item (slightly indented child nav button) ── */
.portal-nav-subitem {
  padding-left: 22px !important;
  font-size: 12px !important;
}
.portal-nav-subitem svg {
  opacity: 0.75;
}
