/* =========================================================
   Indira Gandhi National College, Ladwa — Main Stylesheet
   ========================================================= */

:root {
  --primary: #7a1f2b;        /* maroon */
  --primary-dark: #5a1520;
  --primary-light: #9c2c3b;
  --navy: #14213d;
  --navy-light: #1f2f55;
  --gold: #e0a526;
  --gold-light: #f6d27a;
  --text: #2b2b33;
  --muted: #6b6b78;
  --bg: #ffffff;
  --bg-soft: #f7f4ef;
  --border: #e7e2d9;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(20, 33, 61, .08);
  --shadow: 0 10px 30px rgba(20, 33, 61, .12);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1200px;
  --header-h: 84px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-light); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-navy { background: var(--navy); color: #dfe4f0; }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.text-center { text-align: center; }

.section-head { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.section-head p { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
  position: relative;
  padding: 0 34px;
}
.eyebrow::before, .eyebrow::after {
  content: ""; position: absolute; top: 50%; width: 24px; height: 2px; background: var(--gold);
}
.eyebrow::before { left: 0; }
.eyebrow::after { right: 0; }
.bg-navy .eyebrow { color: var(--gold-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600; font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .3s var(--ease);
  font-family: var(--font-body);
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy); transform: translateY(-2px); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-outline-dark { border-color: var(--primary); color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: var(--white); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #c9d0e0; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #c9d0e0; }
.topbar a:hover { color: var(--gold-light); }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info i { color: var(--gold); margin-right: 6px; }
.topbar-social { display: flex; gap: 14px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand img { height: 62px; width: auto; }
.brand-text strong { display: block; font-family: var(--font-head); font-size: 1.15rem; line-height: 1.2; color: var(--primary); }
.brand-text span { font-size: .75rem; color: var(--muted); letter-spacing: .03em; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav > ul > li { position: relative; }
.nav a { display: block; white-space: nowrap; padding: 10px 12px; color: var(--navy); font-weight: 500; font-size: .93rem; border-radius: 6px; }
.nav a:hover, .nav a.active { color: var(--primary); }
.nav > ul > li > a.active::after {
  content: ""; display: block; height: 2px; background: var(--gold); margin-top: 3px; border-radius: 2px;
}
.nav .has-dropdown > a i { font-size: .7rem; margin-left: 4px; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s var(--ease); border-top: 3px solid var(--primary);
  flex-direction: column; align-items: stretch !important;
}
.nav .dropdown { display: flex; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { padding: 9px 20px; font-size: .9rem; border-radius: 0; }
.dropdown a:hover { background: var(--bg-soft); padding-left: 26px; }
.nav-cta { margin-left: 10px; }
.nav-cta a { background: var(--primary); color: var(--white) !important; padding: 10px 20px; border-radius: 50px; }
.nav-cta a:hover { background: var(--primary-dark); }

.menu-toggle {
  display: none; background: none; border: 0; font-size: 1.6rem; color: var(--primary); cursor: pointer; padding: 8px;
}

/* ---------- Hero slider ---------- */
.hero { position: relative; height: calc(100vh - var(--header-h) - 42px); min-height: 520px; max-height: 760px; overflow: hidden; background: var(--navy); }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease;
  background-size: cover; background-position: center;
}
.slide.active { opacity: 1; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,33,61,.92) 0%, rgba(90,21,32,.70) 55%, rgba(0,0,0,.25) 100%); }
.slide.active { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; color: var(--white); max-width: 720px;
}
.hero-content .badge {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: rgba(224,165,38,.18); border: 1px solid rgba(224,165,38,.6); color: var(--gold-light);
  padding: 6px 16px; border-radius: 50px; font-size: .82rem; font-weight: 500; margin-bottom: 20px;
}
.hero-content h1 { color: var(--white); margin-bottom: 18px; }
.hero-content h1 span { color: var(--gold); }
.hero-content p { font-size: 1.1rem; color: #e1e5ee; max-width: 600px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--white); background: transparent; cursor: pointer; padding: 0; transition: all .3s; }
.hero-dots button.active { background: var(--gold); border-color: var(--gold); width: 32px; border-radius: 10px; }

/* ---------- Notice ticker ---------- */
.ticker { background: var(--gold); color: var(--navy); display: flex; align-items: center; overflow: hidden; font-size: .92rem; }
.ticker-label { background: var(--primary); color: var(--white); padding: 12px 22px; font-weight: 600; white-space: nowrap; z-index: 2; }
.ticker-track { overflow: hidden; flex: 1; }
.ticker-items { display: inline-flex; gap: 60px; white-space: nowrap; animation: ticker 40s linear infinite; padding-left: 100%; }
.ticker-items span i { margin-right: 8px; }
.ticker:hover .ticker-items { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  position: relative; padding: 110px 0 90px; color: var(--white); text-align: center;
  background-size: cover; background-position: center;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20,33,61,.93), rgba(122,31,43,.85)); }
.page-banner .container { position: relative; }
.page-banner h1 { color: var(--white); margin-bottom: 12px; }
.page-banner p { color: #e1e5ee; max-width: 640px; margin: 0 auto 16px; }
.breadcrumb { display: inline-flex; gap: 8px; list-style: none; padding: 8px 20px; margin: 0; background: rgba(255,255,255,.1); border-radius: 50px; font-size: .88rem; flex-wrap: wrap; justify-content: center; }
.breadcrumb a { color: var(--gold-light); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #aab; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* ---------- About block ---------- */
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-media .img-small {
  position: absolute; right: -24px; bottom: -40px; width: 52%; border: 6px solid var(--white); aspect-ratio: 4/3;
}
.about-media .years {
  position: absolute; left: -20px; top: 30px; background: var(--primary); color: var(--white);
  padding: 20px 24px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow);
}
.about-media .years strong { display: block; font-family: var(--font-head); font-size: 2.6rem; line-height: 1; color: var(--gold-light); }
.about-media .years span { font-size: .8rem; letter-spacing: .05em; }
.check-list { list-style: none; padding: 0; margin: 20px 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list i { color: var(--primary); margin-top: 6px; }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: var(--white); }
.stats .grid { text-align: center; }
.stat i { font-size: 2rem; color: var(--gold-light); margin-bottom: 12px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.8rem; line-height: 1.1; }
.stat span { color: #f1d9dc; font-size: .95rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-img { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.08); }
.card-tag {
  position: absolute; top: 14px; left: 14px; background: var(--gold); color: var(--navy);
  font-size: .75rem; font-weight: 600; padding: 4px 12px; border-radius: 50px;
}
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 8px; }
.card-body h3 a { color: var(--navy); }
.card-body h3 a:hover { color: var(--primary); }
.card-body p { color: var(--muted); font-size: .93rem; flex: 1; }
.card-meta { display: flex; gap: 18px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 14px; margin-top: 6px; flex-wrap: wrap; }
.card-meta i { color: var(--primary); margin-right: 5px; }
.card-link { font-weight: 600; font-size: .9rem; margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; }
.card-link i { transition: transform .3s; }
.card-link:hover i { transform: translateX(4px); }

/* Feature / icon boxes */
.feature {
  background: var(--white); padding: 34px 28px; border-radius: var(--radius); border: 1px solid var(--border);
  transition: all .35s var(--ease); position: relative; overflow: hidden;
}
.feature::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--gold); transition: width .4s var(--ease); }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.feature:hover::before { width: 100%; }
.feature .icon {
  width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(122,31,43,.08); color: var(--primary); font-size: 1.6rem; margin-bottom: 20px;
  transition: all .35s;
}
.feature:hover .icon { background: var(--primary); color: var(--white); }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Principal message ---------- */
.message-box {
  display: grid; grid-template-columns: 300px 1fr; gap: 50px; align-items: center;
  background: var(--white); border-radius: var(--radius); padding: 50px; box-shadow: var(--shadow);
}
.message-photo {
  aspect-ratio: 1; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center;
  border: 8px solid var(--white); box-shadow: 0 0 0 3px var(--gold); overflow: hidden;
}
.message-photo img { width: 70%; }
.message-box blockquote { margin: 0; font-size: 1.08rem; font-style: italic; color: #444; position: relative; padding-left: 0; }
.message-box blockquote::before { content: "\201C"; font-family: var(--font-head); font-size: 5rem; color: var(--gold); line-height: 0; display: block; height: 30px; }
.message-box cite { display: block; margin-top: 18px; font-style: normal; font-weight: 600; color: var(--primary); }
.message-box cite span { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); }

/* ---------- Notices ---------- */
.notice-list { list-style: none; padding: 0; margin: 0; }
.notice-list li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px dashed var(--border); }
.notice-list li:last-child { border-bottom: 0; }
.date-box { flex: 0 0 64px; text-align: center; background: var(--primary); color: var(--white); border-radius: 10px; padding: 8px 4px; line-height: 1.2; height: fit-content; }
.date-box strong { display: block; font-size: 1.4rem; font-family: var(--font-head); }
.date-box span { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.notice-list h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.notice-list p { font-size: .88rem; color: var(--muted); margin: 0; }
.panel { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); height: 100%; }
.panel-title { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--bg-soft); padding-bottom: 14px; margin-bottom: 8px; }
.panel-title h3 { margin: 0; }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  border: 1px solid var(--border); background: var(--white); padding: 8px 22px; border-radius: 50px;
  font-family: var(--font-body); font-size: .9rem; cursor: pointer; color: var(--navy); transition: all .25s;
}
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius-sm); cursor: zoom-in; aspect-ratio: 4/3; background: var(--bg-soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item::after {
  content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); font-size: 1.6rem;
  background: rgba(122,31,43,.55); opacity: 0; transition: opacity .3s;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover::after { opacity: 1; }
[data-cat].hide { display: none !important; }

.lightbox { position: fixed; inset: 0; background: rgba(10,14,28,.94); z-index: 3000; display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: var(--white); width: 50px; height: 50px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; transition: background .2s; }
.lightbox button:hover { background: var(--primary); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #ccd; font-size: .9rem; }

/* ---------- CTA ---------- */
.cta {
  position: relative; padding: 80px 0; color: var(--white); text-align: center;
  background-size: cover; background-position: center; background-attachment: fixed;
}
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(122,31,43,.92), rgba(20,33,61,.9)); }
.cta .container { position: relative; }
.cta h2 { color: var(--white); }
.cta p { color: #e6e8ef; max-width: 640px; margin: 0 auto 28px; }

/* ---------- Course detail ---------- */
.course-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.course-hero-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; box-shadow: var(--shadow-sm); }
.course-hero-img img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.course-content h2 { font-size: 1.7rem; margin-top: 36px; }
.course-content h2:first-child { margin-top: 0; }
.subject-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 20px; list-style: none; padding: 0; }
.subject-chips li { background: var(--bg-soft); border: 1px solid var(--border); padding: 7px 16px; border-radius: 50px; font-size: .9rem; }
.subject-chips li i { color: var(--primary); margin-right: 6px; }
.sem-table, .data-table { width: 100%; border-collapse: collapse; margin: 14px 0 24px; font-size: .93rem; }
.sem-table th, .sem-table td, .data-table th, .data-table td { padding: 12px 16px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.sem-table th, .data-table th { background: var(--navy); color: var(--white); font-weight: 600; }
.sem-table tr:nth-child(even) td, .data-table tr:nth-child(even) td { background: var(--bg-soft); }
.table-wrap { overflow-x: auto; }
.career-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; padding: 0; }
.career-grid li { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 6px; font-size: .93rem; }
.career-grid li i { color: var(--primary); margin-right: 8px; }

