/* ==========================================================================
   Modi Public School — Master Stylesheet
   Inspired by gpsreengus.ac.in color architecture & section layout
   ========================================================================== */

:root {
  --primary: #2c7ac5;
  --primary-dark: #1f5e9e;
  --primary-deep: #114b86;
  --sky: #008dd2;
  --cyan: #17d0cf;
  --accent-blue: #01a6fd;
  --cta-rose: #ff0060;
  --cta-rose-dark: #d90052;
  --gold: #f5b400;
  --dark-slate: #333e48;
  --footer-bg: #252525;
  --text-dark: #1e293b;
  --text-muted: #556270;
  --bg-light: #f7f9fc;
  --border-light: #e2e8f0;
  --white: #ffffff;
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 18px 40px rgba(44, 122, 197, 0.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --transition: all 0.28s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

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

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

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   Buttons & Utilities
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1.3;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(44, 122, 197, 0.3);
}

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

.btn-rose:hover {
  background: var(--cta-rose-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 0, 96, 0.3);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary-deep);
}

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

.btn-dark:hover {
  background: var(--cta-rose);
}

.section-pad {
  padding: 56px 0;
}

.section-bg-light {
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: 36px;
}

.section-title h2 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 700;
  color: var(--primary-deep);
  letter-spacing: -0.3px;
  text-transform: uppercase;
}

.section-title p {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
}

.section-title hr,
.title-divider {
  width: 72px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  border: none;
  border-radius: 99px;
  margin: 14px auto 0;
}

/* ==========================================================================
   Header Top, Header Mid & Sticky Navbar
   ========================================================================== */

#header-main {
  position: relative;
  z-index: 900;
  background: var(--white);
}

.header-top {
  background: var(--primary);
  color: var(--white);
  padding: 7px 0;
  font-size: 13.5px;
}

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

.header-motto {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-motto span {
  font-style: italic;
  font-weight: 400;
  color: #dff6ff;
}

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

.header-top-right p {
  margin: 0;
}

.header-top-right strong {
  color: #fff;
  font-weight: 700;
}

.header-mid {
  background: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.header-mid-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand-text h1,
.brand-text .school-name {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #117bbf;
  line-height: 1.15;
}

.brand-text p {
  margin: 3px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-quick-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12.5px;
  color: var(--text-muted);
}

.header-quick-badge strong {
  color: var(--primary-deep);
  font-size: 14px;
}

.apply-online-btn {
  background: #352525;
  color: var(--white);
  padding: 11px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(53, 37, 37, 0.25);
  transition: var(--transition);
}

.apply-online-btn:hover {
  background: var(--cta-rose);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 0, 96, 0.35);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Navbar */
.navbar-main {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.navbar-main.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 950;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  align-items: center;
  gap: 8px;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  color: #f4f8fc;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-item.active > .nav-link {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-bottom-color: var(--cyan);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--white);
  border-top: 3px solid var(--sky);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 999;
}

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

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  border-bottom: 1px solid #eef2f6;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background: #eff7ff;
  color: var(--primary);
  padding-left: 20px;
}

.nav-right-cta {
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  padding: 7px 14px;
  border-radius: 99px;
}

.nav-right-cta:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* ==========================================================================
   Hero Carousel + Latest Notifications Ticker (Section 0)
   ========================================================================== */

.hero-section {
  padding: 18px 0 28px;
  background: linear-gradient(180deg, #eff6fc 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #0f172a;
  min-height: 410px;
}

.hero-slides {
  position: relative;
  height: 430px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 32, 59, 0.82) 0%, rgba(11, 32, 59, 0.42) 55%, rgba(11, 32, 59, 0.12) 100%);
  display: flex;
  align-items: flex-end;
  padding: 34px 36px;
}

.hero-caption {
  max-width: 560px;
  color: var(--white);
}

.hero-tag {
  display: inline-block;
  background: var(--cyan);
  color: #09253d;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.hero-caption h2 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
}

.hero-caption p {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.9);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.55);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: var(--transition);
}

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

.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }

.slider-dots {
  position: absolute;
  bottom: 14px;
  right: 18px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.slider-dot.active {
  width: 24px;
  background: var(--cyan);
}

/* Notifications Panel */
.notifications-panel {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 430px;
}

.notif-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--sky) 100%);
  color: var(--white);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notif-header h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-controls {
  display: flex;
  gap: 6px;
}

.notif-ctrl-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white);
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.notif-subbar {
  background: #edf6fd;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-deep);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-subbar a {
  color: var(--cta-rose);
  font-size: 12.5px;
}

.notif-list-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding: 8px 14px;
}

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.5s ease;
}

