/* ============================================================
   SRI KALAIMAGAL KENDRA MATRIC HR. SEC. SCHOOL
   Main Stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { -webkit-tap-highlight-color: transparent; }
input, select, textarea, button { -webkit-appearance: none; appearance: none; }
select { 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235d6d7e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px !important;
}

:root {
  --primary:       #1a237e;
  --primary-light: #3949ab;
  --primary-dark:  #0d1b4b;
  --gold:          #f5a623;
  --gold-dark:     #d4890e;
  --saffron:       #ff6b35;
  --green:         #27ae60;
  --white:         #ffffff;
  --light-bg:      #f4f6ff;
  --text:          #2c3e50;
  --text-light:    #5d6d7e;
  --shadow:        0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.14);
  --radius:        18px;
  --transition:    all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--white);
}

/* ======================== UTILITIES ======================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-header { text-align: center; margin-bottom: 40px; }
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  color: white;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 20px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 14px;
  line-height: 1.2;
}
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline, .btn-cta, .btn-submit, .btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: 'Poppins', sans-serif;
}
.btn-primary  { background: linear-gradient(135deg, var(--gold), var(--saffron)); color: white; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 35px rgba(245,166,35,0.45); }
.btn-secondary { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.7); }
.btn-secondary:hover { background: white; color: var(--primary); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-cta { background: white; color: var(--primary); font-size: 1rem; padding: 16px 40px; }
.btn-cta:hover { background: var(--gold); color: white; transform: scale(1.04); }

/* ======================== PRELOADER ======================== */
#preloader {
  position: fixed; inset: 0;
  background: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s, visibility 0.6s;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; color: white; }
.school-emblem { display: block; text-align: center; }
.school-emblem img { width: 90px; height: 90px; object-fit: contain; margin: 0 auto; animation: pulse 1.2s infinite; }
.preloader-inner h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; margin: 14px 0 4px;
}
.preloader-inner p {
  font-family: 'Noto Serif Tamil', serif;
  color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-bottom: 20px;
}
.loader-bar {
  width: 220px; height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px; margin: 0 auto; overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  animation: loadFill 1.6s ease-in-out forwards;
}
@keyframes loadFill { from { width: 0; } to { width: 100%; } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* ======================== WHATSAPP FLOAT ======================== */
.whatsapp-float {
  position: fixed; bottom: 90px; right: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.65rem; color: white;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(37,211,102,0.45);
  z-index: 998;
  transition: var(--transition);
  animation: ripple 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.15); }
@keyframes ripple {
  0%   { box-shadow: 0 0 0 0   rgba(37,211,102,0.4); }
  70%  { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0   rgba(37,211,102,0); }
}

/* ======================== BACK TO TOP ======================== */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 50px; height: 50px;
  background: var(--primary);
  color: white; border: none; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 998;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold); transform: translateY(-4px); }

