@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Yellow and Green School Theme */
  --primary: #6f4425;
  --primary-light: #8a5731;
  --secondary: #f7efe5;
  --accent: #c89052;
  --accent-hover: #ad7439;
  --text-dark: #3b2718;
  --text-muted: #725b48;
  --white: hsl(0, 0%, 100%);
  --page-bg: #ead9c4;
  --page-bg-gradient: linear-gradient(to top, #cda274, #d8b78e, #e4ccb0, #efe1cf, #f6eee3, #f6eee3, #efe1cf, #e4ccb0, #d8b78e, #cda274);
  --border-color: #dfc8ad;
  --success: #8a5731;
  --overlay: rgba(72, 43, 24, 0.75);
  
  /* Yellow and Green Gradients */
  --gradient-primary: linear-gradient(135deg, #8a5731, #5d351d);
  --gradient-gold: linear-gradient(135deg, #d7ad78, #b77b3f);
  
  /* Design System */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(111, 68, 37, 0.12), 0 8px 10px -6px rgba(111, 68, 37, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(111, 68, 37, 0.22);
  --shadow-gold: 0 10px 30px rgba(200, 144, 82, 0.22);
  --shadow-3d-green: 0 14px 0 #4d2b17, 0 24px 34px rgba(111, 68, 37, 0.25);
  --shadow-3d-yellow: 0 10px 0 #8e5c2e, 0 20px 32px rgba(200, 144, 82, 0.25);
  --surface-3d: linear-gradient(145deg, #ffffff 0%, #f8f0e6 48%, #ead6bf 100%);
  --inset-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--page-bg);
  background-image: var(--page-bg-gradient);
  background-attachment: fixed;
  background-size: cover;
  line-height: 1.7;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.homepage-result-popup {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.homepage-result-popup::before {
  content: '';
  position: absolute;
  inset: -28px;
  background: url('../../Images/WhatsApp Image 2026-06-02 at 1.27.16 PM.jpeg') center/cover no-repeat;
  filter: blur(18px);
  opacity: 0.6;
  transform: scale(1.04);
}

.homepage-result-popup.active {
  display: flex;
}

.homepage-result-popup-content {
  position: relative;
  z-index: 1;
  max-width: min(82vw, 1100px);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.homepage-result-popup-content img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: transparent;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

iframe,
video {
  max-width: 100%;
}

body :where(h1, h2, h3, h4, h5, h6, p, a, span, li, label, small, strong, b, em, div, button, th, td, i) {
  color: #0f5a2f !important;
}

input,
select,
textarea,
.form-control {
  color: #0f5a2f !important;
}

.top-bar :where(h1, h2, h3, h4, h5, h6, p, a, span, li, label, small, strong, b, em, div, button, th, td, i),
.notice-board-header :where(h1, h2, h3, h4, h5, h6, p, a, span, li, label, small, strong, b, em, div, button, th, td, i),
.message-header :where(h1, h2, h3, h4, h5, h6, p, a, span, li, label, small, strong, b, em, div, button, th, td, i),
.admission-cta-banner :where(h1, h2, h3, h4, h5, h6, p, a, span, li, label, small, strong, b, em, div, button, th, td, i),
.stats-section :where(h1, h2, h3, h4, h5, h6, p, a, span, li, label, small, strong, b, em, div, button, th, td, i),
.main-footer :where(h1, h2, h3, h4, h5, h6, p, a, span, li, label, small, strong, b, em, div, button, th, td, i),
.inner-header :where(h1, h2, h3, h4, h5, h6, p, a, span, li, label, small, strong, b, em, div, button, th, td, i),
.btn-primary,
.btn-primary :where(span, i, b),
.btn-outline-white,
.btn-outline-white :where(span, i, b) {
  color: var(--white) !important;
}

/* Utility Components */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: 100px 0;
}

.bg-secondary {
  background-color: var(--secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  box-shadow: var(--inset-highlight), 0 8px 18px rgba(111, 68, 37, 0.16);
}

.btn-primary {
  background: linear-gradient(145deg, #8a5731, var(--primary) 58%, #4d2b17);
  color: var(--white);
  box-shadow: var(--inset-highlight), 0 7px 0 #4d2b17, 0 16px 28px rgba(111, 68, 37, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(145deg, #9b6640, var(--primary-light) 58%, #5d351d);
  transform: translateY(-4px);
  box-shadow: var(--inset-highlight), var(--shadow-3d-green);
}

.btn-accent {
  background: linear-gradient(145deg, #ead0ac, var(--accent) 56%, #ad7439);
  color: var(--primary);
  box-shadow: var(--inset-highlight), 0 7px 0 #8e5c2e, 0 16px 28px rgba(200, 144, 82, 0.22);
}

.btn-accent:hover {
  background: linear-gradient(145deg, #dfbf94, var(--accent-hover) 58%, #8e5c2e);
  transform: translateY(-4px);
  box-shadow: var(--inset-highlight), var(--shadow-3d-yellow);
}

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

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

.date-sheet-content {
  padding: 60px 0;
}

.date-sheet-content ul {
  margin-top: 24px;
}

.date-sheet-content li {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
}

.date-sheet-content li span {
  min-width: 180px;
  font-weight: 600;
}

.resource-content {
  padding: 60px 0;
}

.table-responsive {
  margin-top: 28px;
  overflow-x: auto;
}

.resource-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.resource-table th,
.resource-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: middle;
}

.resource-table th {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
}

.resource-table tr:last-child td {
  border-bottom: none;
}

.resource-table td:first-child,
.resource-table th:first-child {
  width: 90px;
  text-align: center;
}

.resource-table td:last-child,
.resource-table th:last-child {
  text-align: center;
}

.resource-table .btn {
  padding: 10px 18px;
  white-space: nowrap;
}

.notice-download-page {
  min-height: 260px;
  padding: 70px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notice-download-card {
  width: min(100%, 780px);
  padding: 34px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.notice-download-card h2 {
  margin-bottom: 22px;
  font-size: 1.5rem;
}

.notice-table {
  min-width: 560px;
}

.transfer-certificate-content {
  padding: 60px 0;
}

.transfer-year {
  color: hsl(199, 75%, 65%);
  font-size: 1.6rem;
  font-weight: 800;
  margin: 18px 0 14px;
  text-align: center;
}

.transfer-table {
  margin-bottom: 8px;
}

.transfer-table th,
.transfer-table td {
  text-align: center;
  font-weight: 700;
}

.tc-download-link {
  color: var(--primary);
  font-weight: 800;
  text-decoration: underline;
}

.tc-download-link:hover {
  color: var(--accent);
}

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

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

:where(
  .btn,
  .parent-portal-btn,
  .slider-btn,
  .event-more-btn,
  .video-btn,
  .achievement-play,
  .event-detail-close,
  .festival-lightbox-close,
  .disclosure-btn,
  .whatsapp-floating
) {
  box-shadow: none !important;
}

:where(
  .btn,
  .parent-portal-btn,
  .slider-btn,
  .event-more-btn,
  .video-btn,
  .achievement-play,
  .event-detail-close,
  .festival-lightbox-close,
  .disclosure-btn,
  .whatsapp-floating
):hover {
  transform: none !important;
  box-shadow: none !important;
}

.video-btn {
  position: relative;
  border: 3px solid #e53935;
  animation: videoWave 1.8s ease-out infinite !important;
}

@keyframes videoWave {
  0% {
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.55);
  }
  70% {
    box-shadow: 0 0 0 24px rgba(229, 57, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0);
  }
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  font-weight: 800;
}

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

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 60px auto;
  font-size: 1.1rem;
}

/* Header & Top Bar styling */
.top-bar {
  background: linear-gradient(180deg, hsl(145, 58%, 26%), hsl(145, 58%, 20%) 72%, hsl(145, 58%, 13%));
  color: var(--white);
  font-size: 0.85rem;
  padding: 10px 0;
  border-bottom: 3px solid var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.top-bar,
.top-bar a,
.top-bar span,
.top-bar i,
.top-bar b {
  color: var(--white);
}

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

.top-bar-contact {
  display: flex;
  gap: 24px;
}

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

.top-bar-contact i {
  color: var(--white);
}

.top-bar-socials {
  display: flex;
  gap: 16px;
}

.top-bar-socials a {
  color: var(--white);
  opacity: 0.8;
  white-space: nowrap;
}

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

.header-nav {
  background: linear-gradient(to top, #cda274, #d8b78e, #e4ccb0, #f6eee3);
  box-shadow: var(--inset-highlight), 0 8px 0 rgba(111, 68, 37, 0.08), 0 16px 28px rgba(111, 68, 37, 0.14);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 0;
  transition: var(--transition-smooth);
}

.header-nav.scrolled {
  padding: 10px 0;
  background: linear-gradient(to top, #cda274, #d8b78e, #e4ccb0, #f6eee3);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 22px;
  width: 94%;
  max-width: 1200px;
  min-height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  min-width: 0;
}

.logo-img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.logo-text h1 {
  font-size: clamp(1.08rem, 1.55vw, 1.35rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  white-space: nowrap;
}

.logo-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  gap: clamp(8px, 1vw, 16px);
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: auto;
}

.nav-link {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  position: relative;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.parent-portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(145deg, #ead0ac, var(--accent) 58%, #ad7439);
  color: var(--primary);
  padding: 12px 26px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: var(--inset-highlight), 0 6px 0 #8e5c2e, 0 14px 22px rgba(200, 144, 82, 0.24);
  flex: 0 0 auto;
}

.parent-portal-btn i {
  font-size: 1.1rem;
}

.parent-portal-btn:hover {
  background: linear-gradient(145deg, #8a5731, var(--primary) 58%, #4d2b17);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--inset-highlight), 0 9px 0 #4d2b17, 0 20px 28px rgba(111, 68, 37, 0.22);
}

.parent-portal-btn:hover,
.parent-portal-btn:hover b,
.parent-portal-btn:hover i {
  color: var(--white) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 10px;
  right: 10px;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link.active {
  color: var(--accent);
}

/* Submenu Dropdown Styling (Desktop Mode) */
.dropdown {
  position: relative;
}

.dropdown-icon {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 220px;
  background: linear-gradient(to top, #cda274, #d8b78e, #e4ccb0, #f6eee3);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--accent);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  z-index: 100;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover dynamic state triggers on desktop */
@media (min-width: 1025px) {
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
  }
  .dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
  }
}

.dropdown-item {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  padding: 10px 20px;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: block;
}

.dropdown-item:hover {
  background-color: var(--secondary);
  color: var(--accent);
  padding-left: 25px; /* Premium micro-animation shift */
}

.dropdown-submenu {
  position: relative;
}

.submenu-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.submenu-icon {
  font-size: 0.65rem;
}

.submenu-menu {
  position: absolute;
  top: 0;
  left: 100%;
  width: 230px;
  background: linear-gradient(to top, #cda274, #d8b78e, #e4ccb0, #f6eee3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--accent);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 101;
}

.dropdown-submenu:hover .submenu-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(4px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Notice Ticker Section */
.ticker-section {
  background-color: var(--primary-light);
  color: var(--white);
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ticker-label {
  background-color: var(--accent);
  color: var(--primary);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  padding: 12px 24px;
  font-size: 0.95rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticker-wrapper {
  overflow: hidden;
  width: 100%;
}

.ticker-content {
  white-space: nowrap;
  display: inline-block;
  padding: 12px 0;
  animation: ticker 25s linear infinite;
  font-weight: 500;
  font-size: 0.92rem;
}

.ticker-content span {
  margin-right: 50px;
  display: inline-block;
}

.ticker-content span i {
  color: var(--accent);
  margin-right: 8px;
}

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

/* Hero Carousel styling */
.hero-slider {
  position: relative;
  height: calc(100dvh - 126px);
  min-height: 560px;
  overflow: hidden;
  background-color: var(--primary);
}

.slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  z-index: 1;
}

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

.slide-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  background: var(--primary);
}

.slide-img-top {
  object-position: top center;
}

.slide-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  max-width: 800px;
  margin-left: 5%;
  padding-right: 5%;
  opacity: 0;
  transform: translateY(30px);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s, opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.slide.active .slide-content {
  opacity: 1;
  transform: translateY(0);
}

.slide-tag {
  background: linear-gradient(145deg, #ead0ac, var(--accent) 58%, #ad7439);
  color: var(--primary);
  padding: 6px 16px;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--inset-highlight), 0 6px 0 #8e5c2e, 0 14px 24px rgba(200, 144, 82, 0.25);
}

.slide-content h2 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 20px;
}

.slide-content p {
  font-size: 1.15rem;
  margin-bottom: 35px;
  opacity: 0.9;
}

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

.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

/* Welcome Section */
.welcome-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.welcome-images {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  height: 480px;
}

.welcome-img-main {
  grid-column: 1 / 10;
  grid-row: 1 / 11;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  height: 100%;
}

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

.welcome-img-sub {
  grid-column: 7 / 13;
  grid-row: 5 / 13;
  border-radius: var(--radius-md);
  border: 8px solid var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 2;
  height: 100%;
}

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

.welcome-experience {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: linear-gradient(145deg, #ead0ac, var(--accent) 58%, #ad7439);
  color: var(--primary);
  padding: 20px 30px;
  border-radius: var(--radius-md);
  z-index: 3;
  box-shadow: var(--inset-highlight), 0 10px 0 #8e5c2e, 0 22px 34px rgba(200, 144, 82, 0.22);
  display: flex;
  align-items: center;
  gap: 16px;
}

.exp-num {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  line-height: 1;
}

.exp-text {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.welcome-desc p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.welcome-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 35px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}

.feature-item i {
  color: var(--accent);
  background-color: rgba(200, 144, 82, 0.15);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Message Cards styling */
.messages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.message-card {
  background: var(--surface-3d);
  border-radius: var(--radius-md);
  box-shadow: var(--inset-highlight), 0 10px 0 rgba(111, 68, 37, 0.08), var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
}

.message-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--inset-highlight), 0 14px 0 rgba(111, 68, 37, 0.1), var(--shadow-lg);
  border-color: var(--accent);
}

.message-header {
  padding: 40px;
  display: flex;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, #8a5731, #5d351d);
  color: var(--white);
}

.message-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

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

.message-header-info h3 {
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 4px;
}

.message-header-info p {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.message-body {
  padding: 40px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.message-body .btn-outline:hover {
  color: var(--white) !important;
}

.cta-buttons .btn-outline-white:hover {
  color: #0f5a2f !important;
}

:where(
  .vision-icon,
  .stat-icon,
  .facility-icon-tag,
  .contact-info-icon,
  .slider-btn,
  .video-btn,
  .achievement-play,
  .event-detail-close,
  .festival-lightbox-close,
  .footer-socials a
) :where(i, span, b),
:where(
  .vision-icon,
  .stat-icon,
  .facility-icon-tag,
  .contact-info-icon,
  .slider-btn,
  .video-btn,
  .achievement-play,
  .event-detail-close,
  .festival-lightbox-close,
  .footer-socials a
) {
  color: var(--white) !important;
}

.facility-icon-tag i,
.vision-icon i,
.stat-icon i,
.slider-btn i,
.video-btn i,
.achievement-play i,
.event-detail-close i,
.festival-lightbox-close i,
.footer-socials a i,
.gallery-grid-overlay i {
  color: var(--white) !important;
}

.contact-info-card:nth-child(1) .contact-info-icon i {
  color: #e53935 !important;
}

.contact-info-card:nth-child(2) .contact-info-icon i {
  color: #0f9d58 !important;
}

.contact-info-card:nth-child(3) .contact-info-icon i {
  color: #4285f4 !important;
}

.message-text {
  font-style: italic;
  color: var(--text-muted);
  position: relative;
  padding-left: 24px;
  margin-bottom: 30px;
}

.message-text::before {
  content: '“';
  position: absolute;
  left: 0; top: -10px;
  font-size: 3rem;
  color: var(--accent);
  font-family: 'Outfit', sans-serif;
  line-height: 1;
}

/* Vision styling */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.vision-mission-cards {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.vision-card {
  background: var(--surface-3d);
  border-radius: var(--radius-md);
  padding: 35px;
  box-shadow: var(--inset-highlight), 0 10px 0 rgba(111, 68, 37, 0.08), var(--shadow-md);
  display: flex;
  gap: 24px;
  border-left: 6px solid var(--primary);
  transition: var(--transition-smooth);
}

.vision-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
}

.vision-icon {
  font-size: 2rem;
  color: var(--primary);
  background-color: rgba(111, 68, 37, 0.08);
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.vision-card:hover .vision-icon {
  background-color: var(--primary);
  color: var(--white);
}

.vision-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.vision-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.vision-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 450px;
}

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

/* Notice Board & News */
.news-notice-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.notice-board-card {
  background: var(--surface-3d);
  border-radius: var(--radius-md);
  box-shadow: var(--inset-highlight), 0 10px 0 rgba(111, 68, 37, 0.08), var(--shadow-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.notice-board-header {
  background: var(--primary);
  color: var(--white);
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notice-board-header h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.notice-board-header i {
  color: var(--accent);
}

.notice-board-body {
  height: 380px;
  overflow-y: auto;
  padding: 20px 40px;
}

.notice-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.notice-item:last-child {
  border-bottom: none;
}

.notice-item:hover {
  transform: translateX(4px);
}

.notice-date {
  background-color: var(--secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  min-width: 65px;
  flex-shrink: 0;
}

.notice-day {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
  line-height: 1;
}

.notice-month {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.notice-details h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.notice-details h4 a:hover {
  color: var(--accent);
}

.notice-details p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0;
}

.news-section-main h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 24px;
  display: flex;
  transition: var(--transition-smooth);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.news-img {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  overflow: hidden;
}

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

.news-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  gap: 16px;
}

.news-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-info h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.news-info h4 a:hover {
  color: var(--accent);
}

.news-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* Admission CTA Banner */
.admission-cta-banner {
  background: linear-gradient(145deg, #8a5731, #6f4425 54%, #4d2b17);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.admission-cta-banner::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 80% 20%, rgba(200, 144, 82, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

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

.cta-content {
  max-width: 700px;
}

.cta-tag {
  background-color: var(--accent);
  color: var(--primary);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-content h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-content p {
  opacity: 0.9;
  font-size: 1.1rem;
}

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

/* Facilities Cards Grid */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.facility-action {
  margin-top: 34px;
  text-align: center;
}

.facility-card {
  background: var(--surface-3d);
  border-radius: var(--radius-md);
  box-shadow: var(--inset-highlight), 0 8px 0 rgba(111, 68, 37, 0.08), var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.facility-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--inset-highlight), 0 14px 0 rgba(111, 68, 37, 0.1), var(--shadow-lg);
  border-color: var(--accent);
}

.facility-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.facility-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.facility-icon-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: linear-gradient(145deg, #8a5731, var(--primary) 58%, #4d2b17);
  color: var(--accent);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--inset-highlight), 0 6px 0 #4d2b17, 0 14px 20px rgba(111, 68, 37, 0.26);
  box-shadow: var(--shadow-sm);
}

.facility-content {
  padding: 30px;
}

.facility-content h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.facility-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* Achievements Counter section */
.stats-section {
  background: linear-gradient(145deg, #7f4f2d, #5d351d 56%, #412313);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -10px 0 rgba(0, 0, 0, 0.12);
}

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

.stat-item {
  padding: 20px;
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.stat-number {
  font-size: 3.2rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
  display: inline-block;
}

.stat-text {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* Events & Activity section */
.events-section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  min-width: 0;
}

.event-calendar-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.event-card {
  background: var(--surface-3d);
  border-radius: var(--radius-md);
  box-shadow: var(--inset-highlight), 0 8px 0 rgba(111, 68, 37, 0.08), var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition-smooth);
  min-width: 0;
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--inset-highlight), 0 14px 0 rgba(111, 68, 37, 0.1), var(--shadow-lg);
  border-color: var(--accent);
}

.event-img-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.event-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.event-card:hover .event-img-wrap img {
  transform: scale(1.1);
}

.event-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--accent);
  color: var(--primary);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.event-content {
  padding: 30px;
}

.event-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.event-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.event-summary {
  display: none;
}

.event-calendar-grid .event-content > p {
  display: none;
}

.event-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--inset-highlight), 0 4px 0 #8e5c2e, 0 10px 16px rgba(200, 144, 82, 0.2);
  transition: var(--transition-smooth);
}

.event-more-btn:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  color: var(--white) !important;
}

.event-link {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.event-link:hover {
  color: var(--accent);
}

.event-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  background: rgba(5, 25, 14, 0.62);
  backdrop-filter: blur(10px);
  --event-start-x: 0px;
  --event-start-y: 0px;
  --event-start-w: 100vw;
  --event-start-h: 100dvh;
  --event-end-x: 16px;
  --event-end-y: 16px;
  --event-end-w: calc(100vw - 32px);
  --event-end-h: calc(100dvh - 32px);
}

.event-detail-modal.active {
  display: block;
}

.event-detail-card {
  position: fixed;
  left: var(--event-end-x);
  top: var(--event-end-y);
  width: var(--event-end-w);
  height: var(--event-end-h);
  overflow-y: auto;
  background: var(--surface-3d);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  transform-origin: top left;
  animation: eventCardExpand 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.event-detail-img {
  width: 100%;
  height: min(48vh, 420px);
  object-fit: cover;
}

.event-detail-content {
  padding: 28px;
}

.event-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.event-detail-content h3 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.event-detail-content p {
  color: var(--text-muted);
  margin-bottom: 22px;
}

@keyframes eventCardExpand {
  from {
    transform:
      translate(calc(var(--event-start-x) - var(--event-end-x)), calc(var(--event-start-y) - var(--event-end-y)))
      scale(calc(var(--event-start-w) / var(--event-end-w)), calc(var(--event-start-h) / var(--event-end-h)));
    border-radius: var(--radius-md);
    opacity: 0.72;
  }
  to {
    transform: translate(0, 0) scale(1);
    border-radius: var(--radius-md);
    opacity: 1;
  }
}

.event-detail-close {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(38%, -38%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  cursor: pointer;
  font-size: 1.05rem;
  box-shadow: var(--inset-highlight), 0 6px 0 #8e5c2e, 0 14px 24px rgba(0, 0, 0, 0.22);
}

.event-detail-close:hover {
  background: var(--white);
  transform: translate(38%, -42%);
}

/* Photo Gallery with overlay effects */
.gallery-section-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-grid-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.gallery-grid-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
  color: var(--white);
  padding: 20px;
  text-align: center;
}

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

.gallery-grid-overlay i {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 12px;
  transform: translateY(-20px);
  transition: var(--transition-smooth) 0.1s;
}

.gallery-grid-overlay h4 {
  color: var(--white);
  font-size: 1.15rem;
  transform: translateY(20px);
  transition: var(--transition-smooth) 0.1s;
}

.gallery-grid-item:hover .gallery-grid-overlay i,
.gallery-grid-item:hover .gallery-grid-overlay h4 {
  transform: translateY(0);
}

/* Achievement page */
.achievement-page {
  padding: 60px 0 80px;
}

.achievement-video {
  max-width: 900px;
  margin: 0 auto 28px;
}

.achievement-video-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 9;
  background: var(--primary);
  box-shadow: var(--shadow-md);
}

.achievement-video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition-smooth);
}

.achievement-video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(111, 68, 37, 0.08), rgba(111, 68, 37, 0.62));
}

.achievement-video-card:hover img {
  transform: scale(1.04);
}

.achievement-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 62px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  background: #ff0000;
  color: var(--white);
  font-size: 1.8rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.achievement-video-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--white);
  font-weight: 700;
}

.achievement-video-caption strong {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.74);
  color: var(--white);
  font-size: 0.85rem;
  white-space: nowrap;
}

.achievement-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.achievement-card {
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.achievement-card img {
  width: 100%;
  height: 165px;
  object-fit: cover;
}

.achievement-card-body {
  padding: 14px;
}

.achievement-card-body h2 {
  margin-bottom: 6px;
  font-size: 1rem;
}

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

/* Sports category page */
.sports-category-page {
  padding: 55px 0 80px;
  overflow: hidden;
}

.sports-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.sports-mosaic-item {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  border: 1px solid var(--border-color);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  min-width: 0;
}

.sports-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.sports-mosaic-item:hover img {
  transform: scale(1.05);
}

/* Activities category page */
.activities-category-page {
  padding: 55px 0 80px;
  overflow: hidden;
}

.activities-photo-masonry {
  column-count: 5;
  column-gap: 12px;
  width: 100%;
}

.activity-photo-item {
  display: block;
  break-inside: avoid;
  overflow: hidden;
  margin: 0 0 12px;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  max-width: 100%;
}

.activity-photo-item img {
  width: 100%;
  height: auto;
  transition: var(--transition-smooth);
  display: block;
}

.activity-photo-item:hover img {
  transform: scale(1.04);
}

/* Festival celebration page */
.festival-category-page {
  padding: 55px 0 80px;
}

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

.festival-gallery-item {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  border: 1px solid var(--border-color);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}

.festival-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.festival-gallery-item:hover img {
  transform: scale(1.05);
}

.festival-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 25, 14, 0.62);
  backdrop-filter: blur(10px);
}

.festival-lightbox.active {
  display: flex;
}

.festival-lightbox-content {
  position: relative;
  width: fit-content;
  max-width: calc(100vw - 48px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.festival-lightbox-img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.festival-lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(42%, -42%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: var(--inset-highlight), 0 6px 0 #8e5c2e, 0 14px 24px rgba(0, 0, 0, 0.22);
}

.festival-lightbox-close:hover {
  background: var(--white);
  transform: translate(42%, -48%);
}

body.lightbox-open {
  overflow: hidden;
}

/* Prize distribution page */
.prize-category-page {
  padding: 55px 0 80px;
  overflow: hidden;
}

.prize-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.prize-gallery-item {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  border: 1px solid var(--border-color);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  min-width: 0;
}

.prize-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.prize-gallery-item:hover img {
  transform: scale(1.05);
}

/* Video Section */
.video-section {
  position: relative;
  background-color: var(--primary);
  padding: 120px 0;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.video-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover;
  filter: brightness(0.35);
  z-index: 1;
}

.video-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.video-btn {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: #e53935;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 30px;
  box-shadow: 0 0 0 0 rgba(200, 144, 82, 0.5);
  animation: pulse 2s infinite;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.video-btn:hover {
  background-color: #c62828;
  transform: scale(1.05);
}

.video-container h2 {
  color: var(--white) !important;
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 800;
}

.video-container p {
  color: var(--white) !important;
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 144, 82, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(200, 144, 82, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 144, 82, 0); }
}

/* Testimonials Carousel */
.testimonials-section {
  background-color: var(--secondary);
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  height: 350px;
}

.testimonial-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: 0 40px;
}

.testimonial-slide.active {
  opacity: 1;
}

.testimonial-quote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 30px;
  position: relative;
}

.testimonial-quote::before {
  content: '“';
  font-size: 4rem;
  color: rgba(200, 144, 82, 0.35);
  position: absolute;
  left: -20px; top: -30px;
  font-family: 'Outfit', sans-serif;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
}

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

.testimonial-info h4 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.testimonial-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dot.active {
  background-color: var(--accent);
  width: 25px;
  border-radius: 5px;
}

/* Contact form + Interactive map styling */
.contact-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

.contact-card-wrap {
  background: var(--surface-3d);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--inset-highlight), 0 10px 0 rgba(111, 68, 37, 0.08), var(--shadow-md);
  border: 1px solid var(--border-color);
  min-width: 0;
}

.contact-card-wrap h3 {
  font-size: 1.6rem;
  margin-bottom: 30px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px rgba(200, 144, 82, 0.16);
}

textarea.form-control {
  resize: vertical;
}

.map-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-width: 0;
}

.admission-layout,
.admission-form-card,
.admission-guidelines-card {
  min-width: 0;
}

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

.admission-guideline-list p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
}

.admission-guideline-list i {
  margin-top: 4px;
  color: var(--success);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: center;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--secondary);
  border: 1px solid var(--border-color);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.contact-info-card:hover .contact-info-icon {
  background-color: var(--primary);
  color: var(--white);
}

.contact-info-details h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info-details p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--inset-highlight), 0 8px 0 rgba(111, 68, 37, 0.08), var(--shadow-sm);
  border: 1px solid var(--border-color);
  height: 280px;
  flex-grow: 1;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer Section */
.main-footer {
  background: linear-gradient(145deg, #8a5731, var(--primary) 55%, #4d2b17);
  color: var(--white);
  padding: 80px 0 20px 0;
  border-top: 5px solid var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-column h4 {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

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

.footer-desc {
  opacity: 0.8;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.footer-socials a:hover {
  background-color: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '→';
  color: var(--accent);
  transition: var(--transition-smooth);
}

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

.footer-links a:hover::before {
  padding-right: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  opacity: 0.9;
}

.footer-contact-item i {
  color: var(--accent);
  margin-top: 4px;
}

.footer-bottom-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* Floating WhatsApp button */
.whatsapp-floating {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  transition: var(--transition-smooth);
}

.whatsapp-floating:hover {
  transform: translateY(-4px) scale(1.05);
  background-color: #128c7e;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

/* Page Header component for Inner Pages */
.inner-header {
  position: relative;
  background-color: var(--primary);
  padding: 100px 0;
  color: var(--white);
  text-align: center;
}

.inner-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover;
  filter: brightness(0.25);
  z-index: 1;
}

.inner-header-content {
  position: relative;
  z-index: 2;
}

.inner-header h1 {
  color: var(--white);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.inner-breadcrumb {
  display: inline-flex;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

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

.inner-breadcrumb span {
  opacity: 0.6;
}

.inner-breadcrumb span::before {
  content: '/';
  margin-right: 8px;
}

/* Inner Page specifics (Faculty/Admission/Mandatory Disclosure) */
.inner-page-layout {
  padding: 80px 0;
}

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

.faculty-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  text-align: center;
  transition: var(--transition-smooth);
}

.faculty-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.faculty-img-wrap {
  height: 250px;
  overflow: hidden;
}

.faculty-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.faculty-card:hover .faculty-img-wrap img {
  transform: scale(1.05);
}

.faculty-info {
  padding: 24px;
}

.faculty-info h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.faculty-info p {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

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

.disclosure-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.disclosure-table th, .disclosure-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.disclosure-table th {
  background-color: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
}

.disclosure-table tr:last-child td {
  border-bottom: none;
}

.disclosure-table tr:nth-child(even) {
  background-color: var(--secondary);
}

.disclosure-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.disclosure-btn:hover {
  color: var(--accent);
}

.infrastructure-link {
  color: var(--primary);
  font-weight: 800;
  text-decoration: underline;
  text-transform: uppercase;
}

.infrastructure-link:hover {
  color: var(--accent);
}

.public-disclosure-content {
  padding: 60px 0;
}

.public-disclosure-title {
  display: table;
  margin: 0 auto 28px;
  color: #333;
  font-size: 1.5rem;
  font-weight: 800;
}

.public-disclosure-table-wrap {
  max-width: 900px;
  margin: 0 auto 14px;
}

.public-disclosure-table {
  margin-top: 0;
}

.public-disclosure-table th,
.public-disclosure-table td {
  text-align: center;
  font-weight: 700;
}

.public-disclosure-table th:first-child,
.public-disclosure-table td:first-child {
  width: 16%;
}

.public-disclosure-table th:last-child,
.public-disclosure-table td:last-child {
  width: 23%;
}

/* Mobile responsive media queries */
@media (max-width: 1200px) {
  .nav-container {
    width: 96%;
    gap: 16px;
  }

  .logo-img {
    width: 50px;
    height: 50px;
  }

  .logo-text h1 {
    font-size: 1.18rem;
  }

  .logo-text span {
    font-size: 0.68rem;
  }

  .nav-menu {
    gap: 8px;
  }

  .nav-link {
    font-size: 0.95rem;
    padding-inline: 5px;
  }

  .parent-portal-btn {
    padding: 11px 22px;
    font-size: 0.95rem;
  }

  .welcome-grid {
    gap: 40px;
  }
  .facilities-grid, .events-section-grid, .faculty-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-section-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  body.nav-open {
    overflow: hidden;
  }

  .header-nav {
    padding: 8px 0;
  }

  .nav-container {
    width: min(94%, 1200px);
    gap: 14px;
    min-height: 58px;
  }

  .logo {
    max-width: calc(100% - 56px);
  }

  .logo-text {
    min-width: 0;
    flex-shrink: 1;
  }

  .logo-text h1,
  .logo-text span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
    z-index: 1001;
  }
  .nav-menu {
    position: fixed;
    top: 0; left: 100%; width: min(100%, 380px); height: 100dvh;
    background-color: var(--primary);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 10px;
    padding: 96px 18px 32px 18px;
    z-index: 1000;
    overflow-y: auto;
    transition: var(--transition-smooth);
    box-shadow: -18px 0 36px rgba(0, 0, 0, 0.2);
  }
  .nav-menu.active {
    left: calc(100% - min(100%, 380px));
  }
  .nav-link {
    color: var(--white);
    font-size: 1.08rem;
    padding: 12px 16px;
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-sm);
  }
  .nav-menu :where(a, span, b, i, .nav-link, .dropdown-item) {
    color: var(--white) !important;
  }
  .nav-menu a,
  .nav-menu .nav-link,
  .nav-menu .dropdown-toggle,
  .nav-menu .dropdown-item,
  .nav-menu i,
  .nav-menu b {
    color: var(--white) !important;
  }
  .nav-link::after {
    display: none;
  }
  .nav-link:hover, .nav-link.active {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
  }

  .parent-portal-btn {
    width: min(100%, 260px);
    align-self: center;
    margin: 10px auto 0;
    padding: 14px 22px;
    transform: none;
  }

  .events-section-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }
  
  /* Accordion mobile styles */
  .dropdown {
    width: 100%;
    text-align: center;
  }
  .dropdown-menu {
    position: static;
    transform: none !important;
    width: 100%;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 5px 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, padding 0.4s ease;
  }
  .dropdown-menu.active {
    max-height: 520px;
    opacity: 1;
    visibility: visible;
    padding: 8px 0;
  }
  .dropdown-item {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: var(--transition-smooth);
  }
  .dropdown-item:hover {
    color: var(--accent) !important;
    background: transparent;
    padding-left: 20px;
  }
  .dropdown-submenu {
    width: 100%;
  }
  .submenu-parent {
    justify-content: center;
  }
  .submenu-icon {
    display: none;
  }
  .submenu-menu {
    position: static;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
  }
  .submenu-menu .dropdown-item {
    font-size: 0.95rem;
    padding: 8px 20px;
  }
  .dropdown-toggle.active .dropdown-icon {
    transform: rotate(180deg);
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--white);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--white);
  }
}

@media (max-width: 992px) {
  .section-padding {
    padding: 80px 0;
  }
  .welcome-grid, .messages-grid, .vision-mission-grid, .news-notice-grid, .contact-section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .principal-message-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .facilities-grid, .events-section-grid, .faculty-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-section-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .cta-flex {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .cta-buttons {
    justify-content: center;
  }
  .slide-content h2 {
    font-size: 2.8rem;
  }
  .welcome-images {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .homepage-result-popup {
    padding: 12px;
  }

  .homepage-result-popup-content {
    max-width: 96vw;
  }

  .container {
    width: calc(100% - 24px);
  }

  input,
  select,
  textarea,
  .form-control {
    font-size: 16px;
    min-width: 0;
  }

  .admission-layout {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    width: 100%;
    overflow: hidden;
  }

  .admission-guidelines-card {
    order: 1;
    width: 100%;
  }

  .admission-form-card {
    order: 2;
    width: 100%;
    max-width: 100%;
    padding: 28px;
  }

  .admission-form-card h3,
  .admission-guidelines-card h3 {
    overflow-wrap: anywhere;
  }

  table,
  .resource-table,
  .disclosure-table,
  .public-disclosure-table {
    max-width: 100%;
  }

  .table-responsive,
  .public-disclosure-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .parent-portal-btn {
    align-self: center;
    margin-inline: auto;
    transform: none;
  }

  .top-bar {
    display: none; /* Hide top bar on mobile to keep header clean */
  }
  .slide-content h2 {
    font-size: 2.2rem;
  }
  .slide-content p {
    font-size: 1rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .welcome-features {
    grid-template-columns: 1fr;
  }
  .welcome-images {
    display: none; /* Hide complex multi-image layout on mobile to maintain clean UI */
  }
  .principal-photo-wrap {
    display: block !important;
    height: auto !important;
    order: 1;
  }
  .principal-message-text {
    order: 2;
    width: 100%;
  }
  .principal-photo-card {
    max-width: 320px;
    margin: 0 auto;
  }
  .principal-photo {
    height: 320px !important;
  }
  .principal-message-text .cta-tag {
    margin-inline: 0;
  }
  .principal-message-text h2 {
    font-size: 1.9rem !important;
    line-height: 1.18;
  }
  .contact-section-grid {
    grid-template-columns: 1fr !important;
  }
  .map-card-wrap {
    order: 1;
  }
  .contact-card-wrap {
    order: 2;
    width: 100%;
    max-width: 100%;
  }
  .message-header {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }
  .message-avatar {
    order: 1;
    margin-bottom: 8px;
  }
  .message-header-info {
    order: 2;
  }
  .message-body {
    padding: 30px;
  }
  .notice-board-header {
    padding: 20px;
  }
  .notice-board-body {
    padding: 20px;
  }
  .news-card {
    flex-direction: column;
  }
  .news-img {
    width: 100%;
    height: 200px;
  }
  .events-section-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }
  .event-content {
    padding: 24px;
  }
  .event-meta {
    flex-direction: column;
    gap: 6px;
  }
  .achievement-page {
    padding: 45px 0 60px;
  }
  .achievement-grid {
    grid-template-columns: 1fr;
  }
  .achievement-card img {
    height: 220px;
  }
  .sports-mosaic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .activities-photo-masonry {
    column-count: 3;
  }
  .festival-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .prize-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .disclosure-table {
    display: block;
    overflow-x: auto;
  }
  .event-detail-close,
  .festival-lightbox-close {
    top: 10px;
    right: 10px;
    transform: none;
  }
  .event-detail-close:hover,
  .festival-lightbox-close:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 576px) {
  .nav-container {
    width: calc(100% - 20px);
  }

  .logo {
    gap: 8px;
  }

  .logo-img {
    width: 44px;
    height: 44px;
  }

  .logo-text h1 {
    font-size: 0.98rem;
    max-width: min(220px, calc(100vw - 92px));
  }

  .logo-text span {
    font-size: 0.58rem;
    max-width: min(220px, calc(100vw - 92px));
  }

  .nav-menu {
    width: 100%;
    padding-top: 88px;
  }

  .nav-menu.active {
    left: 0;
  }

  .parent-portal-btn {
    width: min(100%, 240px);
  }

  .date-sheet-content li {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .date-sheet-content li span {
    min-width: 0;
  }

  .achievement-video-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .achievement-play {
    width: 54px;
    height: 38px;
    font-size: 1.55rem;
  }

  .sports-mosaic-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .activities-photo-masonry {
    column-count: 2;
    column-gap: 10px;
  }

  .activity-photo-item {
    margin-bottom: 10px;
  }

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

  .prize-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .facilities-grid, .events-section-grid, .gallery-section-grid, .faculty-grid, .stats-grid, .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .admission-form-card {
    padding: 22px 16px;
  }
  .contact-card-wrap {
    padding: 22px 16px;
  }
  .map-embed {
    min-height: 260px;
  }
  .admission-form-card .btn,
  .admission-guidelines-card .btn,
  .contact-card-wrap .btn {
    width: 100%;
    padding-inline: 14px;
    text-align: center;
  }
  .admission-guideline-list p {
    gap: 10px;
    font-size: 0.95rem;
  }
  .footer-bottom-wrap {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .footer-bottom-links {
    justify-content: center;
  }
  .whatsapp-floating {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }
}
