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

:root {
  --navy:   #1a2340;
  --gold:   #c9a84c;
  --cream:  #f7f4ee;
  --white:  #ffffff;
  --mid:    #4a5568;
  --light:  #e8e2d4;
  --radius: 10px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--cream); color: var(--navy); line-height: 1.7; }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 70px;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.nav-logo img { height: 52px; width: auto; object-fit: contain; }
nav ul { list-style: none; display: flex; gap: 1.8rem; }
nav ul a {
  color: rgba(255,255,255,.75); text-decoration: none;
  font-size: .85rem; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; transition: color .2s;
}
nav ul a:hover, nav ul a.active { color: var(--gold); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; display: block; }

/* WELCOME BANNER */
.welcome-banner {
  position: relative;
  min-height: 420px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  overflow: hidden;
}
.welcome-banner .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.45);
}
.welcome-banner .content { position: relative; z-index: 2; max-width: 680px; }
.welcome-banner h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white); line-height: 1.2; margin-bottom: 1rem;
}
.welcome-banner h1 em { color: var(--gold); font-style: italic; }
.welcome-banner p { color: rgba(255,255,255,.75); font-size: 1rem; max-width: 520px; }

/* SECTION */
.page-section { padding: 5rem 1.5rem; }
.page-section.alt { background: var(--white); }
.container { max-width: 960px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--navy); }
.section-header p { margin-top: .6rem; color: var(--mid); max-width: 540px; margin-left: auto; margin-right: auto; }
.divider { width: 48px; height: 3px; background: var(--gold); border-radius: 2px; margin: .8rem auto 0; }

/* CARDS */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.cert-card {
  background: var(--cream); border: 1px solid var(--light);
  border-top: 4px solid var(--gold); border-radius: var(--radius);
  padding: 1.6rem; transition: box-shadow .2s, transform .2s;
}
.cert-card:hover { box-shadow: 0 8px 28px rgba(26,35,64,.12); transform: translateY(-3px); }
.cert-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .3rem; }
.cert-card .subtitle { font-size: .75rem; color: var(--gold); font-weight: 600; margin-bottom: .7rem; }
.cert-card p { font-size: .84rem; color: var(--mid); }
.cert-card .fields { margin-top: .7rem; font-size: .77rem; color: var(--mid); }
.cert-card .fields strong { color: var(--navy); }
.cert-card .duration { margin-top: .8rem; display: inline-flex; align-items: center; gap: .3rem; background: var(--navy); color: var(--white); border-radius: 50px; padding: .2rem .7rem; font-size: .72rem; font-weight: 600; }

/* INTRO BANNER */
.intro-banner { background: linear-gradient(135deg, var(--navy) 0%, #243050 100%); border-radius: 16px; padding: 2.5rem; color: var(--white); display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
.intro-banner .big-text { font-family: 'Playfair Display', serif; font-size: clamp(1.2rem, 2.5vw, 1.7rem); font-style: italic; flex: 1; min-width: 200px; }
.intro-banner .big-text strong { color: var(--gold); font-style: normal; }
.intro-banner p { color: rgba(255,255,255,.7); flex: 2; min-width: 220px; font-size: .92rem; }

/* SECOND CHANCE */
.second-chance-box { background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%); border-radius: 16px; padding: 2.5rem; color: var(--white); margin-top: 3rem; }
.second-chance-box h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: .8rem; }
.second-chance-box p { color: rgba(255,255,255,.8); font-size: .92rem; }

/* APPLY */
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.apply-box { background: var(--cream); border: 1px solid var(--light); border-radius: var(--radius); padding: 2rem; }
.apply-box h3 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.apply-box h3 a { color: var(--gold); font-size: .82rem; }
.steps { counter-reset: step; display: flex; flex-direction: column; gap: .55rem; }
.steps li { counter-increment: step; list-style: none; display: flex; align-items: flex-start; gap: .7rem; font-size: .85rem; color: var(--mid); }
.steps li::before { content: counter(step); min-width: 22px; height: 22px; background: var(--navy); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 700; flex-shrink: 0; margin-top: .15rem; }