/* ======================== NAVBAR ======================== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(13, 27, 75, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-emblem {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.logo-emblem img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.logo-emblem { cursor: pointer; }

/* Logo Lightbox */
.logo-lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 10000;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.logo-lightbox-overlay.open { opacity: 1; visibility: visible; }
.logo-lightbox {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 10001;
  opacity: 0; visibility: hidden;
  transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
}
.logo-lightbox.open {
  opacity: 1; visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.logo-lightbox img {
  max-width: 85vw; max-height: 80vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.logo-lb-close {
  position: absolute;
  top: -18px; right: -18px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  border: none;
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: var(--transition);
  line-height: 1;
}
.logo-lb-close:hover {
  background: var(--saffron);
  transform: rotate(90deg);
}

.logo-text { display: flex; flex-direction: column; }
.logo-en {
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem; font-weight: 700;
  color: white; line-height: 1.2;
}
.logo-ta {
  font-family: 'Noto Serif Tamil', serif;
  font-size: 0.72rem; color: rgba(255,255,255,0.72);
}
.nav-links { display: flex; align-items: center; gap: 5px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.88rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  transition: var(--transition);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.3;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active-link { color: var(--gold); }
.btn-nav {
  background: linear-gradient(135deg, var(--gold), var(--saffron)) !important;
  color: white !important;
  padding: 10px 22px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(245,166,35,0.4) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.hamburger span { width: 26px; height: 3px; background: white; border-radius: 2px; transition: var(--transition); }

/* ======================== MOBILE MENU ======================== */
.mobile-menu {
  position: fixed; top: 0; right: -100%;
  width: 300px; height: 100dvh;
  background: var(--primary-dark);
  z-index: 1100;
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 4px;
  transition: right 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  box-shadow: -12px 0 40px rgba(0,0,0,0.35);
}
.mobile-menu.open { right: 0; }
.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1099;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.mobile-overlay.open { opacity: 1; visibility: visible; }
.mobile-close {
  align-self: flex-end; background: none; border: none;
  color: rgba(255,255,255,0.7); font-size: 2rem; cursor: pointer;
  line-height: 1; transition: var(--transition);
}
.mobile-close:hover { color: var(--gold); }
.mobile-logo { display: flex; align-items: center; gap: 10px; color: white; margin-bottom: 22px; }
.mobile-logo img { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; }
.mobile-logo span { font-family: 'Playfair Display', serif; font-size: 1rem; }
.mm-link {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  padding: 13px 16px;
  border-radius: 10px;
  font-weight: 500;
  transition: var(--transition);
  display: block;
}
.mm-link:hover { background: rgba(255,255,255,0.1); color: var(--gold); }
.mm-book {
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  color: white !important;
  text-align: center;
  margin-top: 16px;
}
.mm-book:hover { transform: scale(1.02); }

/* ======================== HERO ======================== */
.hero {
  min-height: 100dvh;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?w=1800&q=80') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(13,27,75,0.94) 0%,
    rgba(26,35,126,0.88) 50%,
    rgba(74,20,140,0.78) 100%);
}
.hero-particles { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: white;
  padding: 110px 24px 70px;
  max-width: 920px;
}
.hero-badge {
  display: inline-flex; flex-direction: column; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(10px);
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  text-align: center;
}
.badge-en { display: flex; align-items: center; gap: 8px; }
.badge-ta {
  font-family: 'Noto Serif Tamil', serif;
  font-size: 0.68rem;
  opacity: 0.80;
  letter-spacing: 0;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  display: flex; flex-direction: column;
  gap: 10px; margin-bottom: 18px;
}
.title-gold {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.title-white {
  font-size: clamp(1.3rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: rgba(255,255,255,0.95);
}
.hero-tamil {
  font-family: 'Noto Serif Tamil', serif;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.78);
  margin-bottom: 16px;
}
.hero-motto {
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  color: var(--gold);
  font-style: italic;
  margin-bottom: 38px;
  letter-spacing: 0.3px;
}
.hero-btns { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* Hero Social Media */
.hero-social {
  margin-top: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.hero-social .social-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  font-family: 'Poppins', sans-serif;
}
.hero-social .social-icons {
  display: flex;
  gap: 15px;
  align-items: center;
}
.hero-social .social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}
.hero-social .social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.hero-social .social-icon.fb:hover {
  background: #1877f2;
  border-color: #1877f2;
}
.hero-social .social-icon.ig:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: #dc2743;
}
.hero-social .social-icon.wa:hover {
  background: #25D366;
  border-color: #25D366;
}
.hero-social .social-icon.yt:hover {
  background: #FF0000;
  border-color: #FF0000;
}

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,0.65);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.72rem; letter-spacing: 1px;
}
.scroll-dot {
  width: 6px; height: 6px;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  animation: scrollBounce 1.8s infinite;
}
@keyframes scrollBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }

/* Floating Particles */
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  animation: floatUp linear infinite;
  pointer-events: none;
}
@keyframes floatUp {
  0%   { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(-120px) rotate(360deg); opacity: 0; }
}

/* ======================== STATS BAR ======================== */
.stats-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 55px 0;
}
.stats-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px;
}
.stat-item { text-align: center; color: white; }
.stat-item i { font-size: 2.3rem; color: var(--gold); margin-bottom: 10px; display: block; }
.stat-num { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.stat-item p { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-top: 6px; }

/* ======================== TICKER ======================== */
.ticker-wrap {
  background: var(--gold);
  display: flex; align-items: stretch;
  overflow: hidden; height: 60px;
}
.ticker-label {
  background: var(--primary-dark); color: white;
  padding: 0 22px; height: 100%;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.5px;
  white-space: nowrap; flex-shrink: 0;
}
.ticker-ta {
  font-family: 'Noto Serif Tamil', serif;
  font-size: 0.62rem; font-weight: 400;
  opacity: 0.75; letter-spacing: 0;
}
.ticker-content { flex: 1; overflow: hidden; display: flex; align-items: center; }
.ticker-items {
  display: flex; width: max-content;
  animation: ticker 35s linear infinite;
}
.ticker-items span {
  padding: 0 55px;
  color: var(--primary-dark);
  font-size: 0.84rem; font-weight: 600;
  white-space: nowrap;
}
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ======================== ABOUT ======================== */
.about-section { padding: 70px 0; background: var(--light-bg); }
.about-grid {
  max-width: 1200px;
  margin: 0 auto;
  overflow: auto; /* clearfix */
}
.about-image { 
  position: relative;
  float: left;
  width: 380px;
  margin-right: 35px;
  margin-bottom: 25px;
}
.img-frame {
  border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.img-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,35,126,0.18), transparent 60%);
}
.img-frame img { width: 100%; height: 380px; object-fit: cover; display: block; }
.about-badge-float {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  color: white;
  padding: 14px 20px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 6px 20px rgba(245,166,35,0.4);
  z-index: 2;
}
.about-badge-float i { font-size: 1.4rem; }

