/* =========================================================
   Guru Nanak Khalsa College, Karnal — Main Stylesheet
   ========================================================= */

:root {
  --navy: #0b2a5b;
  --navy-dark: #071c3e;
  --blue: #1a5fb4;
  --saffron: #e8731a;
  --saffron-dark: #c95d0c;
  --red: #c8231c;
  --gold: #f2b632;
  --cream: #fff8ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --text: #1f2937;
  --muted: #5b6475;
  --border: #e3e7ef;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(11, 42, 91, .08);
  --shadow: 0 10px 30px rgba(11, 42, 91, .12);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1200px;
  --header-h: 84px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::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(--blue);
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  color: var(--saffron);
}

h1,
h2,
h3,
h4,
h5 {
  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.2vw, 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-alt {
  background: var(--bg-alt);
}

.section-cream {
  background: var(--cream);
}

.text-center {
  text-align: center;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-head .eyebrow,
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: .6em;
}

.section-head p {
  color: var(--muted);
}

.divider {
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  border-radius: 3px;
  margin: 14px auto 0;
}

.section-head.left {
  text-align: left;
  margin-left: 0;
}

.section-head.left .divider {
  margin-left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .85em 1.8em;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  font-family: var(--font-body);
  white-space: nowrap;
}

.btn-primary {
  background: var(--saffron);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--saffron-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232, 115, 26, .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(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: .55em 1.2em;
  font-size: .85rem;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cfd8ea;
  font-size: .82rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  flex-wrap: wrap;
}

.topbar a {
  color: #cfd8ea;
}

.topbar a:hover {
  color: var(--gold);
}

.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 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s;
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}

.brand img {
  width: 58px;
  height: 64px;
  object-fit: contain;
}

.brand-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.2rem;
  line-height: 1.15;
  color: var(--navy);
}

.brand-text span {
  display: block;
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav>ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.nav>ul>li {
  position: relative;
}

.nav a.nav-link {
  display: block;
  padding: 10px 12px;
  white-space: nowrap;
  color: var(--navy);
  font-weight: 500;
  font-size: .92rem;
  border-radius: 6px;
}

.nav a.nav-link:hover,
.nav a.nav-link.active {
  color: var(--saffron);
}

.nav a.nav-link.active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--saffron);
  border-radius: 2px;
  margin-top: 2px;
}

.nav .has-sub>a.nav-link i {
  font-size: .7em;
  margin-left: 4px;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s ease;
  border-top: 3px solid var(--saffron);
}

.has-sub:hover .submenu,
.has-sub:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  display: block;
  padding: 8px 20px;
  color: var(--text);
  font-size: .9rem;
}

.submenu a:hover {
  background: var(--bg-alt);
  color: var(--saffron);
  padding-left: 26px;
}

.nav-cta {
  margin-left: 10px;
}

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

/* ---------- Ticker ---------- */
.ticker {
  background: var(--saffron);
  color: var(--white);
  font-size: .9rem;
  overflow: hidden;
}

.ticker .container {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
}

.ticker-label {
  background: var(--red);
  padding: 9px 18px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-track {
  overflow: hidden;
  flex: 1;
}

.ticker-move {
  display: inline-flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
  padding-left: 100%;
}

.ticker-move span i {
  margin-right: 6px;
  color: var(--gold);
}

.ticker:hover .ticker-move {
  animation-play-state: paused;
}

@keyframes ticker {
  to {
    transform: translateX(-100%);
  }
}

/* ---------- Hero slider ---------- */
.hero {
  position: relative;
  height: min(88vh, 720px);
  min-height: 520px;
  overflow: hidden;
  color: var(--white);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(7, 28, 62, .9) 0%, rgba(7, 28, 62, .65) 45%, rgba(7, 28, 62, .25) 100%);
}

