/* ============================================
   Wilsonia Scholars' Home - Main Stylesheet
   ============================================ */

:root {
  --primary: #0b2c5e;
  --primary-dark: #071c3d;
  --primary-light: #1a4a8a;
  --accent: #c9a227;
  --accent-light: #e8c547;
  --danger: #8b1a1a;
  --text: #2d3748;
  --text-light: #4a5568;
  --bg-light: #f7f9fc;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(11, 44, 94, 0.08);
  --shadow-lg: 0 10px 40px rgba(11, 44, 94, 0.12);
  --radius: 10px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

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

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: var(--accent-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-light);
  color: #fff;
}

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--primary-dark);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}

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

.top-bar-left {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.top-bar-left span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-left a:hover {
  color: var(--accent);
}

.top-bar-right a {
  margin-left: 12px;
  opacity: 0.85;
  font-size: 14px;
}

.top-bar-right a:hover {
  opacity: 1;
  color: var(--accent);
}

/* ========== HEADER ========== */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 5000; /* high so mobile nav (inside header) stays above overlay */
}

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

.logo img {
  height: 70px;
  width: auto;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 10px 13px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--primary);
  border-radius: 6px;
  white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  background: var(--primary);
  color: #fff;
}

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

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 230px;
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s;
  list-style: none;
  padding: 8px 0;
  z-index: 100;
}

.nav-menu > li:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 9px 18px;
  font-size: 13.5px;
  color: var(--text);
}

.dropdown li a:hover {
  background: var(--bg-light);
  color: var(--primary);
  padding-left: 22px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: var(--primary);
  border: none;
  border-radius: 6px;
  min-width: 44px;
  min-height: 44px;
  z-index: 2100;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: 0.3s;
  margin: 0 auto;
}

.hamburger:hover {
  background: var(--primary-light);
}

/* When menu is open, hamburger becomes X */
.hamburger.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.close-nav {
  display: none;
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--primary);
  border: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  line-height: 1;
  z-index: 2101;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 4990; /* BELOW header (5000) so menu is clickable */
  pointer-events: none;
}

.mobile-overlay.show {
  display: block;
  pointer-events: auto;
}

/* ========== SLIDER ========== */
.slider-section {
  position: relative;
  height: 460px;
  overflow: hidden;
  background: var(--primary-dark);
}

.slides {
  position: relative;
  height: 100%;
}

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

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 28, 61, 0.78) 0%, rgba(7, 28, 61, 0.45) 55%, rgba(7, 28, 61, 0.3) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  max-width: 680px;
}

.slide-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-content p {
  font-size: 16px;
  margin-bottom: 22px;
  opacity: 0.95;
  max-width: 500px;
}

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

.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  transition: 0.3s;
  padding: 0;
}

.slider-dots button.active {
  background: var(--accent);
  border-color: var(--accent);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  backdrop-filter: blur(4px);
}

.slider-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.slider-nav.prev { left: 18px; }
.slider-nav.next { right: 18px; }

/* ========== MAIN BODY SECTION (News + About + Director) ========== */
.main-body {
  padding: 45px 0 50px;
}

.body-grid {
  display: grid;
  grid-template-columns: 320px 1fr 300px;
  gap: 24px;
  align-items: start;
}

/* Left: News Column */
.news-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.news-box-header {
  background: var(--primary);
  color: #fff;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}

.news-box-header.mandatory {
  background: var(--danger);
}

.news-scroll-wrapper {
  height: 195px;
  overflow: hidden;
  position: relative;
}

.news-scroll {
  list-style: none;
  animation: scrollUp 28s linear infinite;
}

.news-scroll:hover {
  animation-play-state: paused;
}

@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.news-scroll li {
  padding: 11px 16px;
  border-bottom: 1px solid #edf2f7;
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.news-scroll li .date {
  min-width: 48px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: #fef9e7;
  padding: 2px 6px;
  border-radius: 4px;
  text-align: center;
  line-height: 1.3;
}

.news-scroll li a {
  color: var(--text);
  flex: 1;
  line-height: 1.45;
}

.news-scroll li a:hover {
  color: var(--primary);
}

.news-box-footer {
  padding: 9px 16px;
  text-align: right;
  border-top: 1px solid #edf2f7;
}

.news-box-footer a {
  font-size: 12.5px;
  color: var(--primary);
  font-weight: 500;
}

.news-box-footer a:hover {
  color: var(--accent);
}

/* Center: About School */
.about-school {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px;
  height: 100%;
}

.about-school .section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.about-school h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 12px;
}

.about-school h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.about-school p {
  font-size: 14.5px;
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.7;
}

.about-school .btn {
  margin-top: 10px;
}

/* Right: Director Card */
.director-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.director-img {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  overflow: hidden;
}

.director-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.director-body {
  padding: 18px 18px 22px;
}

.director-body h3 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 2px;
}

