/* =========================================================
   Public website — homepage, courses, course detail, about,
   how-it-works, reviews, gallery, FAQ, contact, legal, auth
   and error pages.

   Design language follows the homepage hero: royal blue
   gradient + warm yellow accent, Plus Jakarta Sans (with
   Noto Sans Sinhala for Sinhala text), soft light-blue
   section backgrounds and rounded, friendly cards.

   NOTE: the "Hero" block further down is kept exactly as it
   was (together with assets/css/hero-custom.css) — edit it
   with care, the homepage hero depends on it.
   ========================================================= */
:root {
  /* original tokens (still used by the hero block) */
  --ink:        #0F172A;
  --navy:       #0B22A6;
  --navy-2:     #1852D4;
  --gold:       #F5A623;
  --gold-2:     #FFC85A;
  --paper:      #F4F7FF;
  --paper-line: #E2E8F6;
  --ink-soft:   #5B6478;

  /* site-wide tokens */
  --blue:        #0B22A6;
  --blue-deep:   #091A7A;
  --blue-mid:    #1852D4;
  --blue-bright: #004FE8;
  --blue-grad:   linear-gradient(135deg, #091a7a 0%, #0d28b8 50%, #004fe8 100%);
  --yellow:      #F5A623;
  --yellow-dark: #E09419;
  --sky:         #F4F7FF;
  --sky-2:       #E8EEFF;
  --line:        #E2E8F6;
  --green:       #16A34A;
  --radius:      16px;
  --shadow-sm:   0 2px 10px rgba(11, 34, 166, .06);
  --shadow:      0 14px 34px rgba(11, 34, 166, .10);
  --shadow-lg:   0 24px 50px rgba(11, 34, 166, .16);
}

body.homepage {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Sinhala', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  overflow-x: clip; /* clip (not hidden) so position:sticky keeps working */
  -webkit-font-smoothing: antialiased;
}
body.homepage h1, body.homepage h2, body.homepage h3, body.homepage h4 {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Sinhala', system-ui, sans-serif;
  letter-spacing: -0.015em;
}
/* The hero headline keeps its original display face. */
body.homepage .hp-hero-title { font-family: 'Fraunces', Georgia, serif; letter-spacing: -0.01em; }
body.homepage a { text-decoration: none; }
body.homepage :focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
html { scroll-behavior: smooth; overflow-x: clip; }
#about, #testimonials, #hpStats, #faq, [id^="faq-"] { scroll-margin-top: 90px; }
.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 2000; background: var(--yellow); color: #111; padding: .6rem 1rem; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 10px; }

@media (prefers-reduced-motion: reduce) {
  body.homepage * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Navbar ---------- */
.hp-navbar { position: fixed; top: 0; width: 100%; z-index: 1030; transition: background-color .35s ease, box-shadow .35s ease, padding .35s ease; padding: 18px 0; }
.hp-navbar.transparent { background: linear-gradient(to bottom, rgba(9,26,122,.55), rgba(9,26,122,0)); }
.hp-navbar.scrolled { background: #fff; box-shadow: 0 2px 20px rgba(11,34,166,.08); padding: 10px 0; }
.hp-navbar .navbar-brand { font-weight: 800; font-size: 1.15rem; color: #fff; display: flex; align-items: center; gap: .55rem; letter-spacing: -.01em; }
.hp-navbar .navbar-brand img { height: 38px; width: auto; }
.hp-navbar .navbar-brand .seal { width: 32px; height: 32px; border-radius: 10px; background: var(--yellow); color: var(--blue-deep); display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; flex-shrink: 0; }
.hp-navbar.scrolled .navbar-brand { color: var(--blue); }
.hp-navbar .nav-link { color: rgba(255,255,255,.88) !important; font-weight: 600; font-size: .92rem; padding: .5rem .85rem !important; border-radius: 8px; }
.hp-navbar.scrolled .nav-link { color: var(--ink-soft) !important; }
.hp-navbar .nav-link.active, .hp-navbar .nav-link:hover { color: #fff !important; background: rgba(255,255,255,.1); }
.hp-navbar.scrolled .nav-link.active, .hp-navbar.scrolled .nav-link:hover { color: var(--blue) !important; background: var(--sky); }
.hp-navbar .btn-login { color: #fff; font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: .4rem; }
.hp-navbar.scrolled .btn-login { color: var(--blue); }
.hp-navbar .btn-hero { background: var(--yellow); color: #1a1a1a; border-radius: 10px; padding: .55rem 1.25rem; font-weight: 700; font-size: .88rem; transition: background .2s, transform .2s; border: none; }
.hp-navbar .btn-hero:hover { background: var(--yellow-dark); color: #000; transform: translateY(-1px); }
.hp-navbar .navbar-toggler { border: 1px solid rgba(255,255,255,.35); padding: .35rem .6rem; }
.hp-navbar .navbar-toggler-icon { filter: invert(1); }
.hp-navbar.scrolled .navbar-toggler { border-color: rgba(11,34,166,.25); }
.hp-navbar.scrolled .navbar-toggler-icon { filter: none; }

@media (max-width: 991.98px) {
  .hp-navbar .navbar-collapse { background: #fff; border-radius: 16px; padding: 1rem 1.1rem 1.2rem; margin-top: 12px; box-shadow: 0 20px 40px rgba(9,26,122,.3); }
  .hp-navbar .navbar-nav { margin-bottom: .4rem; }
  .hp-navbar .nav-link, .hp-navbar.scrolled .nav-link { color: var(--ink) !important; padding: .7rem .8rem !important; }
  .hp-navbar .nav-link.active, .hp-navbar .nav-link:hover { color: var(--blue) !important; background: var(--sky); }
  .hp-navbar .btn-login { color: var(--blue); padding: .55rem .8rem; }
  .hp-navbar .hp-nav-actions { border-top: 1px solid var(--line); padding-top: .9rem; }
  .hp-navbar .hp-nav-actions .btn-hero { flex: 1; text-align: center; padding: .75rem 1rem; }
}

/* ---------- Hero ---------- */
.hp-hero { position: relative; display: flex; align-items: center; min-height: 94vh; }
.hp-hero .carousel, .hp-hero .carousel-inner, .hp-hero .carousel-item { position: absolute; inset: 0; height: 100%; }
.hp-hero .carousel-item img { width: 100%; height: 100%; object-fit: cover; animation: hp-kenburns 16s ease-in-out infinite alternate; }
@keyframes hp-kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
.hp-hero .carousel-item::after,
.hp-hero-fallback::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,24,54,.92) 0%, rgba(14,24,54,.78) 38%, rgba(14,24,54,.42) 70%, rgba(14,24,54,.2) 100%);
}
.hp-hero-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  overflow: hidden;
}
.hp-hero-fallback .texture {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(199,154,75,.14), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255,255,255,.06), transparent 45%);
}
.hp-hero-inner { position: relative; z-index: 2; padding-top: 7rem; padding-bottom: 3rem; width: 100%; }
.hp-hero-copy { color: #fff; max-width: 620px; }
.hp-hero-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px; padding: .4rem .9rem .4rem .6rem; font-size: .82rem; font-weight: 500;
  margin-bottom: 1.6rem; color: rgba(255,255,255,.92);
}
.hp-hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); }
.hp-hero-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 600; line-height: 1.12; margin-bottom: 1.2rem; }
.hp-hero-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255,255,255,.82); line-height: 1.6; margin-bottom: 2rem; max-width: 520px; }
.hp-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hp-btn-primary { background: var(--gold); color: var(--navy); border: none; border-radius: 10px; padding: .85rem 1.7rem; font-weight: 700; font-size: .95rem; transition: background .2s, transform .2s; display: inline-flex; align-items: center; gap: .5rem; }
.hp-btn-primary:hover { background: var(--gold-2); transform: translateY(-2px); color: var(--navy); }
.hp-btn-outline { border: 1.5px solid rgba(255,255,255,.4); color: #fff; border-radius: 10px; padding: .83rem 1.7rem; font-weight: 600; font-size: .95rem; transition: background .2s, border-color .2s; }
.hp-btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); color: #fff; }
.hp-trust-row { display: flex; align-items: center; gap: .9rem; color: rgba(255,255,255,.65); font-size: .86rem; }
.hp-trust-row .stack { display: flex; }
.hp-trust-row .stack span { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-2); border: 2px solid rgba(255,255,255,.5); margin-left: -10px; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; color: #fff; }
.hp-trust-row .stack span:first-child { margin-left: 0; }

