/* ============================================================
   SAI VIDYA PUBLIC SCHOOL - MAIN STYLESHEET
   Color Palette: Red #ec2e19, Gold #C9A84C, White #FFFFFF
   Accent: Green #40916C, Pale Green #D8F3DC
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Nunito:wght@300;400;600;700;800&display=swap');

:root {
  --navy: #ec2e19;
  --navy-light: #c92515;
  --gold: #C9A84C;
  --gold-light: #e2bb6b;
  --gold-pale: #F5E6C3;
  --sky: #40916C;
  --green-pale: #D8F3DC;
  --green-mid: #95D5B2;
  --white: #FFFFFF;
  --off-white: #F8FBF9;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --dark: #111827;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Nunito', sans-serif;
  --shadow: 0 8px 32px rgba(236,46,25,0.15);
  --shadow-gold: 0 4px 24px rgba(201,168,76,0.25);
  --radius: 12px;
  --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--dark); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* TOP BAR */
.top-bar {
  background: var(--navy);
  color: var(--gold-pale);
  padding: 7px 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  z-index: 1100;
  position: relative;
}
.top-bar a { color: var(--gold-pale); transition: var(--transition); }
.top-bar a:hover { color: var(--gold); }
.top-bar .social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(201,168,76,0.15); color: var(--gold);
  margin-left: 6px; font-size: 0.8rem; transition: var(--transition);
}
.top-bar .social-icons a:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.top-bar .contact-info span { margin-right: 18px; }
.top-bar .contact-info i { color: var(--gold); margin-right: 5px; }

/* NAVIGATION */
.navbar-main {
  background: var(--white) !important;
  box-shadow: 0 2px 20px rgba(236,46,25,0.12);
  padding: 0;
  position: sticky; top: 0; z-index: 1050;
  transition: var(--transition);
}

.navbar-main.scrolled { box-shadow: 0 4px 30px rgba(236,46,25,0.2); }
.navbar-brand { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.navbar-brand img { height: 90px; width: auto; }
.navbar-brand .brand-text { line-height: 1.1; }
.navbar-brand .brand-name {
  font-family: var(--font-heading); font-size: 1.15rem;
  font-weight: 700; color: var(--navy); display: block;
}
.navbar-brand .brand-tagline { font-size: 0.7rem; color: var(--gold); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

.navbar-main .nav-link {
  font-family: var(--font-body); font-weight: 700; font-size: 0.88rem;
  color: var(--navy) !important; padding: 22px 14px !important;
  letter-spacing: 0.04em; text-transform: uppercase;
  position: relative; transition: var(--transition);
}
.navbar-main .nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 3px; background: var(--gold); border-radius: 2px 2px 0 0;
  transition: var(--transition);
}
.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after { left: 14px; right: 14px; }
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active { color: var(--navy-light) !important; }

.navbar-main .dropdown-menu {
  border: none; border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow); padding: 8px 0;
  animation: dropFade 0.2s ease;
}
@keyframes dropFade { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.navbar-main .dropdown-item {
  font-weight: 600; font-size: 0.85rem; color: var(--navy);
  padding: 9px 20px; transition: var(--transition); border-left: 3px solid transparent;
}
.navbar-main .dropdown-item:hover {
  background: var(--green-pale); color: var(--navy); border-left-color: var(--gold);
}

/* TICKER */
.ticker-wrap {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy); padding: 9px 0; overflow: hidden;
  font-weight: 800; font-size: 0.9rem; letter-spacing: 0.05em;
}
.ticker-wrap .ticker-inner {
  display: flex; white-space: nowrap;
  animation: ticker 35s linear infinite;
}
.ticker-wrap .ticker-inner:hover { animation-play-state: paused; }
.ticker-item { padding: 0 40px; }
.ticker-item i { margin-right: 6px; }
@keyframes ticker { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

/* CAROUSEL */
.hero-carousel { position: relative; }
.hero-carousel .carousel-item { height: 580px; }
.hero-carousel .carousel-item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.6);
  object-position: center center;
}
.hero-carousel .carousel-caption {
  top: 50%; transform: translateY(-50%); bottom: auto;
  text-align: center; padding: 0 20px;
}
.hero-carousel .carousel-caption h1 {
  font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900; text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  margin-bottom: 16px; color: var(--white);
}
.hero-carousel .carousel-caption h1 span { color: var(--gold); }
.hero-carousel .carousel-caption p {
  font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 400;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5); max-width: 600px; margin: 0 auto 28px;
}
.hero-carousel .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.5); border: 2px solid var(--gold);
  transition: var(--transition);
}
.hero-carousel .carousel-indicators .active { background: var(--gold); }

