/* ============================================================
   St. Peter Convent School, Nalkheda — Theme & Layout
   Primary: #2e3093 | Accent: #fbbf04
   ============================================================ */

:root {
  --primary: #2e3093;
  --primary-dark: #1e2068;
  --primary-light: #3d40b8;
  --accent: #fbbf04;
  --accent-dark: #d9a503;
  --accent-light: #ffd54f;
  --white: #ffffff;
  --off-white: #f8f9fc;
  --text: #2d3748;
  --text-muted: #64748b;
  --shadow: 0 4px 24px rgba(46, 48, 147, 0.12);
  --shadow-lg: 0 12px 40px rgba(46, 48, 147, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 76px;
  --topbar-height: 42px;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-school: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  padding-top: calc(var(--topbar-height) + var(--header-height));
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 50px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(251, 191, 4, 0.15);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

/* ── Buttons ── */
.btn-theme {
  background: var(--accent);
  color: var(--primary-dark);
  border: 2px solid var(--accent);
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 50px;
  padding: 0.5rem 1.4rem;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-theme:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 191, 4, 0.4);
}

.btn-theme-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 50px;
  padding: 0.5rem 1.4rem;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-theme-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Topbar ── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--primary-dark);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  font-size: 0.82rem;
}

.topbar a { color: rgba(255,255,255,0.85); text-decoration: none; transition: color 0.2s; }
.topbar a:hover { color: var(--accent); }

.topbar-social a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  margin-right: 6px;
  font-size: 0.75rem;
}

.topbar-social a:hover { background: var(--accent); color: var(--primary-dark); }

.topbar-contact span { color: rgba(255,255,255,0.75); margin-right: 1rem; }
.topbar-contact i { color: var(--accent); }

.btn-login {
  background: var(--accent);
  color: var(--primary-dark) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 5px 14px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  border: none;
}

.btn-login:hover {
  background: var(--accent-light);
  color: var(--primary-dark) !important;
  transform: translateY(-1px);
}

.btn-login--outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent) !important;
}

.btn-login--outline:hover {
  background: var(--accent);
  color: var(--primary-dark) !important;
}

/* ── Header (single-line: logo + name + menu) ── */
.site-header {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  z-index: 1040;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 3px solid var(--accent);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
}

.site-header.scrolled { box-shadow: var(--shadow-lg); }

.header-main {
  padding: 8px 0;
}

.header-main > .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.header-brand-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
  transition: opacity 0.2s;
}

.header-brand-compact:hover { opacity: 0.9; }

.header-brand-compact__logo {
  height: 68px;
  object-fit: contain;
  flex-shrink: 0;
}

.header-brand-compact__text { min-width: 0; }

.school-brand-name {
  font-family: var(--font-school);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.header-brand-compact__name {
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  margin: 0;
  white-space: nowrap;
}

.header-brand-compact__tagline {
  display: block;
  font-size: 0.62rem;
  font-style: italic;
  color: var(--primary-light);
  line-height: 1.2;
  white-space: nowrap;
}

.header-brand-compact__loc {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
}

.header-brand-compact__loc i { color: var(--accent-dark); font-size: 0.62rem; }

.header-main .navbar-nav .nav-link {
  font-family: var(--font-heading);
  color: var(--primary) !important;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.45rem 0.7rem !important;
  position: relative;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.header-main .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.25s;
}

.header-main .navbar-nav .nav-link:hover,
.header-main .navbar-nav .nav-link.active { color: var(--primary-light) !important; }

.header-main .navbar-nav .nav-link:hover::after,
.header-main .navbar-nav .nav-link.active::after { transform: translateX(-50%) scaleX(1); }

.header-main .dropdown-menu {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  border-top: 3px solid var(--accent);
}

.header-main .dropdown-item {
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--primary);
  padding: 0.45rem 0.9rem;
}

.header-main .dropdown-item:hover {
  background: rgba(46, 48, 147, 0.08);
  color: var(--primary);
}

.header-main .dropdown-item i { color: var(--accent-dark); margin-right: 8px; }

.header-main .navbar-toggler {
  border: 2px solid var(--primary);
  padding: 4px 8px;
  order: 3;
}

.header-main .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(251, 191, 4, 0.4); }

.header-main .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232e3093' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (min-width: 992px) {
  .header-main .navbar-collapse {
    flex-grow: 0;
  }
}

/* ── Hero Slider (full width) ── */
.hero-section {
  padding: 0;
  position: relative;
}