.hp-hero .carousel-indicators { z-index: 3; bottom: 28px; }
.hp-hero .carousel-indicators button { width: 8px !important; height: 8px !important; border-radius: 50%; opacity: .5; }
.hp-hero .carousel-indicators button.active { opacity: 1; background: var(--gold); }
.hp-hero .carousel-control-prev, .hp-hero .carousel-control-next { z-index: 3; width: 5%; opacity: .6; }

/* Hero load-in — one orchestrated sequence, opacity only (no transform on
   this large text block: translateY + opacity together on big serif
   headlines causes blurry mid-transition text in Chrome/Edge). */
.hp-reveal-seq > * { opacity: 0; animation: hp-fade-in .7s ease forwards; }
.hp-reveal-seq > *:nth-child(1) { animation-delay: .1s; }
.hp-reveal-seq > *:nth-child(2) { animation-delay: .25s; }
.hp-reveal-seq > *:nth-child(3) { animation-delay: .4s; }
.hp-reveal-seq > *:nth-child(4) { animation-delay: .55s; }
.hp-reveal-seq > *:nth-child(5) { animation-delay: .7s; }
@keyframes hp-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* original mobile hero adjustments (kept) */
@media (max-width: 767.98px) {
  .hp-hero { min-height: auto; padding-bottom: 2rem; }
  .hp-hero-inner { padding-top: 6.5rem; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.25,.46,.45,.94), transform .7s cubic-bezier(.25,.46,.45,.94); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-32px); transition: all .8s cubic-bezier(.25,.46,.45,.94); }
.reveal-left.in { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(32px); transition: all .8s cubic-bezier(.25,.46,.45,.94); }
.reveal-right.in { opacity: 1; transform: translateX(0); }
.no-js .reveal, .no-js .reveal-left, .no-js .reveal-right { opacity: 1; transform: none; }