/* POPUP MODAL */
.modal-admission .modal-content { border-radius: 18px; overflow: hidden; border: none; }
.modal-admission .modal-header { background: var(--navy); color: var(--white); border: none; }
.modal-admission .modal-header .btn-close { filter: invert(1); }
.modal-admission .modal-body { padding: 0; }
.modal-admission .modal-body img { width: 100%; max-height: 420px; object-fit: cover; }
.modal-admission .modal-footer { background: var(--green-pale); border-top: 2px solid var(--gold); }

/* SECTION COMMONS */
section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title .eyebrow {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px; display: block;
}
.section-title h2 {
  font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; color: var(--navy); line-height: 1.2;
}
.section-title h2 span { color: var(--gold); }
.section-title .divider {
  width: 60px; height: 4px; background: linear-gradient(90deg, var(--gold), var(--sky));
  border-radius: 2px; margin: 16px auto 0;
}
.section-title p { margin-top: 14px; color: var(--gray); max-width: 600px; margin-left: auto; margin-right: auto; }

/* COUNTER SECTION */
.counter-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative; overflow: hidden;
}
.counter-section::before {
  content: ''; position: absolute; top: -50%; left: -20%;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(201,168,76,0.06); pointer-events: none;
}
.counter-card {
  text-align: center; padding: 36px 20px;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius); position: relative; overflow: hidden;
  transition: var(--transition);
}
.counter-card::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(201,168,76,0.05); opacity: 0; transition: var(--transition);
}
.counter-card:hover::before { opacity: 1; }
.counter-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow-gold); }
.counter-card .counter-icon { font-size: 2.4rem; color: var(--gold); margin-bottom: 12px; }
.counter-card .counter-number {
  font-family: var(--font-heading); font-size: 3rem; font-weight: 900;
  color: var(--white); line-height: 1;
}
.counter-card .counter-label { color: var(--gold-pale); font-size: 0.95rem; font-weight: 600; margin-top: 6px; }

/* PARALLAX SECTION */
.parallax-section {
  background-image: url('../images/infrastructure/school-building-1.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 400px;
  position: relative;
  display: flex; align-items: center;
}
.parallax-section .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(236,46,25,0.88) 0%, rgba(236,46,25,0.65) 100%);
}
.parallax-section .content { position: relative; z-index: 2; }
.parallax-section h2 {
  font-family: var(--font-heading); font-size: clamp(2rem,4vw,3rem);
  color: var(--white); font-weight: 900;
}
.parallax-section h2 span { color: var(--gold); }
.parallax-section p { color: var(--gold-pale); font-size: 1.1rem; max-width: 600px; }