.hero-owl-wrap {
  position: relative;
  overflow: hidden;
  height: clamp(300px, 45vw, 520px);
  border-radius: 0;
  box-shadow: none;
}

.hero-owl .item {
  height: clamp(300px, 45vw, 520px);
  overflow: hidden;
}

.hero-slide {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 8s ease-in-out infinite alternate;
  transform-origin: center center;
}

@keyframes kenBurns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.12); }
}

.hero-owl .owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(46, 48, 147, 0.75) !important;
  color: var(--white) !important;
  border-radius: 50% !important;
  font-size: 1.4rem !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 2px solid var(--accent) !important;
}

.hero-owl .owl-nav button:hover {
  background: var(--accent) !important;
  color: var(--primary-dark) !important;
}

.hero-owl .owl-nav .owl-prev { left: 20px; }
.hero-owl .owl-nav .owl-next { right: 20px; }

.hero-owl .owl-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
}

.hero-owl .owl-dot span {
  background: rgba(255,255,255,0.5) !important;
  width: 10px !important;
  height: 10px !important;
  transition: var(--transition);
}

.hero-owl .owl-dot.active span,
.hero-owl .owl-dot:hover span {
  background: var(--accent) !important;
  width: 28px !important;
  border-radius: 5px !important;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46,48,147,0.55) 0%, rgba(46,48,147,0.15) 60%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* ── Notice + Quick Links (overlaps slider) ── */
.notice-section {
  position: relative;
  z-index: 10;
  margin-top: -85px;
  padding: 0 0 32px;
  background: transparent;
}

.notice-board {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(46, 48, 147, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.notice-board__head {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notice-board__head-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.notice-board__icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-dark);
  animation: bellRing 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes bellRing {
  0%, 100% { transform: rotate(0); }
  10% { transform: rotate(12deg); }
  20% { transform: rotate(-10deg); }
  30% { transform: rotate(6deg); }
  40% { transform: rotate(0); }
}

.notice-board__head h3 {
  font-family: var(--font-heading);
  color: var(--white);
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.notice-board__head small {
  color: rgba(255,255,255,0.65);
  font-size: 0.72rem;
}

.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(251, 191, 4, 0.2);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--accent);
  letter-spacing: 1px;
}

.badge-new__dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.notice-board__body {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 95px;
  max-height: 95px;
}

.notice-ticker {
  animation: noticeScroll 18s linear infinite;
  padding: 8px 12px;
}

.notice-ticker:hover { animation-play-state: paused; }

@keyframes noticeScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 6px;
  border-bottom: 1px dashed rgba(46, 48, 147, 0.1);
  transition: background 0.2s;
}

.notice-item:hover { background: rgba(251, 191, 4, 0.06); }

.notice-date {
  background: var(--primary);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
  line-height: 1.3;
  min-width: 58px;
}

.notice-date i { display: block; font-size: 0.75rem; margin-bottom: 2px; color: var(--accent); }

.notice-text strong {
  display: block;
  color: var(--primary);
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.notice-text p {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Quick Links — 2×2 simple buttons */
.quick-links-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(46, 48, 147, 0.08);
  height: 100%;
  display: flex;
  align-items: center;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
  width: 100%;
}

.quick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  border: 2px solid var(--primary);
}

.quick-btn i {
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.quick-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.quick-btn:hover i { color: var(--primary-dark); }

/* Admission Strip */
.admission-strip {
  padding: 0 0 60px;
}

.admission-strip__inner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--accent);
}

.admission-strip__text h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin: 0 0 6px;
}

.admission-strip__text p {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  margin: 0;
}

.admission-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admission-strip .btn-theme-outline {
  color: var(--white);
  border-color: var(--accent);
}

.admission-strip .btn-theme-outline:hover {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}

/* About Modal */
.about-modal .modal-header {
  background: var(--primary);
  color: var(--white);
  border-bottom: 3px solid var(--accent);
}

.about-modal .modal-title {
  font-family: var(--font-heading);
  color: var(--white);
  font-weight: 600;
}

.about-modal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.about-modal-list li {
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.about-modal-list li i {
  color: var(--accent-dark);
  margin-right: 10px;
}

.about-modal__img {
  object-fit: cover;
  height: 220px;
}

.about-modal__intro {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
}

.about-modal__heading {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(251, 191, 4, 0.45);
}

.about-modal__heading:first-of-type {
  margin-top: 0;
}

.about-advantage-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 20px 18px;
  height: 100%;
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}

