/* ==========================================================
   Guru Nanak Khalsa College, Yamuna Nagar — Main Stylesheet
   ========================================================== */
:root {
  --navy: #243659;
  --navy-dark: #172440;
  --navy-light: #34497a;
  --saffron: #f39200;
  --saffron-dark: #d97f00;
  --cream: #fdf8f0;
  --text: #2b2f3a;
  --muted: #6b7280;
  --border: #e6e8ee;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(23, 36, 64, 0.10);
  --shadow-lg: 0 20px 50px rgba(23, 36, 64, 0.18);
  --radius: 14px;
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Playfair Display', Georgia, serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.25; }
button, input, select, textarea { font: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--navy); color: #dfe5f2; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.text-center { text-align: center; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 55px; }
.section-head .eyebrow,
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.section-head p { color: var(--muted); }
.section-dark .section-head p { color: #b9c3da; }
.divider { width: 70px; height: 3px; background: var(--saffron); margin: 16px auto 0; border-radius: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600; font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .3s ease;
}
.btn-primary { background: var(--saffron); color: var(--white); }
.btn-primary:hover { background: var(--saffron-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(243,146,0,.35); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-dark); color: #c8d0e3; font-size: 13.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; gap: 16px; flex-wrap: wrap; }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info span, .topbar-info a { display: inline-flex; align-items: center; gap: 7px; }
.topbar-info i { color: var(--saffron); }
.topbar-info a:hover { color: var(--saffron); }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a:hover { color: var(--saffron); }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,.06);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 6px 25px rgba(0,0,0,.12); }
.header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 62px; height: 62px; object-fit: contain; }
.brand-text strong { display: block; font-family: var(--font-head); font-size: 20px; color: var(--navy); line-height: 1.15; }
.brand-text small { color: var(--saffron); font-weight: 500; font-size: 12.5px; letter-spacing: .5px; }

.nav ul { display: flex; gap: 4px; align-items: center; }
.nav a {
  display: block; padding: 10px 13px;
  font-weight: 500; font-size: 15px; color: var(--navy);
  border-radius: 8px; position: relative;
}
.nav a::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 4px;
  height: 2px; background: var(--saffron); transform: scaleX(0); transition: transform .3s;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--saffron); }
.nav .nav-cta { background: var(--saffron); color: var(--white); padding: 10px 20px; border-radius: 50px; margin-left: 8px; }
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--saffron-dark); }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 8px; color: var(--navy); font-size: 24px;
}

/* ---------- Hero slider ---------- */
.hero { position: relative; height: calc(100vh - 120px); min-height: 560px; max-height: 820px; overflow: hidden; color: var(--white); }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease, transform 7s ease;
  transform: scale(1.08);
}
.slide.active { opacity: 1; transform: scale(1); }
.slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(23,36,64,.92) 0%, rgba(23,36,64,.65) 50%, rgba(23,36,64,.25) 100%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-text { max-width: 680px; }
.hero-text .eyebrow { background: rgba(243,146,0,.15); border: 1px solid rgba(243,146,0,.5); padding: 6px 16px; border-radius: 50px; }
.hero h1 { color: var(--white); font-size: clamp(34px, 5.5vw, 60px); margin: 18px 0; }
.hero h1 span { color: var(--saffron); }
.hero p { font-size: 18px; color: #dfe5f2; margin-bottom: 32px; max-width: 580px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.slider-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.slider-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--white); background: transparent; cursor: pointer; transition: all .3s; }
.slider-dots button.active { background: var(--saffron); border-color: var(--saffron); width: 32px; border-radius: 10px; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: var(--white);
  cursor: pointer; font-size: 18px; transition: background .3s;
}
.slider-arrow:hover { background: var(--saffron); border-color: var(--saffron); }
.slider-arrow.prev { left: 25px; }
.slider-arrow.next { right: 25px; }

/* ---------- Notice ticker ---------- */
.ticker { background: var(--saffron); color: var(--white); display: flex; align-items: stretch; overflow: hidden; }
.ticker-label { background: var(--navy); padding: 12px 22px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 8px; z-index: 1; }
.ticker-track { flex: 1; overflow: hidden; display: flex; align-items: center; }
.ticker-items { display: flex; gap: 60px; white-space: nowrap; animation: ticker 40s linear infinite; padding-left: 100%; }
.ticker-items span::before { content: '\2605'; margin-right: 10px; }
.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(135deg, rgba(23,36,64,.92), rgba(36,54,89,.75)); }
.page-banner .container { position: relative; }
.page-banner h1 { color: var(--white); font-size: clamp(32px, 5vw, 52px); margin-bottom: 12px; }
.breadcrumb { display: inline-flex; gap: 10px; align-items: center; background: rgba(255,255,255,.1); padding: 7px 20px; border-radius: 50px; font-size: 14px; }
.breadcrumb a:hover { color: var(--saffron); }
.breadcrumb .current { color: var(--saffron); }

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