/* TEAM CARDS */
.team-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: var(--transition);
  text-align: center;
}
.team-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(236,46,25,0.18); }
.team-card .card-img-wrap { position: relative; overflow: hidden; height: 380px; }
.team-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.5s ease; }
.team-card:hover .card-img-wrap img { transform: scale(1.07); }
.team-card .card-img-wrap .overlay-social {
  position: absolute; inset: 0; background: rgba(236,46,25,0.75);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; transition: var(--transition);
}
.team-card:hover .overlay-social { opacity: 1; }
.team-card .overlay-social a {
  width: 36px; height: 36px; border-radius: 50%; background: var(--gold);
  color: var(--navy); display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; transition: var(--transition);
}
.team-card .overlay-social a:hover { background: var(--white); }
.team-card .card-body { padding: 20px; border-top: 3px solid var(--green-pale); }
.team-card .card-body h5 { font-family: var(--font-heading); font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.team-card .card-body .designation { font-size: 0.82rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; }

/* GALLERY */
.gallery-grid .gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  cursor: pointer; aspect-ratio: 4/3;
}
.gallery-grid .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-grid .gallery-item:hover img { transform: scale(1.1); }
.gallery-grid .gallery-item .gallery-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(236,46,25,0.85) 0%, transparent 60%);
  opacity: 0; transition: var(--transition); display: flex; align-items: flex-end; padding: 16px;
}
.gallery-grid .gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-grid .gallery-item .gallery-overlay span {
  color: var(--white); font-weight: 700; font-size: 0.9rem;
}
.gallery-grid .gallery-item .gallery-overlay i { color: var(--gold); margin-right: 6px; }

/* GALLERY ALBUM GRID (new full-gallery page) */
.album-img-block {
  position: relative; overflow: hidden; border-radius: var(--radius);
  cursor: pointer; aspect-ratio: 4/3; box-shadow: var(--shadow);
}
.album-img-block img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.album-img-block:hover img { transform: scale(1.08); }
.album-img-block .album-overlay {
  position: absolute; inset: 0; background: rgba(236,46,25,0.0);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.album-img-block:hover .album-overlay { background: rgba(236,46,25,0.4); }
.album-img-block .album-overlay i { color: var(--white); font-size: 1.8rem; opacity: 0; transition: var(--transition); }
.album-img-block:hover .album-overlay i { opacity: 1; }

/* VIDEO */
.video-wrap {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 16/9;
}
.video-wrap iframe { width: 100%; height: 100%; border: 0; }

/* BUTTONS */
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy); font-weight: 800; border: none;
  padding: 13px 32px; border-radius: 50px; font-size: 0.9rem;
  letter-spacing: 0.05em; text-transform: uppercase; transition: var(--transition);
  box-shadow: 0 4px 18px rgba(201,168,76,0.35); display: inline-flex; align-items: center; gap: 8px;
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(201,168,76,0.5); color: var(--navy); background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%); }

.btn-navy {
  background: var(--navy); color: var(--white); font-weight: 800;
  padding: 13px 32px; border-radius: 50px; font-size: 0.9rem;
  letter-spacing: 0.05em; text-transform: uppercase; transition: var(--transition);
  border: 2px solid var(--navy); display: inline-flex; align-items: center; gap: 8px;
}
.btn-navy:hover { background: transparent; color: var(--navy); transform: translateY(-3px); }

.btn-outline-gold {
  background: transparent; color: var(--gold); font-weight: 800;
  padding: 11px 30px; border-radius: 50px; font-size: 0.9rem;
  letter-spacing: 0.05em; text-transform: uppercase; transition: var(--transition);
  border: 2px solid var(--gold); display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }

.btn-white-outline {
  background: transparent; color: var(--white); font-weight: 800;
  padding: 13px 32px; border-radius: 50px; font-size: 0.9rem;
  letter-spacing: 0.05em; text-transform: uppercase; transition: var(--transition);
  border: 2px solid rgba(255,255,255,0.6); display: inline-flex; align-items: center; gap: 8px;
}
.btn-white-outline:hover { background: var(--white); color: var(--navy); }

/* MAP */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; }

