/* WHPS Website — global.css */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Jost:wght@300;400;500;600;700&display=swap');

/* ── ANTI-BLUR / ANTI-ZOOM: Prevents browser from scaling content ── */
html {
  -webkit-text-size-adjust: 100%;
  /* text-size-adjust: 100%; */
}

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* Prevent ANY element from being wider than the screen */
img,
video,
iframe,
table {
  max-width: 100%;
}

/* Kill horizontal scroll on ALL pages */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Force all sections to never overflow */
section,
div,
header,
footer,
nav {
  max-width: 100%;
}


/* ── TOKENS ──────────────────────────────────── */
:root {
  --g: #0B4D35;
  --gm: #0F6044;
  --gl: #1A7A56;
  --go: #C9A227;
  --gol: #E8C547;
  --gop: #FEF6D8;
  --cr: #FAFAF5;
  --crd: #F2F0E8;
  --wh: #FFFFFF;
  --tx: #1A1A1A;
  --txm: #444440;
  --txl: #787870;
  --sh: 0 4px 24px rgba(0, 0, 0, .08);
  --shh: 0 12px 40px rgba(0, 0, 0, .14);
  --r: 14px;
  --rm: 22px;
  --rl: 32px;
  --rxl: 48px;
  --rp: 100px;
}

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

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Jost', sans-serif;
  background: var(--cr);
  color: var(--tx);
  overflow-x: hidden;
  font-size: 16px
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.15
}

p {
  line-height: 1.8;
  color: var(--txm);
  font-size: 15.5px
}

a {
  text-decoration: none
}

img {
  max-width: 100%
}

ul {
  list-style: none
}

/* ── TOPBAR ───────────────────────────────────── */
.tb {
  background: var(--g);
  height: 38px;
  display: flex;
  align-items: center;
  overflow: hidden
}

.tb-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  width: 100%;
  gap: 16px
}

.tb-left {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, .75);
  flex-shrink: 0
}

.tb-left span {
  display: flex;
  align-items: center;
  gap: 5px
}

.tb-tick {
  flex: 1;
  overflow: hidden
}

.tb-tick-in {
  display: inline-flex;
  gap: 52px;
  animation: tick 36s linear infinite;
  white-space: nowrap
}

.tb-tick-in span {
  font-size: 12px;
  color: var(--gol)
}

@keyframes tick {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

.tb-right {
  display: flex;
  gap: 14px;
  flex-shrink: 0
}

.tb-right a {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .6);
  transition: color .2s
}

.tb-right a:hover {
  color: var(--gol)
}

/* ── NAVBAR ───────────────────────────────────── */
.nav {
  background: var(--wh);
  position: sticky;
  top: 0;
  z-index: 500;
  transition: box-shadow .3s
}

.nav.up {
  box-shadow: 0 4px 28px rgba(0, 0, 0, .1)
}

.nav-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  height: 72px;
  display: flex;
  align-items: center;
  gap: 20px
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0
}

.nav-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain
}

.nav-logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--g);
  display: block;
  line-height: 1.2
}

.nav-logo-sub {
  font-size: 10px;
  color: var(--txl);
  display: block
}

/* Menu */
.nav-menu {
  display: flex;
  gap: 2px;
  list-style: none;
  flex: 1;
  justify-content: center
}

.nav-item {
  position: relative
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  border-radius: var(--rp);
  font-size: 14px;
  font-weight: 500;
  color: var(--txm);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  border: none;
  background: transparent;
  font-family: 'Jost', sans-serif
}

.nav-link:hover,
.nav-item:hover>.nav-link {
  background: var(--crd);
  color: var(--g)
}

.nav-link.act {
  background: var(--crd);
  color: var(--g);
  font-weight: 600
}

.nav-arrow {
  width: 14px;
  height: 14px;
  transition: transform .2s;
  flex-shrink: 0
}

.nav-item:hover .nav-arrow {
  transform: rotate(180deg)
}

/* Dropdown — gap-free hover */
.drop {
  position: absolute;
  top: 100%;
  left: 50%;
  background: var(--wh);
  border-radius: var(--rm);
  box-shadow: var(--shh);
  padding: 8px;
  min-width: 240px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(0);
  transition: opacity .18s ease;
  border: 1px solid rgba(0, 0, 0, .06);
  z-index: 600
}

.nav-item:hover .drop,
.nav-item.dd-open .drop {
  opacity: 1;
  pointer-events: auto
}

/* Invisible bridge fills gap between nav link and dropdown — wider than min-width */
.nav-item::after {
  content: '';
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 20px;
  background: transparent;
  z-index: 601
}

.drop a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--r);
  font-size: 14px;
  color: var(--txm);
  transition: all .15s
}

.drop a:hover {
  background: var(--cr);
  color: var(--g)
}

.drop-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--cr);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: background .15s
}

.drop a:hover .drop-icon {
  background: var(--gop)
}

.drop-sep {
  height: 1px;
  background: var(--crd);
  margin: 4px 0
}

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0
}

.nav-srch {
  display: flex;
  align-items: center;
  background: var(--crd);
  border-radius: var(--rp);
  padding: 7px 15px;
  gap: 8px;
  border: 1.5px solid transparent;
  transition: all .2s
}