.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 24px; }
.info-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; }
.info-card-head { background: var(--primary); color: var(--white); padding: 18px 24px; font-family: var(--font-head); font-size: 1.2rem; }
.info-list { list-style: none; margin: 0; padding: 10px 24px 20px; }
.info-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.info-list li:last-child { border-bottom: 0; }
.info-list li span { color: var(--muted); display: flex; gap: 8px; align-items: center; }
.info-list li span i { color: var(--primary); width: 16px; }
.info-list li strong { text-align: right; color: var(--navy); }
.info-card .btn { margin: 0 24px 24px; justify-content: center; }
.side-links { list-style: none; margin: 0; padding: 10px 0; }
.side-links a { display: flex; justify-content: space-between; padding: 11px 24px; color: var(--navy); font-size: .93rem; border-left: 3px solid transparent; }
.side-links a:hover, .side-links a.active { background: var(--bg-soft); border-left-color: var(--primary); color: var(--primary); }

/* ---------- Course listing filter ---------- */
.course-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }

/* ---------- Accordion ---------- */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: var(--white); }
.accordion-btn {
  width: 100%; text-align: left; background: var(--white); border: 0; padding: 18px 22px; font-family: var(--font-body);
  font-size: 1rem; font-weight: 600; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.accordion-btn i { transition: transform .3s; color: var(--primary); }
.accordion-item.open .accordion-btn { background: var(--bg-soft); color: var(--primary); }
.accordion-item.open .accordion-btn i { transform: rotate(180deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.accordion-panel > div { padding: 4px 22px 20px; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; background: var(--white); padding: 30px 24px; border-radius: var(--radius); border: 1px solid var(--border); text-align: center; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 54px; height: 54px; border-radius: 50%; background: var(--primary); color: var(--white);
  display: grid; place-items: center; margin: 0 auto 16px; font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
  box-shadow: 0 0 0 6px rgba(122,31,43,.12);
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 500; font-size: .9rem; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  font-family: var(--font-body); font-size: .95rem; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--white); color: var(--text); transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(122,31,43,.12); }
.form-group .error { color: #c0392b; font-size: .8rem; min-height: 1em; }
.form-group.invalid input, .form-group.invalid select, .form-group.invalid textarea { border-color: #c0392b; }
.form-success { display: none; background: #e8f6ee; color: #1e7b47; border: 1px solid #bfe5cf; padding: 14px 18px; border-radius: var(--radius-sm); margin-top: 18px; }
.form-success.show { display: block; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 60px; }
.contact-card { text-align: center; padding: 36px 24px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.contact-card .icon { width: 70px; height: 70px; border-radius: 50%; background: var(--primary); color: var(--white); display: grid; place-items: center; margin: 0 auto 18px; font-size: 1.5rem; }
.contact-card h3 { font-size: 1.2rem; }
.contact-card p { margin: 0; color: var(--muted); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); height: 100%; min-height: 420px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Department / misc ---------- */
.dept-card { display: flex; gap: 18px; align-items: flex-start; padding: 24px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); transition: all .3s; }
.dept-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.dept-card .icon { flex: 0 0 52px; height: 52px; border-radius: 12px; background: var(--primary); color: var(--white); display: grid; place-items: center; font-size: 1.3rem; }
.dept-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.dept-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 30px; }
.timeline-item::before { content: ""; position: absolute; left: -32px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--gold); }
.timeline-item strong { color: var(--primary); font-family: var(--font-head); font-size: 1.2rem; }
.timeline-item p { margin: 4px 0 0; color: var(--muted); }

.mission-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mission-list li { display: flex; gap: 12px; background: var(--white); padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: .94rem; }
.mission-list li i { color: var(--gold); margin-top: 5px; }

.facility-row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 80px; }
.facility-row:last-child { margin-bottom: 0; }
.facility-row:nth-child(even) .facility-img { order: 2; }
.facility-img img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3/2; object-fit: cover; width: 100%; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #b9c1d4; padding-top: 70px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer h4 { color: var(--white); font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--gold); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { height: 64px; background: var(--white); padding: 4px; border-radius: 8px; }
.footer-brand strong { color: var(--white); font-family: var(--font-head); font-size: 1.15rem; line-height: 1.3; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer a { color: #b9c1d4; }
.footer a:hover { color: var(--gold-light); }
.footer-links a::before { content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: 8px; color: var(--gold); }
.footer-contact li { display: flex; gap: 12px; }
.footer-contact i { color: var(--gold); margin-top: 5px; width: 16px; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: var(--white); transition: all .3s; }
.social a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.back-to-top {
  position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--white); border: 0; cursor: pointer; font-size: 1.1rem;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s; z-index: 900;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); color: var(--navy); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .slide.active { animation: none; }
  .ticker-items { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1280px) {
  .brand-text span { display: none; }
}
@media (max-width: 1100px) {
  .nav a { padding: 10px 8px; font-size: .86rem; }
  .brand img { height: 54px; }
  .brand-text strong { font-size: 1rem; }
}
@media (max-width: 992px) {
  :root { --header-h: 74px; }
  .menu-toggle { display: block; }
  .brand img { height: 52px; }
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(340px, 85vw); background: var(--white);
    box-shadow: -10px 0 40px rgba(0,0,0,.15); transform: translateX(100%); transition: transform .35s var(--ease);
    overflow-y: auto; padding: 80px 0 30px; z-index: 1100;
  }
  .nav.open { transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 13px 26px; font-size: .98rem; border-bottom: 1px solid var(--bg-soft); }
  .nav > ul > li > a.active::after { display: none; }
  .nav .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0; display: none; background: var(--bg-soft); min-width: 0; }
  .nav .has-dropdown.open .dropdown { display: flex; }
  .nav .has-dropdown > a { display: flex; justify-content: space-between; align-items: center; }
  .dropdown a { padding-left: 40px; }
  .nav-cta { margin: 20px 26px 0; }
  .nav-cta a { text-align: center; border-bottom: 0; }
  .nav-close { position: absolute; top: 18px; right: 20px; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1050; opacity: 0; visibility: hidden; transition: all .3s; }
  .nav-overlay.show { opacity: 1; visibility: visible; }

  .split, .course-layout, .message-box { grid-template-columns: 1fr; }
  .message-box { padding: 36px; text-align: center; }
  .message-photo { max-width: 220px; margin: 0 auto; }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .facility-row { grid-template-columns: 1fr; gap: 26px; }
  .facility-row:nth-child(even) .facility-img { order: 0; }
  .about-media { margin-bottom: 40px; }
  .sidebar { position: static; }
  .cta { background-attachment: scroll; }
}
@media (min-width: 993px) { .nav-close, .nav-overlay { display: none; } }
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .topbar-info span.hide-sm, .topbar-social { display: none; }
  .brand-text strong { font-size: .98rem; }
  .grid-2, .grid-3, .grid-4, .contact-cards, .steps, .check-list, .mission-list, .career-grid, .form-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-media .img-small { display: none; }
  .about-media .years { left: 10px; top: 10px; padding: 14px 18px; }
  .about-media .years strong { font-size: 2rem; }
  .hero { min-height: 560px; }
  .page-banner { padding: 80px 0 64px; }
  .message-box { padding: 26px; }
  .panel { padding: 22px; }
  .lb-prev, .lb-next { top: auto !important; bottom: 70px; transform: none !important; }
}