.director-body .designation {
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.director-body p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 8px;
}

.director-body .quote {
  font-style: italic;
  font-size: 12.5px;
  color: var(--primary);
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  margin-top: 10px;
}

/* ========== OUR SUCCESS + FORM ========== */
.success-section {
  padding: 55px 0;
  background: var(--white);
}

.success-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: center;
}

.success-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 8px;
}

.success-content h2 span {
  color: #e53e3e;
}

.success-content .underline {
  width: 55px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 20px;
  border-radius: 2px;
}

.success-content p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.75;
  max-width: 520px;
}

.reg-form {
  background: var(--primary);
  border-radius: 12px;
  padding: 28px 26px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.reg-form h3 {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

.reg-form .form-group {
  margin-bottom: 14px;
}

.reg-form input,
.reg-form select,
.reg-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: 0.2s;
}

.reg-form input:focus,
.reg-form select:focus,
.reg-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.35);
}

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

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

.reg-form .submit-btn {
  width: 100%;
  padding: 13px;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  margin-top: 6px;
  transition: 0.3s;
  font-family: 'Poppins', sans-serif;
}

.reg-form .submit-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* ========== ANNUAL DAY / VIDEO SECTION ========== */
.video-section {
  background: var(--primary-dark);
  padding: 50px 0 55px;
  text-align: center;
}

.video-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.video-section h2 span {
  color: var(--accent);
}

.video-section .subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  margin-bottom: 30px;
}

.video-wrapper {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-wrapper .video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0b2c5e, #1a3a6b);
  color: #fff;
  cursor: pointer;
  position: relative;
}

.video-wrapper .video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  position: absolute;
  inset: 0;
}

.video-wrapper .play-btn {
  position: relative;
  z-index: 2;
  width: 70px;
  height: 70px;
  background: #ff0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.5);
  transition: 0.3s;
}

.video-wrapper .video-placeholder:hover .play-btn {
  transform: scale(1.1);
}

/* ========== OUR BRANCHES ========== */
.branches-section {
  padding: 55px 0 60px;
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-header h2 span {
  color: #e53e3e;
}

.section-header p {
  font-size: 14.5px;
  color: var(--text-light);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

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

.branch-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 22px;
  text-align: center;
  transition: 0.3s;
  border: 1px solid transparent;
}

.branch-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 162, 39, 0.3);
}

.branch-logo {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.branch-logo img {
  max-height: 100px;
  max-width: 160px;
  object-fit: contain;
}

.branch-logo .logo-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.branch-card h4 {
  font-size: 16px;
  color: var(--primary);
  font-weight: 600;
}

.branch-card h4 a:hover {
  color: var(--accent);
}


/* ========== ACHIEVERS / TOPPERS SECTION ========== */
.achievers-section {
  padding: 50px 0 40px;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
}

.achievers-header {
  text-align: center;
  margin-bottom: 36px;
}

.achievers-header .school-name {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.achievers-header .school-address {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.achievers-header .congrats-line {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 28px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(11, 44, 94, 0.2);
}

.achievers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.topper-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 6px 28px rgba(11, 44, 94, 0.1);
  overflow: hidden;
  border: 1px solid rgba(11, 44, 94, 0.06);
  transition: 0.3s;
}

.topper-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(11, 44, 94, 0.14);
}

.topper-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, #1a4a8a 100%);
  color: #fff;
  text-align: center;
  padding: 14px 16px;
}

.topper-card-header h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.8px;
  margin: 0;
}

.topper-card-header .year-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 2px 12px;
  border-radius: 20px;
  font-weight: 700;
}

.topper-card-body {
  padding: 12px;
  background: #f8fbfd;
}