/* ---------- Section shells ---------- */
.hp-section { padding: 5.5rem 0; background: #fff; position: relative; }
.hp-section-soft { background: var(--sky); }
.hp-section-tight { padding: 4rem 0; }
.hp-section-paper { background: var(--sky); } /* legacy alias */
.hp-eyebrow { display: inline-flex; align-items: center; gap: .45rem; background: #FFF4DE; color: #A36200; font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; padding: .38rem .8rem; border-radius: 100px; margin-bottom: 1rem; }
.hp-eyebrow.on-dark { background: rgba(255,255,255,.12); color: var(--gold-2); }
.hp-heading { font-weight: 800; font-size: clamp(1.65rem, 3vw, 2.35rem); color: var(--ink); margin-bottom: .7rem; line-height: 1.2; }
.hp-heading .hl { color: var(--blue); position: relative; white-space: nowrap; }
.hp-heading .hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 6px; border-radius: 6px; background: var(--yellow); opacity: .55; z-index: -1; }
.hp-section-sub { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.65; max-width: 56ch; }
.hp-section-head { margin-bottom: 3rem; }
.hp-section-head.center { text-align: center; }
.hp-section-head.center .hp-section-sub { margin-left: auto; margin-right: auto; }
.hp-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hp-head-row .hp-section-head { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.hp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 12px; padding: .8rem 1.5rem; font-weight: 700; font-size: .95rem; border: 2px solid transparent; transition: background .2s, color .2s, transform .2s, box-shadow .2s, border-color .2s; cursor: pointer; line-height: 1.2; }
.hp-btn:hover { transform: translateY(-2px); }
.hp-btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(11,34,166,.25); }
.hp-btn-blue:hover { background: var(--blue-deep); color: #fff; }
.hp-btn-yellow-solid { background: var(--yellow); color: #1a1a1a; }
.hp-btn-yellow-solid:hover { background: var(--yellow-dark); color: #000; }
.hp-btn-line { background: #fff; color: var(--blue); border-color: var(--line); }
.hp-btn-line:hover { border-color: var(--blue); color: var(--blue); }
.hp-btn-white-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.hp-btn-white-line:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.hp-btn-wa { background: #25D366; color: #fff; }
.hp-btn-wa:hover { background: #1EBE5A; color: #fff; }
.hp-btn-block { width: 100%; }
.hp-link-arrow { color: var(--blue); font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; }
.hp-link-arrow i { transition: transform .2s; }
.hp-link-arrow:hover { color: var(--blue-deep); }
.hp-link-arrow:hover i { transform: translateX(4px); }

/* ---------- Stats strip ---------- */
.hp-stats { background: #fff; padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
.hp-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.hp-stat { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--sky); }
.hp-stat .ico { width: 54px; height: 54px; border-radius: 14px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.45rem; flex-shrink: 0; }
.hp-stat:nth-child(2) .ico { background: var(--yellow); color: #1a1a1a; }
.hp-stat:nth-child(3) .ico { background: var(--blue-mid); }
.hp-stat .num { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1; color: var(--ink); }
.hp-stat .lbl { color: var(--ink-soft); font-size: .88rem; margin-top: .3rem; }
/* legacy ledger markup */
.hp-ledger-number { font-weight: 800; }

/* ---------- Feature cards ---------- */
.hp-feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem; height: 100%; transition: transform .25s, box-shadow .25s, border-color .25s; }
.hp-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.hp-feature .ico { width: 50px; height: 50px; border-radius: 14px; background: var(--sky-2); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: 1.1rem; }
.hp-feature h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: .45rem; color: var(--ink); }
.hp-feature p { color: var(--ink-soft); font-size: .92rem; line-height: 1.6; margin: 0; }

/* ---------- Steps ---------- */
.hp-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; }
.hp-steps-grid::before { content: ''; position: absolute; top: 34px; left: 16%; right: 16%; border-top: 2px dashed #C8D3F2; z-index: 0; }
.hp-step-card { position: relative; z-index: 1; text-align: center; padding: 0 .75rem; }
.hp-step-card .num { width: 68px; height: 68px; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--blue-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 10px 24px rgba(11,34,166,.25); position: relative; border: 5px solid #fff; }
.hp-step-card .num small { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: #1a1a1a; font-size: .78rem; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.hp-step-card h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: .4rem; }
.hp-step-card p { color: var(--ink-soft); font-size: .92rem; line-height: 1.6; max-width: 30ch; margin: 0 auto; }
@media (max-width: 767.98px) {
  .hp-steps-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .hp-steps-grid::before { top: 30px; bottom: 30px; left: 33px; right: auto; border-top: none; border-left: 2px dashed #C8D3F2; }
  .hp-step-card { text-align: left; display: grid; grid-template-columns: 68px 1fr; gap: 0 1rem; align-items: start; padding: 0; }
  .hp-step-card .num { margin: 0; grid-row: span 2; }
  .hp-step-card p { margin: 0; max-width: none; }
  .hp-step-card h3 { margin-top: .9rem; }
}

/* ---------- Course cards ---------- */
.hp-course-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; height: 100%; color: inherit; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.hp-course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.hp-course-card .thumb { aspect-ratio: 16/9; background: var(--blue-grad); position: relative; overflow: hidden; }
.hp-course-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.hp-course-card:hover .thumb img { transform: scale(1.05); }
.hp-course-card .thumb-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; color: rgba(255,255,255,.85); font-weight: 700; font-size: .9rem; }
.hp-course-card .thumb-ph i { font-size: 2.4rem; color: var(--yellow); }
.hp-course-card .thumb-badge { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.95); color: var(--blue); font-weight: 700; font-size: .74rem; border-radius: 100px; padding: .3rem .7rem; display: inline-flex; align-items: center; gap: .3rem; }
.hp-course-card .body { padding: 1.25rem 1.35rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.hp-course-card h3 { font-weight: 800; font-size: 1.08rem; color: var(--ink); margin-bottom: .45rem; line-height: 1.35; }
.hp-course-card p { color: var(--ink-soft); font-size: .9rem; line-height: 1.55; margin-bottom: 1rem; }
.hp-course-meta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hp-course-meta span { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--ink-soft); font-weight: 600; }
.hp-course-meta i { color: var(--blue); }
.hp-course-card .foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.hp-course-card .foot .go { color: var(--blue); font-weight: 700; font-size: .88rem; display: inline-flex; align-items: center; gap: .3rem; }
.hp-course-card:hover .foot .go i { transform: translateX(3px); }
.hp-course-card .foot .go i { transition: transform .2s; }
.hp-course-card .thumb-cta { display: none; } /* legacy */

/* ---------- Teacher ---------- */
.hp-teacher-visual { position: relative; max-width: 440px; margin: 0 auto; padding: 0 0 18px; }
.hp-teacher-visual .circle { position: absolute; inset: 8% 6% 6% 6%; border-radius: 50%; background: var(--blue-grad); z-index: 0; }
.hp-teacher-visual .arc { position: absolute; left: 4%; right: 4%; bottom: 6px; height: 22px; border-bottom: 4px solid var(--yellow); border-radius: 50%; z-index: 2; }
.hp-teacher-visual img, .hp-teacher-visual .ph { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 28px 28px 28px 80px; box-shadow: var(--shadow-lg); display: block; }
.hp-teacher-visual .ph { background: var(--blue-grad); color: rgba(255,255,255,.5); font-size: 5rem; display: flex; align-items: center; justify-content: center; }
.hp-teacher-visual .float-badge { position: absolute; z-index: 3; right: -6px; top: 12%; background: #fff; border-radius: 14px; padding: .7rem .95rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .6rem; font-size: .82rem; font-weight: 700; color: var(--ink); }
.hp-teacher-visual .float-badge i { width: 34px; height: 34px; border-radius: 10px; background: var(--yellow); color: #1a1a1a; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.hp-teacher-visual .float-badge small { display: block; color: var(--ink-soft); font-weight: 500; font-size: .74rem; }
.hp-teacher-name { font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 800; color: var(--ink); margin-bottom: .35rem; }
.hp-teacher-title { color: var(--blue); font-weight: 700; font-size: .95rem; margin-bottom: 1.2rem; display: inline-flex; align-items: center; gap: .4rem; }
.hp-teacher-bio { color: var(--ink-soft); line-height: 1.8; white-space: pre-line; font-size: 1rem; }
.hp-teacher-bio.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.hp-checks { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .6rem; }
.hp-checks li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink); font-weight: 600; font-size: .95rem; }
.hp-checks li i { color: var(--green); font-size: 1.1rem; line-height: 1.3; }
.hp-watch-btn { background: var(--sky-2); color: var(--blue); border: none; border-radius: 12px; padding: .8rem 1.3rem; font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; gap: .55rem; transition: background .2s; }
.hp-watch-btn i { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
.hp-watch-btn:hover { background: #DCE5FF; }

/* ---------- Testimonials ---------- */
.hp-review-card { background: #fff; border-radius: var(--radius); padding: 1.6rem 1.5rem 1.4rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); height: 100%; display: flex; flex-direction: column; position: relative; }
.hp-review-card .q { position: absolute; right: 1.2rem; top: .6rem; font-size: 3.2rem; color: var(--sky-2); line-height: 1; font-family: Georgia, serif; }
.hp-review-card .stars { color: var(--yellow); font-size: .95rem; letter-spacing: 2px; margin-bottom: .8rem; }
.hp-review-card .stars .off { color: #D7DDEA; }
.hp-review-card .msg { color: var(--ink); line-height: 1.7; font-size: .95rem; flex: 1; margin-bottom: 1.2rem; }
.hp-review-card .author { display: flex; align-items: center; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.hp-review-card .author img, .hp-review-card .author .ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.hp-review-card .author-name { font-weight: 800; font-size: .92rem; color: var(--ink); }
.hp-review-card .author-title { font-size: .8rem; color: var(--blue); font-weight: 600; }
.hp-scroll-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3rem) / 3); gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .25rem 1.5rem; scrollbar-width: thin; }
.hp-scroll-row > * { scroll-snap-align: start; }
@media (max-width: 991.98px) { .hp-scroll-row { grid-auto-columns: calc((100% - 1.5rem) / 2); } }
@media (max-width: 575.98px) { .hp-scroll-row { grid-auto-columns: 86%; gap: 1rem; } }
.hp-scroll-nav { display: flex; gap: .5rem; }
.hp-scroll-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--blue); font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s, border-color .2s; }
.hp-scroll-nav button:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Gallery ---------- */
.hp-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 210px; gap: 12px; grid-auto-flow: dense; }
.hp-gallery-grid .g-item { position: relative; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--sky-2); border: 0; padding: 0; }
.hp-gallery-grid .g-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.hp-gallery-grid .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.hp-gallery-grid .g-item:hover img { transform: scale(1.06); }
.hp-gallery-grid .g-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .7rem .9rem; color: #fff; font-size: .82rem; font-weight: 600; background: linear-gradient(to top, rgba(9,26,122,.8), transparent); opacity: 0; transition: opacity .25s; text-align: left; }
.hp-gallery-grid .g-item:hover .cap, .hp-gallery-grid .g-item:focus-visible .cap { opacity: 1; }
@media (max-width: 767.98px) {
  .hp-gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 8px; }
  .hp-gallery-grid .g-item:nth-child(6n+1) { grid-column: span 1; grid-row: span 1; }
  .hp-gallery-grid .g-item .cap { opacity: 1; font-size: .74rem; }
}
.hp-lightbox .modal-content { background: transparent; border: 0; }
.hp-lightbox img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: 12px; }
.hp-lightbox .lb-cap { color: #fff; text-align: center; margin-top: .8rem; font-weight: 600; }
.hp-lightbox .lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--blue); font-size: 1.3rem; display: flex; align-items: center; justify-content: center; z-index: 5; }
.hp-lightbox .lb-prev { left: -8px; } .hp-lightbox .lb-next { right: -8px; }
.hp-lightbox .lb-close { position: absolute; top: -48px; right: 0; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; }
/* legacy marquee */
.hp-gallery-wrap { display: none; }

/* ---------- FAQ ---------- */
.hp-faq .accordion-item { background: #fff; border: 1px solid var(--line); border-radius: 14px !important; margin-bottom: .75rem; overflow: hidden; }
.hp-faq .accordion-button { background: #fff; color: var(--ink); font-weight: 700; font-size: 1rem; padding: 1.1rem 1.25rem; box-shadow: none !important; gap: 1rem; }
.hp-faq .accordion-button:not(.collapsed) { color: var(--blue); background: #fff; }
.hp-faq .accordion-button::after { background-image: none; content: '\F64D'; font-family: 'bootstrap-icons'; font-size: 1rem; width: 30px; height: 30px; border-radius: 50%; background: var(--sky-2); color: var(--blue); display: flex; align-items: center; justify-content: center; transform: none; flex-shrink: 0; }
.hp-faq .accordion-button:not(.collapsed)::after { content: '\F63B'; background: var(--blue); color: #fff; transform: none; }
.hp-faq .accordion-body { padding: 0 1.25rem 1.2rem; color: var(--ink-soft); font-size: .95rem; line-height: 1.7; }
.hp-help-card { background: var(--blue-grad); color: #fff; border-radius: 20px; padding: 2rem 1.8rem; position: relative; overflow: hidden; }
.hp-help-card::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.07); right: -50px; bottom: -60px; }
.hp-help-card h3 { font-weight: 800; font-size: 1.25rem; margin-bottom: .5rem; }
.hp-help-card p { color: rgba(255,255,255,.8); font-size: .94rem; margin-bottom: 1.3rem; }
.hp-help-card .hp-btn { position: relative; z-index: 1; }
.hp-faq-search { position: relative; max-width: 520px; margin: 0 auto 2.5rem; }
.hp-faq-search input { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: .95rem 1rem .95rem 3rem; font-size: 1rem; background: #fff; }
.hp-faq-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11,34,166,.1); }
.hp-faq-search i { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
.hp-faq-group-title { font-weight: 800; font-size: 1.1rem; margin: 2rem 0 1rem; display: flex; align-items: center; gap: .5rem; }
.hp-faq-group-title i { color: var(--blue); }

/* ---------- Floating WhatsApp bubble ---------- */
.hp-whatsapp-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 1040; height: 56px; min-width: 56px; border-radius: 100px;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: 1.5rem;
  box-shadow: 0 10px 26px rgba(37,211,102,.4); transition: transform .2s ease; padding: 0 1rem;
}
.hp-whatsapp-fab span { font-size: .9rem; font-weight: 700; }
.hp-whatsapp-fab:hover { transform: scale(1.05); color: #fff; }
@media (max-width: 767.98px) { .hp-whatsapp-fab { bottom: 84px; height: 52px; min-width: 52px; padding: 0; font-size: 1.35rem; } .hp-whatsapp-fab span { display: none; } }

/* ---------- Sticky mobile CTA bar ---------- */
.hp-mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; background: var(--blue-deep);
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  box-shadow: 0 -8px 24px rgba(0,0,0,.18);
  transform: translateY(100%); transition: transform .3s ease;
}
.hp-mobile-cta.is-visible { transform: translateY(0); }
.hp-mobile-cta span { color: #fff; font-size: .85rem; font-weight: 600; }
.hp-mobile-cta a { background: var(--yellow); color: #1a1a1a; border-radius: 10px; padding: .6rem 1.1rem; font-weight: 700; font-size: .88rem; white-space: nowrap; }
@media (min-width: 768px) { .hp-mobile-cta { display: none; } }

/* ---------- CTA band ---------- */
.hp-cta-wrap { padding: 0 0 5rem; background: #fff; }
.hp-cta-wrap.soft-top { background: linear-gradient(to bottom, var(--sky) 50%, #fff 50%); }
.hp-cta-box { background: var(--blue-grad); color: #fff; border-radius: 26px; padding: 3.2rem 2.5rem; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.hp-cta-box::before { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.06); right: -80px; top: -120px; }
.hp-cta-box::after { content: 'A+'; position: absolute; right: 30%; bottom: -18px; font-size: 6rem; font-weight: 800; color: rgba(255,255,255,.06); }
.hp-cta-box h2 { font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .5rem; }
.hp-cta-box p { color: rgba(255,255,255,.8); margin: 0; max-width: 52ch; }
.hp-cta-box .actions { display: flex; gap: .8rem; flex-wrap: wrap; position: relative; z-index: 1; }
@media (max-width: 767.98px) { .hp-cta-box { padding: 2.2rem 1.5rem; border-radius: 20px; } .hp-cta-box .actions { width: 100%; flex-direction: column; } .hp-cta-box .actions .hp-btn { width: 100%; } }

/* ---------- Footer ---------- */
.hp-footer { background: #06114F; color: rgba(255,255,255,.72); padding: 4rem 0 1.5rem; font-size: .93rem; }
.hp-footer .brand { font-weight: 800; font-size: 1.2rem; color: #fff; display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; }
.hp-footer .brand .seal { width: 32px; height: 32px; border-radius: 10px; background: var(--yellow); color: var(--blue-deep); display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
.hp-footer .brand img { height: 40px; width: auto; }
.hp-footer .about { line-height: 1.7; max-width: 34ch; }
.hp-footer h6 { color: #fff; font-weight: 800; font-size: .95rem; margin-bottom: 1.1rem; }
.hp-footer ul li { margin-bottom: .6rem; }
.hp-footer a { color: rgba(255,255,255,.72); transition: color .2s; }
.hp-footer a:hover { color: var(--yellow); }
.hp-footer .contact-line { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .75rem; }
.hp-footer .contact-line i { color: var(--yellow); margin-top: .1rem; }
.hp-footer .social-icons { display: flex; gap: .5rem; margin-top: 1.2rem; }
.hp-footer .social-icons a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.hp-footer .social-icons a:hover { background: var(--yellow); color: #1a1a1a; }
.hp-footer .bottom-bar { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.8rem; padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .82rem; color: rgba(255,255,255,.5); }
.hp-footer .bottom-bar a { color: rgba(255,255,255,.6); }
@media (max-width: 767.98px) { .hp-footer { padding-bottom: 5.5rem; } .hp-footer .bottom-bar { justify-content: center; text-align: center; } }

/* =========================================================
   Inner pages
   ========================================================= */
.hp-page-head { background: var(--blue-grad); color: #fff; padding: 8.2rem 0 3.6rem; position: relative; overflow: hidden; }
.hp-page-head::before { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.06); right: -90px; top: -60px; }
.hp-page-head::after { content: ''; position: absolute; width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 16px solid var(--yellow); right: 22%; bottom: 26%; transform: rotate(20deg); }
.hp-page-head .container { position: relative; z-index: 1; }
.hp-page-head h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; margin-bottom: .6rem; }
.hp-page-head p { color: rgba(255,255,255,.82); max-width: 60ch; margin-bottom: 0; font-size: 1.05rem; line-height: 1.6; }
.hp-breadcrumb { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 1rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.hp-breadcrumb a { color: rgba(255,255,255,.85); }
.hp-breadcrumb a:hover { color: var(--yellow); }
.hp-breadcrumb i { font-size: .7rem; }

.hp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.hp-empty { text-align: center; color: var(--ink-soft); padding: 3.5rem 1rem; background: var(--sky); border-radius: var(--radius); border: 1.5px dashed #CBD5F0; }
.hp-empty i { font-size: 2.4rem; color: var(--blue); display: block; margin-bottom: .6rem; }
.hp-empty h3 { font-size: 1.1rem; font-weight: 800; color: var(--ink); }

/* legacy buttons used by course.php */
.hp-btn-navy { background: var(--blue); color: #fff; border: none; border-radius: 12px; padding: .85rem 1.4rem; font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; transition: background .2s; width: 100%; }
.hp-btn-navy:hover { background: var(--blue-deep); color: #fff; }
.hp-btn-ghost { background: #fff; color: var(--blue); border: 1.5px solid var(--line); border-radius: 12px; padding: .83rem 1.4rem; font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; transition: border-color .2s, background .2s; }
.hp-btn-ghost:hover { border-color: var(--blue); background: var(--sky); color: var(--blue); }

.hp-pill { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border-radius: 12px; padding: .75rem 1rem; font-weight: 700; font-size: .9rem; width: 100%; }
.hp-pill-amber { background: #FFF4DE; color: #95600A; }
.hp-pill-green { background: #E3F6EA; color: #157A3E; }
.hp-pill-red { background: #FDE8E8; color: #B42318; }

/* Search / filter bar */
.hp-search { display: flex; gap: .6rem; max-width: 560px; }
.hp-search .field { position: relative; flex: 1; }
.hp-search .field i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
.hp-search input { width: 100%; border: 1.5px solid transparent; border-radius: 12px; padding: .85rem 1rem .85rem 2.7rem; font-size: .98rem; background: #fff; }
.hp-search input:focus { outline: none; border-color: var(--yellow); }
.hp-search button { flex-shrink: 0; }
.hp-result-note { color: var(--ink-soft); font-size: .92rem; margin-bottom: 1.5rem; }
.hp-result-note a { color: var(--blue); font-weight: 700; }

/* Pagination */
.hp-pager { display: flex; gap: .4rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.hp-pager a, .hp-pager span { min-width: 42px; height: 42px; padding: 0 .7rem; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.hp-pager a:hover { border-color: var(--blue); color: var(--blue); }
.hp-pager .active { background: var(--blue); border-color: var(--blue); color: #fff; }
.hp-pager .disabled { opacity: .4; }

/* Course detail */
.hp-course-hero-img { border-radius: 20px; overflow: hidden; aspect-ratio: 16/9; background: var(--blue-grad); position: relative; box-shadow: var(--shadow); }
.hp-course-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hp-course-hero-img .thumb-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--yellow); font-size: 3.5rem; }
.hp-chip-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }
.hp-chip { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.12); color: #fff; border-radius: 100px; padding: .42rem .9rem; font-size: .85rem; font-weight: 600; }
.hp-chip i { color: var(--yellow); }
.hp-chip.light { background: var(--sky); color: var(--ink); }
.hp-chip.light i { color: var(--blue); }
.hp-section-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; display: flex; align-items: center; gap: 1rem; margin-bottom: .65rem; }
.hp-section-item .idx { width: 40px; height: 40px; border-radius: 12px; background: var(--sky-2); color: var(--blue); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .92rem; }
.hp-section-item .info { flex: 1; min-width: 0; }
.hp-section-item .name { font-weight: 700; color: var(--ink); font-size: .96rem; margin-bottom: .15rem; }
.hp-section-item .desc { font-size: .85rem; color: var(--ink-soft); margin-bottom: .2rem; }
.hp-section-item .meta { font-size: .8rem; color: var(--ink-soft); display: flex; gap: .9rem; flex-wrap: wrap; }
.hp-section-item .meta i { color: var(--blue); margin-right: .2rem; }
.hp-section-item .lock { color: #A8B3D1; font-size: 1.1rem; }
.hp-section-item .lock.open { color: var(--green); }
.hp-side-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem; box-shadow: var(--shadow); }
.hp-side-card .title { font-weight: 800; font-size: 1.05rem; margin-bottom: .3rem; }
.hp-side-card .hint { color: var(--ink-soft); font-size: .88rem; margin-bottom: 1.2rem; line-height: 1.55; }
.hp-mini-steps { list-style: none; padding: 0; margin: 1.4rem 0 0; border-top: 1px solid var(--line); padding-top: 1.2rem; display: grid; gap: .8rem; counter-reset: ms; }
.hp-mini-steps li { display: flex; gap: .7rem; font-size: .88rem; color: var(--ink-soft); line-height: 1.5; }
.hp-mini-steps li::before { counter-increment: ms; content: counter(ms); width: 24px; height: 24px; border-radius: 50%; background: var(--sky-2); color: var(--blue); font-weight: 800; font-size: .75rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hp-mini-steps li.done::before { content: '\2713'; background: var(--green); color: #fff; }
.hp-mini-steps li.current { color: var(--ink); font-weight: 700; }
.hp-mini-steps li.current::before { background: var(--yellow); color: #1a1a1a; }

/* Prose (legal pages, long text) */
.hp-prose { color: #334155; font-size: 1rem; line-height: 1.8; }
.hp-prose h2 { font-size: 1.25rem; font-weight: 800; color: var(--ink); margin: 2.2rem 0 .7rem; }
.hp-prose h2:first-child { margin-top: 0; }
.hp-prose ul { padding-left: 1.2rem; }
.hp-prose li { margin-bottom: .4rem; }
.hp-prose a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hp-toc { position: sticky; top: 100px; background: var(--sky); border-radius: 16px; padding: 1.3rem 1.3rem; }
.hp-toc .ttl { font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-bottom: .8rem; }
.hp-toc a { display: block; color: var(--ink); font-size: .9rem; padding: .35rem 0; font-weight: 600; }
.hp-toc a:hover { color: var(--blue); }
.hp-updated { display: inline-flex; align-items: center; gap: .4rem; background: var(--sky); border-radius: 100px; padding: .4rem .9rem; font-size: .85rem; color: var(--ink-soft); margin-bottom: 2rem; }

/* Contact */
.hp-contact-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.3rem; transition: border-color .2s, box-shadow .2s; color: inherit; height: 100%; }
a.hp-contact-card:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); color: inherit; }
.hp-contact-card .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--sky-2); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.hp-contact-card .ico.wa { background: #E7F9EE; color: #1EA952; }
.hp-contact-card .lbl { font-size: .8rem; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.hp-contact-card .val { font-weight: 700; color: var(--ink); word-break: break-word; }
.hp-contact-card .sub { font-size: .85rem; color: var(--ink-soft); }

/* Forms (public + auth) */
.hp-form .form-label, .hp-label { font-weight: 700; font-size: .88rem; color: var(--ink); margin-bottom: .4rem; display: block; }
.hp-form .req { color: #DC2626; }
.hp-form .opt { color: var(--ink-soft); font-weight: 500; font-size: .8rem; }
.hp-input, .hp-form .form-control, .hp-form .form-select { width: 100%; border: 1.5px solid #D9E0F0; border-radius: 12px; padding: .8rem 1rem; font-size: 1rem; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.hp-input:focus, .hp-form .form-control:focus, .hp-form .form-select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11,34,166,.1); }
.hp-input-icon { position: relative; }
.hp-input-icon > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #8A94AD; pointer-events: none; }
.hp-input-icon .hp-input { padding-left: 2.7rem; }
.hp-input-icon .pw-toggle { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #8A94AD; width: 38px; height: 38px; border-radius: 8px; }
.hp-input-icon .pw-toggle:hover { color: var(--blue); background: var(--sky); }
.hp-input-icon.has-toggle .hp-input { padding-right: 3rem; }
.hp-help { font-size: .8rem; color: var(--ink-soft); margin-top: .35rem; }
.hp-alert { border-radius: 12px; padding: .9rem 1rem; font-size: .92rem; display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1.2rem; }
.hp-alert i { font-size: 1.1rem; line-height: 1.3; }
.hp-alert ul { margin: 0; padding-left: 1rem; }
.hp-alert-error { background: #FEF2F2; color: #B42318; border: 1px solid #FBD5D5; }
.hp-alert-success { background: #ECFDF3; color: #157A3E; border: 1px solid #C6F0D6; }
.hp-alert-info { background: var(--sky); color: var(--blue); border: 1px solid var(--line); }
.hp-details { border: 1.5px dashed #D9E0F0; border-radius: 14px; padding: .9rem 1rem; }
.hp-details summary { cursor: pointer; font-weight: 700; color: var(--blue); font-size: .92rem; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.hp-details summary::-webkit-details-marker { display: none; }
.hp-details summary::after { content: '\F282'; font-family: 'bootstrap-icons'; transition: transform .2s; }
.hp-details[open] summary::after { transform: rotate(180deg); }
.pw-meter { height: 6px; background: #E5EAF5; border-radius: 6px; margin-top: .5rem; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; background: #DC2626; transition: width .25s, background .25s; }

/* Auth split layout */
.hp-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: #fff; }
.hp-auth-side { background: var(--blue-grad); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.hp-auth-side::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.06); right: -140px; bottom: -120px; }
.hp-auth-side::after { content: 'A+'; position: absolute; right: 3rem; top: 22%; font-size: 4rem; font-weight: 800; color: rgba(255,255,255,.08); }
.hp-auth-side .brand { color: #fff; font-weight: 800; font-size: 1.2rem; display: inline-flex; align-items: center; gap: .55rem; position: relative; z-index: 1; }
.hp-auth-side .brand .seal { width: 34px; height: 34px; border-radius: 10px; background: var(--yellow); color: var(--blue-deep); display: inline-flex; align-items: center; justify-content: center; }
.hp-auth-side .brand img { height: 42px; }
.hp-auth-side h2 { font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.25; margin-bottom: 1rem; position: relative; z-index: 1; }
.hp-auth-side .lead-text { color: rgba(255,255,255,.8); max-width: 42ch; position: relative; z-index: 1; }
.hp-auth-side .hp-checks li { color: #fff; }
.hp-auth-side .hp-checks li i { color: var(--yellow); }
.hp-auth-side .foot { font-size: .85rem; color: rgba(255,255,255,.6); position: relative; z-index: 1; }
.hp-auth-main { display: flex; flex-direction: column; padding: 2rem 1.5rem; }
.hp-auth-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; max-width: 520px; width: 100%; margin: 0 auto; }
.hp-auth-top a { color: var(--ink-soft); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .35rem; }
.hp-auth-top a:hover { color: var(--blue); }
.hp-auth-top .mobile-brand { display: none; color: var(--blue); font-weight: 800; }
.hp-auth-box { max-width: 460px; width: 100%; margin: auto; padding: 2.5rem 0; }
.hp-auth-box.wide { max-width: 560px; }
.hp-auth-box h1 { font-weight: 800; font-size: 1.85rem; margin-bottom: .4rem; }
.hp-auth-box .sub { color: var(--ink-soft); margin-bottom: 1.8rem; }
.hp-auth-switch { text-align: center; color: var(--ink-soft); margin-top: 1.5rem; font-size: .95rem; }
.hp-auth-switch a { color: var(--blue); font-weight: 700; }
.hp-auth-help { text-align: center; margin-top: 1rem; font-size: .88rem; color: var(--ink-soft); }
.hp-auth-help a { color: #1EA952; font-weight: 700; }
.hp-result-icon { width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.1rem; margin: 0 auto 1.4rem; background: #E3F6EA; color: var(--green); }
.hp-result-icon.wait { background: #FFF4DE; color: #C27A00; }
.hp-result-icon.err { background: #FDE8E8; color: #B42318; }
/* Desktop: the blue panel stays put; only the form side scrolls (if ever needed). */
@media (min-width: 992px) {
  .hp-auth { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
  .hp-auth-side { height: 100%; }
  .hp-auth-main { height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 1.5rem 2rem; }
  .hp-auth-top { max-width: 560px; }
  .hp-auth-box { padding: 1.25rem 0; }
  .hp-auth-box.wide { max-width: 580px; }
  .hp-auth-box h1 { font-size: 1.7rem; }
  .hp-auth-box .sub { margin-bottom: 1.3rem; }
  .hp-auth .hp-form.gap-3 { gap: .85rem !important; }
  .hp-auth .hp-form .row.g-3 { --bs-gutter-y: .85rem; --bs-gutter-x: .9rem; }
  .hp-auth .hp-input { padding: .66rem .95rem; font-size: .95rem; }
  .hp-auth .hp-input-icon .hp-input { padding-left: 2.6rem; }
  .hp-auth .hp-form .form-label { margin-bottom: .3rem; font-size: .85rem; }
  .hp-auth .hp-help { margin-top: .25rem; font-size: .76rem; }
  .hp-auth .pw-meter { margin-top: .4rem; }
  .hp-auth .hp-details { padding: .7rem 1rem; }
  .hp-auth .hp-btn-block { padding-top: .8rem; padding-bottom: .8rem; }
  .hp-auth-switch { margin-top: 1rem; }
  .hp-auth-help { margin-top: .6rem; }
}
/* Short laptop screens (e.g. 1366 × 768) */
@media (min-width: 992px) and (max-height: 820px) {
  .hp-auth-side { padding: 2.2rem 2.6rem; }
  .hp-auth-side h2 { font-size: 1.8rem; }
  .hp-auth-main { padding-top: 1rem; padding-bottom: 1rem; }
  .hp-auth-box { padding: .5rem 0; }
  .hp-auth-box h1 { font-size: 1.55rem; margin-bottom: .25rem; }
  .hp-auth-box .sub { margin-bottom: 1rem; font-size: .92rem; }
}
@media (max-width: 991.98px) {
  .hp-auth { grid-template-columns: 1fr; }
  .hp-auth-side { display: none; }
  .hp-auth-top .mobile-brand { display: inline-flex; }
  .hp-auth-box { padding-top: 1.8rem; }
}

/* Error pages */
.hp-error { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1.2rem; background: var(--blue-grad); position: relative; overflow: hidden; }
.hp-error::before { content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: rgba(255,255,255,.05); left: -150px; bottom: -200px; }
.hp-error-card { background: #fff; border-radius: 24px; padding: 3rem 2.2rem; max-width: 520px; width: 100%; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,.25); position: relative; z-index: 1; }
.hp-error-code { font-size: clamp(4rem, 12vw, 5.5rem); font-weight: 800; line-height: 1; background: var(--blue-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .6rem; }
.hp-error-card h1 { font-weight: 800; font-size: 1.5rem; margin-bottom: .6rem; }
.hp-error-card p { color: var(--ink-soft); margin-bottom: 1.8rem; }
.hp-error-card .actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }

/* Toasts */
.hp-toast-container { position: fixed; top: 90px; right: 18px; z-index: 1100; width: min(340px, calc(100vw - 36px)); }
.hp-toast { background: var(--blue); color: #fff; font-size: .9rem; padding: .9rem 1.1rem; border-radius: 12px; box-shadow: 0 14px 30px rgba(11,34,166,.25); margin-bottom: .6rem; animation: hp-toast-in .25s ease; display: flex; align-items: center; gap: .6rem; }
.hp-toast.hp-toast-error { background: #B42318; }
.hp-toast.hp-toast-success { background: #157A3E; }
.hp-toast.hp-toast-out { opacity: 0; transform: translateX(20px); transition: opacity .25s ease, transform .25s ease; }
@keyframes hp-toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* Mobile spacing */
@media (max-width: 767.98px) {
  .hp-section { padding: 3.8rem 0; }
  .hp-section-head { margin-bottom: 2rem; }
  .hp-page-head { padding: 7rem 0 2.6rem; }
  .hp-search { flex-direction: column; }
  .hp-teacher-visual .float-badge { right: 4px; }
}