/* Features box below the about section */
.about-features-box {
  background: white;
  border-radius: 18px;
  padding: 28px 30px;
  margin-top: 50px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  border: 2px solid var(--light-bg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px 30px;
  clear: both;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text);
}
.feature-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.feature-item i {
  color: var(--green);
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.feature-item span {
  flex: 1;
  line-height: 1.6;
  font-weight: 600;
}
.feature-item .ta-label {
  display: block;
  margin-top: 2px;
  font-weight: 400;
}

.about-content {
  overflow: hidden; /* contain floating */
}
.about-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.95rem; font-weight: 800;
  color: var(--primary-dark); margin-bottom: 18px;
  line-height: 1.3;
}
.about-content p { 
  color: var(--text-light); 
  line-height: 1.85; 
  margin-bottom: 14px;
  text-align: justify;
}
.about-actions { 
  display: flex; 
  gap: 16px; 
  margin-top: 30px; 
  flex-wrap: wrap;
}

/* ======================== VISION / MISSION ======================== */
.vm-section { padding: 60px 0; background: var(--primary-dark); }
.vm-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.vm-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  border-radius: 22px; padding: 32px 26px;
  text-align: center; color: white;
  transition: var(--transition);
}
.vm-card:hover { background: rgba(255,255,255,0.13); transform: translateY(-8px); }
.vm-icon {
  width: 66px; height: 66px;
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; margin: 0 auto 18px;
  box-shadow: 0 8px 25px rgba(245,166,35,0.35);
}
.vm-card h3 { font-family: 'Playfair Display', serif; font-size: 1.35rem; margin-bottom: 12px; line-height: 1.25; }
.vm-card p { color: rgba(255,255,255,0.72); line-height: 1.7; font-size: 0.9rem; }

/* ======================== PRINCIPAL ======================== */
.principal-section { padding: 70px 0; background: white; }
.principal-grid {
  max-width: 1200px;
  margin: 0 auto;
  overflow: auto; /* clearfix */
}
.principal-img { 
  position: relative;
  float: left;
  width: 300px;
  margin-right: 35px;
  margin-bottom: 25px;
  text-align: center;
}
.principal-frame {
  width: 100%;
  height: 350px;
  border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--gold);
}
.principal-frame img { width: 100%; height: 100%; object-fit: cover; }
.principal-badge {
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  background: var(--primary);
  color: white; padding: 12px 28px;
  border-radius: 50px;
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; white-space: nowrap;
  box-shadow: 0 8px 25px rgba(26,35,126,0.35);
  z-index: 1;
}
.principal-message {
  overflow: hidden; /* contain floating */
}
.principal-message h2 {
  margin-bottom: 25px;
}
.quote-mark {
  font-size: 5rem; line-height: 0.7;
  color: var(--gold); opacity: 0.2;
  font-family: Georgia, serif;
  margin-bottom: 15px;
  display: block;
}
.principal-message p { 
  color: var(--text-light); 
  line-height: 1.85; 
  margin-bottom: 16px;
  text-align: justify;
}
.principal-sign { 
  margin-top: 30px; 
  padding-top: 20px; 
  border-top: 2px solid var(--light-bg);
  clear: both; /* ensure signature appears below floated image */
}
.principal-sign strong { 
  display: block; 
  color: var(--primary-dark); 
  font-size: 1.05rem; 
  margin-bottom: 4px; 
}
.principal-sign span { 
  color: var(--text-light); 
  font-size: 0.88rem; 
}

/* ======================== ACADEMICS ======================== */
.academics-section { padding: 70px 0; background: var(--light-bg); }
.academics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.academic-card {
  background: white; border-radius: 22px;
  padding: 26px 22px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}
.academic-card:hover {
  transform: translateY(-9px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--gold);
}
.ac-icon {
  width: 66px; height: 66px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.65rem; color: white;
  margin-bottom: 20px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}
.academic-card h3 { font-size: 1.12rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; line-height: 1.3; }
.ac-sub { font-size: 0.78rem; color: var(--gold); font-weight: 600; margin-bottom: 12px; display: block; }
.academic-card p { color: var(--text-light); font-size: 0.88rem; line-height: 1.65; margin-bottom: 16px; }
.ac-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-tags span {
  background: var(--light-bg); color: var(--primary);
  font-size: 0.7rem; font-weight: 600;
  padding: 4px 11px; border-radius: 50px;
}