/* FOOTER */
footer {
  background: var(--navy);
  color: var(--gold-pale);
  padding: 60px 0 0;
}
.footer-logo-wrap { margin-bottom: 18px; }
.footer-logo-wrap img { height: 100px; width: auto; }
footer .footer-brand p { font-size: 0.88rem; color: rgba(245,230,195,0.7); line-height: 1.7; }
footer h5 {
  font-family: var(--font-heading); color: var(--gold); font-size: 1.05rem;
  font-weight: 700; margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 2px solid rgba(201,168,76,0.3);
}
footer .footer-links li { margin-bottom: 10px; }
footer .footer-links a {
  color: rgba(245,230,195,0.75); font-size: 0.88rem; font-weight: 600;
  transition: var(--transition); display: flex; align-items: center; gap: 7px;
}
footer .footer-links a i { color: var(--gold); font-size: 0.7rem; }
footer .footer-links a:hover { color: var(--gold); padding-left: 6px; }
footer .footer-contact p { font-size: 0.88rem; color: rgba(245,230,195,0.75); margin-bottom: 10px; display: flex; align-items: flex-start; gap: 10px; }
footer .footer-contact p i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
footer .footer-contact a { color: rgba(245,230,195,0.75); transition: var(--transition); }
footer .footer-contact a:hover { color: var(--gold); }
footer .footer-social { display: flex; gap: 10px; margin-top: 16px; }
footer .footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(201,168,76,0.15); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; transition: var(--transition);
}
footer .footer-social a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
footer .footer-bottom {
  background: rgba(0,0,0,0.25); margin-top: 40px;
  padding: 14px 0; text-align: center;
  font-size: 0.82rem; color: rgba(245,230,195,0.5); border-top: 1px solid rgba(201,168,76,0.15);
}
footer .footer-bottom a { color: var(--gold); }
footer .footer-codes { font-size: 0.8rem; color: rgba(245,230,195,0.55); margin-top: 4px; }

/* PAGE HERO */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 80px 0 50px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  border: 60px solid rgba(201,168,76,0.08); pointer-events: none;
}
.page-hero h1 {
  font-family: var(--font-heading); color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; margin-bottom: 12px;
}
.page-hero h1 span { color: var(--gold); }
.page-hero .breadcrumb { justify-content: center; background: transparent; }
.page-hero .breadcrumb-item a { color: var(--gold); }
.page-hero .breadcrumb-item { color: rgba(255,255,255,0.6); font-weight: 600; }
.page-hero .breadcrumb-item.active { color: var(--white); }