/* ---------- Feature cards ---------- */
.features { margin-top: -70px; position: relative; z-index: 5; }
.feature-card {
  background: var(--white); padding: 32px 26px; border-radius: var(--radius);
  box-shadow: var(--shadow); border-bottom: 4px solid transparent; transition: all .35s;
}
.feature-card:hover { transform: translateY(-8px); border-bottom-color: var(--saffron); box-shadow: var(--shadow-lg); }
.icon-box {
  width: 64px; height: 64px; border-radius: 16px;
  display: grid; place-items: center; font-size: 26px;
  background: rgba(243,146,0,.12); color: var(--saffron); margin-bottom: 18px; transition: all .35s;
}
.feature-card:hover .icon-box { background: var(--saffron); color: var(--white); transform: rotateY(180deg); }
.feature-card h3 { font-size: 21px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 15px; }

/* ---------- About block ---------- */
.about-images { position: relative; padding: 0 40px 40px 0; }
.about-images .img-main { border-radius: var(--radius); box-shadow: var(--shadow-lg); height: 460px; width: 100%; object-fit: cover; }
.about-images .img-small {
  position: absolute; right: 0; bottom: 0; width: 55%; height: 220px; object-fit: cover;
  border-radius: var(--radius); border: 8px solid var(--white); box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute; top: 30px; left: -20px;
  background: var(--saffron); color: var(--white); padding: 18px 24px; border-radius: var(--radius);
  text-align: center; box-shadow: var(--shadow-lg);
}
.about-badge strong { display: block; font-size: 38px; font-family: var(--font-head); line-height: 1; }
.about-badge span { font-size: 13px; }
.about-text h2 { font-size: clamp(28px, 3.5vw, 38px); margin-bottom: 18px; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 22px 0 30px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check-list i { color: var(--saffron); margin-top: 5px; }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(rgba(23,36,64,.9), rgba(23,36,64,.9)), url('../images/campus-2.jpg') center/cover fixed; color: var(--white); padding: 75px 0; }
.stat { text-align: center; }
.stat i { font-size: 36px; color: var(--saffron); margin-bottom: 12px; }
.stat .num { font-family: var(--font-head); font-size: 48px; font-weight: 700; line-height: 1; }
.stat p { color: #c8d0e3; margin-top: 8px; }

/* ---------- Course cards ---------- */
.course-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all .35s; display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.course-img { position: relative; height: 210px; overflow: hidden; }
.course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.course-card:hover .course-img img { transform: scale(1.1); }
.course-tag { position: absolute; top: 15px; left: 15px; background: var(--saffron); color: var(--white); font-size: 12.5px; font-weight: 600; padding: 5px 14px; border-radius: 50px; }
.course-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.course-body h3 { font-size: 21px; margin-bottom: 8px; }
.course-body p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; flex: 1; }
.course-meta { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 14px; font-size: 14px; color: var(--muted); }
.course-meta i { color: var(--saffron); margin-right: 6px; }

/* ---------- Tabs (courses page) ---------- */
.tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.tab-btn, .filter-btn {
  padding: 10px 24px; border-radius: 50px; border: 2px solid var(--border); background: var(--white);
  color: var(--navy); font-weight: 500; cursor: pointer; transition: all .3s;
}
.tab-btn:hover, .filter-btn:hover { border-color: var(--saffron); color: var(--saffron); }
.tab-btn.active, .filter-btn.active { background: var(--saffron); border-color: var(--saffron); color: var(--white); }
.tab-panel { display: none; animation: fadeUp .5s ease; }
.tab-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--navy); color: var(--white); font-weight: 600; font-size: 15px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--cream); }

