@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Montserrat:wght@600;700;800;900&display=swap");

:root {
  --navy-900: #0c2340;
  --navy-800: #12355f;
  --navy-700: #1d4c7a;
  --blue-500: #1f6fb2;
  --sky-100: #edf5ff;
  --sky-200: #dfeeff;
  --white: #ffffff;
  --text: #1d2b3a;
  --muted: #53657a;
  --line: #dfeaf7;
  --gold: #d6a63c;
  --shadow: rgba(12, 35, 64, 0.12);
  --green: #12355f;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: #f7faff;
  line-height: 1.6;
}

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

.topbar {
  background: var(--navy-900);
  color: var(--white);
  padding: 10px 22px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 14px;
}

.topbar-left {
  opacity: 0.9;
}

.topbar .admission-btn {
  background: var(--gold);
  color: var(--navy-900);
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  position: relative;
}

.mobile-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(12, 35, 64, 0.06);
}

.mobile-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  max-width: 760px;
}

.logo-img {
  width: 110px;
  height: 110px;
  border-radius: 30%;
  object-fit: contain;
  background: #fff;
  border: 6px solid #e9f0fa;
  box-shadow: 0 16px 28px rgba(12, 35, 64, 0.12);
  padding: 8px;
  display: block;
  flex-shrink: 0;
}

