@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --saffron: #E8621A;
  --saffron-light: #F5874A;
  --saffron-pale: #FDF0E8;
  --deep-green: #1B5E3B;
  --green-mid: #2E7D52;
  --green-light: #E8F5ED;
  --navy: #0F2A4A;
  --navy-mid: #1E4470;
  --gold: #C9921A;
  --gold-light: #F5D98A;
  --cream: #FBF8F3;
  --warm-white: #FFFEF9;
  --text-dark: #1A1A2E;
  --text-body: #3D3D5C;
  --text-muted: #7A7A9A;
  --border: #E8E4DC;
  --shadow-sm: 0 2px 8px rgba(15, 42, 74, 0.08);
  --shadow-md: 0 8px 32px rgba(15, 42, 74, 0.12);
  --shadow-lg: 0 20px 60px rgba(15, 42, 74, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html,
body {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative;
  margin: 0;
  padding: 0
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-body);
  background: var(--warm-white);
  line-height: 1.7;
  touch-action: pan-y;
  overscroll-behavior-x: none
}

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

a {
  color: var(--saffron);
  text-decoration: none;
  transition: var(--transition)
}

a:hover {
  color: var(--deep-green)
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  line-height: 1.25
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px
}

.top-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, .85);
  font-size: .82rem;
  padding: 7px 0;
  border-bottom: 2px solid var(--saffron)
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap
}

.top-bar a {
  color: rgba(255, 255, 255, .8);
  font-size: .82rem
}

.top-bar a:hover {
  color: var(--gold-light)
}

.top-bar i {
  color: var(--saffron-light);
  margin-right: 5px
}

.top-bar .social-links a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem
}

.top-bar .social-links a:hover {
  background: var(--saffron);
  color: #fff
}

.site-header {
  background: rgba(255, 254, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(15, 42, 74, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4)
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px
}

.school-brand {
  display: flex;
  align-items: center;
  gap: 14px
}

.logo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  border: 3px solid var(--saffron-light)
}

.school-brand .school-logo {
  height: 64px;
  width: auto;
  border-radius: 50%;
  border: 2px solid var(--saffron-light);
  padding: 2px;
  background: #fff;
  flex-shrink: 0
}

.school-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2
}

.school-tagline {
  font-size: .75rem;
  color: var(--saffron);
  font-weight: 500;
  letter-spacing: .5px;
  margin-top: 2px
}

.school-affiliation {
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: 1px
}

.main-nav {
  display: flex;
  align-items: center
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center
}

.main-nav ul li {
  position: relative
}

.main-nav ul li a {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative
}

.main-nav ul li a:hover,
.main-nav ul li.active>a {
  color: var(--saffron);
  background: var(--saffron-pale)
}

.nav-arrow {
  font-size: .65rem;
  margin-left: 6px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.7
}

.main-nav ul li:hover .nav-arrow {
  transform: rotate(180deg);
  opacity: 1
}

.main-nav ul li .dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(15, 42, 74, 0.1);
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(232, 228, 220, 0.5);
  z-index: 100;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.main-nav ul li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1)
}

.main-nav ul li .dropdown li a {
  border-radius: 6px;
  padding: 9px 18px;
  border-bottom: none;
  font-size: .85rem;
  margin: 0 8px;
  font-weight: 500;
  color: var(--text-body);
  display: block
}

.main-nav ul li .dropdown li a:hover {
  background: var(--saffron-pale);
  color: var(--saffron);
  padding-left: 22px
}

.main-nav ul li .dropdown li:last-child a {
  border-bottom: none
}

.nav-cta {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-light)) !important;
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  margin-left: 8px;
  box-shadow: 0 4px 15px rgba(232, 98, 26, .3);
  display: inline-flex !important
}

.nav-cta:hover {
  background: var(--deep-green) !important;
  color: #fff !important;
  transform: translateY(-2px)
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition)
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.hamburger.active span:nth-child(2) {
  opacity: 0
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  min-height: 580px
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s ease;
  display: flex;
  align-items: center;
  z-index: 1
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1
}

.hero-bg-gradient {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--deep-green) 100%);
  position: absolute;
  inset: 0
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15, 42, 74, .88) 0%, rgba(15, 42, 74, .65) 50%, rgba(27, 94, 59, .5) 100%);
  z-index: 2
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
  padding: 60px 0
}

