/* ============================================================
   HOANGTHI SCHOOL — Landing Page
   Theme: deep navy blue + vermillion red + gold
   ============================================================ */

:root{
  --navy:        #0b2a5b;
  --navy-deep:   #061a3d;
  --navy-ink:    #03102a;
  --red:         #d91f2d;
  --red-deep:    #a4121e;
  --gold:        #e9b949;
  --gold-deep:   #c08a1f;
  --cream:       #fffaf1;
  --paper:       #f6f4ee;
  --ink:         #1a1f2b;
  --muted:       #5b6478;
  --line:        #e5e1d6;

  --shadow-soft: 0 8px 24px rgba(6,26,61,.08);
  --shadow-card: 0 18px 40px -16px rgba(6,26,61,.28);

  --serif: "Playfair Display", "DM Serif Display", Georgia, serif;
  --sans:  "Manrope", "Helvetica Neue", system-ui, sans-serif;
  --vn:    "Be Vietnam Pro", "Manrope", sans-serif;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: var(--vn);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }

.wrap{ width:min(1240px, 92%); margin: 0 auto; }

/* ---------- Top utility bar ---------- */
.topbar{
  background: var(--navy-ink);
  color: #cfd6e6;
  font-size: 12.5px;
  letter-spacing:.02em;
}
.topbar .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height: 38px;
}
.topbar .marquee-items{ display:flex; gap:22px; flex-wrap:nowrap; overflow:hidden; }
.topbar .marquee-items span{ white-space:nowrap; opacity:.85; }
.topbar .marquee-items b{ color: var(--gold); font-weight:600; margin-right:6px;}
.topbar .util{ display:flex; align-items:center; gap:18px; }
.topbar .util a{ display:inline-flex; align-items:center; gap:6px; opacity:.9; }
.topbar .util a:hover{ color: var(--gold); }

/* Language switcher */
.lang{
  display:inline-flex; padding:3px; border-radius:999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
.lang button{
  border:0; background:transparent; color:#cfd6e6;
  padding: 4px 10px; border-radius: 999px;
  display:inline-flex; align-items:center; gap:6px;
  font-size: 12px; font-weight: 600; letter-spacing:.04em;
}
.lang button.is-active{ background: var(--gold); color: var(--navy-ink); }
.lang .flag{
  width:18px; height:12px; border-radius:2px;
  display:inline-block; overflow:hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.2);
}

/* ---------- Header ---------- */
.header{
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top:0; z-index: 30;
}
.header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
}
.brand{
  display:flex; align-items:center; gap:14px;
}
.logo-box{
  position:relative;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--gold);
  padding: 10px 16px 12px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px var(--gold), 0 6px 14px -6px rgba(11,42,91,.6);
  text-align:center;
  font-family: var(--serif);
}
.logo-box .small{
  font-family: var(--vn);
  font-size: 9px; letter-spacing:.22em; color: #f0d77a;
  display:block; text-transform:uppercase; margin-bottom: 2px;
}
.logo-box .big{
  font-size: 22px; font-weight: 700; line-height: 1; letter-spacing:.04em;
  color: var(--gold);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.logo-box::before, .logo-box::after{
  content:""; position:absolute; width:6px; height:6px; background: var(--gold);
  top: 4px; border-radius:1px;
}
.logo-box::before{ left:4px; }
.logo-box::after{ right:4px; }

.brand-meta{ line-height:1.2; }
.brand-meta .vn{ font-family: var(--serif); font-size: 18px; color: var(--navy-deep); font-weight:700; letter-spacing:.01em; }
.brand-meta .tag{ font-size: 11px; color: var(--muted); letter-spacing:.16em; text-transform:uppercase; }

.nav{ display:flex; align-items:center; gap: 2px; }
.nav a{
  padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--ink);
  border-radius: 6px; position:relative;
}
.nav a:hover{ color: var(--navy); background: #f4f1e6; }
.nav a.is-active{ color: var(--red); }
.nav a.is-active::after{
  content:""; position:absolute; left:14px; right:14px; bottom:4px;
  height:2px; background: var(--red);
}
.nav .cta{
  margin-left: 10px;
  background: var(--red); color:#fff; padding: 10px 16px; border-radius:6px;
  box-shadow: 0 6px 14px -6px var(--red-deep);
}
.nav .cta:hover{ background: var(--red-deep); color:#fff; }

/* ---------- Hero ---------- */
.hero{
  position:relative;
  background: var(--navy-ink);
  color: #f5efe0;
  overflow:hidden;
}
.hero::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(900px 500px at 18% 30%, rgba(233,185,73,.18), transparent 60%),
    radial-gradient(800px 600px at 88% 80%, rgba(217,31,45,.25), transparent 60%),
    linear-gradient(180deg, rgba(3,16,42,.85), rgba(3,16,42,.92)),
    url("../img/school-gate.jpg") center/cover no-repeat;
}
.hero .wrap{
  position:relative;
  display:grid; grid-template-columns: 1.15fr .85fr; gap: 56px;
  padding: 80px 0 110px;
  align-items:center;
}
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-size: 12px; letter-spacing: .22em; text-transform:uppercase;
  color: var(--gold);
  padding: 7px 14px; border:1px solid rgba(233,185,73,.4);
  border-radius:999px;
  background: rgba(233,185,73,.08);
}
.hero-eyebrow .dot{ width:6px; height:6px; background: var(--red); border-radius:50%; }

