/* Ecomstone main stylesheet — extracted from index.html 2026-06-10 */


  :root {
    --navy: #0B1D3A;
    --navy-light: #132848;
    --gold: #C9A84C;
    --gold-light: #E8C96A;
    --cream: #F7F3EC;
    --white: #FFFFFF;
    --gray: #6B7280;
    --green: #16A34A;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--navy);
    overflow-x: hidden;
  }

  h1, h2, h3, h4 { font-family: 'Be Vietnam Pro', sans-serif; }

  /* NAV */
  nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(11,29,58,0.95);
    backdrop-filter: blur(12px);
    padding: 16px 5%;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(201,168,76,0.2);
  }
  .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
  }
  .logo img { height: 44px; width: auto; object-fit: contain; }
  .nav-links { display: flex; gap: 32px; list-style: none; }
  .nav-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none; font-size: 0.9rem; font-weight: 500;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--gold); }
  .nav-cta {
    background: var(--gold);
    color: var(--navy) !important;
    padding: 10px 22px; border-radius: 6px;
    font-weight: 700 !important; font-size: 0.85rem !important;
    transition: background 0.2s !important;
  }
  .nav-cta:hover { background: var(--gold-light) !important; }

  /* HERO */
  .hero {
    min-height: 100vh;
    background: var(--navy);
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    padding: 120px 5% 80px;
  }
  .hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(201,168,76,0.08) 0%, transparent 70%);
  }
  .hero-grid {
    position: absolute; inset: 0; opacity: 0.04;
    background-image: linear-gradient(var(--gold) 1px, transparent 1px),
      linear-gradient(90deg, var(--gold) 1px, transparent 1px);
    background-size: 60px 60px;
  }
  .hero-content { position: relative; max-width: 640px; }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.3);
    color: var(--gold-light);
    padding: 6px 14px; border-radius: 100px;
    font-size: 0.8rem; font-weight: 500; margin-bottom: 28px;
    animation: fadeUp 0.6s ease both;
  }
  .hero-badge::before { content: '●'; font-size: 0.5rem; color: var(--green); animation: pulse 2s infinite; }
  @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
  @keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
  .hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800; line-height: 1.1;
    color: var(--white); margin-bottom: 24px;
    animation: fadeUp 0.6s ease 0.1s both;
  }
  .hero h1 em { font-style: normal; color: var(--gold); }
  .hero p {
    font-size: 1.1rem; line-height: 1.7;
    color: rgba(255,255,255,0.65);
    margin-bottom: 40px;
    animation: fadeUp 0.6s ease 0.2s both;
  }
  .hero-actions {
    display: flex; gap: 14px; flex-wrap: wrap;
    animation: fadeUp 0.6s ease 0.3s both;
  }
  .btn-primary {
    background: var(--gold); color: var(--navy);
    padding: 14px 28px; border-radius: 8px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700; font-size: 0.95rem;
    text-decoration: none; border: none; cursor: pointer;
    transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px;
  }
  .btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.3); }
  .btn-secondary {
    background: transparent; color: var(--white);
    padding: 14px 28px; border-radius: 8px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600; font-size: 0.95rem;
    text-decoration: none; border: 1px solid rgba(255,255,255,0.25); cursor: pointer;
    transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px;
  }
  .btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

  /* STATS BAR */
  .stats-bar {
    background: var(--cream);
    padding: 48px 5%;
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 32px; border-bottom: 1px solid rgba(11,29,58,0.08);
  }
  .stat-item { text-align: center; }
  .stat-number {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 2.4rem; font-weight: 800;
    color: var(--navy); line-height: 1;
  }
  .stat-number span { color: var(--gold); }
  .stat-label { font-size: 0.85rem; color: var(--gray); margin-top: 6px; }

  /* SECTION BASE */
  section { padding: 80px 5%; }
  .section-label {
    font-size: 0.75rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 12px;
  }
  .section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800; line-height: 1.2;
    color: var(--navy); margin-bottom: 16px;
  }
  .section-sub {
    font-size: 1rem; color: var(--gray);
    line-height: 1.7; max-width: 540px;
  }

  /* PAIN POINTS */
  .pain { background: var(--navy); color: var(--white); }
  .pain .section-title { color: var(--white); }
  .pain-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-top: 48px;
  }
  .pain-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 12px; padding: 28px;
    transition: all 0.3s;
  }
  .pain-card:hover { border-color: rgba(201,168,76,0.4); background: rgba(201,168,76,0.06); }
  .pain-icon { font-size: 2rem; margin-bottom: 16px; }
  .pain-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
  .pain-card p { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.6; }

  /* SERVICES */
  .services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 28px; margin-top: 48px;
  }
  .service-card {
    border: 1px solid rgba(11,29,58,0.1);
    border-radius: 14px; padding: 32px;
    transition: all 0.3s; cursor: pointer;
    position: relative; overflow: hidden;
  }
  .service-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--gold); transform: scaleX(0);
    transition: transform 0.3s; transform-origin: left;
  }
  .service-card:hover::before { transform: scaleX(1); }
  .service-card:hover { border-color: rgba(201,168,76,0.3); box-shadow: 0 12px 40px rgba(11,29,58,0.08); transform: translateY(-4px); }
  .service-num {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 3rem; font-weight: 800;
    color: rgba(11,29,58,0.06); line-height: 1;
    margin-bottom: 16px;
  }
  .service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
  .service-card p { font-size: 0.88rem; color: var(--gray); line-height: 1.6; margin-bottom: 20px; }
  .service-link {
    font-size: 0.85rem; font-weight: 700;
    color: var(--gold); text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .service-link:hover { gap: 10px; }
  /* 4 dịch vụ chính — luôn cùng 1 hàng trên desktop */
  .services-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  @media (max-width: 1024px) { .services-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 640px) { .services-grid.cols-4 { grid-template-columns: 1fr; } }

  /* CASE STUDIES */
  .cases { background: var(--cream); }
  .cases-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-top: 48px;
  }
  .case-card {
    background: var(--white);
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(11,29,58,0.06);
    transition: all 0.3s;
  }
  .case-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(11,29,58,0.12); }
  .case-header {
    background: var(--navy);
    padding: 32px 28px 24px;
    position: relative;
  }
  .case-tag {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 10px;
  }
  .case-header h3 { font-size: 1.3rem; font-weight: 800; color: var(--white); }
  .case-metric {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 2rem; font-weight: 800;
    color: var(--gold); margin-top: 12px;
  }
  .case-body { padding: 24px 28px; }
  .case-body p { font-size: 0.88rem; color: var(--gray); line-height: 1.6; }

  /* PROCESS */
  .process-steps {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 0; margin-top: 56px;
    position: relative;
  }
  .process-steps::before {
    content: ''; position: absolute;
    top: 28px; left: 10%; right: 10%;
    height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    z-index: 0;
  }
  .step { text-align: center; position: relative; z-index: 1; }
  .step-num {
    width: 56px; height: 56px;
    background: var(--navy); color: var(--gold);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; font-size: 1rem;
    margin: 0 auto 16px;
    border: 3px solid var(--gold);
  }
  .step h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
  .step p { font-size: 0.78rem; color: var(--gray); line-height: 1.5; }

  /* TESTIMONIALS */
  .testi { background: var(--navy); }
  .testi .section-title { color: var(--white); }
  .testi-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-top: 48px;
  }
  .testi-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px; padding: 32px;
  }
  .testi-quote { font-size: 2rem; color: var(--gold); line-height: 1; margin-bottom: 16px; }
  .testi-card p { font-size: 0.92rem; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 24px; font-style: italic; }
  .testi-author { display: flex; align-items: center; gap: 12px; }
  .testi-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--gold); display: flex; align-items: center; justify-content: center;
    font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; color: var(--navy);
  }
  .testi-name { font-weight: 700; color: var(--white); font-size: 0.9rem; }
  .testi-title { font-size: 0.78rem; color: rgba(255,255,255,0.45); }

  /* PARTNERS */
  .partners { background: var(--cream); text-align: center; }
  .partner-logos {
    display: flex; align-items: center; justify-content: center;
    gap: 48px; flex-wrap: wrap; margin-top: 40px;
  }
  .partner-logo {
    background: var(--white); padding: 14px 28px; border-radius: 10px;
    font-family: 'Be Vietnam Pro', sans-serif; font-weight: 700;
    color: var(--navy); font-size: 0.9rem;
    box-shadow: 0 2px 12px rgba(11,29,58,0.06);
    opacity: 0.7; transition: opacity 0.2s;
  }
  .partner-logo:hover { opacity: 1; }

  /* CTA SECTION */
  .cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 100%);
    text-align: center; padding: 100px 5%;
    position: relative; overflow: hidden;
  }
  .cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(201,168,76,0.1) 0%, transparent 70%);
  }
  .cta-section h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800; color: var(--white);
    margin-bottom: 16px; position: relative;
  }
  .cta-section p {
    font-size: 1.05rem; color: rgba(255,255,255,0.6);
    margin-bottom: 40px; position: relative;
  }
  .cta-actions { display: flex; gap: 14px; justify-content: center; position: relative; }

  /* CHATBOT WIDGET */
  .chat-widget {
    position: fixed; bottom: 28px; right: 28px; z-index: 10000;
  }
  /* Hide Zalo float when chat is open so it doesn't cover the Send button */
  body.chat-open #zaloFloat { display: none !important; }
  .chat-bubble {
    width: 60px; height: 60px;
    background: var(--gold); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 8px 32px rgba(201,168,76,0.4);
    font-size: 1.6rem;
    transition: all 0.3s;
    animation: bounceIn 0.6s ease both;
  }
  @keyframes bounceIn {
    0%{transform:scale(0);opacity:0}
    70%{transform:scale(1.1)}
    100%{transform:scale(1);opacity:1}
  }
  .chat-bubble:hover { transform: scale(1.1); box-shadow: 0 12px 40px rgba(201,168,76,0.5); }
  .chat-notification {
    position: absolute; top: -4px; right: -4px;
    width: 20px; height: 20px;
    background: #EF4444; border-radius: 50%;
    border: 2px solid white;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 700; color: white;
  }
  .chat-window {
    position: fixed; bottom: 80px; right: 16px;
    width: min(360px, calc(100vw - 32px)); background: var(--white);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(11,29,58,0.2);
    overflow: hidden; display: none;
    flex-direction: column;
    animation: slideUp 0.3s ease;
  }
  @keyframes slideUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
  .chat-window.open { display: flex; }
  .chat-header {
    background: var(--navy);
    padding: 20px 20px 16px;
    display: flex; align-items: center; gap: 12px;
  }
  .chat-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--gold); display: flex; align-items: center; justify-content: center;
    font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; color: var(--navy); font-size: 0.9rem;
  }
  .chat-info h4 { font-size: 0.9rem; font-weight: 700; color: var(--white); }
  .chat-status { font-size: 0.75rem; color: var(--green); display: flex; align-items: center; gap: 4px; }
  .chat-status::before { content: '●'; font-size: 0.4rem; }
  .chat-close {
    margin-left: auto; background: none; border: none;
    color: rgba(255,255,255,0.5); font-size: 1.2rem;
    cursor: pointer; transition: color 0.2s;
  }
  .chat-close:hover { color: white; }
  .chat-messages {
    padding: 20px; height: 320px;
    overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
    background: #F9FAFB;
  }
  .msg { display: flex; gap: 8px; max-width: 85%; }
  .msg.bot { align-self: flex-start; }
  .msg.user { align-self: flex-end; flex-direction: row-reverse; }
  .msg-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--navy); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem; font-weight: 800; color: var(--gold);
    font-family: 'Be Vietnam Pro', sans-serif;
  }
  .msg-bubble {
    padding: 10px 14px; border-radius: 14px;
    font-size: 0.85rem; line-height: 1.5;
  }
  .msg.bot .msg-bubble { background: var(--white); color: var(--navy); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
  .msg.user .msg-bubble { background: var(--navy); color: white; }
  .quick-replies {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px;
  }
  .qr-btn {
    background: white; border: 1px solid rgba(11,29,58,0.15);
    border-radius: 100px; padding: 6px 12px;
    font-size: 0.78rem; font-weight: 500; color: var(--navy);
    cursor: pointer; transition: all 0.2s;
  }
  .qr-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.05); }
  .chat-input-area {
    padding: 14px 16px;
    border-top: 1px solid rgba(11,29,58,0.08);
    display: flex; gap: 8px; align-items: center;
    background: white;
  }
  .chat-input {
    flex: 1; border: 1px solid rgba(11,29,58,0.15);
    border-radius: 100px; padding: 10px 16px;
    font-size: 0.85rem; outline: none;
    font-family: 'DM Sans', sans-serif;
  }
  .chat-input:focus { border-color: var(--gold); }
  .chat-send {
    width: 38px; height: 38px;
    background: var(--gold); border: none; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; transition: all 0.2s;
  }
  .chat-send:hover { background: var(--gold-light); transform: scale(1.05); }

  /* FOOTER */
  footer {
    background: var(--navy);
    padding: 60px 5% 32px;
    border-top: 1px solid rgba(201,168,76,0.15);
  }
  .footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 48px;
  }
  .footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-top: 14px; max-width: 280px; }
  .footer-col h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
  .footer-col a { display: block; font-size: 0.88rem; color: rgba(255,255,255,0.55); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
  .footer-col a:hover { color: white; }
  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px; display: flex; justify-content: space-between; align-items: center;
  }
  .footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }

  @media (max-width: 768px) {
    .stats-bar { grid-template-columns: repeat(2,1fr); }
    .services-grid, .pain-grid, .cases-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .process-steps::before { display: none; }
    .testi-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .chat-window { width: 320px; }
    nav .nav-links { display: none; }
  }


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

  /* Tablet: <= 1024px */
  @media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .cases-grid { grid-template-columns: repeat(2, 1fr); }
    .pain-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
  }

  /* Mobile: <= 768px */
  @media (max-width: 768px) {

    /* NAV */
    .nav-links { display: none; }
    nav { padding: 12px 5%; }
    .logo img { height: 30px; }

    /* HERO */
    .hero { padding: 100px 5% 60px; }
    .hero-title { font-size: 2rem; }
    .hero p, .hero-sub { font-size: 0.95rem; }
    .hero-buttons { flex-direction: column; align-items: flex-start; gap: 12px; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }

    /* GRIDS -> 1 col */
    .services-grid,
    .pain-grid,
    .cases-grid { grid-template-columns: 1fr; }

    /* STATS */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

    /* FOOTER */
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-brand { max-width: 100%; }

    /* SECTION PADDING */
    section, .section { padding: 56px 5%; }

    /* SECTION TITLES */
    .section-title { font-size: 1.6rem; }

    /* GALLERY */
    #activity-gallery .gallery-grid,
    [style*="grid-template-columns:repeat(3"] {
      grid-template-columns: 1fr !important;
    }
    [style*="grid-column:span 2"] {
      grid-column: span 1 !important;
    }

    /* FOUNDERS */
    [style*="grid-template-columns:1fr 1fr"] {
      grid-template-columns: 1fr !important;
    }

    /* STATS ROW */
    [style*="grid-template-columns:repeat(4"] {
      grid-template-columns: repeat(2, 1fr) !important;
    }

    /* HEALTH GRID */
    [style*="grid-template-columns:repeat(3,1fr)"] {
      grid-template-columns: 1fr !important;
    }

    /* BLOG CARDS */
    .service-card { padding: 20px; }

    /* CASE CARDS */
    .case-card { padding: 20px; }

    /* CTA BUTTONS */
    [style*="display:flex;gap:16px;justify-content:center"] {
      flex-direction: column;
      align-items: center;
    }

    /* EMAIL SIGNUP FORM */
    #signup-form {
      flex-direction: column !important;
      align-items: stretch !important;
    }
    #signup-form input,
    #signup-form button {
      max-width: 100% !important;
      min-width: unset !important;
      width: 100% !important;
    }

    /* CHATBOT */
    #chatWidget { right: 12px; bottom: 12px; }
    #chatWindow { width: calc(100vw - 24px) !important; right: 0 !important; }
  }

  /* Small mobile: <= 480px */
  @media (max-width: 480px) {
    .hero-title { font-size: 1.7rem; }
    .section-title { font-size: 1.4rem; }
    .stats-grid { grid-template-columns: 1fr; }
    [style*="grid-template-columns:repeat(4"] {
      grid-template-columns: 1fr !important;
    }
  }



  /* MOBILE NAV */
  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
  }
  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
  }
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .mobile-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(11,29,58,0.98);
    backdrop-filter: blur(12px);
    padding: 20px 5%;
    z-index: 99;
    border-bottom: 1px solid rgba(201,168,76,0.2);
    flex-direction: column;
    gap: 0;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-family: 'Be Vietnam Pro', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .mobile-menu a:last-child { border-bottom: none; }
  .mobile-menu a:hover { color: #C9A84C; }
  .mobile-menu .mob-cta {
    background: #C9A84C;
    color: #0B1D3A !important;
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 12px;
    text-align: center;
    font-weight: 700;
    border-bottom: none !important;
  }

  @media (max-width: 768px) {
    .hamburger { display: flex !important; }
    .nav-links, .nav-links-wrap, .nav-ul { display: none !important; }
    #zaloFloat { display: none !important; } /* mobile: gộp vào contact menu trong chatWidget */
    #chatWidget { right: 16px !important; bottom: 16px !important; }
    #backToTop { bottom: 16px !important; left: 16px !important; width: 38px !important; height: 38px !important; opacity: 0.85; }
  }


  @media (max-width: 480px) {
    html, body {
      overflow-x: hidden !important;
      width: 100% !important;
    }
    .hero-grid { display: none !important; }
    #progressNav { display: none !important; }
    .counter-wrap, .stats-bar { overflow: hidden !important; }
  }



/* === DROPDOWN MENU (Task 3) === */
.has-dropdown {
  position: relative;
}
.dropdown-trigger {
  cursor: pointer;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 20px 40px rgba(11, 29, 58, 0.15);
  min-width: 320px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 1000;
  border: 1px solid var(--gray-light, #E5E7EB);
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li {
  list-style: none;
  margin: 0;
}
.dropdown-menu li a {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.15s;
  font-size: 14px;
  line-height: 1.4;
}
.dropdown-menu li a strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 2px;
}
.dropdown-menu li a span {
  color: var(--gray, #6B7280);
  font-size: 12px;
  font-weight: 400;
}
.dropdown-menu li a:hover {
  background: var(--cream, #F7F3EC);
}
.dropdown-menu li a:hover strong {
  color: #FF8C00;
}
.dropdown-divider {
  height: 1px;
  background: var(--gray-light, #E5E7EB);
  margin: 6px 0;
}
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 8px 16px;
    min-width: 0;
  }
  .dropdown-menu li a {
    padding: 8px 12px;
    font-size: 13px;
  }
}



/* ===== merged block ===== */

    /* iOS Safari auto-zooms inputs whose font-size < 16px on focus.
       Force >=16px on mobile to prevent it. */
    @media (max-width: 768px) {
      input, textarea, select, .chat-input { font-size: 16px !important; }

      /* Apple HIG / WCAG 2.5.5: minimum tap target 44x44 */
      .btn-primary, .btn-secondary,
      .mobile-menu a, .nav-links a,
      .hamburger, button,
      .qr-btn, .chat-send {
        min-height: 44px;
        min-width: 44px;
      }

      /* Prevent overly small badges/labels on mobile */
      [style*="font-size:0.6rem"],
      [style*="font-size:0.65rem"],
      [style*="font-size:0.7rem"],
      [style*="font-size: 0.6rem"],
      [style*="font-size: 0.65rem"],
      [style*="font-size: 0.7rem"] {
        font-size: 12px !important;
      }
      [style*="font-size:0.72rem"],
      [style*="font-size:0.75rem"],
      [style*="font-size:0.78rem"],
      [style*="font-size: 0.72rem"],
      [style*="font-size: 0.75rem"],
      [style*="font-size: 0.78rem"] {
        font-size: 13px !important;
      }
    }

    /* Reduce motion respect */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    }

    /* ===== TOOLS SECTION → MOBILE CAROUSEL ===== */
    @media (max-width: 768px) {
      #tools-carousel {
        display: flex !important;
        grid-template-columns: none !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 12px !important;
        padding: 4px 5% 16px;
        margin: 0 -5%;
      }
      #tools-carousel::-webkit-scrollbar { display: none; }
      #tools-carousel > a {
        flex: 0 0 82%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        min-width: 0;
      }
      #tools-dots {
        display: flex !important;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
      }
      #tools-dots span {
        width: 8px; height: 8px;
        border-radius: 50%;
        background: rgba(11,29,58,0.2);
        transition: background 0.2s ease, transform 0.2s ease;
        cursor: pointer;
        display: inline-block;
      }
      #tools-dots span.active {
        background: var(--gold, #C9A84C);
        transform: scale(1.35);
      }
    }
    @media (min-width: 769px) {
      #tools-dots { display: none !important; }
    }
  