.slide-tag {
  display: inline-block;
  background: var(--saffron);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 16px
}

.hero-content h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px
}

.slide-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 32px;
  max-width: 540px
}

.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--saffron);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  box-shadow: 0 6px 24px rgba(232, 98, 26, .4);
  transition: var(--transition)
}

.slide-btn:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-2px)
}

.slide-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .6);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  margin-left: 12px;
  transition: var(--transition)
}

.slide-btn-outline:hover {
  background: rgba(255, 255, 255, .15);
  border-color: #fff;
  color: #fff
}

.hero-deco {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center
}

.hero-deco-ring {
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .08);
  position: absolute
}

.hero-controls {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: var(--transition);
  border: none
}

.hero-dot.active {
  background: var(--saffron);
  width: 24px;
  border-radius: 4px
}

.hero-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none
}

.hero-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  border: 2px solid rgba(255, 255, 255, .3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  transition: var(--transition)
}

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

.section {
  padding: 80px 0
}

.section-sm {
  padding: 50px 0
}

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

.section-bg-navy {
  background: var(--navy)
}

.section-bg-green {
  background: var(--deep-green)
}

.section-head {
  text-align: center;
  margin-bottom: 52px
}

.section-head-left {
  text-align: left;
  margin-bottom: 40px
}

.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 10px
}

.section-tag::before {
  content: '—  ';
  color: var(--gold)
}

.section-tag::after {
  content: '  —';
  color: var(--gold)
}

.section-head-left .section-tag::before,
.section-head-left .section-tag::after {
  display: none
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 14px
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65
}

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

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

.section-head-left .section-subtitle {
  margin: 0
}

.section-bg-green .section-tag,
.section-bg-navy .section-tag {
  color: var(--gold-light)
}

.section-bg-green .section-title,
.section-bg-navy .section-title {
  color: #fff
}

.section-bg-green .section-subtitle,
.section-bg-navy .section-subtitle {
  color: rgba(255, 255, 255, .75)
}

.stats-section {
  background: var(--navy);
  padding: 52px 0
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  border-right: 1px solid rgba(255, 255, 255, .1)
}

.stat-item:last-child {
  border-right: none
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(232, 98, 26, .15);
  border: 1px solid rgba(232, 98, 26, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.3rem;
  color: var(--saffron-light)
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px
}

.stat-label {
  font-size: .82rem;
  color: rgba(255, 255, 255, .6);
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase
}

.welcome-section {
  padding: 90px 0
}

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

.welcome-img-wrap {
  position: relative
}

.welcome-img-main {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: linear-gradient(135deg, var(--deep-green), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .3);
  font-size: 5rem
}

.welcome-img-accent {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 55%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--saffron-pale);
  border: 3px solid var(--saffron);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--saffron)
}

.estd-badge {
  position: absolute;
  top: 20px;
  left: -16px;
  background: var(--saffron);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow-md);
  z-index: 2
}

.estd-badge .year {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1
}

.estd-badge .label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .85
}

.welcome-content {
  padding-left: 10px
}

.welcome-content p {
  margin-bottom: 18px;
  color: var(--text-body);
  font-size: 1rem
}

.welcome-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0
}

.welcome-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--text-body);
  font-weight: 500
}

.welcome-feature i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--green-light);
  color: var(--deep-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  flex-shrink: 0
}