.about-advantage-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.about-advantage-card i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.about-advantage-card h5 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.about-advantage-card p {
  font-size: 0.86rem;
  line-height: 1.65;
}

.about-modal__tagline {
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  font-family: var(--font-school);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
  padding: 18px 24px;
  border-radius: var(--radius);
  border-bottom: 4px solid var(--accent);
  letter-spacing: 0.02em;
}

.about-tagline-inline {
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0;
}

.stat-item .num.num--text {
  font-size: 1.35rem;
}

/* ── About Section ── */
.about-section { padding: 50px 0 80px; }

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-wrap img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s;
}

.about-img-wrap:hover img { transform: scale(1.04); }

.about-img-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 50px;
  box-shadow: var(--shadow);
}

.about-content p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

.about-stats {
  display: flex;
  gap: 24px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  background: var(--off-white);
  padding: 16px 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

.stat-item .num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-item .label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Message Desk ── */
.message-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}

.message-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(46, 48, 147, 0.08);
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.message-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.message-card__photo-wrap {
  flex: 0 0 42%;
  max-width: 42%;
  overflow: hidden;
  border-right: 4px solid var(--accent);
}

.message-card__photo {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s;
}

.message-card:hover .message-card__photo { transform: scale(1.05); }

.message-card__content {
  flex: 1;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.message-card__text {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.75;
  font-style: italic;
  margin: 0 0 14px;
  position: relative;
  padding-left: 18px;
  flex: 1;
}

.message-card__text::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -6px;
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
  font-style: normal;
}

.message-card__author {
  padding-top: 16px;
  border-top: 2px dashed rgba(46, 48, 147, 0.12);
  margin-top: auto;
}

.message-card__name {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 4px;
  font-style: normal;
}

.message-card__role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(251, 191, 4, 0.15);
  padding: 3px 12px;
  border-radius: 50px;
}

.message-card__role i { font-size: 0.9rem; }

/* ── Toppers ── */
.toppers-section { padding: 80px 0; }

.toppers-tabs .nav-link {
  color: var(--primary);
  font-weight: 600;
  border-radius: 50px;
  padding: 8px 24px;
  margin: 0 6px;
  border: 2px solid var(--primary);
  transition: var(--transition);
}

.toppers-tabs .nav-link.active,
.toppers-tabs .nav-link:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.topper-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(46, 48, 147, 0.06);
  height: 100%;
}

.topper-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.topper-card__rank {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(251, 191, 4, 0.5);
}

.topper-card__img-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}

.topper-card__img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  transition: border-color 0.3s;
}

.topper-card:hover .topper-card__img { border-color: var(--accent); }

.topper-card__name {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.topper-card__marks {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.85rem;
}

.topper-card__class {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 4px;
}

/* ── Happy Birthday ── */
.birthday-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.birthday-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(251, 191, 4, 0.08);
  border-radius: 50%;
}

.birthday-section .section-title { color: var(--white); }
.birthday-section .section-title::after { background: var(--accent); }
.birthday-section .section-subtitle { color: rgba(255,255,255,0.7); }

.birthday-owl .item { padding: 0 10px; }

.bday-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}

.bday-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-4px);
}

.bday-card__icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.bday-card__photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin-bottom: 10px;
}

