     :root {
            --qehbs-yellow: #FFB800;
            --qehbs-teal: #134e4a;
            --qehbs-orange: #f97316;
            --pastel-blue: #eff6ff;
            --pastel-green: #f0fdf4;
            --pastel-purple: #faf5ff;
        }

        .serif { font-family: 'Playfair Display', serif; }
        .font-optima {
            font-family: 'Optima', 'Candara', 'Segoe UI', 'Source Sans Pro', sans-serif;
            letter-spacing: 0.02em;
        }
        
        .warm-yellow { background-color: var(--qehbs-yellow); }
        .moon-white { background-color: #F5F5F7; }
        .text-qehbs-teal { color: var(--qehbs-teal); }
        .bg-qehbs-teal { background-color: var(--qehbs-teal); }
        .bg-qehbs-yellow { background-color: var(--qehbs-yellow); }
        
        /* Utility */
        .hide-scrollbar::-webkit-scrollbar { display: none; }
        .hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
         
/* Keep default body neutral for index.html */
body {
  margin: 0;
  font-family: Optima, "Optima Nova", Candara, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.58;
  overflow-x: hidden;
}

/* Warm Yellow Theme for Inner Course & Legal Pages */
.page-theme-yellow {
  background: 
    radial-gradient(circle at top left, #ffe066 0%, transparent 40%),
    radial-gradient(circle at bottom right, #ffd43b 0%, transparent 45%),
    linear-gradient(180deg, #ffc107 0%, #ffb800 40%, #ffa000 100%);
  background-attachment: fixed;
}

        /* Mobile (Vertical Flow with natural heights) */
        @media (max-width: 767px) {
            .horizontal-snap {
                display: block;
                width: 100%;
            }
            .horizontal-snap > section {
                width: 100%;
                min-height: 100svh;
                height: auto;
                scroll-margin-top: 80px; 
                display: flex;
                flex-direction: column;
            }
            .reveal-stage {
                height: 40svh !important; 
            }
        }

 
/* Desktop / Tablet (Horizontal Snap Layout - Homepage Only) */
@media (min-width: 768px) {
  /* Only lock body overflow when the horizontal snap container is present on the page */
  body:has(.horizontal-snap) { 
    overflow: hidden; 
  }
  
  .horizontal-snap {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    height: 100vh;
    width: 100vw;
  }
  .horizontal-snap > section {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
  }
  .horizontal-snap::-webkit-scrollbar { display: none; }
  .horizontal-snap { -ms-overflow-style: none; scrollbar-width: none; }
}

        /* Splash Screen */
        #loading-screen {
            position: fixed;
            inset: 0;
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--qehbs-yellow);
            transition: opacity 0.8s ease-out, visibility 0.8s;
        }

        .mobile-menu { transition: transform 0.3s ease-in-out; }

        /* Sequential Reveal Core */
        .reveal-stage {
            position: relative;
            width: 100%;
            height: 80vh;
            overflow: hidden;
            background: #fff;
        }

        .layer {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
        }

        /* Image Slices – seamless version */
        .v-slice {
            flex: 1 1 0;
            min-width: 0;
            height: 100%;
            margin: 0;
            background-image: url('img/QE_fp.webp'); /* UPDATED TO IMG FOLDER */
            background-size: 300% 100%;
            background-repeat: no-repeat;
            transform: translateY(101%) translateZ(0);
            transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
            backface-visibility: hidden;
            will-change: transform;
        }

        .v-slice:nth-child(1) { background-position: 0% 0; transition-delay: 0.1s; }
        .v-slice:nth-child(2) { background-position: 50% 0; transition-delay: 0.2s; }
        .v-slice:nth-child(3) { background-position: 100% 0; transition-delay: 0.3s; }

        .h-slice {
            flex: 1 1 0;
            min-height: 0;
            width: 100%;
            margin: 0;
            background-image: url('img/HBS_fp.webp'); /* UPDATED TO IMG FOLDER */
            background-size: 100% 300%;
            background-repeat: no-repeat;
            transform: translateX(101%) translateZ(0);
            transition: transform 1.4s cubic-bezier(0.19, 1, 0.22, 1);
            backface-visibility: hidden;
            will-change: transform;
        }

        .h-slice:nth-child(1) { background-position: 0 0%; transition-delay: 1.5s; }
        .h-slice:nth-child(2) { background-position: 0 50%; transition-delay: 1.6s; }
        .h-slice:nth-child(3) { background-position: 0 100%; transition-delay: 1.7s; }

        .img-3-final {
            z-index: 30;
            opacity: 0;
            transform: scale(1.05);
            transition: all 1.8s cubic-bezier(0.19, 1, 0.22, 1);
            transition-delay: 3s;
            background-color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .img-3-final img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }

        .loaded .v-slice { transform: translateY(0); }
        .loaded .h-slice { transform: translateX(0); }
        .loaded .img-3-final { opacity: 1; transform: scale(1); }

        /* Component Styling */
        .step-badge {
            display: inline-block;
            background: rgba(0, 128, 128, 0.1);
            color: #008080;
            padding: 4px 12px;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 800;
            letter-spacing: 0.1em;
            margin-bottom: 1.5rem;
        }
        
        .step-card {
            background: white;
            padding: 3rem;
            border-radius: 1rem;
            box-shadow: 0 4px 20px rgba(0,0,0,0.03);
            transition: transform 0.3s ease;
        }
        
        .achievement-card {
            background: var(--qehbs-yellow);
            border-radius: 1rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            transition: transform 0.3s ease;
            width: 100%;
            border: 1px solid rgba(255,255,255,0.2);
        }
   
        .course-card { transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

        /* --- THE FIX: Isolate hover states to mouse-only devices so mobile taps do not glitch --- */
        @media (hover: hover) and (pointer: fine) {
            .course-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
            .voices-item img, .voices-item video { transition: transform 0.5s ease; filter: grayscale(20%); }
            .voices-item:hover img, .voices-item:hover video { transform: scale(1.05); filter: grayscale(0%); }
            .group:hover .group-hover\:translate-x-2 { transform: translateX(0.5rem); }
        }
    </style>  padding: 100px 18px 44px;
}

/* Master Menu Colors */
.warm-yellow { background-color: var(--qehbs-yellow); }
.mobile-menu { transition: transform 0.3s ease-in-out; }

.topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  color: var(--gold-dark);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}

/* Hero Section Styling */
.hero {
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,243,169,0.88));
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 36px;
  box-shadow: 0 22px 50px rgba(116, 88, 10, 0.12);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 229, 109, 0.38);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