.slide .container {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.slide-content {
  max-width: 680px;
}

.slide.active .slide-content>* {
  animation: fadeUp .9s ease both;
}

.slide.active .slide-content>*:nth-child(2) {
  animation-delay: .15s;
}

.slide.active .slide-content>*:nth-child(3) {
  animation-delay: .3s;
}

.slide.active .slide-content>*:nth-child(4) {
  animation-delay: .45s;
}

.slide h1 {
  color: var(--white);
}

.slide h1 span {
  color: var(--gold);
}

.slide p {
  font-size: 1.12rem;
  color: #e3e9f5;
  max-width: 560px;
}

.hero-tag {
  display: inline-block;
  background: rgba(242, 182, 50, .18);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 5px 16px;
  border-radius: 30px;
  font-size: .82rem;
  letter-spacing: .08em;
  margin-bottom: 18px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.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;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all .25s;
}

.hero-arrow:hover {
  background: var(--saffron);
  border-color: var(--saffron);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Quick features strip ---------- */
.features-strip {
  margin-top: -70px;
  position: relative;
  z-index: 10;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature {
  padding: 30px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-right: 1px solid var(--border);
  transition: background .3s;
}

.feature:last-child {
  border-right: 0;
}

.feature:hover {
  background: var(--cream);
}

.feature i {
  font-size: 2rem;
  color: var(--saffron);
  flex-shrink: 0;
  margin-top: 4px;
}

.feature h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.feature p {
  margin: 0;
  font-size: .87rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Two column / about ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split.reverse> :first-child {
  order: 2;
}

.img-stack {
  position: relative;
  padding: 0 30px 30px 0;
}

.img-stack img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.img-stack .badge-year {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--saffron);
  color: var(--white);
  border-radius: var(--radius);
  padding: 22px 26px;
  text-align: center;
  box-shadow: var(--shadow);
}

.badge-year strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  line-height: 1;
}

.badge-year span {
  font-size: .8rem;
  letter-spacing: .08em;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .95rem;
}

.check-list i {
  color: var(--saffron);
  margin-top: 6px;
}

/* ---------- Stats ---------- */
.stats {
  background: linear-gradient(120deg, rgba(7, 28, 62, .94), rgba(26, 95, 180, .88)), url("../images/graduation.jpg") center/cover fixed;
  color: var(--white);
  padding: 70px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat i {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.8rem;
  line-height: 1.1;
}

.stat span {
  color: #cfd8ea;
  font-size: .95rem;
}

/* ---------- Cards ---------- */
.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);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-img {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.card:hover .card-img img {
  transform: scale(1.08);
}

.card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--saffron);
  color: var(--white);
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body p {
  color: var(--muted);
  font-size: .93rem;
}

.card-meta {
  display: flex;
  gap: 16px;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.card-meta i {
  color: var(--saffron);
  margin-right: 4px;
}

.card-link {
  margin-top: auto;
  font-weight: 600;
  font-size: .9rem;
}

.card-link i {
  transition: transform .2s;
  margin-left: 4px;
}

.card-link:hover i {
  transform: translateX(4px);
}

.icon-card {
  background: var(--white);
  padding: 34px 28px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  transition: all .3s;
}

.icon-card:hover {
  border-color: var(--saffron);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.icon-card .ic {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--saffron);
  font-size: 1.8rem;
  transition: all .3s;
}

.icon-card:hover .ic {
  background: var(--saffron);
  color: var(--white);
}

.icon-card p {
  color: var(--muted);
  font-size: .92rem;
  margin: 0;
}

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

.tab-btn {
  padding: 10px 24px;
  border-radius: 30px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all .25s;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.course-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  transition: all .3s;
  display: flex;
  flex-direction: column;
}

.course-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--saffron);
  border-radius: var(--radius) 0 0 var(--radius);
  transform: scaleY(0);
  transition: transform .3s;
  transform-origin: top;
}

.course-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.course-card:hover::before {
  transform: scaleY(1);
}

.course-card .lvl {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--saffron);
}