.nav-srch:focus-within {
  border-color: var(--gl);
  background: var(--wh)
}

.nav-srch input {
  border: none;
  background: transparent;
  font-family: 'Jost', sans-serif;
  font-size: 12.5px;
  color: var(--tx);
  outline: none;
  width: 120px
}

.nav-srch input::placeholder {
  color: var(--txl)
}

.nav-srch svg {
  width: 14px;
  height: 14px;
  color: var(--txl)
}

.btn-apply {
  background: var(--g);
  color: var(--wh);
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--rp);
  border: none;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.btn-apply:hover {
  background: var(--gl);
  transform: translateY(-1px)
}

/* ── PAGE BANNER ──────────────────────────────── */
.pg-hero {
  background: var(--g);
  padding: 56px 0;
  position: relative;
  overflow: hidden
}

.pg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/img/campus/building.jpg') center/cover;
  opacity: .1
}

.pg-hero-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  position: relative
}

.pg-hero-ey {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gol);
  margin-bottom: 10px
}

.pg-hero h1 {
  color: var(--wh);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 10px
}

.pg-hero p {
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
  max-width: 500px
}

.bc {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, .5)
}

.bc a {
  color: var(--gol)
}

.bc span {
  color: rgba(255, 255, 255, .35)
}

/* ── UTILITIES ────────────────────────────────── */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px)
}

.sec {
  padding: 80px 0
}

.sec-sm {
  padding: 56px 0
}

.ey {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gm);
  margin-bottom: 12px
}

.ey::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--go)
}

.ht {
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  color: var(--tx);
  margin-bottom: 12px
}

.hs {
  color: var(--txl);
  font-size: 16px;
  max-width: 540px;
  margin-bottom: 44px
}

.card {
  background: var(--wh);
  border-radius: var(--rl);
  box-shadow: var(--sh);
  overflow: hidden
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 14.5px;
  padding: 13px 30px;
  border-radius: var(--rp);
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none
}

.btn-g {
  background: var(--g);
  color: var(--wh)
}

.btn-g:hover {
  background: var(--gl);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 77, 53, .3)
}

.btn-go {
  background: var(--go);
  color: var(--g);
  font-weight: 600
}

.btn-go:hover {
  background: var(--gol);
  transform: translateY(-2px)
}

.btn-og {
  background: transparent;
  color: var(--g);
  border: 2px solid var(--g)
}

.btn-og:hover {
  background: var(--g);
  color: var(--wh)
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: var(--rp)
}

.tag-exam {
  background: #FEE2E2;
  color: #991B1B
}

.tag-event {
  background: #DCFCE7;
  color: #166534
}

.tag-holiday {
  background: #FFEDD5;
  color: #9A3412
}

.tag-admission {
  background: #DBEAFE;
  color: #1E40AF
}

.tag-general {
  background: var(--crd);
  color: var(--txm)
}

.tag-national {
  background: #FEF9C3;
  color: #713F12
}

.tag-ptm {
  background: #EDE9FE;
  color: #5B21B6
}

/* ── REVEAL ───────────────────────────────────── */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease
}

.rv.in {
  opacity: 1;
  transform: translateY(0)
}

.d1 {
  transition-delay: .1s
}

.d2 {
  transition-delay: .2s
}

.d3 {
  transition-delay: .3s
}

.d4 {
  transition-delay: .4s
}

/* ── FOOTER ───────────────────────────────────── */
footer {
  background: #071F14;
  color: rgba(255, 255, 255, .6);
  padding: 60px 0 28px;
  overflow: hidden
}

.ft-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .07)
}

.ft-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px
}

.ft-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain
}

.ft-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--wh)
}

.ft-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .48);
  margin-bottom: 20px
}

.ft-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.ft-tag {
  font-size: 10.5px;
  background: rgba(201, 162, 39, .12);
  border: 1px solid rgba(201, 162, 39, .25);
  color: var(--gol);
  padding: 4px 11px;
  border-radius: var(--rp)
}

.ft-col-h {
  font-size: 11px;
  font-weight: 700;
  color: var(--wh);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px
}

.ft-links {
  display: flex;
  flex-direction: column;
  gap: 9px
}

.ft-links a {
  color: rgba(255, 255, 255, .48);
  font-size: 14px;
  transition: color .2s
}

.ft-links a:hover {
  color: var(--gol)
}

.ft-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, .3)
}

.ft-bottom a {
  color: var(--gol)
}

/* ── RESPONSIVE ───────────────────────────────── */

/* ---- TABLET: 1024px ---- */
@media(max-width:1024px) {
  .ft-grid {
    grid-template-columns: 1fr 1fr
  }

  .nav-in {
    padding: 0 24px
  }

  .tb-in {
    padding: 0 24px
  }

  .wrap {
    padding: 0 28px
  }
}