/* ABOUT PAGE */
.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-img-wrap .badge-float {
  position: absolute; bottom: -20px; right: -20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy); padding: 20px; border-radius: var(--radius);
  text-align: center; box-shadow: var(--shadow-gold);
  font-family: var(--font-heading);
}
.about-img-wrap .badge-float .num { font-size: 2.2rem; font-weight: 900; display: block; line-height: 1; }
.about-img-wrap .badge-float .lbl { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

.feature-list { list-style: none; padding: 0; }
.feature-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-weight: 600; color: var(--navy); }
.feature-list li i { width: 32px; height: 32px; background: var(--green-pale); color: var(--navy-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }

/* Message cards */
.message-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px; border-top: 5px solid var(--gold); transition: var(--transition);
}
.message-card:hover { transform: translateY(-4px); }
.message-card .msg-photo { width: 100%; max-height: 380px; object-fit: contain; border-radius: var(--radius); border: 3px solid var(--gold-pale); margin-bottom: 16px; background:#f0f7f4; }
.message-card .msg-name { font-family: var(--font-heading); font-size: 1.2rem; color: var(--navy); font-weight: 700; }
.message-card .msg-title { font-size: 0.8rem; color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.message-card .msg-text { color: var(--gray); font-size: 0.95rem; line-height: 1.8; font-style: italic; }
.message-card .quote-icon { font-size: 3rem; color: var(--gold-pale); line-height: 1; font-family: Georgia,serif; }

/* 3-image row on about sub-pages */
.about-img-row { margin-top: 32px; }
.about-img-row .img-thumb { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.about-img-row .img-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.about-img-row .img-thumb:hover img { transform: scale(1.06); }

/* Mission Vision */
.mv-card {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 40px 32px; position: relative; overflow: hidden; height: 100%;
}
.mv-card::before {
  content: ''; position: absolute; bottom: -30px; right: -30px;
  width: 150px; height: 150px; border-radius: 50%;
  background: rgba(201,168,76,0.1); pointer-events: none;
}
.mv-card .mv-icon { font-size: 2.8rem; color: var(--gold); margin-bottom: 18px; }
.mv-card h3 { font-family: var(--font-heading); color: var(--gold); font-size: 1.5rem; margin-bottom: 14px; }
.mv-card p { color: rgba(245,230,195,0.8); line-height: 1.8; }
.mv-card ul { color: rgba(245,230,195,0.8); padding-left: 0; }
.mv-card ul li { padding: 4px 0; padding-left: 20px; position: relative; }
.mv-card ul li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); font-size: 0.7rem; top: 6px; }

/* INFRASTRUCTURE PAGE */
.infra-block { margin-bottom: 70px; }
.infra-block .infra-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.infra-block .infra-img img { width: 100%; height: 100%; object-fit: cover; }
.infra-block h3 { font-family: var(--font-heading); color: var(--navy); font-size: 1.8rem; font-weight: 700; }
.infra-block h3 span { color: var(--gold); }
.infra-mini-gallery .mini-img { border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; }
.infra-mini-gallery .mini-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.infra-mini-gallery .mini-img:hover img { transform: scale(1.07); }

/* GALLERY PAGE */
.gallery-cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; box-shadow: var(--shadow); transition: var(--transition);
  aspect-ratio: 4/3; display: block;
}
.gallery-cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-cat-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(236,46,25,0.25); }
.gallery-cat-card:hover img { transform: scale(1.08); }
.gallery-cat-card .cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(236,46,25,0.9) 0%, rgba(236,46,25,0.3) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
  transition: var(--transition);
}
.gallery-cat-card .cat-title { font-family: var(--font-heading); color: var(--white); font-size: 1.3rem; font-weight: 700; }
.gallery-cat-card .cat-count { color: var(--gold); font-size: 0.82rem; font-weight: 700; }
.gallery-cat-card .cat-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0);
  background: var(--gold); color: var(--navy); width: 56px; height: 56px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; transition: var(--transition);
}
.gallery-cat-card:hover .cat-icon { transform: translate(-50%,-50%) scale(1); }

/* ACHIEVEMENTS PAGE */
.achievement-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; transition: var(--transition);
}
.achievement-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(236,46,25,0.15); }
.achievement-card .ach-img { overflow: hidden; }
.achievement-card .ach-img img { width: 100%; height: auto; display: block; transition: transform 0.4s; }
.achievement-card:hover .ach-img img { transform: scale(1.06); }
.achievement-card .ach-body { padding: 20px; }
.achievement-card .ach-icon-wrap {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  margin-bottom: 12px;
}
.achievement-card .ach-icon-wrap.gold { background: var(--gold-pale); color: var(--gold); }
.achievement-card .ach-icon-wrap.green { background: var(--green-pale); color: var(--navy-light); }
.achievement-card h5 { font-family: var(--font-heading); color: var(--navy); font-weight: 700; margin-bottom: 4px; }
.achievement-card p { font-size: 0.88rem; color: var(--gray); margin: 0; }
.achievement-card .year { font-size: 0.75rem; font-weight: 800; color: var(--gold); text-transform: uppercase; display: inline-block; margin-bottom: 6px; }

.trophy-showcase { text-align: center; }
.trophy-showcase .trophy { font-size: 4rem; animation: trophyBounce 2s infinite; display: block; }
@keyframes trophyBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* HOME PAGE - RESULTS & ACHIEVEMENTS BLOCKS */
.result-block {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: var(--transition);
}
.result-block:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(236,46,25,0.15); }
.result-block .result-img { overflow: hidden; }
.result-block .result-img img { width: 100%; height: auto; display: block; }
.result-block .result-body { background: var(--white); padding: 22px; }
.result-block .result-body h5 { font-family: var(--font-heading); color: var(--navy); font-weight: 700; margin-bottom: 8px; }
.result-block .result-body p { font-size: 0.88rem; color: var(--gray); line-height: 1.7; margin: 0; }