/* ---------- Principal / message ---------- */
.message-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; display: grid; grid-template-columns: 380px 1fr; }
.message-box img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.message-content { padding: 45px; }
.message-content .fa-quote-left { font-size: 42px; color: var(--saffron); opacity: .35; margin-bottom: 10px; }
.message-content h2 { font-size: 30px; margin-bottom: 16px; }
.message-content p { color: var(--muted); margin-bottom: 14px; }
.message-content .sign { margin-top: 20px; }
.message-content .sign strong { display: block; color: var(--navy); font-size: 18px; }
.message-content .sign span { color: var(--saffron); font-size: 14px; }

/* ---------- News / events ---------- */
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all .35s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-img { position: relative; height: 220px; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-card:hover .news-img img { transform: scale(1.08); }
.date-badge { position: absolute; bottom: 15px; left: 15px; background: var(--saffron); color: var(--white); text-align: center; padding: 8px 14px; border-radius: 10px; line-height: 1.2; }
.date-badge strong { display: block; font-size: 24px; font-family: var(--font-head); }
.date-badge span { font-size: 12px; text-transform: uppercase; }
.news-body { padding: 24px; }
.news-meta { display: flex; gap: 16px; font-size: 13.5px; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.news-meta i { color: var(--saffron); margin-right: 5px; }
.news-body h3 { font-size: 20px; margin-bottom: 10px; }
.news-body p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.read-more { color: var(--saffron); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; }
.read-more:hover { gap: 12px; }

.notice-board { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.notice-board h3 { background: var(--navy); color: var(--white); padding: 18px 24px; font-size: 20px; display: flex; gap: 10px; align-items: center; }
.notice-board h3 i { color: var(--saffron); }
.notice-list { max-height: 420px; overflow-y: auto; padding: 8px 0; }
.notice-list li { padding: 14px 24px; border-bottom: 1px dashed var(--border); display: flex; gap: 14px; }
.notice-list li:last-child { border-bottom: 0; }
.notice-list .n-date { flex-shrink: 0; background: rgba(243,146,0,.12); color: var(--saffron-dark); font-weight: 600; font-size: 12px; padding: 6px 10px; border-radius: 8px; text-align: center; height: fit-content; min-width: 62px; }
.notice-list p { font-size: 14.5px; font-weight: 500; color: var(--navy); }
.notice-list small { color: var(--muted); }
.new-tag { background: #e53935; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; margin-left: 6px; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- Testimonials ---------- */
.testimonial-slider { position: relative; max-width: 820px; margin: 0 auto; }
.testimonial { display: none; text-align: center; padding: 10px 20px; animation: fadeUp .6s ease; }
.testimonial.active { display: block; }
.testimonial .avatar { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; font-size: 32px; font-weight: 700; color: var(--white); background: var(--saffron); border: 4px solid rgba(255,255,255,.25); font-family: var(--font-head); }
.testimonial blockquote { font-size: 19px; font-style: italic; color: #dfe5f2; margin-bottom: 20px; }
.testimonial strong { color: var(--white); font-size: 18px; display: block; }
.testimonial span { color: var(--saffron); font-size: 14px; }
.t-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.t-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(255,255,255,.3); cursor: pointer; transition: all .3s; }
.t-dots button.active { background: var(--saffron); width: 30px; border-radius: 10px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item .overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(23,36,64,.9), rgba(23,36,64,.1));
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: var(--white);
  opacity: 0; transition: opacity .4s;
}
.gallery-item .overlay i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.5); font-size: 26px; width: 58px; height: 58px; border-radius: 50%; background: var(--saffron); display: grid; place-items: center; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.12); }
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item:hover .overlay i { transform: translate(-50%, -50%) scale(1); }
.gallery-item .overlay h4 { color: var(--white); font-family: var(--font-body); font-size: 17px; }
.gallery-item .overlay small { color: var(--saffron); }
.gallery-item.hide { display: none; }