.brand-text {
  line-height: 1.05;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.brand-text strong {
  display: block;
  color: var(--navy-900);
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 0.85;
  text-transform: uppercase;
  width: 100%;
}

@media (max-width: 768px) {
  .brand-text strong {
    font-family: "Arial Black", Arial, Helvetica, sans-serif;
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.9;
    white-space: nowrap;
  }
}

.brand-text span {
  display: block;
  color: var(--muted);
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.19em;
  margin-top: 10px;
  font-weight: 800;
  text-transform: uppercase;
  width: 100%;
  text-align: left;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- FIXED DROPDOWN CSS --- */
.nav-dropdown {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: -8px;
}

.main-nav a,
.nav-dropdown .nav-link {
  color: var(--navy-900);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 8px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
  display: inline-block;
}

.main-nav a:hover,
.nav-dropdown .nav-link:hover,
.nav-dropdown:hover .nav-link {
  background: rgba(31, 111, 178, 0.08);
  color: var(--navy-800);
}

.caret {
  font-size: 0.9rem;
  vertical-align: middle;
  margin-left: 4px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(12, 35, 64, 0.12);
  display: none;
  flex-direction: column;
  padding: 8px;
  z-index: 30;
}

/* Bridge gap between link and menu */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background: transparent;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  color: var(--navy-900);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 10px 12px;
  border-radius: 8px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.dropdown-menu a:hover {
  background: rgba(31, 111, 178, 0.06);
  color: var(--navy-800);
}
/* --- END FIXED DROPDOWN CSS --- */

.header-cta .admission-cta {
  background: var(--navy-900);
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.hero {
  background:
    linear-gradient(
      120deg,
      rgba(12, 35, 64, 0.86) 0%,
      rgba(29, 76, 122, 0.78) 55%,
      rgba(13, 29, 52, 0.9) 100%
    ),
    url("image/WhatsApp Image 2026-02-22 at 9.38.05 PM.jpeg") center/cover
      no-repeat;
  min-height: 560px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 21, 38, 0.35) 0%,
    rgba(10, 21, 38, 0.08) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 60px 22px;
  color: #fff;
}

.hero-text {
  max-width: 670px;
  background: rgba(8, 20, 35, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(4px);
}

.hero-text h1 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 4vw, 4.3rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 800;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.hero-text .lead {
  margin: 0 0 24px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
  border: 2px solid transparent;
  letter-spacing: 0.02em;
}

.btn.primary {
  background: var(--gold);
  color: var(--navy-900);
  box-shadow: 0 10px 20px rgba(214, 166, 60, 0.25);
}

.btn.primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.btn.outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn.outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-image {
  width: 350px;
  height: 350px;
  border-radius: 24px;
  background: url("image/WhatsApp Image 2026-02-22 at 9.38.06 PM.jpeg")
    center/cover no-repeat;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
  border: 4px solid rgba(255, 255, 255, 0.35);
  position: relative;
}

.hero-image::after {
  content: "Admissions 2026-27";
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(12, 35, 64, 0.85);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.features {
  background: var(--sky-100);
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 18px;
  padding: 26px 22px;
}

.feature {
  background: rgba(255, 255, 255, 0.7);
  padding: 18px 16px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(12, 35, 64, 0.04);
}

.feature .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--sky-200);
  margin-bottom: 10px;
}

.ftitle {
  color: var(--navy-900);
  font-weight: 800;
  font-size: 1rem;
}

.stats {
  background: linear-gradient(180deg, #fff 0%, #f5f9ff 100%);
  padding: 64px 22px;
}

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

.stats h2,
.welcome-text h2,
.section-head h2,
.infrastructure h2 {
  color: var(--navy-900);
  margin: 0 0 16px;
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  line-height: 1.2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.stat-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 8px 22px var(--shadow);
  border-top: 5px solid var(--navy-700);
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
}

.stat-number {
  color: var(--navy-900);
  font-size: clamp(2.2rem, 3.3vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--navy-800);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.welcome {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 70px 22px;
}

.welcome-text {
  flex: 1;
}

.welcome-text p {
  color: var(--muted);
  max-width: 560px;
  font-size: 1.02rem;
  margin-bottom: 22px;
}

.welcome-img {
  flex: 1;
  min-height: 300px;
  border-radius: 18px;
  background: url("image/slider/hert1.jpeg") center/cover no-repeat;
  box-shadow: 0 12px 26px rgba(12, 35, 64, 0.12);
}

.academics,
.infrastructure {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 22px 10px;
}

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

.section-head .sub {
  display: inline-block;
  color: var(--navy-700);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 18px;
}

.card {
  background: #fff;
  padding: 22px 18px;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(12, 35, 64, 0.06);
  border: 1px solid var(--line);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(12, 35, 64, 0.1);
}

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 8px;
  color: var(--navy-900);
  font-size: 1.2rem;
}

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

.card .link {
  color: var(--navy-700);
  text-decoration: none;
  font-weight: 800;
}

.infrastructure {
  padding-top: 60px;
}

.infrastructure h2 {
  text-align: center;
  margin-bottom: 12px;
}

.infra-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.infra-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(12, 35, 64, 0.06);
  transition: transform 0.2s ease;
}

.infra-item:hover {
  transform: translateY(-6px);
}

.infra-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.infra-item h4 {
  margin: 12px 14px 6px;
  color: var(--navy-900);
  font-size: 1.08rem;
}

.infra-item p {
  margin: 0 14px 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.admission-banner {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff;
  padding: 52px 22px;
  text-align: center;
  margin-top: 60px;
}

.banner-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.banner-inner h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0 0 10px;
}

.banner-inner p {
  margin: 0 0 20px;
  opacity: 0.9;
}

.banner-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

footer {
  background: var(--navy-900);
  color: #fff;
  padding: 42px 22px 26px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-about,
.footer-links,
.footer-contact {
  flex: 1;
  min-width: 220px;
}

.footer-logo {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 10px;
}

.footer-about p,
.footer-contact p,
.footer-links p {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links h4,
.footer-contact h4 {
  margin-top: 0;
  color: #fff;
  font-size: 1.1rem;
}

.footer-links a,
.footer-contact a {
  color: #e8f3ff;
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  text-decoration: underline;
}

.copyright {
  max-width: 1200px;
  margin: 28px auto 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
}

.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #25d366;
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.15);
  font-weight: 700;
  z-index: 25;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: #0c2340;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: bannerSlide 30s infinite;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* IMAGE 1 */
.hero-slider .slide-1 {
  background-image:
    /* linear-gradient(rgba(12, 35, 64, 0.38), rgba(12, 35, 64, 0.38)), */ url("image/slider/hert1.jpeg");
  animation-delay: 0s;
}

/* IMAGE 2 */
.hero-slider .slide-2 {
  background-image:
    /* linear-gradient(rgba(12, 35, 64, 0.38), rgba(12, 35, 64, 0.38)), */ url("image/slider/hert2.jpeg");
  animation-delay: 3s;
}

/* IMAGE 3 */
.hero-slider .slide-3 {
  background-image:
    /* linear-gradient(rgba(12, 35, 64, 0.38), rgba(12, 35, 64, 0.38)), */ url("image/slider/hert3.jpg");
  animation-delay: 6s;
}

/* IMAGE 4 */
.hero-slider .slide-4 {
  background-image:
    /* linear-gradient(rgba(12, 35, 64, 0.38), rgba(12, 35, 64, 0.38)), */ url("image/slider/hert4.jpeg");
  animation-delay: 9s;
}

/* IMAGE 5 */
.hero-slider .slide-5 {
  background-image:
    /* linear-gradient(rgba(12, 35, 64, 0.38), rgba(12, 35, 64, 0.38)), */ url("image/slider/hert5.jpeg");
  animation-delay: 12s;
}

/* IMAGE 6 */
.hero-slider .slide-6 {
  background-image:
    /* linear-gradient(rgba(12, 35, 64, 0.38), rgba(12, 35, 64, 0.38)), */ url("image/slider/hert6.jpeg");
  animation-delay: 15s;
}

/* IMAGE 7 */
.hero-slider .slide-7 {
  background-image:
    /* linear-gradient(rgba(12, 35, 64, 0.38), rgba(12, 35, 64, 0.38)), */ url("image/slider/hert7.jpeg");
  animation-delay: 18s;
}

/* IMAGE 8 */
.hero-slider .slide-8 {
  background-image:
    /* linear-gradient(rgba(12, 35, 64, 0.38), rgba(12, 35, 64, 0.38)), */ url("image/slider/hert8.jpeg");
  animation-delay: 21s;
}

/* IMAGE 9 */
.hero-slider .slide-9 {
  background-image:
    /* linear-gradient(rgba(12, 35, 64, 0.38), rgba(12, 35, 64, 0.38)), */ url("image/slider/hert9.jpeg");
  animation-delay: 24s;
}

/* IMAGE 10 */
.hero-slider .slide-10 {
  background-image:
    /* linear-gradient(rgba(12, 35, 64, 0.38), rgba(12, 35, 64, 0.38)), */ url("image/slider/hert10.jpeg");
  animation-delay: 27s;
}

@keyframes bannerSlide {
  0% {
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  28% {
    opacity: 1;
  }

  33% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}
.about-intro {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 22px 10px;
}

.about-page-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}

.page-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(12, 35, 64, 0.05);
  padding: 12px 18px;
  margin-top: 12px;
}

.page-nav-wrap label {
  color: var(--navy-900);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.page-nav-wrap select {
  min-width: 220px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--sky-100);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.95rem;
  outline: none;
}

.about-intro-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(12, 35, 64, 0.08);
  overflow: hidden;
}

.about-intro-copy {
  padding: 36px 30px;
}

.eyebrow {
  display: inline-block;
  background: rgba(29, 76, 122, 0.08);
  color: var(--navy-700);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.about-intro-copy h1 {
  margin: 0 0 14px;
  color: var(--navy-900);
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  line-height: 1.1;
}

.about-intro-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.about-badges span {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy-800);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(12, 35, 64, 0.04);
}

.principal-desk {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 22px 10px;
}

.principal-box {
  background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(12, 35, 64, 0.08);
  padding: 30px 28px;
}

.principal-quote {
  color: var(--navy-900);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 20px;
  padding-left: 18px;
  border-left: 4px solid var(--gold);
}

.principal-box p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.principal-signature {
  margin-top: 18px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  color: var(--navy-900);
}

.principal-signature strong {
  font-size: 1.08rem;
}

.principal-signature span {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-intro {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 22px 10px;
}

.contact-intro-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #f8fbff 0%, #edf5ff 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(12, 35, 64, 0.08);
}

.contact-copy {
  padding: 36px 30px;
}

.contact-copy h1 {
  margin: 0 0 14px;
  color: var(--navy-900);
  font-size: clamp(2.1rem, 3vw, 3rem);
  line-height: 1.1;
}

.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.contact-visual {
  padding: 20px;
}

.contact-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(12, 35, 64, 0.12);
}