.notif-item {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fbff;
  border-left: 3px solid var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.notif-item:hover {
  background: #eaf4ff;
  transform: translateX(3px);
}

.notif-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.notif-badge-new {
  background: var(--cta-rose);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  text-transform: uppercase;
}

.notif-item h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

/* ==========================================================================
   Welcome + Brighter Future Section
   ========================================================================== */

.welcome-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 34px;
  align-items: center;
}

.welcome-box h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--sky);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.welcome-box h2 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1.25;
}

.welcome-box p {
  margin: 0 0 14px;
  color: #3b4754;
  text-align: justify;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.stat-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
}

.stat-card .stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.stat-card .stat-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Signature Team / Feature Card */
.team-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.team-card .pic {
  overflow: hidden;
  height: 390px;
}

.team-card .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .pic img {
  transform: scale(1.05);
}

.team-card .member-info {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: linear-gradient(360deg, rgba(44, 122, 197, 0.94) 0%, rgba(44, 122, 197, 0.88) 45%, rgba(0, 141, 210, 0.82) 100%);
  padding: 18px 20px;
  border-radius: 8px;
  color: var(--white);
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.team-card .member-info h4 {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #dff6ff;
}

.team-card .member-info h2,
.team-card .member-info span {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  display: block;
}

/* Join CTA Banner */
.join-banner {
  margin-top: 38px;
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 55%, var(--sky) 100%);
  border-radius: var(--radius-md);
  padding: 26px 32px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: var(--shadow-lg);
}

.join-banner h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
}

.join-banner p {
  margin: 4px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

/* ==========================================================================
   We Nourish Your Dreams Into Reality (4-Column Card Grid)
   ========================================================================== */

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

.dream-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #0f172a;
  height: 310px;
}

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

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

.dream-card-info {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: linear-gradient(180deg, rgba(44, 122, 197, 0.86) 0%, rgba(22, 82, 145, 0.95) 100%);
  padding: 14px 12px;
  border-radius: 6px;
  text-align: center;
  color: var(--white);
}

.dream-card-info h4 {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.dream-card-info span {
  font-size: 12.5px;
  color: #e0f2fe;
  display: block;
}

/* ==========================================================================
   Grow Section — Reason Why Choose Modi Public School (9-Tab Interactive)
   ========================================================================== */

.grow-section {
  background: linear-gradient(135deg, #e8f3fc 0%, #f5faff 45%, #e6f7fb 100%);
  padding: 60px 0;
  border-top: 1px solid #dcebf8;
  border-bottom: 1px solid #dcebf8;
}

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

.grow-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.grow-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 13px 16px;
  border: 1px solid #d5e5f5;
  background: var(--white);
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.grow-tab-btn .tab-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eaf4ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.grow-tab-btn:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.grow-tab-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--sky) 100%);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(44, 122, 197, 0.28);
}

.grow-tab-btn.active .tab-ico {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.grow-tab-btn.addon-btn {
  border-style: dashed;
  border-color: var(--cta-rose);
  color: var(--cta-rose);
}

.grow-tab-btn.addon-btn.active {
  background: linear-gradient(135deg, var(--cta-rose) 0%, #e11d48 100%);
  color: var(--white);
  border-style: solid;
}

.grow-panel-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid #dfeaf6;
  min-height: 440px;
}

.grow-pane {
  display: none;
  animation: fadeSlide 0.3s ease;
}

.grow-pane.active {
  display: block;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.grow-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 2px solid #eff5fb;
  margin-bottom: 20px;
}

.grow-pane-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-deep);
}

.grow-pill {
  background: #e6f4ff;
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 700;
}

.grow-points {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.grow-point {
  background: #f8fbff;
  border-left: 4px solid var(--sky);
  padding: 13px 16px;
  border-radius: 0 8px 8px 0;
}

.grow-point strong {
  display: block;
  color: var(--primary-deep);
  margin-bottom: 3px;
}

/* ==========================================================================
   Social Buzz & Campus Highlights (Section 4)
   ========================================================================== */

.buzz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.buzz-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

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

.buzz-thumb {
  position: relative;
  height: 245px;
  overflow: hidden;
  cursor: pointer;
}

.buzz-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.buzz-card:hover .buzz-thumb img {
  transform: scale(1.05);
}

.buzz-play {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.34);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  gap: 10px;
}

.play-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 0, 96, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(255, 0, 96, 0.45);
  transition: var(--transition);
}

.buzz-card:hover .play-circle {
  transform: scale(1.1);
}

.buzz-body {
  padding: 18px 20px;
}

.buzz-body span {
  font-size: 12px;
  font-weight: 700;
  color: var(--sky);
  text-transform: uppercase;
}