h1, h2, h3 { font-family: Optima, "Optima Nova", Candara, "Segoe UI", sans-serif; }

h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  margin: 0 0 18px;
  letter-spacing: -0.045em;
  max-width: 820px;
  position: relative;
  z-index: 1;
}

h2 {
  font-size: 28px;
  line-height: 1.16;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--gold-dark);
}

p { margin: 0 0 12px; }

.subhero {
  font-size: 19px;
  max-width: 780px;
  color: var(--muted);
  margin: 0 0 24px;
  position: relative;
  z-index: 1;
}

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; position: relative; z-index: 1; }

.badge {
  background: rgba(255,255,255,0.84);
  border: 1px solid #ead58a;
  color: #4d3b0e;
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 700;
  font-size: 13px;
}

/* Grid & Cards System */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: 18px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 14px 34px rgba(96,73,13,0.08);
}

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* Pastel Card Themes */
.soft-yellow { background: rgba(255, 249, 211, 0.95); }
.soft-blue   { background: rgba(239, 247, 255, 0.92); }
.soft-sage   { background: rgba(242, 249, 236, 0.92); }
.soft-rose   { background: rgba(255, 244, 237, 0.92); }

.lead { font-size: 18px; color: var(--muted); }

.feature-list { list-style: none; padding: 0; margin: 14px 0 0; }

.feature-list li {
  padding: 10px 0 10px 30px;
  border-top: 1px solid rgba(232,211,139,0.65);
  position: relative;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 900;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

.compare-box {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  border-radius: 18px;
  padding: 17px;
}

.compare-box strong { display: block; margin-bottom: 6px; color: var(--gold-dark); font-size: 17px; }

.mock-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.pill {
  background: #fff6cb;
  border: 1px solid #ead58a;
  border-radius: 16px;
  padding: 12px 10px;
  text-align: center;
  font-weight: 800;
  color: #4f3d0e;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.number-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.number-card.four-col {
  grid-template-columns: repeat(4, 1fr);
}

.number {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 17px 14px;
  text-align: center;
}

.number b { font-size: 27px; display: block; color: var(--gold-dark); margin-bottom: 5px; }

.number b.fee-amount {
  font-size: 36px;
}

.note {
  font-size: 13px;
  color: #6a6049;
  background: rgba(255,255,255,0.7);
  border-left: 4px solid #e2bd3f;
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 12px;
}

/* Primary Call To Action (CTA) Button & Box */
.cta {
  background: linear-gradient(135deg, #3b2d0d, #795b0d);
  color: #fff7d8;
  border-radius: 26px;
  padding: 28px;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  align-items: center;
}

.cta h2 { 
  color: #fff7d8; 
  margin-bottom: 6px; 
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
}

.cta p { color: #fff1bd; margin-bottom: 0; }

.button {
  display: inline-block;
  background: #ffdd5b;
  color: #2c240d;
  text-decoration: none;
  font-weight: 900;
  padding: 14px 20px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid #f7cc39;
  transition: all 0.2s ease;
}

.button:hover,
.button:focus-visible {
  background: #ffe779;
  outline: 3px solid rgba(255,255,255,0.55);
  outline-offset: 3px;
}

.footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 24px; }

/* Responsive Media Queries */
@media (max-width: 900px) {
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .compare, .number-card, .number-card.four-col { grid-template-columns: 1fr; }
  .mock-strip { grid-template-columns: repeat(2, 1fr); }
  .cta { flex-direction: column; align-items: flex-start; }
  .hero { padding: 26px; }
  .topline { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 480px) {
  .mock-strip { grid-template-columns: 1fr; }
  .pill { min-height: auto; padding: 10px; }
  .topline { font-size: 11px; }
}
/* Warm Yellow Background Container for Inner Pages */
.wrap-warm-yellow {
  background: 
    radial-gradient(circle at top left, #ffe066 0%, transparent 40%),
    radial-gradient(circle at bottom right, #ffd43b 0%, transparent 45%),
    linear-gradient(180deg, #ffc107 0%, #ffb800 40%, #ffa000 100%);
  border-radius: 32px;
  padding: 100px 24px 44px;
  margin-top: 20px;
  box-shadow: 0 20px 50px rgba(116, 88, 10, 0.15);
}