/* DIVISIONS */
.tab-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; border-bottom: 2px solid var(--light); padding-bottom: 1rem; }
.tab-btn { padding: .45rem 1rem; border: 1px solid var(--light); border-radius: 50px; background: transparent; color: var(--mid); font-size: .82rem; font-weight: 500; cursor: pointer; transition: all .2s; font-family: 'Inter', sans-serif; }
.tab-btn:hover { border-color: var(--gold); color: var(--navy); }
.tab-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.division-panel { display: none; }
.division-panel.active { display: flex; flex-direction: column; gap: 1.5rem; }
.division-card { background: var(--white); border: 1px solid var(--light); border-radius: var(--radius); padding: 2rem; }
.division-card h3 { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--navy); margin-bottom: .4rem; }
.division-card .tagline { color: var(--mid); font-size: .9rem; margin-bottom: 1.2rem; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.2rem; }
.pros { background: #f0faf4; border-left: 3px solid #2d6a4f; border-radius: 8px; padding: 1rem; }
.cons { background: #fff5f5; border-left: 3px solid #c0392b; border-radius: 8px; padding: 1rem; }
.pros h4 { color: #2d6a4f; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4rem; }
.cons h4 { color: #c0392b; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4rem; }
.pros ul, .cons ul { padding-left: 1rem; }
.pros li, .cons li { font-size: .82rem; color: var(--mid); margin-bottom: .25rem; }
.subjects-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.subject-tag { background: var(--cream); border: 1px solid var(--light); color: var(--navy); border-radius: 50px; padding: .22rem .7rem; font-size: .73rem; font-weight: 500; }
.year-label { display: inline-block; background: var(--gold); color: var(--navy); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .18rem .55rem; border-radius: 4px; margin-bottom: 1rem; }

/* GRAD INFO */
.grad-info { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.info-card { background: var(--white); border: 1px solid var(--light); border-radius: var(--radius); padding: 2rem; }
.info-card h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--navy); margin-bottom: .7rem; }
.info-card p { font-size: .87rem; color: var(--mid); }
.info-card a { color: var(--gold); font-weight: 600; text-decoration: none; }
.info-card a:hover { text-decoration: underline; }

/* FORM SECTION */
.form-section {
  position: relative; padding: 5rem 1.5rem;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 500px; overflow: hidden;
}
.form-bg-half {
  position: absolute; top: 0; bottom: 0;
  background-size: cover; background-position: center;
}
.form-bg-left { left: 0; width: 50%; }
.form-bg-right { right: 0; width: 50%; }
.form-bg-left::after, .form-bg-right::after {
  content: ''; position: absolute; inset: 0; background: rgba(20,30,60,.72);
}
.form-col {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 3rem 2.5rem;
}
.form-col h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--white); margin-bottom: .5rem; }
.form-col p { color: rgba(255,255,255,.6); font-size: .88rem; margin-bottom: 1.5rem; }
.form-col input, .form-col textarea {
  width: 100%; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18); border-radius: 8px;
  color: var(--white); font-family: 'Inter', sans-serif; font-size: .88rem;
  padding: .85rem 1rem; outline: none; transition: border-color .2s;
  margin-bottom: .8rem;
}
.form-col input:focus, .form-col textarea:focus { border-color: var(--gold); }
.form-col input::placeholder, .form-col textarea::placeholder { color: rgba(255,255,255,.3); }
.form-col textarea { resize: vertical; min-height: 110px; }
.btn-submit {
  background: var(--gold); color: var(--navy);
  border: none; border-radius: 8px; padding: .85rem;
  font-family: 'Inter', sans-serif; font-size: .9rem; font-weight: 700;
  cursor: pointer; transition: opacity .2s, transform .15s; width: 100%;
}
.btn-submit:hover { opacity: .9; transform: translateY(-1px); }
.success-msg { display: none; color: #52d68a; font-weight: 600; margin-top: .5rem; font-size: .88rem; }

/* FOOTER */
footer { background: #111827; color: rgba(255,255,255,.4); text-align: center; padding: 1.5rem; font-size: .78rem; }
footer strong { color: var(--gold); }

/* HOME HERO */
.home-hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 2rem 4rem; overflow: hidden;
}
.home-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.4); }
.home-hero .content { position: relative; z-index: 2; }
.home-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 6vw, 4.5rem); color: var(--white); line-height: 1.15; max-width: 700px; }
.home-hero h1 em { font-style: italic; color: var(--gold); }
.home-hero p { margin-top: 1.5rem; max-width: 520px; color: rgba(255,255,255,.65); font-size: 1.05rem; margin-left: auto; margin-right: auto; }
.hero-cards { margin-top: 3rem; display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
.hero-card { background: rgba(255,255,255,.07); border: 1px solid rgba(201,168,76,.2); border-radius: var(--radius); padding: 1.4rem 1.8rem; max-width: 220px; text-align: left; transition: border-color .25s, transform .25s; text-decoration: none; }
.hero-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.hero-card h3 { color: var(--white); font-size: .95rem; font-weight: 600; }
.hero-card p { color: rgba(255,255,255,.5); font-size: .78rem; margin-top: .25rem; }

/* TEXT / SCROLL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-fade {
  opacity: 0;
  transition: opacity .8s ease;
}
.reveal-fade.in-view { opacity: 1; }

.hero-animate {
  opacity: 0;
  transform: translateY(18px);
  animation: heroRise .8s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero-animate.delay-1 { animation-delay: .12s; }
.hero-animate.delay-2 { animation-delay: .28s; }
.hero-animate.delay-3 { animation-delay: .44s; }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-fade, .hero-animate {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 700px) {
  nav ul { display: none; }
  nav ul.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--navy); padding: 1rem 2rem 2rem; gap: 1rem; }
  .hamburger { display: flex; }
  .apply-grid, .pros-cons, .grad-info, .form-section { grid-template-columns: 1fr; }
  .form-bg-left { width: 100%; }
  .form-bg-right { display: none; }
  .form-col { padding: 2rem 1.5rem; }
  .intro-banner { flex-direction: column; }
}
