/* ==========================================================
   Gita Vidya Mandir, Gohana — main stylesheet
   ========================================================== */
:root {
  --saffron: #e8711c;
  --saffron-dark: #c95c0f;
  --maroon: #8b1e1e;
  --navy: #1b2a4a;
  --navy-light: #2c3e66;
  --cream: #fff8ef;
  --sand: #fbeedd;
  --text: #2b2b2b;
  --muted: #666;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(27, 42, 74, 0.1);
  --shadow-lg: 0 16px 40px rgba(27, 42, 74, 0.18);
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--saffron-dark);
  text-decoration: none;
  transition: color .2s;
}

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

h1,
h2,
h3,
h4 {
  font-family: "Merriweather", Georgia, serif;
  color: var(--navy);
  line-height: 1.3;
  margin: 0 0 .6em;
}

p {
  margin: 0 0 1em;
}

.hi {
  font-family: "Noto Sans Devanagari", "Poppins", sans-serif;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 80px 0;
}

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

.section-dark {
  background: var(--navy);
  color: #e8ecf5;
}

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

.section-head .eyebrow {
  display: inline-block;
  color: var(--saffron);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.section-head h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, var(--saffron), var(--maroon));
  border-radius: 3px;
}

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

.section-dark .section-head p {
  color: #c5cde0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s;
  font-family: inherit;
}

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

.btn-primary:hover {
  background: var(--maroon);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

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

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #d6dcea;
  font-size: 13px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.topbar a {
  color: #d6dcea;
}

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

.topbar .info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar .info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar .tag {
  color: #ffc58f;
  font-style: italic;
}

/* ---------- Header / Nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  transition: box-shadow .3s;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

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

.brand img {
  height: 62px;
  width: auto;
}

.brand-text strong {
  display: block;
  font-family: "Merriweather", serif;
  font-size: 20px;
  color: var(--maroon);
  line-height: 1.2;
}

.brand-text small {
  display: block;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .5px;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}

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

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

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

.nav .has-sub>a::after {
  content: " ▾";
  font-size: 11px;
}

.nav .sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  display: block;
  box-shadow: var(--shadow-lg);
  border-radius: 10px;
  padding: 8px;
  border-top: 3px solid var(--saffron);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s;
}

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

.nav .sub a {
  padding: 9px 14px;
  font-size: 14px;
}

.nav .sub a:hover {
  background: var(--cream);
}

.nav .nav-cta {
  background: var(--saffron);
  color: var(--white);
  margin-left: 6px;
}

.nav .nav-cta:hover {
  background: var(--maroon);
  color: var(--white);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: .3s;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Hero slider ---------- */
.hero {
  position: relative;
  height: clamp(480px, 82vh, 720px);
  overflow: hidden;
  background: var(--navy);
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(27, 42, 74, .88) 0%, rgba(27, 42, 74, .55) 55%, rgba(27, 42, 74, .2) 100%);
}

.slide .container {
  position: relative;
  color: var(--white);
}

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

.slide.active .slide-content>* {
  animation: rise .8s 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;
}

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

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

.slide .kicker {
  color: #ffc58f;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 14px;
}

.slide h1 {
  color: var(--white);
  font-size: clamp(30px, 5.5vw, 56px);
  margin: 10px 0 16px;
}

.slide p {
  font-size: 18px;
  color: #e6eaf3;
}

.slide .actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: .3s;
}

.hero-dots button.active {
  background: var(--saffron);
  border-color: var(--saffron);
  width: 32px;
  border-radius: 6px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .15);
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  transition: .3s;
}

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

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

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

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

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 30, 30, .85), rgba(27, 42, 74, .88));
}

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

.page-banner h1 {
  color: var(--white);
  font-size: clamp(30px, 5vw, 46px);
  margin-bottom: 10px;
}

.breadcrumb {
  font-size: 14px;
  color: #f0d9c5;
}

.breadcrumb a {
  color: #ffc58f;
}

/* ---------- Highlights strip ---------- */
.highlights {
  margin-top: -60px;
  position: relative;
  z-index: 5;
}

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

.highlight {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid #f0e6da;
}

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

.highlight .icon {
  font-size: 34px;
  margin-bottom: 8px;
}

.highlight h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.highlight p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ---------- Generic grid / 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(2, 1fr);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

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

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

.card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

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

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

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

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

.card-body h3 {
  font-size: 19px;
}

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

.card-body .more {
  margin-top: auto;
  font-weight: 600;
}

.card-body .more::after {
  content: " →";
  transition: margin .2s;
}