/* HOME PAGE - ICON LINKS SECTION */
.icon-link-card {
  background: var(--white); border-radius: var(--radius); padding: 32px 20px;
  text-align: center; box-shadow: var(--shadow); transition: var(--transition);
  border-bottom: 4px solid transparent; display: block; color: var(--dark);
}
.icon-link-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(236,46,25,0.18); border-bottom-color: var(--gold); color: var(--dark); }
.icon-link-card .card-icon {
  width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--green-pale); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
  transition: var(--transition);
}
.icon-link-card:hover .card-icon { background: var(--navy); color: var(--gold); transform: scale(1.1); }
.icon-link-card h5 { font-family: var(--font-heading); color: var(--navy); font-weight: 700; margin-bottom: 8px; font-size: 1rem; }
.icon-link-card p { font-size: 0.82rem; color: var(--gray); line-height: 1.6; margin: 0; }

/* TESTIMONIALS */
.testimonial-wrap { overflow: hidden; }
.testimonial-track { display: flex; gap: 24px; animation: slideTestimonials 30s linear infinite; width: max-content; }
.testimonial-track:hover { animation-play-state: paused; }
@keyframes slideTestimonials { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.testimonial-card {
  background: var(--white); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow); width: 320px; flex-shrink: 0; border-left: 4px solid var(--gold);
}
.testimonial-card .t-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 10px; }
.testimonial-card .t-text { font-size: 0.9rem; color: var(--gray); line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.testimonial-card .t-author { display: flex; align-items: center; gap: 12px; }
.testimonial-card .t-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green-pale); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--navy); font-size: 1rem; flex-shrink: 0; }
.testimonial-card .t-name { font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.testimonial-card .t-role { font-size: 0.75rem; color: var(--gray); }

/* KINDERGARTEN PAGE */
.kg-body { background: linear-gradient(135deg, #FFF3E0 0%, #E8F4FD 50%, #F3E5F5 100%); }
.floating-shape { position: absolute; border-radius: 50%; opacity: 0.25; animation: floatShape 6s ease-in-out infinite; }
@keyframes floatShape { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-30px) rotate(180deg); } }
.kg-feature-card {
  background: var(--white); border-radius: 20px; padding: 28px; text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08); transition: var(--transition); border-bottom: 4px solid;
}
.kg-feature-card:hover { transform: translateY(-8px) rotate(1deg); }
.kg-img-row { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.kg-img-row img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.kg-img-row:hover img { transform: scale(1.06); }

/* CAREER PAGE */
.job-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; transition: var(--transition); border-top: 4px solid var(--green-pale);
}
.job-card:hover { border-top-color: var(--gold); transform: translateY(-4px); }

/* CONTACT PAGE */
.contact-info-card {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 36px; height: 100%;
}
.contact-info-card h4 { font-family: var(--font-heading); color: var(--gold); font-size: 1.3rem; margin-bottom: 24px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-item .icon-wrap { width: 46px; height: 46px; background: rgba(201,168,76,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 1rem; flex-shrink: 0; }
.contact-item .info a { color: rgba(245,230,195,0.85); font-weight: 600; display: block; transition: var(--transition); }
.contact-item .info a:hover { color: var(--gold); }
.contact-item .info span { font-size: 0.78rem; color: rgba(245,230,195,0.5); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 2px; }

.contact-form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; }
.contact-form-card h4 { font-family: var(--font-heading); color: var(--navy); font-size: 1.3rem; margin-bottom: 24px; }
.contact-form-card .form-label { font-weight: 700; color: var(--navy); font-size: 0.88rem; }
.contact-form-card .form-control, .contact-form-card .form-select {
  border: 2px solid var(--light-gray); border-radius: 8px; padding: 11px 15px;
  font-family: var(--font-body); transition: var(--transition);
}
.contact-form-card .form-control:focus, .contact-form-card .form-select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.15); outline: none;
}