/* Streams */
.streams-section { background: white; border-radius: 24px; padding: 35px 35px; box-shadow: var(--shadow); }
.streams-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem; color: var(--primary-dark);
  text-align: center; margin-bottom: 28px;
}
.streams-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
  gap: 20px; 
}
.stream-card {
  padding: 30px 20px;
  border-radius: 18px; text-align: center;
  color: white; transition: var(--transition);
}
.stream-card:hover { transform: translateY(-6px) scale(1.02); }
.stream-card.science  { background: linear-gradient(135deg, #1565c0, #0d47a1); }
.stream-card.maths    { background: linear-gradient(135deg, #37474f, #263238); }
.stream-card.commerce { background: linear-gradient(135deg, #2e7d32, #1b5e20); }
.stream-card.arts     { background: linear-gradient(135deg, #6a1b9a, #4a148c); }
.stream-card i { font-size: 2.3rem; margin-bottom: 14px; display: block; }
.stream-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.stream-card p { font-size: 0.8rem; color: rgba(255,255,255,0.78); margin-bottom: 14px; }
.stream-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 4px 15px; border-radius: 50px;
  font-size: 0.7rem; font-weight: 600;
}

/* ======================== FACILITIES ======================== */
.facilities-section { padding: 70px 0; background: white; }
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}
.facility-card {
  border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.facility-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.facility-card img {
  width: 100%; height: 218px; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.facility-card:hover img { transform: scale(1.08); }
.facility-info {
  padding: 20px 22px;
  display: flex; align-items: flex-start; gap: 14px;
}
.facility-info i { font-size: 1.4rem; color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.facility-info h4 { font-size: 1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 5px; }
.facility-info p { font-size: 0.84rem; color: var(--text-light); }

.extra-facilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 16px;
  padding: 32px;
  background: var(--light-bg);
  border-radius: 24px;
}
.ef-item { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.ef-item i {
  width: 56px; height: 56px;
  background: white; color: var(--primary);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.ef-item:hover i { background: var(--gold); color: white; transform: translateY(-6px); }
.ef-item span { font-size: 0.75rem; font-weight: 600; color: var(--text); }

/* ======================== GALLERY ======================== */
.gallery-section { padding: 70px 0; background: var(--light-bg); }
.gallery-filter {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 9px 24px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 50px;
  font-weight: 600; font-size: 0.84rem; font-family: 'Poppins', sans-serif;
  cursor: pointer; transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: white; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: 16px; overflow: hidden;
  position: relative; cursor: pointer;
  aspect-ratio: 1;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s ease; display: block;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,27,75,0.72), rgba(245,166,35,0.55));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: white; opacity: 0;
  transition: var(--transition); gap: 8px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 1.9rem; }
.gallery-overlay span { font-weight: 600; font-size: 0.88rem; }
.gallery-item.hidden { display: none; }

/* Lightbox */
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1999;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }
.lightbox {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0.85);
  z-index: 2000;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  max-width: 90vw;
}
.lightbox.open { opacity: 1; visibility: visible; transform: translate(-50%,-50%) scale(1); }
.lightbox img {
  max-width: 82vw; max-height: 76vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  object-fit: contain;
}
.lightbox p { color: white; font-weight: 600; font-size: 0.95rem; }
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white; border-radius: 50%;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem;
  z-index: 2001; transition: var(--transition);
}
.lb-close { top: 22px; right: 22px; }
.lb-prev  { top: 50%; left: 22px; transform: translateY(-50%); }
.lb-next  { top: 50%; right: 22px; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--gold); }

/* ======================== ACHIEVEMENTS ======================== */
.achievements-section { padding: 70px 0; background: white; }
.achievements-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 24px; 
}
.achievement-card {
  background: var(--light-bg); border-radius: 22px;
  padding: 36px 28px;
  position: relative; transition: var(--transition);
  border: 2px solid transparent;
}
.achievement-card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: var(--shadow-lg); }
.ach-icon {
  width: 66px; height: 66px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.65rem; color: white; margin-bottom: 20px;
}
.ach-icon.gold   { background: linear-gradient(135deg,#f9d423,#f0932b); }
.ach-icon.silver { background: linear-gradient(135deg,#636fa4,#3b4180); }
.ach-icon.green  { background: linear-gradient(135deg,#11998e,#38ef7d); }
.ach-icon.blue   { background: linear-gradient(135deg,#2193b0,#6dd5ed); }
.ach-icon.purple { background: linear-gradient(135deg,#834d9b,#d04ed6); }
.ach-icon.orange { background: linear-gradient(135deg,#f12711,#f5af19); }
.achievement-card h4 { font-size: 1.08rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 10px; line-height: 1.3; }
.achievement-card p { color: var(--text-light); font-size: 0.88rem; line-height: 1.65; }
.ach-year {
  position: absolute; top: 20px; right: 20px;
  background: var(--primary); color: white;
  padding: 4px 13px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700;
}

/* ======================== TESTIMONIALS ======================== */
.testimonials-section { padding: 70px 0; background: var(--light-bg); }
.testimonial-slider { position: relative; overflow: hidden; }
.testimonial-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94);
}
.testimonial-card {
  flex: 0 0 100%;
  background: white; border-radius: 22px;
  padding: 42px 38px;
  box-shadow: var(--shadow);
  max-width: 780px;
  margin: 0 auto;
}
.t-stars { color: var(--gold); font-size: 1.35rem; margin-bottom: 18px; letter-spacing: 3px; }
.testimonial-card p {
  color: var(--text-light); line-height: 1.8;
  font-size: 0.97rem; margin-bottom: 26px;
  font-style: italic;
}
.t-author { display: flex; align-items: center; gap: 16px; }
.t-avatar i { font-size: 2.8rem; color: var(--primary-light); }
.t-author strong { display: block; color: var(--primary-dark); font-weight: 700; margin-bottom: 2px; }
.t-author span { font-size: 0.83rem; color: var(--text-light); }
.testimonial-dots { display: flex; justify-content: center; gap: 9px; margin-top: 28px; }
.t-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(26,35,126,0.2); cursor: pointer;
  transition: var(--transition);
}
.t-dot.active { background: var(--primary); transform: scale(1.35); }

/* ======================== ADMISSIONS CTA ======================== */
.admissions-cta {
  padding: 70px 0;
  position: relative; overflow: hidden;
  background: url('https://images.unsplash.com/photo-1427504494785-3a9ca7044f45?w=1800&q=80') center/cover fixed;
}
.cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(13,27,75,0.93) 0%,
    rgba(74,20,140,0.88) 100%);
}
.admissions-cta .container { position: relative; z-index: 1; }
.cta-content { text-align: center; color: white; }
.cta-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900; margin-bottom: 14px;
}
.cta-content p { font-size: 1.1rem; color: rgba(255,255,255,0.82); margin-bottom: 36px; }
.cta-details {
  display: flex; justify-content: center;
  gap: 40px; flex-wrap: wrap; margin-bottom: 40px;
}
.cta-detail {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.88); font-size: 0.93rem;
}
.cta-detail i { color: var(--gold); }

/* ======================== CONTACT ======================== */
/* ======================== ADMISSION FORM ======================== */
.admission-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8f9ff 0%, var(--light-bg) 100%);
}
.admission-form-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 26px;
  padding: 45px 45px;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--gold);
}
.admission-form .form-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 32px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8eaf6;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admission-form .form-section-title:first-of-type {
  margin-top: 0;
}
.admission-form .form-section-title i {
  color: var(--gold);
  font-size: 1.1rem;
}
.admission-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.admission-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.admission-form .form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.55;
}
.admission-form .form-group input,
.admission-form .form-group select,
.admission-form .form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e8eaf6;
  border-radius: 11px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  transition: var(--transition);
  outline: none;
  width: 100%;
  color: var(--text);
  background: #fafbff;
}
.admission-form .form-group input:focus,
.admission-form .form-group select:focus,
.admission-form .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26,35,126,0.1);
  background: white;
}
.form-declaration {
  background: #f8f9ff;
  border: 2px solid #e8eaf6;
  border-radius: 12px;
  padding: 20px;
  margin: 28px 0 24px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.6;
}
.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
}
.btn-admission-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px;
  justify-content: center;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.btn-admission-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(245,166,35,0.4);
}