/* ---- MOBILE: 768px ---- */
@media(max-width:768px) {

  /* Topbar */
  .tb {
    height: auto;
    padding: 8px 0
  }

  .tb-in {
    flex-direction: column;
    gap: 6px;
    padding: 6px 16px
  }

  .tb-left {
    font-size: 11px;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center
  }

  .tb-tick {
    width: 100%;
    text-align: center
  }

  .tb-right {
    font-size: 11px;
    gap: 10px;
    justify-content: center
  }

  /* Navbar */
  .nav-in {
    padding: 0 16px;
    height: 64px;
    gap: 12px
  }

  .nav-logo img {
    width: 40px;
    height: 40px
  }

  .nav-logo-name {
    font-size: 13px
  }

  .nav-logo-sub {
    display: none
  }

  .nav-menu {
    display: none
  }

  .nav-srch {
    display: none
  }

  .btn-apply {
    font-size: 12px;
    padding: 8px 16px
  }

  /* Hamburger */
  .ham-btn {
    display: flex
  }

  /* Wrap / layout */
  .wrap {
    padding: 0 16px
  }

  .sec {
    padding: 52px 0
  }

  .sec-sm {
    padding: 36px 0
  }

  /* Page Hero (inner pages) */
  .pg-hero {
    padding: 36px 0
  }

  .pg-hero-in {
    padding: 0 16px
  }

  .pg-hero h1 {
    font-size: 1.9rem
  }

  .pg-hero p {
    font-size: 14px
  }

  .bc {
    font-size: 11px;
    flex-wrap: wrap
  }

  /* V2-compat hero */
  .page-hero {
    padding: 36px 0
  }

  .page-hero-inner {
    padding: 0 16px
  }

  /* Footer */
  .ft-grid {
    grid-template-columns: 1fr
  }

  .ft-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px
  }
}

/* ---- SMALL MOBILE: 480px ---- */
@media(max-width:480px) {
  .btn-apply {
    font-size: 11.5px;
    padding: 7px 14px
  }
}

/* ── V2 COMPATIBILITY ALIASES ─────────────────── */
/* Maps old v2 variable names & classes to v3 tokens */
:root {
  --green: #0B4D35;
  --green-mid: #0F6044;
  --green-light: #1A7A56;
  --gold: #C9A227;
  --gold-light: #E8C547;
  --gold-pale: #FEF6D8;
  --cream: #FAFAF5;
  --cream-dark: #F2F0E8;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --text-mid: #444440;
  --text-light: #787870;
  --shadow: 0 4px 24px rgba(0, 0, 0, .08);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-xl: 48px;
  --r-pill: 100px;
}

/* Page hero */
.page-hero {
  background: var(--g);
  padding: 56px 40px;
  position: relative;
  overflow: hidden
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/img/campus/building.jpg') center/cover;
  opacity: .1
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative
}

.page-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gol);
  margin-bottom: 10px
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 10px
}

.page-hero p {
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
  max-width: 500px
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, .5)
}

.breadcrumb a {
  color: var(--gol)
}

.breadcrumb span {
  color: rgba(255, 255, 255, .35)
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px)
}

.section {
  padding: 80px 0
}

.section-sm {
  padding: 56px 0
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gm);
  margin-bottom: 12px
}

.section-label::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--go)
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  color: var(--tx);
  margin-bottom: 12px
}

.section-sub {
  color: var(--txl);
  font-size: 16px;
  max-width: 540px;
  margin-bottom: 44px
}

/* Reveal — v2 used .reveal / .visible */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0)
}

.reveal-delay-1 {
  transition-delay: .1s
}

.reveal-delay-2 {
  transition-delay: .2s
}

.reveal-delay-3 {
  transition-delay: .3s
}

/* ── HAMBURGER & MOBILE MENU ──────────────────── */
.ham-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1.5px solid var(--crd);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.ham-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--g);
  border-radius: 2px;
  transition: all .25s;
}

.ham-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.ham-btn.open span:nth-child(2) {
  opacity: 0
}

.ham-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

/* Mobile menu overlay */
.mob-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(4px);
}

.mob-menu.open {
  display: block
}

.mob-menu-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: min(340px, 100vw);
  height: 100%;
  background: var(--wh);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -8px 0 40px rgba(0, 0, 0, .15);
}

.mob-menu.open .mob-menu-inner {
  transform: translateX(0)
}

.mob-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--crd);
  flex-shrink: 0;
  background: var(--cr);
}

.mob-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--crd);
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txm);
  transition: all .2s;
}

.mob-close:hover {
  background: var(--g);
  color: #fff;
  border-color: var(--g)
}

.mob-nav {
  flex: 1;
  padding: 8px 12px;
  overflow-y: auto
}

.mob-section {
  margin-bottom: 8px
}

.mob-section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--txl);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 12px 6px;
}

.mob-section a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14.5px;
  color: var(--txm);
  text-decoration: none;
  transition: all .18s;
  margin-bottom: 2px;
}

.mob-section a:hover {
  background: var(--cr);
  color: var(--g)
}

.mob-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--crd);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  background: var(--cr);
}

.mob-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  background: var(--g);
  color: #fff;
  border-radius: var(--rp);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .5px;
}

@media(max-width:768px) {
  .ham-btn {
    display: flex
  }

  .mob-menu {
    display: block
  }

  /* controlled by .open class */
}