.card:hover .more::after {
  margin-left: 6px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.meta span {
  background: var(--cream);
  color: var(--maroon);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ---------- About block ---------- */
.about-img {
  position: relative;
}

.about-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.about-img .badge-year {
  position: absolute;
  bottom: -24px;
  right: -10px;
  background: var(--saffron);
  color: var(--white);
  padding: 18px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.badge-year strong {
  display: block;
  font-size: 34px;
  font-family: "Merriweather", serif;
  line-height: 1;
}

.badge-year span {
  font-size: 13px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.checklist li {
  padding: 6px 0 6px 32px;
  position: relative;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--saffron);
  color: var(--white);
  font-size: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.cols-2 {
  columns: 2;
  column-gap: 24px;
}

/* ---------- Stats ---------- */
.stats {
  background: linear-gradient(135deg, var(--maroon), var(--navy));
  color: var(--white);
  padding: 64px 0;
}

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

.stat strong {
  display: block;
  font-size: clamp(34px, 5vw, 48px);
  font-family: "Merriweather", serif;
  color: #ffc58f;
  line-height: 1.1;
}

.stat span {
  font-size: 15px;
  color: #e6eaf3;
}

/* ---------- Facilities ---------- */
.facility {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 41 / 30;
}

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

.facility .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 16px;
  color: var(--white);
  background: linear-gradient(transparent, rgba(27, 42, 74, .92));
}

.facility .cap h3 {
  color: var(--white);
  font-size: 18px;
  margin: 0;
}

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

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px dashed #e8d8c4;
}

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

.feature-row:nth-child(even) .feature-img {
  order: 2;
}

.feature-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

.feature-row h3 {
  font-size: 24px;
}

.feature-row .num {
  color: var(--saffron);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
}

/* ---------- Achievers ---------- */
.achiever {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 14px;
  box-shadow: var(--shadow);
  transition: .3s;
}

.achiever:hover {
  transform: translateY(-5px);
}

.achiever img {
  width: 120px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 auto 12px;
  border: 3px solid var(--sand);
}

.achiever h4 {
  font-size: 16px;
  margin: 0 0 2px;
}

.achiever span {
  font-size: 13px;
  color: var(--saffron-dark);
  font-weight: 600;
}

/* ---------- Testimonial / message ---------- */
.message-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  position: relative;
  border-top: 4px solid var(--saffron);
}

.message-card::before {
  content: "“";
  position: absolute;
  top: 4px;
  right: 24px;
  font-size: 100px;
  color: var(--sand);
  font-family: Georgia, serif;
  line-height: 1;
}

.message-card h3 {
  margin-bottom: 2px;
}

.message-card .role {
  color: var(--saffron-dark);
  font-weight: 600;
  font-size: 14px;
  display: block;
  margin-bottom: 14px;
}

.message-card p {
  position: relative;
}

/* ---------- Events ---------- */
.event {
  display: flex;
  gap: 18px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.event img {
  width: 42%;
  object-fit: cover;
}

.event-body {
  padding: 20px 20px 20px 0;
}

.event-body h3 {
  font-size: 18px;
}

.event-body p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

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

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

.cta h2 {
  color: var(--white);
  margin: 0 0 6px;
  font-size: clamp(24px, 3.5vw, 34px);
}

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

.cta .btn-light {
  background: var(--white);
  color: var(--maroon);
}

.cta .btn-light:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---------- Course detail ---------- */
.course-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.course-main img.lead-img {
  border-radius: var(--radius);
  margin-bottom: 28px;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.course-main h2 {
  font-size: 26px;
  margin-top: 32px;
}

.subject-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.subject-list div {
  background: var(--cream);
  border-left: 4px solid var(--saffron);
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
}

.subject-list div small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
}

.sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 24px;
}

.side-box {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 26px;
}

.side-box h3 {
  font-size: 19px;
  border-bottom: 2px solid var(--sand);
  padding-bottom: 10px;
}

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

.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0e2cf;
  font-size: 15px;
}

.fact-list li:last-child {
  border-bottom: 0;
}

.fact-list li span:first-child {
  color: var(--muted);
}

.fact-list li span:last-child {
  font-weight: 600;
  color: var(--navy);
  text-align: right;
}

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

.side-links a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--navy);
  font-weight: 500;
}

.side-links a:hover,
.side-links a.active {
  background: var(--white);
  color: var(--saffron);
}

.side-box.dark {
  background: var(--navy);
  color: #d6dcea;
}

.side-box.dark h3 {
  color: var(--white);
  border-color: var(--navy-light);
}

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

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 22px 24px;
  box-shadow: var(--shadow);
  position: relative;
  text-align: center;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--saffron);
  color: var(--white);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 0 0 6px var(--cream);
}