.contact-details {
  padding: 40px 22px 20px;
}

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

.contact-card {
  background: #fff;
  padding: 28px 22px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(12, 35, 64, 0.08);
  border: 1px solid var(--line);
  transition: transform 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
}

.contact-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.contact-card h3 {
  margin: 0 0 12px;
  color: var(--navy-900);
  font-size: 1.1rem;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.contact-card a {
  color: var(--navy-700);
  text-decoration: none;
  font-weight: 600;
}

.contact-card a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .contact-intro-inner {
    grid-template-columns: 1fr;
  }

  .contact-visual img {
    height: 300px;
  }
}

@media (max-width: 620px) {
  .contact-intro {
    padding: 18px 18px 8px;
  }

  .contact-copy {
    padding: 24px 18px;
  }

  .contact-visual {
    padding: 0 18px 18px;
  }

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

.about-intro-visual {
  padding: 20px;
}

.about-intro-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(12, 35, 64, 0.12);
}

.admissions-intro {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 22px 10px;
}

.admissions-intro-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #f6faff 0%, #edf5ff 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(12, 35, 64, 0.08);
}

.admissions-copy {
  padding: 36px 30px;
}

.admissions-copy h1 {
  margin: 0 0 14px;
  color: var(--navy-900);
  font-size: clamp(2.2rem, 3vw, 3.1rem);
  line-height: 1.1;
}