.lightbox { position: fixed; inset: 0; background: rgba(10,16,30,.95); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox-caption { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; color: var(--white); font-size: 16px; }
.lb-btn { position: absolute; background: rgba(255,255,255,.12); border: 0; color: var(--white); width: 52px; height: 52px; border-radius: 50%; font-size: 20px; cursor: pointer; transition: background .3s; }
.lb-btn:hover { background: var(--saffron); }
.lb-close { top: 25px; right: 25px; }
.lb-prev { left: 25px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 25px; top: 50%; transform: translateY(-50%); }

/* ---------- Facilities ---------- */
.facility-card { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.facility-card:nth-child(even) .facility-img { order: 2; }
.facility-img img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.facility-info { padding: 45px; display: flex; flex-direction: column; justify-content: center; }
.facility-info h3 { font-size: 28px; margin-bottom: 14px; }
.facility-info p { color: var(--muted); margin-bottom: 16px; }
.facility-info ul li { padding: 5px 0; display: flex; gap: 10px; }
.facility-info ul li i { color: var(--saffron); margin-top: 6px; }
.facility-list { display: grid; gap: 35px; }

/* ---------- Steps (admissions) ---------- */
.steps { counter-reset: step; }
.step { position: relative; background: var(--white); padding: 40px 26px 30px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -24px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 50px; border-radius: 50%; background: var(--saffron); color: var(--white);
  font-weight: 700; font-size: 20px; display: grid; place-items: center; border: 4px solid var(--white); box-shadow: var(--shadow);
}
.step i { font-size: 32px; color: var(--navy); margin: 8px 0 14px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.form-card h3 { font-size: 26px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 500; font-size: 14.5px; margin-bottom: 6px; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 10px;
  background: #fafbfd; transition: border-color .3s, box-shadow .3s; color: var(--text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(243,146,0,.12); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group.error input, .form-group.error select, .form-group.error textarea { border-color: #e53935; }
.error-msg { color: #e53935; font-size: 13px; margin-top: 4px; display: none; }
.form-group.error .error-msg { display: block; }
.form-success { display: none; background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; }
.form-success.show { display: block; animation: fadeUp .4s; }

/* ---------- Contact ---------- */
.contact-info-card { display: flex; gap: 18px; background: var(--white); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .3s; }
.contact-info-card:hover { transform: translateY(-5px); }
.contact-info-card .icon-box { flex-shrink: 0; margin: 0; background: var(--navy); color: var(--white); }
.contact-info-card h4 { font-size: 19px; margin-bottom: 5px; }
.contact-info-card p, .contact-info-card a { color: var(--muted); font-size: 15px; }
.contact-info-card a:hover { color: var(--saffron); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; min-height: 420px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Department cards ---------- */
.dept-card { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border-top: 4px solid var(--navy); transition: all .35s; }
.dept-card:hover { border-top-color: var(--saffron); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.dept-card .icon-box { background: var(--navy); color: var(--white); }
.dept-card:hover .icon-box { background: var(--saffron); }
.dept-card h3 { font-size: 21px; margin-bottom: 8px; }
.dept-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }
.dept-card .pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { background: var(--cream); color: var(--navy); font-size: 12.5px; padding: 4px 12px; border-radius: 50px; font-weight: 500; }

/* ---------- Vision / mission ---------- */
.vm-card { background: var(--white); padding: 40px 32px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; position: relative; overflow: hidden; }
.vm-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--navy), var(--saffron)); }
.vm-card .icon-box { margin: 0 auto 18px; width: 76px; height: 76px; border-radius: 50%; font-size: 30px; }
.vm-card h3 { font-size: 24px; margin-bottom: 12px; }
.vm-card p { color: var(--muted); }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: var(--border); transform: translateX(-50%); }
.tl-item { position: relative; width: 50%; padding: 0 45px 40px; }
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; }
.tl-item::before { content: ''; position: absolute; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--saffron); border: 4px solid var(--white); box-shadow: 0 0 0 3px var(--saffron); }
.tl-item:nth-child(odd)::before { right: -9px; }
.tl-item:nth-child(even)::before { left: -9px; }
.tl-item .year { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--saffron); }
.tl-item h4 { font-size: 19px; margin: 4px 0 6px; }
.tl-item p { color: var(--muted); font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--saffron), #f7a733); color: var(--white); padding: 60px 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); font-size: clamp(26px, 3.5vw, 36px); }
.cta-band p { opacity: .95; }
.cta-band .btn-navy:hover { background: var(--white); color: var(--navy); }