/* ======================== CONTACT ======================== */
.contact-section { padding: 70px 0; background: var(--light-bg); }
.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  overflow: auto; /* clearfix */
}
.contact-info {
  float: left;
  width: 380px;
  margin-right: 35px;
  margin-bottom: 25px;
  display: flex; 
  flex-direction: column; 
  gap: 16px;
}
.contact-card {
  background: white; border-radius: 16px;
  padding: 18px 22px;
  display: flex; align-items: flex-start; gap: 16px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid transparent;
}
.contact-card:hover { transform: translateX(5px); border-left-color: var(--gold); }
.contact-card i { font-size: 1.3rem; color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.contact-card h4 { font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.contact-card p, .contact-card a {
  color: var(--text-light); font-size: 0.88rem;
  text-decoration: none; display: block; line-height: 1.7;
}
.contact-card a:hover { color: var(--gold); }
.social-links { display: flex; gap: 12px; padding-top: 8px; }
.social-btn {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem;
  text-decoration: none; transition: var(--transition);
}
.social-btn.fb   { background: #1877f2; }
.social-btn.yt   { background: #ff0000; }
.social-btn.wa   { background: #25d366; }
.social-btn.ig   { background: linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045); }
.social-btn:hover { transform: translateY(-4px) scale(1.1); }

.contact-form-wrap {
  overflow: hidden; /* contain floating */
  background: white; border-radius: 26px;
  padding: 36px 36px;
  box-shadow: var(--shadow);
}
.contact-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem; color: var(--primary-dark); margin-bottom: 28px;
  line-height: 1.25;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text); line-height: 1.55; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e8eaf6;
  border-radius: 11px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  transition: var(--transition);
  outline: none; width: 100%;
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26,35,126,0.1);
}
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; font-size: 1rem; font-weight: 700;
  padding: 15px; justify-content: center;
  border-radius: 12px; border: none;
  cursor: pointer; transition: var(--transition);
  font-family: 'Poppins', sans-serif;
  display: flex; align-items: center; gap: 8px;
}
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(26,35,126,0.3); }
.form-success {
  color: var(--green);
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.92rem;
  display: flex; align-items: center; gap: 8px;
}