.course-card h3 {
  margin: 6px 0 10px;
  font-size: 1.2rem;
}

.course-card p {
  font-size: .9rem;
  color: var(--muted);
}

.course-info {
  display: flex;
  gap: 18px;
  font-size: .83rem;
  color: var(--navy);
  border-top: 1px dashed var(--border);
  padding-top: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}

.course-info i {
  color: var(--saffron);
  margin-right: 4px;
}

.course-card.hide {
  display: none;
}

/* ---------- Message (principal) ---------- */
.message-box {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 50px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.message-box img {
  border-radius: var(--radius);
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center top;
}

.message-box blockquote {
  margin: 0;
  position: relative;
  font-size: 1.02rem;
  color: var(--text);
}

.message-box blockquote::before {
  content: "\201C";
  font-family: var(--font-head);
  font-size: 6rem;
  color: var(--gold);
  opacity: .35;
  position: absolute;
  top: -50px;
  left: -14px;
  line-height: 1;
}

.sign {
  margin-top: 18px;
}

.sign strong {
  display: block;
  font-family: var(--font-head);
  color: var(--navy);
  font-size: 1.2rem;
}

.sign span {
  color: var(--saffron);
  font-size: .9rem;
}

/* ---------- Notice board / events ---------- */
.board {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.board-head {
  background: var(--navy);
  color: var(--white);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.board-head h3 {
  color: var(--white);
  margin: 0;
  font-size: 1.2rem;
}

.board-head i {
  color: var(--gold);
  margin-right: 8px;
}

.board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 380px;
  overflow-y: auto;
}

.board-list li {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.board-list li:hover {
  background: var(--bg-alt);
}

.date-chip {
  flex-shrink: 0;
  width: 58px;
  text-align: center;
  background: var(--cream);
  border-radius: 8px;
  padding: 6px 0;
  border: 1px solid #f7dcc0;
}

.date-chip strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--saffron);
  line-height: 1.1;
}

.date-chip span {
  font-size: .7rem;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
}

.board-list h4 {
  font-family: var(--font-body);
  font-size: .95rem;
  margin: 0 0 2px;
  color: var(--navy);
  font-weight: 600;
}

.board-list p {
  margin: 0;
  font-size: .84rem;
  color: var(--muted);
}

.new-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: .65rem;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
  animation: blink 1.4s infinite;
}

@keyframes blink {
  50% {
    opacity: .4;
  }
}

/* ---------- Testimonials ---------- */
.testi-wrap {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.testi {
  display: none;
  text-align: center;
}

.testi.active {
  display: block;
  animation: fadeUp .6s ease;
}

.testi p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
}

.testi .who {
  margin-top: 18px;
}

.testi .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  font-family: var(--font-head);
  font-size: 1.5rem;
}

.testi strong {
  display: block;
  color: var(--navy);
}

.testi span {
  color: var(--saffron);
  font-size: .88rem;
}

.testi-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.testi-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: var(--border);
  cursor: pointer;
  padding: 0;
}

.testi-dots button.active {
  background: var(--saffron);
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(110deg, var(--saffron), var(--red));
  color: var(--white);
  padding: 60px 0;
}

.cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 6px;
}

.cta p {
  margin: 0;
  color: #ffe9d6;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 110px 0 90px;
  color: var(--white);
  background-size: cover;
  background-position: center;
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(7, 28, 62, .92), rgba(26, 95, 180, .75));
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.breadcrumb {
  display: inline-flex;
  gap: 10px;
  list-style: none;
  padding: 8px 22px;
  margin: 0;
  background: rgba(255, 255, 255, .1);
  border-radius: 30px;
  font-size: .9rem;
}

.breadcrumb a {
  color: var(--gold);
}

.breadcrumb li+li::before {
  content: "/";
  margin-right: 10px;
  color: #9fb0d0;
}