/* ---------- FAQ ---------- */
.faq-item { background: var(--white); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 24px; font-weight: 600; color: var(--navy); font-size: 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.faq-q i { color: var(--saffron); transition: transform .3s; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { padding: 0 24px 20px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: #b9c3da; padding-top: 75px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer .brand { margin-bottom: 18px; }
.footer .brand img { background: var(--white); border-radius: 50%; padding: 4px; }
.footer .brand-text strong { color: var(--white); }
.footer h4 { color: var(--white); font-family: var(--font-body); font-size: 18px; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--saffron); border-radius: 3px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; }
.footer-links a i { font-size: 11px; color: var(--saffron); }
.footer-links a:hover { color: var(--saffron); padding-left: 4px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; }
.footer-contact i { color: var(--saffron); margin-top: 5px; }
.footer-contact a:hover { color: var(--saffron); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: all .3s; }
.footer-social a:hover { background: var(--saffron); color: var(--white); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: 14px; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a:hover { color: var(--saffron); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 25px; bottom: 25px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--saffron); color: var(--white); font-size: 18px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .35s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--navy); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav a { padding: 10px 9px; font-size: 14.5px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .menu-toggle { display: grid; place-items: center; }
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: 300px; max-width: 85vw;
    background: var(--white); box-shadow: -10px 0 40px rgba(0,0,0,.15);
    transform: translateX(100%); transition: transform .4s ease; padding: 90px 20px 30px; overflow-y: auto; z-index: 1001;
  }
  .nav.open { transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 13px 16px; font-size: 16px; }
  .nav a::after { display: none; }
  .nav a.active { background: rgba(243,146,0,.1); }
  .nav .nav-cta { margin: 14px 0 0; text-align: center; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000; opacity: 0; visibility: hidden; transition: all .3s; }
  .nav-overlay.show { opacity: 1; visibility: visible; }
  .menu-toggle { position: relative; z-index: 1002; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .message-box { grid-template-columns: 1fr; }
  .message-box img { max-height: 380px; }
  .facility-card { grid-template-columns: 1fr; }
  .facility-card:nth-child(even) .facility-img { order: 0; }
  .facility-img img { min-height: 260px; max-height: 320px; }
  .about-images { margin-bottom: 20px; }
  .timeline::before { left: 9px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; left: 0; text-align: left; padding: 0 0 35px 45px; }
  .tl-item:nth-child(odd)::before, .tl-item:nth-child(even)::before { left: 0; right: auto; }
  .stats { background-attachment: scroll; }
}
@media (max-width: 640px) {
  .section { padding: 65px 0; }
  .container { padding: 0 16px; }
  .topbar-social, .topbar-info .hide-sm { display: none; }
  .brand img { width: 50px; height: 50px; }
  .brand-text strong { font-size: 16px; }
  .brand-text small { font-size: 11px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats .grid-4 { grid-template-columns: 1fr 1fr; }
  .stat .num { font-size: 38px; }
  .hero { min-height: 520px; }
  .hero p { font-size: 16px; }
  .slider-arrow { display: none; }
  .features { margin-top: -40px; }
  .about-images { padding: 0 0 30px; }
  .about-images .img-main { height: 320px; }
  .about-images .img-small { height: 150px; }
  .about-badge { left: 10px; top: 10px; padding: 12px 16px; }
  .about-badge strong { font-size: 28px; }
  .check-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card, .message-content, .facility-info { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .ticker-label { padding: 12px 14px; font-size: 14px; }
  .lb-prev, .lb-next { top: auto; bottom: 80px; transform: none; }
}

/* ---------- News layout ---------- */
.news-layout { grid-template-columns: 2fr 1fr; }
@media (max-width: 960px) { .news-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .news-layout .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Layout fixes ---------- */
.nav a, .brand-text small { white-space: nowrap; }
.features { margin-top: 0; padding-top: 60px; }
@media (max-width: 1240px) {
  .menu-toggle { display: grid; place-items: center; position: relative; z-index: 1002; }
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: 300px; max-width: 85vw;
    background: var(--white); box-shadow: -10px 0 40px rgba(0,0,0,.15);
    transform: translateX(100%); transition: transform .4s ease; padding: 90px 20px 30px; overflow-y: auto; z-index: 1001;
  }
  .nav.open { transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 13px 16px; font-size: 16px; }
  .nav a::after { display: none; }
  .nav a.active { background: rgba(243,146,0,.1); }
  .nav .nav-cta { margin: 14px 0 0; text-align: center; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000; opacity: 0; visibility: hidden; transition: all .3s; }
  .nav-overlay.show { opacity: 1; visibility: visible; }
}
@media (max-width: 640px) { .features { padding-top: 40px; } .brand-text small { white-space: normal; } }
.header .container { gap: 24px; }
@media (min-width: 1241px) {
  .nav ul { gap: 0; }
  .nav a { padding: 10px 10px; font-size: 14.5px; }
  .nav a::after { left: 10px; right: 10px; }
  .nav .nav-cta { padding: 10px 18px; margin-left: 6px; }
}

/* ==========================================================
   Course detail pages
   ========================================================== */
.page-banner .eyebrow { display: block; }
.course-body h3 a:hover { color: var(--saffron); }
.course-link { margin-top: -4px; margin-bottom: 14px; }

.course-facts { position: relative; z-index: 5; margin-top: -45px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.fact { display: flex; gap: 14px; align-items: center; padding: 24px 22px; border-right: 1px solid var(--border); }
.fact:last-child { border-right: 0; }
.fact > i { flex-shrink: 0; width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: rgba(243,146,0,.12); color: var(--saffron); }
.fact small { display: block; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: 1px; }
.fact strong { color: var(--navy); font-size: 15px; line-height: 1.4; display: block; }

.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.course-hero-img { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 40px; }
.course-hero-img img { width: 100%; height: 400px; object-fit: cover; }
.course-hero-img .course-tag { top: 20px; left: 20px; font-size: 14px; padding: 6px 18px; }
.course-block { margin-bottom: 45px; }
.course-block h2 { font-size: 28px; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.course-block h2 i { font-size: 20px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--white); flex-shrink: 0; }
.course-block > p { color: var(--muted); margin-bottom: 14px; }
.course-block .note { font-size: 14px; background: var(--cream); border-left: 4px solid var(--saffron); padding: 10px 16px; border-radius: 6px; }
.course-block .check-list { margin: 0; }
.syllabus-list { padding: 0 24px 20px; display: grid; gap: 8px; }
.syllabus-list li { display: flex; gap: 12px; align-items: baseline; color: var(--text); font-size: 15px; padding: 8px 14px; background: var(--cream); border-radius: 8px; }
.syllabus-list i { color: var(--saffron); font-size: 13px; }
.career-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.career-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 22px; transition: all .3s; }
.career-card:hover { border-color: var(--saffron); box-shadow: var(--shadow); transform: translateY(-4px); }
.career-card i { font-size: 24px; color: var(--saffron); margin-bottom: 10px; }
.career-card h4 { font-size: 17px; margin-bottom: 4px; }
.career-card p { color: var(--muted); font-size: 14px; line-height: 1.5; }

.course-sidebar { position: sticky; top: 110px; display: grid; gap: 24px; }
.side-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.side-card h3 { font-size: 21px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border); position: relative; }
.side-card h3::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 50px; height: 2px; background: var(--saffron); }
.side-apply { background: linear-gradient(145deg, var(--navy), var(--navy-light)); color: #dfe5f2; }
.side-apply h3 { color: var(--white); border-bottom-color: rgba(255,255,255,.15); }
.side-apply p { font-size: 14.5px; margin-bottom: 20px; }
.side-apply .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.side-links li a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--navy); font-weight: 500; font-size: 15px; }
.side-links li a i { color: var(--saffron); }
.side-links li a:hover { background: var(--cream); }
.side-links li a.active { background: var(--saffron); color: var(--white); }
.side-links li a.active i { color: var(--white); }
.side-contact { font-size: 14.5px; color: var(--muted); }
.side-contact a:hover { color: var(--saffron); }

@media (max-width: 1100px) { .career-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .course-layout { grid-template-columns: 1fr; }
  .course-sidebar { position: static; }
}
@media (max-width: 640px) {
  .facts-grid { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--border); }
  .fact:last-child { border-bottom: 0; }
  .course-hero-img img { height: 240px; }
  .course-block h2 { font-size: 23px; }
  .career-grid { grid-template-columns: 1fr; }
  .syllabus-list { padding: 0 16px 16px; }
}