.topper-card-body img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

@media (max-width: 768px) {
  .achievers-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .achievers-header .school-name {
    font-size: 22px;
  }

  .achievers-header .congrats-line {
    font-size: 14px;
    padding: 7px 20px;
  }

  .topper-card-header h3 {
    font-size: 14px;
  }
}

/* ========== FOOTER ========== */
.footer {
  background: var(--primary-dark);
  color: #cbd5e0;
  padding: 50px 0 0;
}

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

.footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

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

.footer-about p {
  font-size: 13.5px;
  margin-bottom: 14px;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  font-size: 13.5px;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-contact p {
  font-size: 13.5px;
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .body-grid {
    grid-template-columns: 280px 1fr 260px;
    gap: 18px;
  }

  .nav-menu > li > a {
    padding: 10px 9px;
    font-size: 13px;
  }
}

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

  .news-column {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .about-school {
    grid-column: 1;
  }

  .director-card {
    grid-column: 2;
  }

  .success-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .reg-form {
    max-width: 420px;
    margin: 0 auto;
  }

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

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

  .slide-content h2 {
    font-size: 32px;
  }
}

@media (max-width: 992px) {
  /* Hide desktop horizontal menu behaviour */
  .nav {
    position: fixed !important;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.35s ease;
    z-index: 5010; /* above overlay, clickable */
    padding: 70px 0 30px;
    overflow-y: auto;
    display: block !important;
    pointer-events: auto !important;
  }

  .nav.open {
    right: 0 !important;
  }

  .hamburger {
    display: flex !important;
  }

  .close-nav {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100%;
  }

  .nav-menu > li {
    width: 100%;
    border-bottom: 1px solid #edf2f7;
  }

  .nav-menu > li > a {
    padding: 14px 22px !important;
    border-radius: 0 !important;
    font-size: 15px !important;
    color: var(--primary) !important;
    background: transparent !important;
  }

  .nav-menu > li > a:hover,
  .nav-menu > li.active > a {
    background: var(--bg-light) !important;
    color: var(--primary) !important;
  }

  .nav-menu > li.active > a {
    border-left: 4px solid var(--accent);
    font-weight: 600;
  }

  /* Mobile dropdowns */
  .dropdown {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    max-height: 0;
    overflow: hidden;
    padding: 0 !important;
    transition: max-height 0.35s ease;
    background: #f8fafc;
    min-width: 100% !important;
  }

  .nav-menu > li.open > .dropdown {
    max-height: 600px;
    padding: 0 !important;
  }

  .dropdown li a {
    padding: 11px 22px 11px 36px !important;
    font-size: 14px !important;
    border-bottom: 1px solid #edf2f7;
  }

  .dropdown li a:hover {
    background: #eef2f7 !important;
    padding-left: 40px !important;
  }

  /* Disable hover dropdown on touch devices */
  .nav-menu > li:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media (max-width: 768px) {
  .news-column {
    grid-template-columns: 1fr;
  }

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

  .about-school,
  .director-card {
    grid-column: 1;
  }

  .slider-section {
    height: 360px;
  }

  .slide-content h2 {
    font-size: 26px;
  }

  .slide-content p {
    font-size: 14.5px;
  }

  .logo img {
    height: 55px;
  }

  .branches-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .video-section h2 {
    font-size: 26px;
  }
}

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

  .slider-section {
    height: 300px;
  }

  .slide-content h2 {
    font-size: 22px;
  }

  .btn {
    padding: 10px 18px;
    font-size: 13px;
  }

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

  .reg-form .form-row {
    grid-template-columns: 1fr;
  }

  .success-content h2 {
    font-size: 26px;
  }
}

/* ========== MOBILE: show full homepage + inner-page banners (no side crop) ========== */
@media (max-width: 768px) {
  .slider-section {
    height: auto;
    min-height: 220px;
    aspect-ratio: 16 / 9;
  }

  .slide {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
  }

  .inner-hero {
    min-height: 220px !important;
    height: auto;
    aspect-ratio: 16 / 9;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
  }
}

@media (max-width: 480px) {
  .slider-section {
    height: auto;
    min-height: 200px;
    aspect-ratio: 16 / 9;
  }

  .inner-hero {
    min-height: 200px !important;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