/* ======================== FOOTER ======================== */
.footer { background: var(--primary-dark); color: white; }
.footer-top { padding: 50px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}
.footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.footer-logo-img { width: 50px; height: 50px; object-fit: contain; border-radius: 50%; flex-shrink: 0; }
.footer-logo h4 { font-family: 'Playfair Display', serif; font-size: 1.05rem; line-height: 1.2; }
.footer-logo span { font-size: 0.78rem; color: rgba(255,255,255,0.55); }
.footer-desc { color: rgba(255,255,255,0.62); font-size: 0.85rem; line-height: 1.7; margin-bottom: 10px; }
.footer-motto { color: var(--gold); font-size: 0.95rem; }
.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; margin-bottom: 18px;
  position: relative;
}
.footer-col h4::after {
  content:'';
  position: absolute; bottom: -9px; left: 0;
  width: 36px; height: 3px;
  background: var(--gold); border-radius: 2px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,0.6);
  text-decoration: none; font-size: 0.88rem;
  transition: var(--transition); display: inline-block;
}
.footer-col ul a:hover { color: var(--gold); padding-left: 5px; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact p {
  display: flex; align-items: flex-start; gap: 10px;
  color: rgba(255,255,255,0.62); font-size: 0.85rem;
}
.footer-contact i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { 
  font-size: 0.83rem; 
  color: rgba(255,255,255,0.45); 
  line-height: 1.5;
}
.footer-bottom .copyright {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom .footer-credit {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-top: 8px;
}
.footer-bottom .heart {
  color: #ff6b6b;
  animation: heartbeat 1.5s ease-in-out infinite;
  display: inline-block;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.1); }
  50% { transform: scale(1); }
}
.footer-bottom .footer-credit a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.footer-bottom .footer-credit a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  transition: width 0.3s ease;
}
.footer-bottom .footer-credit a:hover {
  color: var(--saffron);
  transform: translateY(-1px);
}
.footer-bottom .footer-credit a:hover::after {
  width: 100%;
}