/* Form Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: #fff;
  transition: var(--transition);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 4px rgba(232, 98, 26, 0.1);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group.full {
  grid-column: 1 / -1;
}

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

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.85rem;
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.alert-success {
  background: var(--green-light);
  color: var(--deep-green);
  border: 1px solid rgba(27, 94, 59, 0.2);
}

.alert-error {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid rgba(198, 40, 40, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .92rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  line-height: 1
}

.btn-primary {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-light));
  color: #fff;
  box-shadow: 0 4px 15px rgba(232, 98, 26, .3)
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 98, 26, .4)
}

.btn-green {
  background: linear-gradient(135deg, var(--deep-green), var(--green-mid));
  color: #fff;
  box-shadow: 0 4px 15px rgba(27, 94, 59, .3)
}

.btn-green:hover {
  color: #fff;
  transform: translateY(-2px)
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--saffron);
  color: var(--saffron)
}

.btn-outline:hover {
  background: var(--saffron);
  color: #fff
}

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .5);
  color: #fff
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, .15);
  border-color: #fff;
  color: #fff
}

.btn-sm {
  padding: 8px 16px;
  font-size: .82rem
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border)
}

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

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(135deg, var(--cream), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-muted)
}

.card-body {
  padding: 22px
}

.card-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px
}

.tag-news {
  background: var(--saffron-pale);
  color: var(--saffron)
}

.tag-event {
  background: var(--green-light);
  color: var(--deep-green)
}

.tag-announcement {
  background: #FFF3E0;
  color: #E65100
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.35
}

.card-meta {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap
}

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

.card-text {
  font-size: .88rem;
  color: var(--text-body);
  line-height: 1.6
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px
}

.facility-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden
}

.facility-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  transform: scaleX(0);
  transition: var(--transition)
}

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

.facility-card:hover::before {
  transform: scaleX(1)
}

.facility-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--saffron-pale), #fff);
  border: 1.5px solid rgba(232, 98, 26, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  color: var(--saffron);
  transition: var(--transition)
}

.facility-card:hover .facility-icon {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: #fff;
  border-color: transparent
}

.facility-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 10px
}

.facility-desc {
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.55
}

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

.principal-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 52px;
  align-items: center
}

.principal-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 12px 40px rgba(15, 42, 74, .15);
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--navy), var(--deep-green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: rgba(255, 255, 255, .5)
}

.principal-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 4px;
  text-align: center
}

.principal-desig {
  font-size: .82rem;
  color: var(--saffron);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: center
}

.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--saffron);
  line-height: .5;
  opacity: .3;
  margin-bottom: 16px;
  display: block
}

.principal-msg p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 16px
}

.notices-ticker {
  background: var(--saffron);
  color: #fff;
  padding: 11px 0;
  overflow: hidden;
  width: 100%
}

.ticker-inner {
  display: flex;
  align-items: center
}

.ticker-label {
  background: var(--navy);
  color: #fff;
  padding: 4px 18px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
  border-radius: 4px;
  margin-right: 20px;
  flex-shrink: 0
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 22px
}

.ticker-content {
  display: flex;
  gap: 50px;
  animation: ticker 35s linear infinite;
  white-space: nowrap;
  position: absolute
}

.ticker-item {
  font-size: .85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px
}

.ticker-item::before {
  content: '●';
  font-size: .5rem;
  opacity: .7
}

@keyframes ticker {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

.announcements-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px
}

.announcements-list {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.announcement-item {
  display: flex;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  transition: var(--transition);
  align-items: flex-start
}

.announcement-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--saffron)
}

.announcement-date {
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  min-width: 52px;
  flex-shrink: 0
}

.announcement-date .day {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1
}

.announcement-date .month {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .75;
  margin-top: 3px
}

.announcement-body {
  flex: 1
}

.announcement-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
  line-height: 1.35
}

.announcement-summary {
  font-size: .82rem;
  color: var(--text-muted)
}

.announcement-tag {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
  display: inline-block
}

.upcoming-event-card {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: var(--radius);
  padding: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px
}

.event-date-badge {
  background: var(--saffron);
  border-radius: 8px;
  padding: 6px 12px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 12px
}

.upcoming-event-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  margin-bottom: 8px
}

.upcoming-event-location {
  font-size: .78rem;
  opacity: .75;
  display: flex;
  align-items: center;
  gap: 5px
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px
}

.faculty-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition)
}

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

.faculty-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid var(--border);
  background: linear-gradient(135deg, var(--cream), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-muted);
  overflow: hidden
}

.faculty-name {
  font-family: 'Playfair Display', serif;
  font-size: .98rem;
  color: var(--navy);
  margin-bottom: 4px
}

.faculty-desig {
  font-size: .78rem;
  color: var(--saffron);
  font-weight: 600;
  margin-bottom: 3px
}

.faculty-dept {
  font-size: .75rem;
  color: var(--text-muted)
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1;
  background: var(--cream);
  cursor: pointer
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(6) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: unset
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 42, 74, .8) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 14px
}

.gallery-item:hover .gallery-overlay {
  opacity: 1
}

.gallery-caption {
  color: #fff;
  font-size: .82rem;
  font-weight: 500
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy), var(--deep-green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255, 255, 255, .3);
  min-height: 150px
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px
}

.achievement-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  gap: 16px;
  align-items: flex-start
}

.achievement-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--gold)
}

.achievement-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FFF8E1, #FFF3CD);
  border: 1.5px solid rgba(201, 146, 26, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0
}

.achievement-body .title {
  font-family: 'Playfair Display', serif;
  font-size: .98rem;
  color: var(--navy);
  margin-bottom: 5px
}

.achievement-body .student {
  font-size: .78rem;
  color: var(--saffron);
  font-weight: 600;
  margin-bottom: 6px
}

.achievement-body .desc {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5
}

.admission-cta {
  background: linear-gradient(135deg, var(--deep-green) 0%, var(--navy) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1
}

.cta-text h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 10px
}

.cta-text p {
  color: rgba(255, 255, 255, .75);
  font-size: 1rem
}

.cta-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0
}

.contact-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--saffron-pale);
  border: 1.5px solid rgba(232, 98, 26, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--saffron);
  font-size: 1.1rem;
  flex-shrink: 0
}

.contact-info-body .label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 3px
}

.contact-info-body .value {
  font-size: .95rem;
  color: var(--navy);
  font-weight: 500
}

.contact-info-body .value a {
  color: var(--navy)
}

.contact-info-body .value a:hover {
  color: var(--saffron)
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md)
}

.map-container iframe {
  width: 100%;
  height: 320px;
  border: none;
  display: block
}

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

.form-grid .full {
  grid-column: 1/-1
}

.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  color: var(--text-body);
  background: #fff;
  transition: var(--transition);
  outline: none
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(232, 98, 26, .12)
}

.form-group textarea {
  resize: vertical;
  min-height: 110px
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 42, 74, .7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px)
}

.popup-box {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .3)
}

.popup-header {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  padding: 24px 28px;
  color: #fff
}

.popup-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 4px
}

.popup-header p {
  font-size: .82rem;
  opacity: .85
}

.popup-body {
  padding: 28px
}

.popup-body p {
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 20px
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition)
}

.popup-close:hover {
  background: rgba(255, 255, 255, .35)
}

.inner-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--deep-green) 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden
}

.inner-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .06)
}

.inner-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 10%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .06)
}

.inner-hero-content {
  position: relative;
  z-index: 1
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 14px
}

.breadcrumb a {
  color: rgba(255, 255, 255, .75)
}

.breadcrumb a:hover {
  color: #fff
}

.inner-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #fff;
  margin-bottom: 12px
}

.inner-hero p {
  font-size: 1rem;
  color: rgba(255, 255, 255, .78);
  max-width: 560px
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0
}

.vm-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden
}

.vm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%
}

.vm-card.vision::before {
  background: var(--saffron)
}

.vm-card.mission::before {
  background: var(--deep-green)
}

.vm-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem
}

.vm-card.vision .vm-icon {
  background: var(--saffron-pale);
  color: var(--saffron)
}

.vm-card.mission .vm-icon {
  background: var(--green-light);
  color: var(--deep-green)
}

.timeline {
  position: relative;
  padding: 20px 0
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border)
}

.timeline-item {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  align-items: flex-start
}

.timeline-dot {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--saffron);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 1;
  position: relative;
  box-shadow: 0 4px 15px rgba(232, 98, 26, .3)
}

.timeline-content {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid var(--border);
  flex: 1;
  margin-top: 6px
}

.timeline-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 6px
}

.timeline-content p {
  font-size: .85rem;
  color: var(--text-muted)
}

.tab-nav {
  display: flex;
  gap: 4px;
  background: var(--cream);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 36px;
  width: fit-content
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  background: none;
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition)
}

.tab-btn.active {
  background: #fff;
  color: var(--saffron);
  box-shadow: var(--shadow-sm)
}

.downloads-list {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.download-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  border: 1px solid var(--border);
  transition: var(--transition)
}

.download-item:hover {
  border-color: var(--saffron);
  box-shadow: var(--shadow-sm)
}

.download-file-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #FFEBEE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #C62828;
  flex-shrink: 0
}

.download-body {
  flex: 1
}

.download-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 3px
}

.download-meta {
  font-size: .78rem;
  color: var(--text-muted)
}

.download-category {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--saffron)
}

.site-footer {
  background: linear-gradient(180deg, #0A1E36 0%, #071427 100%);
  color: rgba(255, 255, 255, .75)
}

.footer-top {
  padding: 70px 0 50px
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px
}

.footer-school-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 4px
}

.footer-tagline {
  font-size: .78rem;
  color: var(--gold-light);
  margin-bottom: 16px
}

.footer-brand p {
  font-size: .85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .6)
}

.footer-logo-placeholder {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px
}

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

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .7);
  font-size: .85rem;
  transition: var(--transition)
}

.footer-social a:hover {
  background: var(--saffron);
  color: #fff
}

.footer-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.footer-links {
  list-style: none
}

.footer-links li {
  margin-bottom: 10px
}

.footer-links a {
  font-size: .84rem;
  color: rgba(255, 255, 255, .6);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition)
}

.footer-links a::before {
  content: '›';
  color: var(--saffron)
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px
}

.footer-contact-item i {
  color: var(--saffron-light);
  margin-top: 3px;
  width: 14px;
  flex-shrink: 0
}

.footer-contact-item span {
  font-size: .83rem;
  color: rgba(255, 255, 255, .65);
  line-height: 1.5
}

.footer-contact-item a {
  color: rgba(255, 255, 255, .65)
}

.footer-contact-item a:hover {
  color: var(--gold-light)
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 18px 0
}

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

.footer-bottom p {
  font-size: .78rem;
  color: rgba(255, 255, 255, .45)
}

.footer-bottom a {
  color: rgba(255, 255, 255, .55)
}

.footer-bottom a:hover {
  color: var(--gold-light)
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: .9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px
}

.alert-success {
  background: var(--green-light);
  color: var(--deep-green);
  border: 1px solid rgba(27, 94, 59, .2)
}

.alert-error {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid rgba(198, 40, 40, .2)
}

.alert-info {
  background: #E3F2FD;
  color: #1565C0;
  border: 1px solid rgba(21, 101, 192, .2)
}

.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--saffron);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  box-shadow: 0 4px 20px rgba(232, 98, 26, .4);
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 500
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0)
}

.scroll-top:hover {
  background: var(--navy);
  transform: translateY(-2px)
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
  z-index: 500;
  transition: var(--transition)
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff
}

.nav-overlay {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible
}

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

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.fade-up {
  animation: fadeUp .6s ease forwards
}

.text-center {
  text-align: center
}

.mt-4 {
  margin-top: 32px
}

.mb-3 {
  margin-bottom: 24px
}

.mobile-nav-brand {
  display: none
}

.hidden {
  display: none !important
}

@media(max-width:1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px
  }

  .welcome-grid {
    gap: 40px
  }

  .principal-grid {
    gap: 36px
  }

  .posts-grid {
    grid-template-columns: 1fr 1fr
  }

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

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(6) {
    grid-column: span 1;
    grid-row: span 1
  }
}

@media(max-width:768px) {

  /* Fix stacking context: sticky+backdrop-filter traps children below hero.
     Switch header to fixed so it lives in the root stacking context. */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
    z-index: 10000;
    box-shadow: 0 2px 12px rgba(15, 42, 74, .10)
  }

  /* Push page content down to compensate for fixed header */
  body {
    padding-top: 70px
  }

  .hero-slider {
    position: relative;
    z-index: 1
  }

  .top-bar {
    display: none
  }

  .hamburger {
    display: flex;
    z-index: 10002;
    position: relative
  }

  .hamburger.active span {
    background: #fff
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    background: rgba(15, 42, 74, .98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 40px;
    transition: opacity .4s ease, transform .4s ease, visibility .4s ease;
    overflow-y: auto;
    z-index: 10001;
    transform: scale(0.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    box-shadow: none
  }

  .main-nav.open {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: all
  }

  .mobile-nav-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 80%;
    position: relative;
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s
  }

  .main-nav.open .mobile-nav-brand {
    opacity: 1;
    transform: translateY(0)
  }

  .mobile-nav-brand::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--saffron), var(--gold))
  }

  .mobile-nav-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3)
  }

  .mobile-nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%
  }

  .mobile-nav-brand .logo-placeholder {
    width: 100%;
    height: 100%;
    font-size: 1.8rem;
    border: none
  }

  .nav-overlay {
    display: none !important
  }

  /* Overlay no longer needed for full-screen menu */

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin: auto;
    align-items: center
  }

  .main-nav ul li {
    width: 100%;
    text-align: center
  }

  .main-nav ul li a {
    padding: 10px 15px;
    border-radius: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    border: none;
    width: auto;
    display: inline-flex;
    justify-content: center
  }

  .main-nav ul li a:hover,
  .main-nav ul li.active>a {
    background: transparent;
    color: var(--saffron)
  }

  .nav-arrow {
    font-size: .9rem;
    color: rgba(255, 255, 255, .5);
    margin-left: 10px
  }

  .main-nav ul li .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    display: none;
    border-radius: 0;
    padding: 5px 0
  }

  .main-nav ul li.drop-open .dropdown {
    display: block
  }

  .main-nav ul li .dropdown li a {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .7);
    padding: 6px;
    font-weight: 500
  }

  .main-nav ul li .dropdown li a:hover {
    color: #fff;
    background: transparent;
    padding-left: 6px
  }

  .nav-cta {
    margin: 24px auto 0;
    width: auto;
    justify-content: center;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 1.1rem !important;
    padding: 12px 32px !important
  }

  .welcome-grid {
    grid-template-columns: 1fr
  }

  .welcome-image-block {
    display: none
  }

  .welcome-content {
    padding-left: 0
  }

  .posts-grid {
    grid-template-columns: 1fr
  }

  .announcements-grid {
    grid-template-columns: 1fr
  }

  .contact-preview-grid {
    grid-template-columns: 1fr
  }

  .vision-mission-grid {
    grid-template-columns: 1fr
  }

  .principal-grid {
    grid-template-columns: 1fr;
    text-align: center
  }

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

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .1)
  }

  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, .1)
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr
  }

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

  .cta-buttons {
    justify-content: center
  }

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

  .form-grid {
    grid-template-columns: 1fr
  }

  .section {
    padding: 55px 0
  }

  .hero-slider {
    min-height: 460px
  }

  .hero-content {
    padding: 40px 0;
    text-align: center
  }

  .hero-content h1 {
    font-size: 2rem
  }

  .slide-btn-outline {
    margin-left: 0;
    margin-top: 12px
  }

  .facilities-grid {
    grid-template-columns: 1fr 1fr
  }

  .achievements-grid {
    grid-template-columns: 1fr
  }

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

  .school-brand {
    gap: 10px
  }

  .school-brand .school-logo {
    height: 42px
  }

  .school-name {
    font-size: 1.05rem
  }

  .school-tagline {
    font-size: .65rem
  }

  .section {
    padding: 40px 0
  }

  .section-head {
    margin-bottom: 28px
  }

  .container {
    padding: 0 15px
  }

  .hero-content {
    padding: 40px 20px;
    text-align: center
  }

  .hero-content h1 {
    font-size: 1.8rem;
    word-wrap: break-word
  }

  .hero-slider {
    min-height: 420px
  }

  .slide-btn,
  .slide-btn-outline {
    width: 100% !important;
    max-width: 280px !important;
    justify-content: center !important;
    margin: 8px auto !important;
    display: flex !important;
    margin-left: auto !important;
    margin-right: auto !important
  }

  /* CTA section buttons */
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 12px
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    text-align: center
  }

  /* General btn responsiveness */
  .btn-lg {
    padding: 14px 24px;
    font-size: .95rem
  }

  /* Hero slide button container */
  .slide-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0
  }
}

@media(max-width:480px) {
  .stats-grid {
    grid-template-columns: 1fr
  }

  .stat-item {
    border-right: none
  }

  .facilities-grid {
    grid-template-columns: 1fr
  }

  .gallery-grid {
    grid-template-columns: 1fr
  }

  .faculty-grid {
    grid-template-columns: 1fr
  }

  .welcome-features {
    grid-template-columns: 1fr
  }

  /* Inline btn groups (e.g. welcome section) */
  .welcome-content .btn,
  .section .btn {
    display: flex;
    width: 100%;
    max-width: 280px;
    justify-content: center;
    margin: 8px auto 0
  }

  .btn-lg {
    padding: 13px 20px;
    font-size: .9rem
  }
}