/* ---------- Content blocks ---------- */
.content-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.content-card+.content-card {
  margin-top: 28px;
}

.side-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 24px;
}

.side-box {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.side-box h4 {
  font-size: 1.15rem;
  border-bottom: 2px solid var(--cream);
  padding-bottom: 10px;
}

.side-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-links li a {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: green;
  font-size: .93rem;
}

.side-links li a:hover {
  color: var(--saffron);
  padding-left: 6px;
}

.side-box.highlight {
  background: var(--navy);
  color: #dbe3f3;
  border: 0;
}

.side-box.highlight h4 {
  color: var(--white);
  border-color: rgba(255, 255, 255, .15);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
}

.info-table th,
.info-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}

.info-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 500;
}

.info-table tr:nth-child(even) td {
  background: var(--bg-alt);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
}

.timeline {
  position: relative;
  margin: 20px 0;
  padding-left: 30px;
  border-left: 3px solid var(--cream);
}

.tl-item {
  position: relative;
  margin-bottom: 26px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--saffron);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--saffron);
}

.tl-item strong {
  color: var(--saffron);
  font-family: var(--font-head);
  font-size: 1.1rem;
}

.tl-item p {
  margin: 2px 0 0;
  color: var(--muted);
}

.vm-card {
  padding: 34px;
  border-radius: var(--radius);
  color: var(--white);
}

.vm-card h3 {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
}

.vm-card i {
  color: var(--gold);
}

.vm-card.navy {
  background: var(--navy);
}

.vm-card.saffron {
  background: linear-gradient(135deg, var(--saffron), var(--red));
}

.vm-card.blue {
  background: var(--blue);
}

.vm-card p,
.vm-card li {
  color: rgba(255, 255, 255, .9);
}

.person-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 20px;
  border: 1px solid var(--border);
  transition: all .3s;
}

.person-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.person-card .initials {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 1.8rem;
}

.person-card h4 {
  margin-bottom: 2px;
  font-size: 1.05rem;
}

.person-card span {
  color: var(--saffron);
  font-size: .85rem;
}

/* ---------- 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: none;
  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(--saffron);
}

.accordion-item.open .accordion-btn {
  background: var(--cream);
}

.accordion-item.open .accordion-btn i {
  transform: rotate(45deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.accordion-panel>div {
  padding: 4px 22px 20px;
  color: var(--muted);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  border: 1px solid var(--border);
  position: relative;
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: 2.6rem;
  color: var(--cream);
  position: absolute;
  top: 10px;
  right: 18px;
  font-weight: 700;
  -webkit-text-stroke: 1px var(--saffron);
}

.step i {
  font-size: 1.8rem;
  color: var(--saffron);
  margin-bottom: 12px;
}

.step h4 {
  font-size: 1.08rem;
}

.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-size: .88rem;
  font-weight: 600;
  color: var(--navy);
}

.form-group label .req {
  color: var(--red);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--white);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 4px rgba(232, 115, 26, .12);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.form-group.error .form-control {
  border-color: var(--red);
}

.err-msg {
  color: var(--red);
  font-size: .78rem;
  display: none;
}

.form-group.error .err-msg {
  display: block;
}

.form-alert {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-size: .92rem;
}

.form-alert.success {
  display: block;
  background: #e8f7ee;
  color: #1b6b3a;
  border: 1px solid #bfe6cd;
}

/* ---------- Contact ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.contact-card {
  background: var(--white);
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all .3s;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--saffron);
}

.contact-card .ic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  background: var(--navy);
  color: var(--gold);
  font-size: 1.4rem;
}

.contact-card h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.contact-card p {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
  word-break: break-word;
}

.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;
}

/* ---------- Gallery ---------- */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
}

.g-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.g-item.wide {
  grid-column: span 2;
}

.g-item.tall {
  grid-row: span 2;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.g-item::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(7, 28, 62, .55);
  color: var(--white);
  font-size: 1.6rem;
  opacity: 0;
  transition: opacity .3s;
}