.bday-card__name {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.bday-card__role {
  color: var(--accent);
  font-size: 0.75rem;
}

.bday-card__wish {
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  margin-top: 8px;
}

/* ── Gallery ── */
.gallery-section { padding: 80px 0; background: var(--off-white); }

.gallery-split { margin-top: 0; }

.gallery-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(46, 48, 147, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gallery-block__head {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 12px 16px;
  border-bottom: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gallery-block__head h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.gallery-block__head h3 i {
  color: var(--accent);
  font-size: 1.15rem;
}

.gallery-block__body {
  padding: 12px;
  flex: 1;
}

.gallery-block__head .btn-view-all {
  font-family: var(--font-heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 14px;
  background: var(--accent);
  color: var(--primary-dark);
  border: 2px solid var(--accent);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.gallery-block__head .btn-view-all:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--primary);
}

.gallery-block__head .btn-view-all i { font-size: 0.85rem; }

.video-card--compact .video-card__body h5 {
  font-size: 0.72rem;
}

.video-card--compact .video-card__body {
  padding: 8px 10px;
}

.video-card--compact .video-card__play i {
  font-size: 1.6rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(46, 48, 147, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-item__overlay { opacity: 1; }

.gallery-item__overlay i {
  font-size: 2rem;
  color: var(--accent);
}

/* Video cards */
.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background: var(--white);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.video-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 48, 147, 0.45);
  transition: background 0.3s;
}

.video-card:hover .video-card__play { background: rgba(46, 48, 147, 0.65); }

.video-card__play i {
  font-size: 3rem;
  color: var(--accent);
  transition: transform 0.3s;
}

.video-card:hover .video-card__play i { transform: scale(1.15); }

.video-card__body {
  padding: 14px 16px;
}

.video-card__body h5 {
  font-size: 0.85rem;
  margin: 0;
  color: var(--primary);
}

.gallery-block--video .video-card__body {
  padding: 10px 12px;
}

.gallery-block--video .video-card__play i {
  font-size: 2.2rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.site-footer h5 {
  font-family: var(--font-heading);
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.site-footer .school-brand-name {
  font-family: var(--font-school);
  font-weight: 700;
  font-size: 1.1rem;
}

.site-footer a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
  display: block;
  padding: 3px 0;
}

.site-footer a:hover { color: var(--accent); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.footer-contact i { color: var(--accent); margin-top: 3px; }

.footer-contact a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-contact a:hover { color: var(--accent); }

.footer-affiliation {
  display: block;
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
}

.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 16px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

.footer-social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  margin-right: 8px;
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

/* ── About Page ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0 50px;
  margin-top: calc(-1 * (var(--topbar-height) + var(--header-height)));
  padding-top: calc(60px + var(--topbar-height) + var(--header-height));
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.page-hero .breadcrumb {
  justify-content: center;
  background: transparent;
  margin: 0;
  padding: 0;
}

.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  text-decoration: none;
}

.page-hero .breadcrumb-item.active { color: var(--accent); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

.about-page-content { padding: 60px 0; }
.about-page-content p { line-height: 1.85; color: var(--text-muted); }

.vision-mission-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 30px;
  height: 100%;
  border-left: 5px solid var(--accent);
  transition: var(--transition);
}

.vision-mission-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.vision-mission-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 14px;
}

.vision-mission-card h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* ── Lightbox ── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-overlay.active { display: flex; }

.lightbox-overlay img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}

.lightbox-close:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 991.98px) {
  :root { --header-height: 68px; }

  body { padding-top: calc(var(--topbar-height) + var(--header-height)); }

  .header-main .navbar-collapse {
    width: 100%;
    padding: 10px 0 14px;
    border-top: 1px solid rgba(46, 48, 147, 0.1);
  }

  .header-main .navbar-nav .nav-link::after { display: none; }

  .message-card { flex-direction: column; }
  .message-card__photo-wrap {
    flex: none;
    max-width: 100%;
    border-right: none;
    border-bottom: 4px solid var(--accent);
  }
  .message-card__photo { min-height: 240px; }

  .about-stats { gap: 12px; }
  .stat-item { padding: 12px 16px; flex: 1; min-width: 100px; }

  .admission-strip__inner { padding: 20px; }
}

@media (max-width: 767.98px) {
  :root { --header-height: 64px; }

  .topbar-contact { display: none !important; }

  .header-brand-compact__logo { width: 48px; height: 48px; }
  .header-brand-compact__name { font-size: 0.9rem; }
  .header-brand-compact__tagline { display: none; }
  .header-brand-compact__loc { display: none; }

  .hero-owl .owl-nav button {
    width: 36px;
    height: 36px;
    font-size: 1rem !important;
  }

  .hero-owl .owl-nav .owl-prev { left: 8px; }
  .hero-owl .owl-nav .owl-next { right: 8px; }

  .notice-section { margin-top: -60px; }
  .notice-board__body { min-height: 85px; max-height: 85px; }

  .quick-btn { padding: 14px 10px; font-size: 0.78rem; }

  .about-img-wrap img { height: 280px; }

  .message-card__photo { min-height: 220px; }

  .toppers-tabs .nav-link { margin-bottom: 8px; font-size: 0.85rem; padding: 6px 16px; }

  .admission-strip__inner { flex-direction: column; text-align: center; }
  .admission-strip__actions { justify-content: center; }
}

@media (max-width: 575.98px) {
  :root { --header-height: 60px; }

  .btn-login { font-size: 0.68rem; padding: 4px 10px; gap: 3px; }

  .header-brand-compact__name { font-size: 0.82rem; }

  .quick-links-grid { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
  .quick-btn { padding: 12px 8px; font-size: 0.72rem; flex-direction: column; gap: 4px; }

  .message-card__photo { min-height: 200px; }
  .message-card__content { padding: 18px 20px 22px; }
}