.whatsapp-cta {
  background: #25D366; color: var(--white); font-weight: 800;
  padding: 13px 32px; border-radius: 50px; font-size: 0.9rem;
  letter-spacing: 0.05em; transition: var(--transition); display: inline-flex; align-items: center; gap: 10px; border: none;
}
.whatsapp-cta:hover { background: #1ebe5d; color: var(--white); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(37,211,102,0.4); }

/* LIGHTBOX MODAL */
#lightboxModal .modal-dialog { max-width: 90vw; }
#lightboxModal .modal-content { background: rgba(236,46,25,0.97); border: 1px solid rgba(201,168,76,0.3); border-radius: var(--radius); }
#lightboxModal .modal-header { border-bottom: 1px solid rgba(201,168,76,0.2); }
#lightboxModal .btn-close { filter: invert(1); }
#lightboxModal img { max-height: 75vh; object-fit: contain; border-radius: 8px; }

/* BACK TO TOP */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy); border: none; box-shadow: var(--shadow-gold);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  opacity: 0; transform: translateY(20px); transition: var(--transition); cursor: pointer;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* PARTICLES */
#particles-canvas { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 0; }

/* ANIMATIONS */
@keyframes floatBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-18px) rotate(5deg); }
  66% { transform: translateY(-8px) rotate(-5deg); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  15% { transform: rotate(-8deg) scale(1.05); }
  30% { transform: rotate(8deg) scale(1.05); }
}
.mb-60 { margin-bottom: 50px; }

/* RESPONSIVE */
@media (max-width: 991px) {
  .hero-carousel .carousel-item { height: 420px; }
  section { padding: 50px 0; }
  .about-img-wrap .badge-float { display: none; }
  .parallax-section { background-attachment: scroll; }

  /* Logo size on tablet/mobile */
  .navbar-brand img { height: 60px; }

  /* Nav links in collapsed menu */
  .navbar-main .nav-link { padding: 12px 16px !important; }
  .navbar-main .nav-link::after { display: none; }

  /* ── Mobile hamburger stays fixed RIGHT, logo stays fixed LEFT ── */
  /* Bootstrap handles the collapse drop-down natively when we don't
     override its flex layout. We only need a few tweaks. */

  .navbar-toggler {
    border: 1.5px solid rgba(236,46,25,0.3) !important;
    padding: 6px 10px;
    border-radius: 6px;
    background: transparent;
  }
  .navbar-toggler:focus { box-shadow: none; outline: none; }

  /* Collapsed menu panel styling */
  .navbar-collapse {
    background: var(--white);
    border-top: 2px solid var(--green-pale);
    padding: 8px 0 14px;
    box-shadow: 0 8px 24px rgba(236,46,25,0.12);
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .navbar-collapse .navbar-nav {
    padding: 0 8px;
  }
  /* Dividers between menu items */
  .navbar-collapse .nav-item {
    border-bottom: 1px solid var(--green-pale);
  }
  .navbar-collapse .nav-item:last-child { border-bottom: none; }

  /* Dropdown inside mobile menu */
  .navbar-collapse .dropdown-menu {
    border: none;
    box-shadow: none;
    background: var(--green-pale);
    border-radius: var(--radius);
    margin: 4px 8px 8px;
    padding: 6px 0;
    position: static;
    float: none;
  }

  /* Apply Now button full-width */
  .navbar-collapse .nav-item.ms-lg-3 { margin-left: 0 !important; }
  .navbar-collapse .btn-gold {
    display: block;
    margin: 10px 12px 4px;
    text-align: center;
    justify-content: center;
  }
}
@media (max-width: 767px) {
  .hero-carousel .carousel-item { height: 320px; }
  .hero-carousel .carousel-caption h1 { font-size: 1.6rem; }
  .top-bar .contact-info { display: none !important; }
  .counter-card .counter-number { font-size: 2.2rem; }
  section { padding: 40px 0; }
  .testimonial-card { width: 280px; }
}
@media (max-width: 575px) {
  .hero-carousel .carousel-item { height: 260px; }
  .hero-carousel .carousel-caption p { display: none; }
}