.g-item:hover img {
  transform: scale(1.1);
}

.g-item:hover::after {
  opacity: 1;
}

.g-item .g-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  color: var(--white);
  font-size: .85rem;
  z-index: 2;
  transform: translateY(100%);
  transition: transform .3s;
}

.g-item:hover .g-cap {
  transform: none;
}

.g-item.hide {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(5, 12, 28, .94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.lightbox figcaption {
  color: #dbe3f3;
  text-align: center;
  margin-top: 14px;
}

.lb-btn {
  position: absolute;
  background: rgba(255, 255, 255, .1);
  border: 0;
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background .2s;
}

.lb-btn:hover {
  background: var(--saffron);
}

.lb-close {
  top: 20px;
  right: 20px;
}

.lb-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #b9c4da;
  padding-top: 70px;
  font-size: .92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.site-footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--saffron);
}

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

.footer-brand img {
  width: 60px;
  height: 66px;
  object-fit: contain;
  background: var(--white);
  border-radius: 50%;
  padding: 4px;
}

.footer-brand strong {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.15rem;
  line-height: 1.2;
}

.site-footer a {
  color: #b9c4da;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a i {
  font-size: .7rem;
  margin-right: 8px;
  color: var(--saffron);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-contact i {
  color: var(--gold);
  margin-top: 5px;
  width: 16px;
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  transition: all .25s;
}

.social a:hover {
  background: var(--saffron);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: 50px;
  padding: 20px 0;
  font-size: .85rem;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--saffron);
  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-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-top:hover {
  background: var(--navy);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ticker-move {
    animation: none;
    padding-left: 0;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nav-cta {
    display: none;
  }
}

@media (max-width: 1100px) {
  .nav a.nav-link {
    padding: 10px 8px;
    font-size: .86rem;
  }

  .brand-text strong {
    font-size: 1.05rem;
  }
}

@media (max-width: 992px) {
  :root {
    --header-h: 72px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 85vw);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 0 30px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, .15);
    transform: translateX(100%);
    transition: transform .35s ease;
    overflow-y: auto;
    z-index: 1100;
  }

  .nav.open {
    transform: none;
  }

  .nav>ul {
    flex-direction: column;
    align-items: stretch;
  }

  .nav a.nav-link {
    padding: 13px 26px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: .98rem;
  }

  .nav a.nav-link.active::after {
    display: none;
  }

  .nav .has-sub>a.nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: 0;
    display: none;
    background: var(--bg-alt);
    border-radius: 0;
    padding: 0;
  }

  .has-sub.open .submenu {
    display: block;
  }

  .submenu a {
    padding: 10px 40px;
  }

  .nav-cta {
    display: block;
    margin: 20px 26px 0;
    text-align: center;
  }

  .nav-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .nav-close {
    display: block !important;
  }

  .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;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature:nth-child(2) {
    border-right: 0;
  }

  .feature:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .split,
  .message-box,
  .side-layout {
    grid-template-columns: 1fr;
  }

  .split.reverse> :first-child {
    order: 0;
  }

  .message-box img {
    height: 380px;
    max-width: 360px;
    margin: 0 auto;
  }

  .stats-grid,
  .grid-4,
  .steps,
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sidebar {
    position: static;
  }

  .stats {
    background-attachment: scroll;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 64px 0;
  }

  .topbar-info span.hide-sm {
    display: none;
  }

  .topbar-social {
    display: none;
  }

  .brand img {
    width: 46px;
    height: 52px;
  }

  .brand-text strong {
    font-size: 1rem;
  }

  .brand-text span {
    font-size: .66rem;
  }

  .hero {
    min-height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .features-strip {
    margin-top: -40px;
  }

  .features-grid,
  .stats-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .steps,
  .contact-cards,
  .footer-grid,
  .form-grid,
  .check-list {
    grid-template-columns: 1fr;
  }

  .feature {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .feature:last-child {
    border-bottom: 0;
  }

  .img-stack {
    padding: 0 16px 16px 0;
  }

  .img-stack img {
    height: 300px;
  }

  .message-box {
    padding: 24px;
    gap: 28px;
  }

  .message-box img {
    height: 320px;
  }

  .content-card {
    padding: 24px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .g-item.wide {
    grid-column: span 2;
  }

  .g-item.tall {
    grid-row: span 1;
  }

  .page-hero {
    padding: 80px 0 64px;
  }

  .cta .container {
    flex-direction: column;
    text-align: center;
  }

  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 20px;
    transform: none;
  }
}

.nav-close {
  display: none;
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: 0;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

[data-cat].hide {
  display: none;
}

.message-box.flip {
  grid-template-columns: 1fr 300px;
}

@media (max-width: 992px) {
  .message-box.flip {
    grid-template-columns: 1fr;
  }

  .message-box.flip img {
    order: -1;
  }
}

/* ---------- Course detail pages ---------- */
.facts-strip {
  margin-top: -46px;
  position: relative;
  z-index: 5;
}

.facts-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.fact {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 20px 18px;
  border-right: 1px solid var(--border);
}

.fact:last-child {
  border-right: 0;
}

.fact i {
  color: var(--saffron);
  font-size: 1.4rem;
  margin-top: 4px;
}

.fact span {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}

.fact strong {
  display: block;
  font-size: .9rem;
  color: var(--navy);
  line-height: 1.35;
  font-weight: 600;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.subject-card {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  border-top: 3px solid var(--saffron);
}

.subject-card h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.subject-card h4 i {
  color: var(--saffron);
  margin-right: 4px;
}

.subject-card ul {
  margin: 0;
  padding-left: 1.1em;
  font-size: .9rem;
  color: var(--text);
}

.subject-card li {
  margin-bottom: 4px;
}

.subject-card li::marker {
  color: var(--saffron);
}

.note {
  font-size: .85rem;
  color: var(--muted);
  margin: 20px 0 0;
}

.note i {
  color: var(--saffron);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background: var(--cream);
  border: 1px solid #f7dcc0;
  color: var(--navy);
  font-size: .88rem;
  font-weight: 500;
}

.chip i {
  color: var(--saffron);
}

.chip.alt {
  background: #eaf1fb;
  border-color: #cfdcf2;
}

.chip.alt i {
  color: var(--blue);
}

.mini-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 10px;
}

.mini-steps div {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .9rem;
}

.mini-steps strong {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--saffron);
  color: var(--white);
  font-family: var(--font-head);
}

.course-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}

.course-pager a {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: all .25s;
}

.course-pager a:hover {
  border-color: var(--saffron);
  box-shadow: var(--shadow-sm);
}

.course-pager span {
  display: block;
  font-size: .8rem;
  color: var(--saffron);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.course-pager strong {
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 1.05rem;
}

.course-pager .next {
  text-align: right;
}

.course-card h3 a {
  color: inherit;
}

@media (max-width: 992px) {
  .facts-bar {
    grid-template-columns: repeat(3, 1fr);
  }

  .fact:nth-child(3) {
    border-right: 0;
  }

  .fact:nth-child(-n+3) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .facts-strip {
    margin-top: -30px;
  }

  .facts-bar {
    grid-template-columns: 1fr 1fr;
  }

  .fact {
    border-right: 0 !important;
    border-bottom: 1px solid var(--border);
  }

  .fact:nth-child(odd) {
    border-right: 1px solid var(--border) !important;
  }

  .fact:last-child {
    grid-column: 1 / -1;
    border-right: 0 !important;
    border-bottom: 0;
  }

  .mini-steps,
  .course-pager {
    grid-template-columns: 1fr;
  }

  .course-pager .next {
    text-align: left;
  }
}