.hero h1{
  font-family: var(--serif);
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.02;
  margin: 22px 0 18px;
  color:#fff;
  letter-spacing:-.01em;
  text-wrap: balance;
}
.hero h1 em{
  font-style: italic; color: var(--gold);
  position:relative;
}
.hero h1 em::after{
  content:""; position:absolute; left:0; right:0; bottom:6px; height:8px;
  background: linear-gradient(90deg, var(--red), transparent 80%);
  opacity:.5; z-index:-1;
}
.hero p.lede{
  font-size: 17px; color: #d8d1bc; max-width: 56ch; margin: 0 0 30px;
}
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom: 38px;}
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding: 14px 22px; border-radius:6px; font-weight:700;
  font-size: 14px; letter-spacing:.04em; text-transform:uppercase;
  transition: transform .15s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--red); color:#fff; box-shadow: 0 10px 26px -10px var(--red); }
.btn-primary:hover{ background: var(--red-deep); }
.btn-ghost{ background: transparent; color:#fff; border:1px solid rgba(255,255,255,.25); }
.btn-ghost:hover{ border-color: var(--gold); color: var(--gold); }
.btn-gold{ background: var(--gold); color: var(--navy-ink); }
.btn-gold:hover{ background:#f3c75c; }

.hero-stats{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stats .stat{ padding-right: 18px; border-right: 1px solid rgba(255,255,255,.08); }
.hero-stats .stat:last-child{ border-right:0; }
.hero-stats .num{
  font-family: var(--serif); font-size: 36px; color: var(--gold); line-height:1;
}
.hero-stats .lbl{
  font-size: 11px; letter-spacing:.16em; text-transform:uppercase;
  color: #b9b29c; margin-top: 8px;
}

/* hero collage card */
.hero-card{
  position:relative; isolation:isolate;
}
.hero-card .photo{
  width:100%; aspect-ratio: 4/5;
  border-radius: 10px; overflow:hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
  border: 6px solid #fff;
  transform: rotate(-1.5deg);
}
.hero-card .photo img{ width:100%; height:100%; object-fit: cover; }
.hero-card .badge{
  position:absolute; bottom: -22px; right: -16px;
  width: 130px; height: 130px; border-radius:50%;
  background: var(--gold); color: var(--navy-ink);
  display:flex; align-items:center; justify-content:center; text-align:center;
  font-family: var(--serif); font-size:13px; line-height:1.2;
  padding: 10px;
  box-shadow: 0 12px 26px -10px rgba(0,0,0,.5);
  transform: rotate(8deg);
}
.hero-card .badge b{ display:block; font-size: 26px; }
.hero-card .ribbon{
  position:absolute; top: -14px; left: -14px;
  background: var(--red); color:#fff;
  padding: 8px 14px; font-size:11px; letter-spacing:.2em; text-transform:uppercase;
  font-weight: 700;
  box-shadow: 0 8px 16px -6px var(--red-deep);
}

/* curved divider */
.hero-divider{
  position:absolute; left:0; right:0; bottom:-1px; height: 60px;
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 100%, 100% 30%, 0 100%);
}

/* ---------- Section base ---------- */
section{ padding: 96px 0; position:relative; }
.section-head{ display:flex; align-items:end; justify-content:space-between; gap:30px; margin-bottom: 48px;}
.section-head .left{ max-width: 640px; }
.eyebrow{
  font-size: 11px; letter-spacing:.24em; text-transform:uppercase;
  color: var(--red); font-weight: 700;
}
.section-head h2{
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05;
  color: var(--navy-deep); margin: 12px 0 12px; letter-spacing:-.01em;
}
.section-head p{ color: var(--muted); font-size: 16px; margin: 0;}
.link-more{
  color: var(--navy); font-weight: 700; font-size:13px;
  letter-spacing:.16em; text-transform:uppercase;
  border-bottom: 1.5px solid var(--gold); padding-bottom: 4px;
}
.link-more:hover{ color: var(--red); }

/* ---------- Quicklinks bar ---------- */
.quicklinks{
  background: #fff; padding: 0; margin-top:-32px; position:relative; z-index: 5;
}
.quicklinks .wrap{
  background: #fff; border-radius: 8px;
  box-shadow: var(--shadow-card);
  padding: 8px; display:grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 4px solid var(--red);
}
.ql-item{
  display:flex; gap: 16px; align-items:center;
  padding: 22px 22px; border-right: 1px solid var(--line);
  transition: background .2s ease;
}
.ql-item:last-child{ border-right: 0; }
.ql-item:hover{ background: #faf7ed; }
.ql-ic{
  width: 48px; height: 48px; flex-shrink:0;
  border-radius: 8px; background: var(--navy-deep); color: var(--gold);
  display:flex; align-items:center; justify-content:center;
}
.ql-ic svg{ width:24px; height:24px; }
.ql-item .t{ font-weight: 700; color: var(--navy-deep); font-size: 14px;}
.ql-item .s{ color: var(--muted); font-size: 12.5px; }

/* ---------- About / Vision ---------- */
.about{ background: var(--paper); }
.about .grid{
  display:grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items:center;
}
.about .img-stack{ position:relative; }
.about .img-stack .a{
  width: 78%; border-radius: 10px; overflow:hidden;
  box-shadow: var(--shadow-card);
  border: 6px solid #fff;
}
.about .img-stack .a img{ width:100%; aspect-ratio: 4/3; object-fit: cover; }
.about .img-stack .b{
  position:absolute; right:-10px; bottom:-30px;
  width: 52%; border-radius: 10px; overflow:hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow-card);
}
.about .img-stack .b img{ width:100%; aspect-ratio: 4/3; object-fit: cover; }
.about .img-stack .plaque{
  position:absolute; top: -22px; left: -22px;
  background: var(--navy-deep); color: var(--gold);
  padding: 14px 18px; border-radius:6px;
  font-family: var(--serif); font-size: 18px;
  box-shadow: 0 12px 26px -10px rgba(0,0,0,.4);
  border: 2px solid var(--gold);
}
.about .img-stack .plaque b{ font-size: 34px; display:block; line-height:1; }

.about ul.pillars{
  list-style:none; padding:0; margin: 24px 0 0;
  display:grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.about ul.pillars li{
  background:#fff; padding: 18px; border-radius:8px;
  border:1px solid var(--line);
  display:flex; gap: 12px;
}
.about ul.pillars .ico{
  width: 36px; height: 36px; flex-shrink:0;
  border-radius: 6px; background: var(--red); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--serif); font-weight: 700; font-size: 16px;
}
.about ul.pillars b{ display:block; color: var(--navy-deep); margin-bottom:2px; font-size: 14.5px;}
.about ul.pillars span{ color: var(--muted); font-size: 13px; }

/* ---------- Programs ---------- */
.programs{ background: #fff; }
.programs-grid{
  display:grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.program-card{
  position:relative; border-radius: 10px; overflow:hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.program-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-card); }
.program-card .top{
  height: 200px; background: var(--navy);
  position:relative; color:#fff; overflow:hidden;
}
.program-card .top::before{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 30%, rgba(3,16,42,.85));
}
.program-card .top img{
  width:100%; height:100%; object-fit: cover; opacity:.78;
}
.program-card .age{
  position:absolute; top: 16px; left: 16px;
  background: var(--red); color:#fff;
  padding: 5px 10px; font-size:11px; letter-spacing:.18em; text-transform:uppercase;
  font-weight: 700; z-index:2;
}
.program-card .top h3{
  position:absolute; bottom: 16px; left: 18px; right: 18px;
  font-family: var(--serif); font-size: 24px; margin:0;
  z-index: 2;
}
.program-card .body{ padding: 20px 22px 24px; }
.program-card .body p{ font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.program-card .body ul{
  margin:0 0 18px; padding:0; list-style:none;
  display:flex; gap: 8px; flex-wrap:wrap;
}
.program-card .body li{
  font-size: 11px; letter-spacing:.06em; text-transform:uppercase; font-weight: 600;
  background: #fff; border:1px solid var(--line); padding: 5px 10px;
  border-radius: 4px; color: var(--navy-deep);
}
.program-card .body a{
  font-weight: 700; color: var(--navy-deep); font-size: 13px;
  letter-spacing:.1em; text-transform: uppercase;
  border-bottom: 2px solid var(--gold); padding-bottom: 3px;
}

/* ---------- Academic results ---------- */
.results{
  background: var(--navy-ink); color:#f5efe0; position:relative;
}
.results::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(217,31,45,.18), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(233,185,73,.12), transparent 60%);
}
.results .wrap{ position:relative; }
.results .section-head h2{ color:#fff; }
.results .section-head p{ color:#c5bea7; }

.results-grid{
  display:grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items:start;
}
.scoreboard{
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 28px;
  backdrop-filter: blur(4px);
}
.scoreboard h3{
  font-family: var(--serif); font-size: 22px; margin: 0 0 18px; color: var(--gold);
}
.score-row{
  display:grid; grid-template-columns: 1fr 70px 100px; gap: 14px;
  align-items:center; padding: 14px 0;
  border-bottom: 1px dashed rgba(255,255,255,.12);
}
.score-row:last-child{ border-bottom: 0; }
.score-row .sub{ font-weight: 600; font-size: 14.5px; color:#fff; }
.score-row .sub small{ display:block; font-weight:400; font-size: 11.5px; color:#9ea49b; letter-spacing:.04em; margin-top:2px;}
.score-row .pct{ text-align:right; font-family: var(--serif); font-size: 22px; color: var(--gold);}
.bar{ height: 6px; background: rgba(255,255,255,.08); border-radius:99px; overflow:hidden; }
.bar > i{
  display:block; height:100%;
  background: linear-gradient(90deg, var(--gold), var(--red));
  border-radius:99px;
}

.results-aside .achv{
  display:grid; grid-template-columns: 80px 1fr; gap: 18px;
  padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.1);
}
.results-aside .achv:last-child{ border-bottom: 0; }
.results-aside .achv .yr{
  font-family: var(--serif); font-size: 38px; color: var(--gold); line-height: 1;
}
.results-aside .achv .t{ font-weight: 700; color:#fff; margin-bottom: 4px; }
.results-aside .achv .d{ color:#b4ad96; font-size: 13.5px; }

/* ---------- Extracurriculars ---------- */
.extras{ background: var(--paper); }
.extras-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.ec{
  background: #fff; border:1px solid var(--line); border-radius: 10px;
  padding: 26px 22px; transition: transform .2s ease, border-color .2s ease;
  position:relative; overflow:hidden;
}
.ec:hover{ transform: translateY(-4px); border-color: var(--gold); }
.ec::after{
  content:""; position:absolute; top:0; right:0; width: 80px; height: 80px;
  background: radial-gradient(circle at 100% 0, rgba(233,185,73,.18), transparent 70%);
  pointer-events:none;
}
.ec .num{
  font-family: var(--serif); color: var(--red); font-size: 12px;
  letter-spacing:.2em; font-weight: 700;
}
.ec h4{ font-family: var(--serif); font-size: 22px; margin: 8px 0 8px; color: var(--navy-deep); }
.ec p{ font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.ec .tags{ display:flex; flex-wrap:wrap; gap:6px; }
.ec .tags span{
  font-size: 11px; padding: 3px 8px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 99px; color: var(--navy);
}

/* ---------- Life feature strip ---------- */
.life{
  padding: 0;
}
.life-grid{
  display:grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap:0;
}
.life-cell{
  position:relative; aspect-ratio: 4/5; overflow:hidden;
}
.life-cell img{ width:100%; height:100%; object-fit: cover; transition: transform .6s ease; }
.life-cell:hover img{ transform: scale(1.05); }
.life-cell .cap{
  position:absolute; left:0; right:0; bottom:0;
  background: linear-gradient(180deg, transparent, rgba(3,16,42,.85));
  color:#fff; padding: 20px 18px;
}
.life-cell .cap small{
  display:block; color: var(--gold);
  font-size: 11px; letter-spacing:.2em; text-transform:uppercase; margin-bottom: 4px;
}
.life-cell .cap b{ font-family: var(--serif); font-size: 18px; font-weight:600; }

/* ---------- News ---------- */
.news{ background: #fff; }
.news-grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px;
}
.news-card{ border:1px solid var(--line); border-radius: 10px; overflow:hidden; background: #fff;
  display:flex; flex-direction:column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.news-card:hover{ box-shadow: var(--shadow-card); transform: translateY(-3px); }
.news-card .img{ aspect-ratio: 16/10; overflow:hidden; background: var(--paper); }
.news-card .img img{ width:100%; height:100%; object-fit: cover; }
.news-card .body{ padding: 20px 22px 24px; flex: 1; display:flex; flex-direction:column; }
.news-card .meta{
  display:flex; gap: 10px; align-items:center; font-size: 11.5px;
  letter-spacing:.16em; text-transform:uppercase; color: var(--muted);
}
.news-card .meta b{ color: var(--red); }
.news-card h4{
  font-family: var(--serif); font-size: 21px; margin: 10px 0 10px; color: var(--navy-deep);
  line-height: 1.25;
}
.news-card.big h4{ font-size: 28px; }
.news-card p{ color: var(--muted); font-size: 14px; margin: 0 0 14px; flex:1; }
.news-card .more{
  font-size: 12.5px; letter-spacing:.14em; text-transform:uppercase; font-weight:700;
  color: var(--navy-deep); border-bottom: 2px solid var(--gold); align-self:flex-start; padding-bottom:3px;
}
.news-card .more:hover{ color: var(--red); }

/* ---------- Testimonials ---------- */
.voices{
  background: var(--navy-deep); color: #f0ead7; position:relative;
}
.voices::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(700px 400px at 12% 80%, rgba(233,185,73,.10), transparent 60%),
    radial-gradient(600px 300px at 100% 10%, rgba(217,31,45,.18), transparent 60%);
}
.voices .wrap{ position:relative; }
.voices .section-head h2{ color:#fff; }
.voices .section-head p{ color:#c5bea7; }
.voice-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.voice{
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 28px;
  position:relative;
}
.voice .qmark{
  font-family: var(--serif); font-size: 80px; line-height: .6;
  color: var(--gold); opacity:.4; position:absolute; top: 12px; right: 18px;
}
.voice blockquote{
  font-family: var(--serif); font-size: 18px; line-height: 1.45;
  margin: 0 0 22px; color:#fff;
}
.voice .who{ display:flex; align-items:center; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.voice .avatar{
  width: 44px; height: 44px; border-radius: 50%; background: var(--gold);
  color: var(--navy-deep); display:flex; align-items:center; justify-content:center;
  font-weight: 700; font-family: var(--serif); font-size: 18px;
}
.voice .who b{ display:block; color:#fff; font-size: 14px; }
.voice .who small{ display:block; color:#a8a18a; font-size: 12px; }

/* ---------- CTA ---------- */
.cta-band{
  background:
    linear-gradient(180deg, rgba(217,31,45,.85), rgba(164,18,30,.92)),
    url("../img/students-smiling.jpg") center/cover no-repeat;
  color:#fff; padding: 100px 0; text-align:center;
}
.cta-band h2{
  font-family: var(--serif); font-size: clamp(34px, 4vw, 56px);
  margin: 0 0 14px; color:#fff;
}
.cta-band p{ font-size: 17px; max-width: 60ch; margin: 0 auto 30px; color:#ffe2e2;}
.cta-band .btn-gold{ box-shadow: 0 12px 26px -10px rgba(0,0,0,.4); }

/* ---------- Footer ---------- */
.footer{
  background: var(--navy-ink); color: #c1c8d8; padding: 80px 0 24px;
}
.footer .top-grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer h5{
  color: var(--gold); font-size: 12px; letter-spacing:.22em;
  text-transform:uppercase; margin: 14px 0 18px;
}
.footer ul{ list-style:none; margin:0; padding:0; }
.footer ul li{ margin-bottom: 10px; font-size: 14px; }
.footer ul li a:hover{ color: var(--gold); }
.footer .lead{ color: #d9dceb; font-size: 14px; max-width: 36ch; margin: 14px 0 18px; line-height:1.6; }
.footer .socials{ display:flex; gap:10px; margin-top: 18px; }
.footer .socials a{
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.06); display:inline-flex; align-items:center; justify-content:center;
  border: 1px solid rgba(255,255,255,.08);
}
.footer .socials a:hover{ background: var(--gold); color: var(--navy-ink); border-color: var(--gold); }
.footer .socials svg{ width: 16px; height:16px; }

.footer .bottom-bar{
  padding-top: 24px;
  display:flex; align-items:center; justify-content:space-between;
  font-size: 12.5px; color:#7d869c;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px){
  .hero .wrap{ grid-template-columns: 1fr; padding: 60px 0 90px; gap: 50px;}
  .hero-card{ max-width: 380px; }
  .quicklinks .wrap{ grid-template-columns: 1fr 1fr; }
  .ql-item:nth-child(2){ border-right: 0; }
  .ql-item:nth-child(1), .ql-item:nth-child(2){ border-bottom: 1px solid var(--line); }
  .about .grid{ grid-template-columns: 1fr; gap: 100px;}
  .programs-grid{ grid-template-columns: 1fr; }
  .results-grid{ grid-template-columns: 1fr; gap: 40px;}
  .extras-grid{ grid-template-columns: 1fr 1fr; }
  .life-grid{ grid-template-columns: 1fr 1fr; }
  .news-grid{ grid-template-columns: 1fr; }
  .voice-grid{ grid-template-columns: 1fr; }
  .footer .top-grid{ grid-template-columns: 1fr 1fr; gap: 30px; }
  .nav{ visibility: hidden; pointer-events: none; }
  .header .wrap{ padding: 10px 0; }
  .topbar .marquee-items{ display:none; }
  section{ padding: 70px 0; }
}
@media (max-width: 560px){
  .extras-grid{ grid-template-columns: 1fr; }
  .life-grid{ grid-template-columns: 1fr; }
  .footer .top-grid{ grid-template-columns: 1fr; }
  .about ul.pillars{ grid-template-columns: 1fr; }
}

/* Reveal on scroll */
.reveal{ opacity:0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity:1; transform:none; }

/* ============================================================
   EXTRA STYLES FOR PHP MULTI-PAGE SITE
   truong.hoangthi-tech.com
   ============================================================ */

/* Page Hero (inner pages) */
.page-hero { position: relative; overflow: hidden; }
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/assets/img/campus-collage.jpg') center/cover no-repeat;
  opacity: .06;
  pointer-events: none;
}

/* Header — z-index rendah, TANPA backdrop-filter (backdrop-filter bikin isolated stacking context) */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
}

/* Active nav link */
.nav a.is-active {
  color: var(--red);
  font-weight: 600;
}

/* Burger — hidden by default di desktop */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--navy-deep);
  border-radius: 2px;
  display: block;
  transition: transform .3s, opacity .3s;
}

/* Overlay gelap di belakang sidebar */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 998;
  cursor: pointer;
}
.nav-overlay.is-active {
  display: block;
}

/* Form input focus */
input:focus, select:focus, textarea:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(233,185,73,.15) !important;
}

/* ---- MOBILE NAV ---- */
@media (max-width: 980px) {
  .burger {
    display: flex;
  }

  /* Nav sidebar — SELALU display:flex, geser ke kanan layar */
  .nav {
    visibility: visible !important;
    pointer-events: auto !important;
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -320px;       /* sembunyi di luar layar */
    width: 300px;
    height: 100vh;
    background: var(--navy-deep);
    padding: 80px 28px 40px;
    gap: 4px;
    z-index: 999;
    box-shadow: -8px 0 40px rgba(0,0,0,.5);
    transition: right .32s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
  }

  .nav.is-open {
    right: 0;
  }

  .nav a {
    color: #fff !important;
    font-size: 16px;
    padding: 13px 4px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    background: transparent !important;
  }
  .nav a:last-child {
    border-bottom: 0;
  }
  .nav a.cta {
    background: var(--gold) !important;
    color: var(--navy-deep) !important;
    border-radius: 8px !important;
    text-align: center;
    padding: 13px 20px !important;
    margin-top: 12px;
    font-weight: 700;
    border-bottom: 0 !important;
  }

  /* Programs/contact inner page grids */
  section > .wrap > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  form[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  form div[style*="grid-column:span 2"] {
    grid-column: span 1 !important;
  }
}