.step h3 {
  font-size: 18px;
  margin-top: 8px;
}

.step p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 520px;
}

th,
td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #f0e6da;
  font-size: 15px;
}

th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

tr:nth-child(even) td {
  background: #fffbf6;
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--navy);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e2d6c6;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(232, 113, 28, .15);
}

.form .error {
  border-color: #c0392b;
}

.form .err-msg {
  color: #c0392b;
  font-size: 13px;
  margin-top: 4px;
  display: none;
}

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

.form-msg {
  padding: 14px 18px;
  border-radius: 8px;
  background: #e8f6ec;
  color: #1e6b37;
  display: none;
}

.form-msg.show {
  display: block;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

/* ---------- Contact ---------- */
.contact-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card .ic {
  flex: 0 0 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-items: center;
  font-size: 22px;
}

.contact-card h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.map {
  border: 0;
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.filters button {
  border: 1.5px solid var(--sand);
  background: var(--white);
  color: var(--navy);
  padding: 8px 20px;
  border-radius: 30px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: .2s;
}

.filters button:hover,
.filters button.active {
  background: var(--saffron);
  color: var(--white);
  border-color: var(--saffron);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.g-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  background: var(--sand);
}

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

.g-item::after {
  content: "＋";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 36px;
  color: var(--white);
  background: rgba(139, 30, 30, .55);
  opacity: 0;
  transition: .3s;
}

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

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

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

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, .94);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 16px;
}

.lightbox.open {
  display: flex;
}

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

.lightbox .lb-cap {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: #ddd;
  font-size: 15px;
}

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  border: 0;
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}

.lightbox button:hover {
  background: var(--saffron);
}

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

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

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

/* ---------- Footer ---------- */
.footer {
  background: #121d35;
  color: #b8c1d6;
  padding-top: 70px;
  font-size: 15px;
}

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

.footer h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

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

.footer a {
  color: #b8c1d6;
}

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

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

.footer ul li {
  padding: 5px 0;
}

.footer-brand img {
  height: 70px;
  background: var(--white);
  border-radius: 10px;
  padding: 6px;
  margin-bottom: 16px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid #24314f;
  padding: 20px 0;
  font-size: 14px;
}

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

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--saffron);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  z-index: 90;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
}

.to-top:hover {
  background: var(--maroon);
}

/* ---------- Notice ticker ---------- */
.ticker {
  background: var(--sand);
  border-bottom: 1px solid #f0dcc2;
  font-size: 14px;
}

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

.ticker strong {
  background: var(--maroon);
  color: var(--white);
  padding: 8px 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.ticker-track div {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: tick 30s linear infinite;
}

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

.ticker-track span {
  margin-right: 60px;
}

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

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s, transform .7s;
}

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

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

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

  * {
    scroll-behavior: auto !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--white);
    box-shadow: -10px 0 30px rgba(0, 0, 0, .15);
    padding: 90px 20px 30px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .35s;
    z-index: 99;
  }

  .nav.open {
    transform: none;
  }

  .nav ul {
    flex-direction: column;
  }

  .nav .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 14px;
    display: none;
  }

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

  .nav .nav-cta {
    margin: 10px 0 0;
    text-align: center;
  }

  .menu-toggle {
    position: relative;
    z-index: 101;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 98;
    display: none;
  }

  .nav-overlay.show {
    display: block;
  }

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

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

  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 44px;
  }
}

@media (max-width: 900px) {

  .split,
  .course-layout,
  .feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-row:nth-child(even) .feature-img {
    order: 0;
  }

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

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

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

  .highlight:nth-child(-n+2) {
    border-bottom: 1px solid #f0e6da;
  }

  .sidebar {
    position: static;
  }

  .section {
    padding: 60px 0;
  }

  .event {
    flex-direction: column;
  }

  .event img {
    width: 100%;
    aspect-ratio: 16/9;
  }

  .event-body {
    padding: 0 20px 20px;
  }
}

@media (max-width: 600px) {

  .grid-2,
  .grid-3,
  .grid-4,
  .form-row,
  .footer-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .topbar .tag {
    display: none;
  }

  .brand img {
    height: 50px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    font-size: 11px;
  }

  .hero-arrow {
    display: none;
  }

  .about-img .badge-year {
    right: 10px;
  }

  .cols-2 {
    columns: 1;
  }

  .form-card,
  .message-card {
    padding: 24px;
  }

  .map {
    height: 320px;
  }
}