.buzz-body h4 {
  margin: 4px 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

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

/* ==========================================================================
   Admission @ Modi Public School (6-Card Icon Grid - Section 5)
   ========================================================================== */

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

.icon-box {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.icon-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(44, 122, 197, 0.35);
}

.icon-box .icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #eef6ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 14px rgba(44, 122, 197, 0.14);
  transition: var(--transition);
}

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

.icon-box h4 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-deep);
}

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

/* ==========================================================================
   Inner Page Hero Banner & Content Layouts
   ========================================================================== */

.page-banner {
  background: linear-gradient(135deg, #114b86 0%, #2c7ac5 60%, #008dd2 100%);
  color: var(--white);
  padding: 46px 0;
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.page-banner h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.card-box {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

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

/* Message / Profile Layout */
.message-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

.profile-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.profile-avatar {
  background: linear-gradient(135deg, #e7f2fc, #d3e7fa);
  padding: 26px 20px 14px;
}

.profile-avatar svg {
  width: 140px;
  height: 140px;
  margin: 0 auto;
}

.profile-meta {
  padding: 18px 20px;
  background: var(--primary);
  color: var(--white);
}

.profile-meta h3 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 700;
}

.profile-meta p {
  margin: 0;
  font-size: 13.5px;
  color: #dff6ff;
}

/* Tables (Mandatory Disclosure / Downloads / Fees) */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 14.5px;
}

.data-table thead th {
  background: var(--primary);
  color: var(--white);
  text-align: left;
  padding: 13px 16px;
  font-weight: 700;
}

.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #eef2f6;
  color: var(--text-dark);
}

.data-table tbody tr:nth-child(even) {
  background: #f8fbff;
}

.data-table tbody tr:hover {
  background: #edf6ff;
}

/* Gallery Grid & Filters */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 99px;
  border: 1px solid var(--border-light);
  background: var(--white);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-dark);
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 240px;
  cursor: pointer;
}

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

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

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0) 100%);
  color: var(--white);
  padding: 26px 16px 14px;
}

.gallery-caption h4 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
}

.gallery-caption span {
  font-size: 12px;
  color: var(--cyan);
}

/* ==========================================================================
   Footer (Multi-Column + Dark Copyright Bar)
   ========================================================================== */

.footer-top {
  background: var(--footer-bg);
  color: #cbd5e1;
  padding: 48px 0 36px;
  border-top: 5px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
}

.footer-col h4 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  position: relative;
  padding-bottom: 8px;
}

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

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

.footer-links a {
  color: #cbd5e1;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

#footer {
  background-color: var(--dark-slate);
  color: var(--white);
  padding: 16px 0;
  font-size: 14px;
  text-align: center;
}

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

.visitor-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1e293b;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid #475569;
  font-family: "Courier New", monospace;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cyan);
}

/* Back To Top */
.back-to-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 20px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  z-index: 980;
  transition: var(--transition);
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ==========================================================================
   Modals (Admission Enquiry & Notice / Lightbox)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 2000;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: var(--white);
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
  animation: fadeSlide 0.25s ease;
}

.modal-head {
  background: linear-gradient(135deg, var(--primary) 0%, var(--sky) 100%);
  color: var(--white);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.modal-body {
  padding: 24px;
}

.form-section-title {
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e2e8f0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--primary-deep);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 122, 197, 0.14);
}

.radio-row {
  display: flex;
  gap: 18px;
  padding: 9px 0;
}

.radio-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  cursor: pointer;
}

.form-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 18px;
  border-radius: 8px;
  margin-top: 12px;
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 992px) {
  .hero-grid,
  .welcome-grid,
  .grow-wrapper,
  .message-layout {
    grid-template-columns: 1fr;
  }

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

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

  .notifications-panel {
    height: auto;
    max-height: 360px;
  }
}

@media (max-width: 768px) {
  .header-top-inner {
    justify-content: center;
    text-align: center;
  }

  .header-quick-badge {
    display: none;
  }

  .brand-text .school-name {
    font-size: 19px;
  }

  .nav-toggle {
    display: inline-flex;
    margin: 8px 0;
  }

  .nav-right-cta {
    display: none;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-dark);
    z-index: 999;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  }

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

  .nav-link {
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    border-radius: 0;
  }

  .nav-item.has-dropdown.open > .dropdown-menu {
    display: block;
  }

  .hero-slides {
    height: 310px;
  }

  .hero-slider {
    min-height: 310px;
  }

  .hero-caption h2 {
    font-size: 22px;
  }

  .dreams-grid,
  .buzz-grid,
  .admission-grid,
  .gallery-grid,
  .footer-grid,
  .grid-2,
  .grid-3,
  .form-grid,
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 24px;
  }
}