.admissions-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.admissions-visual {
  padding: 20px;
}

.admissions-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(12, 35, 64, 0.12);
}

.gallery-intro {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 22px 10px;
}

.gallery-intro-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #f8fbff 0%, #edf5ff 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(12, 35, 64, 0.08);
}

.gallery-copy {
  padding: 36px 30px;
}

.gallery-copy h1 {
  margin: 0 0 14px;
  color: var(--navy-900);
  font-size: clamp(2.1rem, 3vw, 3rem);
  line-height: 1.1;
}

.gallery-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.gallery-visual {
  padding: 20px;
}

.gallery-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(12, 35, 64, 0.12);
}

.image-gallery {
  padding: 30px 22px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(12, 35, 64, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.gallery-grid img:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 14px 24px rgba(12, 35, 64, 0.15);
}

@media (max-width: 900px) {
  .about-intro-inner,
  .admissions-intro-inner,
  .gallery-intro-inner {
    grid-template-columns: 1fr;
  }

  .about-intro-visual img,
  .admissions-visual img,
  .gallery-visual img {
    height: 300px;
  }
}

@media (max-width: 620px) {
  .about-intro,
  .admissions-intro,
  .gallery-intro {
    padding: 18px 18px 8px;
  }

  .about-intro-copy,
  .admissions-copy,
  .gallery-copy {
    padding: 24px 18px;
  }

  .about-intro-visual,
  .admissions-visual,
  .gallery-visual {
    padding: 0 18px 18px;
  }

  .about-badges {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 980px) {
  .features,
  .stats-grid,
  .cards,
  .infra-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  /* Header Layout Alignment */
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    gap: 12px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: none;
  }

  .logo-img {
    width: 60px;
    height: 60px;
    border-width: 2px;
    padding: 4px;
    box-shadow: 0 4px 10px rgba(12, 35, 64, 0.1);
  }

  .brand-text strong {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
  }

  .brand-text span {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    margin-top: 3px;
  }

  .mobile-nav-toggle {
    display: flex;
    flex-shrink: 0;
    margin-left: 0;
  }

  /* Dropdown Mobile Nav Position */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 2px solid var(--line);
    box-shadow: 0 12px 24px rgba(12, 35, 64, 0.15);
    padding: 12px 16px;
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a,
  .nav-dropdown .nav-link {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
  }

  .nav-dropdown {
    width: 100%;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  /* Prevent hover states on mobile from keeping dropdown open */
  .nav-dropdown:hover .dropdown-menu {
    display: none;
  }

  .dropdown-menu {
    position: static;
    display: none !important;
    min-width: 0;
    box-shadow: none;
    border-radius: 8px;
    border: 1px solid var(--line);
    margin-top: 4px;
    background: var(--sky-100);
    flex-direction: column;
  }

  .dropdown-menu::before {
    display: none;
  }

  /* Target .show class directly toggleable by JavaScript */
  .dropdown-menu.show {
    display: flex !important;
  }

  .hero-inner,
  .welcome {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-image {
    width: 100%;
    max-width: 340px;
    height: 220px;
    margin-top: 20px;
  }

  .topbar {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .features,
  .stats-grid,
  .cards,
  .infra-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 32px 18px;
  }

  .hero-text {
    padding: 20px 18px;
    width: 100%;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-buttons,
  .banner-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .welcome,
  .academics,
  .infrastructure,
  .stats,
  .footer-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .welcome-img {
    min-height: 220px;
    width: 100%;
  }

  .whatsapp-fab {
    right: 12px;
    bottom: 12px;
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .hero-slider {
    height: 320px;
  }
}

/* Active state for main navigation links */
.main-nav a.active,
.nav-dropdown .nav-link.active {
  background: var(--navy-900, #0c2340);
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 6px;
}

/* Active state inside dropdown sub-menus */
.dropdown-menu a.active {
  background: var(--navy-900, #0c2340);
  color: #ffffff !important;
  font-weight: 600;
}

/* Mobile specific styling for active items */
@media (max-width: 980px) {
  .main-nav a.active,
  .nav-dropdown .nav-link.active {
    border-left: 4px solid var(--gold, #eaaa00);
    border-radius: 0 6px 6px 0;
  }
}