/* Footer Social Media */
.footer-social-row {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.footer-social .social-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.social-links-footer {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.social-icon-footer {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  text-decoration: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
}
.social-icon-footer:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.social-icon-footer.fb {
  background: rgba(24, 119, 242, 0.15);
}
.social-icon-footer.fb:hover {
  background: #1877f2;
  border-color: #1877f2;
}
.social-icon-footer.ig {
  background: rgba(220, 39, 67, 0.15);
}
.social-icon-footer.ig:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: #dc2743;
}
.social-icon-footer.wa {
  background: rgba(37, 211, 102, 0.15);
}
.social-icon-footer.wa:hover {
  background: #25D366;
  border-color: #25D366;
}
.social-icon-footer.yt {
  background: rgba(255, 0, 0, 0.15);
}
.social-icon-footer.yt:hover {
  background: #FF0000;
  border-color: #FF0000;
}

/* ======================== BILINGUAL TAMIL SUPPORT ======================== */
/* Block span inside headings for Tamil subtitle */
.ta-sub {
  display: block;
  font-family: 'Noto Serif Tamil', serif;
  font-size: 0.55em;
  color: var(--gold);
  font-weight: 400;
  margin-top: 6px;
  opacity: 0.9;
  line-height: 1.6;
  letter-spacing: 0;
}
/* Tamil paragraph below English paragraph */
.ta-para {
  font-family: 'Noto Serif Tamil', serif;
  font-size: 0.87rem;
  color: var(--text-light);
  line-height: 1.95;
  margin-top: -6px;
  margin-bottom: 14px;
  border-left: 2px solid var(--gold);
  padding-left: 10px;
}
/* Small Tamil label below English text in cards/stats/points */
.ta-label {
  display: block;
  font-family: 'Noto Serif Tamil', serif;
  font-size: 0.69rem;
  opacity: 0.72;
  margin-top: 2px;
  font-weight: 400;
  line-height: 1.5;
}
/* Tamil label inside nav items */
.nav-links a .ta-label { opacity: 0.6; font-size: 0.58rem; }
/* Tamil label inside dark backgrounds */
.vm-card .ta-label,
.achievement-card .ta-label,
.facility-card .ta-label { opacity: 0.65; }

/* ─── SECTION HEADER overrides: centred, no left border ─── */
.section-header .ta-para {
  border-left: none;
  padding-left: 0;
  text-align: center;
  max-width: 600px;
  margin: 4px auto 0;
}
.section-header h2 { line-height: 1.25; }

/* ─── DARK BACKGROUND sections: white Tamil text ─── */
.vm-card .ta-para {
  color: rgba(255,255,255,0.72);
  border-left-color: rgba(245,166,35,0.55);
}
.cta-content .ta-para {
  color: rgba(255,255,255,0.78);
  border-left-color: rgba(255,255,255,0.4);
  text-align: center;
  border-left: none;
  padding-left: 0;
  max-width: 650px;
  margin: 4px auto 14px;
}
.stats-bar .ta-label { color: rgba(255,255,255,0.75); opacity: 1; }
.stream-card .ta-sub { color: rgba(255,255,255,0.85); }

/* ─── FOOTER Tamil desc (own class) ─── */
.footer-ta-desc {
  font-family: 'Noto Serif Tamil', serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.85;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 2px solid rgba(245,166,35,0.45);
}

/* ─── EXTRA FACILITIES items ─── */
.ef-item > span { line-height: 1.45; text-align: center; display: block; }
.ef-item .ta-label { font-size: 0.62rem; }

/* ─── FACILITY INFO heading ─── */
.facility-info h4 { line-height: 1.3; }

/* ─── STATS item centered column ─── */
.stat-item { display: flex; flex-direction: column; align-items: center; }

/* ─── PRINCIPAL SECTION heading ─── */
.principal-message h2 { line-height: 1.25; }

/* ─── MOBILE nav label ─── */
.mm-link .ta-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.55);
  margin-top: 1px;
  display: inline;
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1024px) {
  /* Disable floating on tablets */
  .contact-info {
    float: none;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px;
  }
  .about-image {
    float: none;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px;
  }
  .about-features-box {
    margin-top: 35px;
    padding: 22px 20px;
  }
  .principal-img {
    float: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 25px;
  }
  .nav-links a { padding: 7px 10px; font-size: 0.82rem; }
  .admission-form-wrapper { padding: 35px 30px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .contact-info { float: none; width: 100%; margin: 0 auto 25px; }
  /* Disable floating on mobile */
  .about-image {
    float: none;
    width: 100%;
    margin: 0 auto 25px;
  }
  .about-badge-float { 
    bottom: 10px; 
    left: 10px; 
    right: 10px; 
    font-size: 0.75rem; 
    padding: 12px 16px; 
  }
  .about-content p { text-align: left; }
  .about-content h3 { font-size: 1.55rem; }
  .vm-grid { grid-template-columns: 1fr; }
  .principal-img {
    float: none;
    width: 100%;
    margin: 0 auto 25px;
  }
  .principal-message { padding-top: 0; }
  .principal-message p { text-align: left; }
  .principal-badge { position: static; transform: none; display: inline-flex; margin-top: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-container { gap: 22px; padding: 0 16px; }
  .stat-num { font-size: 2rem; }
  .stat-item i { font-size: 1.8rem; }
  .cta-details { flex-direction: column; align-items: center; gap: 14px; }
  .contact-form-wrap { padding: 28px 22px; }
  .streams-section { padding: 30px 22px; }
  .streams-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  /* bilingual: reduce ta-para border on small screens */
  .ta-para { font-size: 0.83rem; }
  .vm-card .ta-para { text-align: left; }
  .principal-grid .ta-para { text-align: left; }
  .hero-badge { padding: 10px 22px; }
  .badge-en { font-size: 0.75rem; }
  .badge-ta { font-size: 0.62rem; }
  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-filter { gap: 8px; }
  .filter-btn { padding: 7px 16px; font-size: 0.78rem; }
  /* Achievements */
  .achievements-grid { grid-template-columns: 1fr; gap: 18px; }
  .achievement-card { padding: 28px 22px; }
  /* Facilities */
  .facilities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .facility-card img { height: 170px; }
  .extra-facilities { grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 22px; }
  /* Academics */
  .academics-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  /* Testimonials */
  .testimonial-card { padding: 32px 24px; }
  /* CTA section */
  .cta-content h2 { font-size: 1.7rem; }
  .cta-content p { font-size: 0.95rem; }
  /* Admission form */
  .admission-section { padding: 50px 0; }
  .admission-form-wrapper { padding: 28px 20px; border-radius: 20px; }
  .admission-form .form-row { grid-template-columns: 1fr; gap: 0; }
  .admission-form .form-section-title { font-size: 1.05rem; margin: 24px 0 14px; }
  .form-declaration { padding: 16px; }
  .checkbox-label { font-size: 0.8rem; }
  /* Lightbox */
  .lightbox img { max-width: 92vw; max-height: 70vh; }
  .lb-prev, .lb-next { width: 40px; height: 40px; font-size: 0.95rem; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-close { top: 14px; right: 14px; width: 40px; height: 40px; }
  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .footer-col ul { padding-left: 0; }
  .footer-contact { text-align: center; }
  .footer-contact p { justify-content: center; }
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-bottom .footer-credit {
    justify-content: center;
  }
  /* Ticker */
  .ticker-wrap { height: 52px; }
  .ticker-label { padding: 0 14px; font-size: 0.68rem; }
  .ticker-items span { font-size: 0.78rem; padding: 0 30px; }
  /* Section headers */
  .section-header h2 { font-size: 1.7rem; }
  .section-header p { font-size: 0.92rem; }
  /* Hero */
  .hero-title .title-gold { font-size: clamp(1.6rem, 6vw, 2.5rem); }
  .hero-title .title-white { font-size: clamp(1.2rem, 4vw, 1.8rem); }
  .hero-motto { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns a { width: 100%; justify-content: center; max-width: 280px; }
  .contact-form-wrap { padding: 22px 16px; }
  .testimonial-card { padding: 28px 18px; }
  .about-badge-float { 
    bottom: 8px; 
    left: 8px; 
    right: 8px; 
    font-size: 0.72rem; 
    padding: 10px 14px; 
    gap: 8px;
  }
  .about-features-box { 
    margin-top: 25px; 
    padding: 18px 16px;
    gap: 14px 20px;
    grid-template-columns: 1fr;
  }
  .feature-item { 
    font-size: 0.82rem; 
    padding: 6px 0; 
  }
  /* Adjust image heights for small screens */
  .img-frame img { height: 260px; }
  .principal-frame { height: 260px; }
  .section-header .ta-para { font-size: 0.80rem; }
  .ticker-wrap { height: 48px; }
  .ticker-label { padding: 0 10px; font-size: 0.62rem; }
  .ticker-items span { font-size: 0.72rem; padding: 0 22px; }
  /* Hero social for mobile */
  .hero-social .social-label {
    font-size: 0.8rem;
    text-align: center;
  }
  .hero-social .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  /* Footer social for mobile */
  .footer-social .social-label {
    font-size: 0.85rem;
    text-align: center;
  }
  .social-icon-footer {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
  /* footer text size for small screens */
  .footer-bottom .copyright,
  .footer-bottom .footer-credit {
    font-size: 0.75rem;
  }
  /* Stats */
  .stats-container { gap: 16px; }
  .stat-num { font-size: 1.7rem; }
  .stat-item i { font-size: 1.5rem; }
  .stat-item p { font-size: 0.72rem; }
  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery-item { border-radius: 10px; }
  .filter-btn { padding: 6px 12px; font-size: 0.72rem; }
  /* Facilities */
  .facilities-grid { grid-template-columns: 1fr; gap: 16px; }
  .facility-card img { height: 200px; }
  .extra-facilities { grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px; }
  .ef-item i { width: 44px; height: 44px; font-size: 1rem; }
  .ef-item span { font-size: 0.65rem; }
  /* Academics */
  .academics-grid { grid-template-columns: 1fr; gap: 16px; }
  .academic-card { padding: 22px 18px; }
  /* Streams */
  .streams-section { padding: 22px 16px; border-radius: 16px; }
  .streams-section h3 { font-size: 1.3rem; margin-bottom: 18px; }
  .streams-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stream-card { padding: 20px 14px; border-radius: 14px; }
  .stream-card i { font-size: 1.7rem; margin-bottom: 10px; }
  .stream-card h4 { font-size: 0.88rem; }
  .stream-card p { font-size: 0.72rem; }
  .stream-badge { font-size: 0.62rem; padding: 3px 10px; }
  /* Admission form */
  .admission-form-wrapper { padding: 20px 14px; border-radius: 16px; }
  .admission-form .form-section-title { font-size: 0.95rem; gap: 8px; }
  .admission-form .form-group label { font-size: 0.78rem; }
  .admission-form .form-group input,
  .admission-form .form-group select,
  .admission-form .form-group textarea { padding: 10px 12px; font-size: 0.84rem; }
  .btn-admission-submit { font-size: 0.92rem; padding: 14px; }
  .form-declaration { padding: 14px 12px; margin: 20px 0 18px; }
  .checkbox-label { font-size: 0.76rem; gap: 10px; }
  /* Contact */
  .contact-card { padding: 14px 16px; }
  .contact-card h4 { font-size: 0.88rem; }
  .contact-card p, .contact-card a { font-size: 0.82rem; }
  .contact-form h3 { font-size: 1.3rem; margin-bottom: 20px; }
  .social-links { gap: 10px; flex-wrap: wrap; }
  .social-btn { width: 40px; height: 40px; border-radius: 10px; font-size: 1rem; }
  /* Section header */
  .section-header h2 { font-size: 1.45rem; }
  .section-header p { font-size: 0.85rem; }
  .section-tag { font-size: 0.65rem; padding: 4px 14px; }
  /* VM Cards */
  .vm-card { padding: 24px 18px; border-radius: 16px; }
  .vm-card h3 { font-size: 1.15rem; }
  .vm-card p { font-size: 0.84rem; }
  .vm-icon { width: 52px; height: 52px; font-size: 1.3rem; }
  /* CTA */
  .admissions-cta { padding: 50px 0; }
  .cta-content h2 { font-size: 1.5rem; }
  .cta-content p { font-size: 0.88rem; margin-bottom: 24px; }
  .btn-cta { padding: 13px 28px; font-size: 0.88rem; }
  .cta-detail { font-size: 0.82rem; }
  /* Buttons general */
  .btn-primary, .btn-secondary, .btn-outline { padding: 11px 22px; font-size: 0.85rem; }
  /* WhatsApp float */
  .whatsapp-float { width: 50px; height: 50px; font-size: 1.4rem; }
  /* Back to top */
  .back-to-top { width: 42px; height: 42px; font-size: 0.9rem; }
}

@media (max-width: 360px) {
  .hero-title .title-gold { font-size: 1.4rem; }
  .hero-title .title-white { font-size: 1.1rem; }
  .hero-motto { font-size: 0.8rem; }
  .hero-badge { padding: 8px 14px; }
  .badge-en { font-size: 0.65rem; }
  .badge-ta { font-size: 0.55rem; }
  .stat-num { font-size: 1.5rem; }
  .stats-container { gap: 12px; }
  .streams-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .admission-form-wrapper { padding: 16px 12px; }
  .section-header h2 { font-size: 1.3rem; }
  .container { padding: 0 14px; }
}
