/* =========================================
   CRAYONS INTERNATIONAL SCHOOL
   Premium School Website Stylesheet
   ========================================= */

:root {
  --primary: #1a3a5c;
  --primary-light: #2563a8;
  --accent: #e8a020;
  --accent-dark: #c8850a;
  --text: #1a1a2e;
  --text-light: #5a6878;
  --bg: #f8f9fb;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(26,58,92,0.10);
  --shadow-lg: 0 12px 48px rgba(26,58,92,0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-hindi: 'Tiro Devanagari Hindi', serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.7;
}

body.lang-hi { font-family: var(--font-hindi), var(--font-body); }

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* PRELOADER */
#preloader {
  position: fixed; inset: 0;
  background: var(--primary);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-logo {
  font-family: var(--font-heading);
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 1px;
}
.preloader-bar {
  width: 200px; height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}
.preloader-bar span {
  display: block; height: 100%;
  background: var(--accent);
  animation: preload 1.5s ease-in-out infinite;
}
@keyframes preload {
  0% { width: 0%; margin-left: 0; }
  50% { width: 80%; margin-left: 10%; }
  100% { width: 0%; margin-left: 100%; }
}

/* TOPBAR */
.topbar {
  background: var(--primary);
  color: white;
  padding: 8px 0;
  font-size: 0.82rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-left a { color: rgba(255,255,255,0.85); }
.topbar-left a:hover { color: var(--accent); }
.topbar-left i, .topbar-right i { margin-right: 6px; color: var(--accent); }

.lang-switcher { display: flex; align-items: center; gap: 6px; }
.lang-switcher a { color: rgba(255,255,255,0.75); padding: 2px 8px; border-radius: 4px; font-weight: 500; }
.lang-switcher a.active { color: var(--accent); font-weight: 700; }
.lang-switcher span { color: rgba(255,255,255,0.3); }

.social-links { display: flex; gap: 12px; }
.social-links a { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.social-links a:hover { color: var(--accent); }

/* HEADER */
.header {
  background: white;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 20px rgba(26,58,92,0.08);
  transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-lg); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 24px;
}

.logo { display: flex; align-items: center; gap: 14px; }
.logo-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.4rem;
  flex-shrink: 0;
}
.logo-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.logo-sub { display: block; font-size: 0.72rem; color: var(--text-light); margin-top: 2px; }

/* NAV */
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block; padding: 8px 14px;
  font-size: 0.9rem; font-weight: 500; color: var(--text);
  border-radius: 8px;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active { color: var(--primary-light); background: #f0f6ff; }

.main-nav > ul > li > a i { font-size: 0.65rem; margin-left: 4px; transition: transform 0.3s; }
.main-nav > ul > li:hover > a i { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px 0;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  border: 1px solid var(--border);
  z-index: 100;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
  display: block; padding: 10px 18px;
  font-size: 0.87rem; color: var(--text);
}
.dropdown li a:hover { color: var(--primary-light); background: #f0f6ff; padding-left: 24px; }

.btn-admission {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600; font-size: 0.88rem;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(232,160,32,0.4);
}
.btn-admission:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(232,160,32,0.5); }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--primary); border-radius: 2px; transition: var(--transition); }

.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; }

/* HERO */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--primary);
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,58,92,0.92) 0%, rgba(37,99,168,0.8) 100%),
              url('../images/hero-bg.jpg') center/cover no-repeat;
}
.hero-shapes {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-shape {
  position: absolute; border-radius: 50%;
  background: rgba(232,160,32,0.06);
  animation: float 8s ease-in-out infinite;
}
.hero-shape:nth-child(1) { width: 500px; height: 500px; right: -150px; top: -100px; animation-delay: 0s; }
.hero-shape:nth-child(2) { width: 300px; height: 300px; right: 200px; bottom: -100px; animation-delay: 2s; }
.hero-shape:nth-child(3) { width: 200px; height: 200px; left: 50px; top: 100px; animation-delay: 4s; background: rgba(255,255,255,0.04); }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-20px) rotate(5deg); } }

.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,160,32,0.15);
  border: 1px solid rgba(232,160,32,0.4);
  color: var(--accent);
  padding: 7px 16px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease both;
}
.hero-badge i { font-size: 0.75rem; }

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInUp 0.9s ease 0.2s both;
}
.hero h1 .highlight { color: var(--accent); }

.hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  animation: fadeInUp 0.9s ease 0.4s both;
}

.hero-buttons {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeInUp 0.9s ease 0.6s both;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 6px 24px rgba(232,160,32,0.45);
  border: 2px solid var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(232,160,32,0.5); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); transform: translateY(-3px); }

.hero-stats {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-top: 3px solid var(--accent);
  z-index: 2;
}
.hero-stats .container { display: flex; }
.stat-item {
  flex: 1; padding: 24px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-icon { font-size: 1.6rem; color: var(--primary-light); margin-bottom: 6px; }
.stat-number { font-family: var(--font-heading); font-size: 2rem; font-weight: 900; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--text-light); margin-top: 4px; }

/* SECTIONS */
section { padding: 90px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, #e8f2ff, #f0f6ff);
  color: var(--primary-light);
  padding: 5px 18px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 14px;
  border: 1px solid rgba(37,99,168,0.2);
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; color: var(--primary);
  line-height: 1.2; margin-bottom: 16px;
}
.section-subtitle { color: var(--text-light); font-size: 1rem; max-width: 580px; margin: 0 auto; }
.section-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin: 16px 0 0;
}
.section-divider span { display: block; height: 2px; background: var(--accent); }
.section-divider span:first-child { width: 40px; }
.section-divider span:last-child { width: 40px; }
.section-divider i { color: var(--accent); font-size: 0.8rem; }

/* ABOUT PREVIEW */
.about-section { background: white; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { position: relative; }
.about-image img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-badge-float {
  position: absolute; bottom: 30px; right: -20px;
  background: var(--primary);
  color: white; padding: 18px 24px;
  border-radius: var(--radius); text-align: center;
  box-shadow: var(--shadow-lg);
}
.about-badge-float .num { font-size: 2rem; font-weight: 900; font-family: var(--font-heading); color: var(--accent); }
.about-badge-float span { font-size: 0.8rem; display: block; opacity: 0.8; }

.about-content .section-header { text-align: left; margin-bottom: 28px; }
.about-content p { color: var(--text-light); margin-bottom: 16px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.feature-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; background: var(--bg);
  border-radius: var(--radius); border-left: 3px solid var(--accent);
}
.feature-item i { color: var(--accent); font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
.feature-item h5 { font-size: 0.9rem; font-weight: 600; color: var(--primary); margin-bottom: 2px; }
.feature-item p { font-size: 0.82rem; color: var(--text-light); margin: 0; }

.btn-read-more {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary-light); font-weight: 600;
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.btn-read-more:hover { gap: 14px; color: var(--accent); }

/* COURSES */
.courses-section { background: var(--bg); }
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.course-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative; overflow: hidden;
}
.course-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,168,0.15); }
.course-card:hover::before { transform: scaleX(1); }
.course-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  background: linear-gradient(135deg, #e8f2ff, #dbeafe);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--primary-light);
}
.course-card h3 { font-family: var(--font-heading); font-size: 1rem; color: var(--primary); margin-bottom: 8px; }
.course-card p { font-size: 0.82rem; color: var(--text-light); line-height: 1.6; }

/* FACULTY */
.faculty-section { background: white; }
.faculty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.faculty-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}
.faculty-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.faculty-img {
  height: 240px; overflow: hidden;
  background: linear-gradient(135deg, #e8f2ff, #dbeafe);
  position: relative;
}
.faculty-img img { width: 100%; height: 100%; object-fit: cover; }
.faculty-img .placeholder-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: rgba(37,99,168,0.25);
}
.faculty-info { padding: 20px; }
.faculty-info h3 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--primary); margin-bottom: 4px; }
.faculty-subject { color: var(--primary-light); font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.faculty-exp { font-size: 0.8rem; color: var(--text-light); display: flex; align-items: center; justify-content: center; gap: 5px; }
.faculty-exp i { color: var(--accent); }

/* NEWS */
.news-section { background: var(--bg); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.news-card {
  background: white; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  transition: var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-img { height: 200px; overflow: hidden; background: linear-gradient(135deg, #e8f2ff, #dbeafe); position: relative; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: var(--primary);
  padding: 3px 12px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 700;
}
.news-tag.important { background: #ef4444; color: white; }
.news-body { padding: 22px; }
.news-date { font-size: 0.78rem; color: var(--text-light); margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.news-date i { color: var(--accent); }
.news-body h3 { font-family: var(--font-heading); font-size: 1.05rem; color: var(--primary); margin-bottom: 10px; line-height: 1.4; }
.news-body p { font-size: 0.85rem; color: var(--text-light); }

/* GALLERY */
.gallery-section { background: white; }
.gallery-grid { 
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 1;
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(26,58,92,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: white; font-size: 2rem; }

/* TOPPERS */
.toppers-section { background: linear-gradient(135deg, #f8f9fb, #eff6ff); }
.toppers-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.filter-btn {
  padding: 8px 22px; border-radius: 50px;
  border: 2px solid var(--border);
  background: white; color: var(--text);
  font-weight: 500; font-size: 0.87rem; cursor: pointer;
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover { border-color: var(--primary); background: var(--primary); color: white; }
.toppers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.topper-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  position: relative;
}
.topper-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.topper-rank {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  z-index: 1;
}
.rank-1 { background: linear-gradient(135deg, #ffd700, #ffaa00); }
.rank-2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #b8681c); color: white; }
.topper-img {
  width: 100%; padding-top: 100%;
  position: relative;
  background: linear-gradient(135deg, #e8f2ff, #dbeafe);
}
.topper-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.topper-img .placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: rgba(37,99,168,0.2); }
.topper-info { padding: 18px; }
.topper-info h4 { font-family: var(--font-heading); font-size: 1rem; color: var(--primary); margin-bottom: 4px; }
.topper-meta { font-size: 0.8rem; color: var(--text-light); }
.topper-score {
  display: inline-block; margin-top: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; padding: 4px 16px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 700;
}

/* ACHIEVEMENTS */
.achievements-section { background: white; }
.achievements-timeline { max-width: 900px; margin: 0 auto; position: relative; }
.achievements-timeline::before {
  content: '';
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--primary), var(--accent));
  transform: translateX(-50%);
}
.achievement-item {
  display: grid; grid-template-columns: 1fr 60px 1fr;
  gap: 0; margin-bottom: 48px; align-items: center;
}
.achievement-item:nth-child(even) .ach-content { order: 3; text-align: left; }
.achievement-item:nth-child(even) .ach-dot { order: 2; }
.achievement-item:nth-child(even) .ach-empty { order: 1; }
.achievement-item:nth-child(odd) .ach-content { order: 1; text-align: right; }
.achievement-item:nth-child(odd) .ach-dot { order: 2; }
.achievement-item:nth-child(odd) .ach-empty { order: 3; }
.ach-dot {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.2rem;
  margin: 0 auto; position: relative; z-index: 1;
  box-shadow: 0 0 0 6px white, 0 0 0 8px rgba(26,58,92,0.15);
}
.ach-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.ach-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ach-date { font-size: 0.78rem; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.ach-card h4 { font-family: var(--font-heading); font-size: 1rem; color: var(--primary); margin-bottom: 8px; }
.ach-card p { font-size: 0.83rem; color: var(--text-light); }
.ach-img { width: 100%; border-radius: 8px; margin-bottom: 12px; object-fit: cover; height: 120px; }

/* SCHOOL TOUR */
.tour-section { background: var(--bg); }
.tour-main { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 36px; }
.tour-main iframe { width: 100%; height: 450px; display: block; border: none; }
.tour-categories { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.tour-videos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tour-video-card {
  background: white; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); cursor: pointer;
}
.tour-video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tour-thumb {
  position: relative; padding-top: 56.25%;
  background: #1a1a2e;
}
.tour-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tour-thumb .play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.tour-thumb .play-btn i {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.2rem;
  transition: var(--transition);
}
.tour-video-card:hover .play-btn i { background: var(--accent); color: white; transform: scale(1.1); }
.tour-video-info { padding: 16px; }
.tour-video-info h4 { font-size: 0.95rem; color: var(--primary); font-weight: 600; margin-bottom: 4px; }
.tour-cat-tag { font-size: 0.75rem; color: var(--accent); font-weight: 600; }

/* TESTIMONIALS */
.testimonials-section { background: linear-gradient(135deg, var(--primary), var(--primary-light)); overflow: hidden; position: relative; }
.testimonials-section::before {
  content: '"';
  position: absolute; top: -40px; left: 40px;
  font-size: 30rem; color: rgba(255,255,255,0.04);
  font-family: Georgia, serif; line-height: 1;
}
.testimonials-section .section-title { color: white; }
.testimonials-section .section-subtitle { color: rgba(255,255,255,0.7); }
.testimonials-section .section-badge { background: rgba(255,255,255,0.1); color: var(--accent); border-color: rgba(255,255,255,0.2); }
.testimonials-track { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 20px; scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none; }
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  flex: 0 0 350px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 28px; scroll-snap-align: start;
}
.testimonial-stars { color: var(--accent); font-size: 0.85rem; margin-bottom: 14px; }
.testimonial-text { font-size: 0.95rem; color: rgba(255,255,255,0.88); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.testimonial-author .placeholder-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem; flex-shrink: 0;
}
.author-name { font-weight: 600; color: white; font-size: 0.9rem; }
.author-rel { font-size: 0.78rem; color: rgba(255,255,255,0.6); }

/* ADMISSION */
.admission-section { background: white; }
.admission-wrapper {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center;
}
.admission-info h2 { font-family: var(--font-heading); font-size: 2rem; color: var(--primary); margin-bottom: 16px; }
.admission-info p { color: var(--text-light); margin-bottom: 24px; }
.admission-steps { display: flex; flex-direction: column; gap: 16px; }
.step-item { display: flex; align-items: flex-start; gap: 14px; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.step-item h5 { font-size: 0.95rem; font-weight: 600; color: var(--primary); margin-bottom: 2px; }
.step-item p { font-size: 0.82rem; color: var(--text-light); }

.admission-form {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.admission-form h3 { font-family: var(--font-heading); font-size: 1.4rem; color: var(--primary); margin-bottom: 24px; text-align: center; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius); font-size: 0.9rem;
  background: white; color: var(--text);
  transition: var(--transition);
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(37,99,168,0.08); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; border: none; border-radius: 50px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: var(--transition); font-family: inherit;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,58,92,0.35); }

/* CONTACT */
.contact-section { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; }
.contact-info-cards { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.contact-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: white; border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow);
}
.contact-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, #e8f2ff, #dbeafe);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light); font-size: 1rem; flex-shrink: 0;
}
.contact-card h5 { font-size: 0.85rem; color: var(--text-light); margin-bottom: 3px; }
.contact-card p { font-size: 0.9rem; color: var(--primary); font-weight: 600; }
.contact-card a { color: var(--primary); }
.contact-card a:hover { color: var(--primary-light); }

.map-container { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.map-container iframe { width: 100%; height: 280px; border: none; display: block; }
.contact-form-section { background: white; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.contact-form-section h3 { font-family: var(--font-heading); font-size: 1.3rem; color: var(--primary); margin-bottom: 22px; }

/* RESULTS */
.results-section { background: white; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.result-card {
  background: var(--bg); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); transition: var(--transition);
  display: flex; flex-direction: column; gap: 12px;
}
.result-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.result-icon { font-size: 2.5rem; color: var(--primary-light); }
.result-info h4 { font-family: var(--font-heading); color: var(--primary); margin-bottom: 4px; }
.result-meta { font-size: 0.8rem; color: var(--text-light); }
.result-download {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--primary); color: white;
  padding: 8px 18px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 600;
  align-self: flex-start;
}
.result-download:hover { background: var(--primary-light); }

/* EVENTS */
.events-section { background: var(--bg); }
.events-list { display: flex; flex-direction: column; gap: 20px; }
.event-item {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 24px; background: white; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); transition: var(--transition);
}
.event-item:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }
.event-date-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px 10px; text-align: center;
}
.event-day { font-size: 2.5rem; font-weight: 900; color: white; line-height: 1; font-family: var(--font-heading); }
.event-month { font-size: 0.8rem; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.event-info { padding: 20px 24px 20px 0; }
.event-info h4 { font-family: var(--font-heading); color: var(--primary); margin-bottom: 6px; }
.event-info p { font-size: 0.85rem; color: var(--text-light); }
.event-meta { display: flex; gap: 18px; margin-top: 10px; }
.event-meta span { font-size: 0.8rem; color: var(--text-light); display: flex; align-items: center; gap: 5px; }
.event-meta i { color: var(--accent); }

/* FOOTER */
.footer { background: #0d2138; color: rgba(255,255,255,0.8); }
.footer-top { padding: 70px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo i { font-size: 1.8rem; color: var(--accent); }
.footer-logo span { font-family: var(--font-heading); font-size: 1.2rem; color: white; font-weight: 700; }
.footer-about p { font-size: 0.85rem; margin-bottom: 8px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 0.85rem;
}
.footer-social a:hover { background: var(--accent); color: var(--primary); }

.footer h4 { color: white; font-family: var(--font-heading); margin-bottom: 20px; font-size: 1rem; }
.footer-col ul li a { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,0.7); font-size: 0.85rem; padding: 5px 0; }
.footer-col ul li a i { color: var(--accent); font-size: 0.7rem; }
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact-info p { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; margin-bottom: 12px; }
.footer-contact-info i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.footer-contact-info a { color: rgba(255,255,255,0.7); }
.footer-contact-info a:hover { color: var(--accent); }

.footer-form { display: flex; flex-direction: column; gap: 10px; }
.footer-form input,
.footer-form select {
  width: 100%; padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; color: white;
  font-size: 0.85rem; font-family: inherit;
}
.footer-form input::placeholder { color: rgba(255,255,255,0.4); }
.footer-form select option { background: var(--primary); }
.footer-form button {
  padding: 10px; background: var(--accent); color: var(--primary);
  border: none; border-radius: 8px; font-weight: 700; cursor: pointer;
  transition: var(--transition); font-family: inherit;
}
.footer-form button:hover { background: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex; align-items: center;
  font-size: 0.82rem;
}
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom .fa-heart { color: #ef4444; }

/* FLOATING BUTTONS */
.floating-buttons {
  position: fixed; bottom: 30px; right: 24px;
  display: flex; flex-direction: column; gap: 12px;
  z-index: 1000;
}
.float-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 50px;
  font-weight: 700; font-size: 0.87rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: var(--transition); cursor: pointer;
  white-space: nowrap;
}
.float-btn span { display: none; }
.float-btn:hover { padding: 12px 22px; }
.float-btn:hover span { display: block; }
.whatsapp-btn { background: #25d366; color: white; }
.whatsapp-btn:hover { background: #1ea855; box-shadow: 0 8px 28px rgba(37,211,102,0.45); transform: translateY(-3px); }
.call-btn { background: var(--primary); color: white; }
.call-btn:hover { background: var(--primary-light); box-shadow: 0 8px 28px rgba(26,58,92,0.45); transform: translateY(-3px); }

.back-to-top {
  position: fixed; bottom: 30px; left: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: white;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transition: var(--transition); z-index: 1000;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); transform: translateY(-3px); }

/* PRINCIPAL SECTION */
.principal-section { background: linear-gradient(135deg, #f0f6ff, var(--bg)); }
.principal-grid { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; }
.principal-img-wrap { position: relative; }
.principal-img-wrap img { width: 280px; height: 340px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.principal-sign { position: absolute; bottom: -20px; right: -20px; background: var(--accent); padding: 14px 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.principal-sign h5 { color: var(--primary); font-family: var(--font-heading); font-size: 0.9rem; }
.principal-sign span { color: var(--primary); font-size: 0.75rem; opacity: 0.7; }
.principal-message { background: white; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); position: relative; }
.principal-message::before { content: '"'; font-size: 8rem; color: rgba(37,99,168,0.06); font-family: Georgia; position: absolute; top: -10px; left: 20px; line-height: 1; }
.principal-message p { color: var(--text-light); line-height: 1.9; font-size: 0.97rem; }

/* ALERT/NOTICE BAR */
.notice-bar {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary);
  padding: 12px 0; font-weight: 600; font-size: 0.9rem;
  overflow: hidden;
}
.notice-content { display: flex; align-items: center; gap: 16px; white-space: nowrap; animation: scroll-left 30s linear infinite; }
.notice-content i { color: var(--primary); }
.notice-divider { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; opacity: 0.4; flex-shrink: 0; }
@keyframes scroll-left { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 20px; right: 20px; color: white; font-size: 1.5rem; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); border-radius: 50%; }
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* FLASH MESSAGE */
.flash-message { padding: 12px 20px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 600; }
.flash-success { background: #dcfce7; color: #166534; border-left: 4px solid #22c55e; }
.flash-error { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }

/* BREADCRUMB */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 80px 0 60px;
  position: relative; overflow: hidden;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: url('../images/pattern.svg') repeat; opacity: 0.05; }
.page-hero h1 { font-family: var(--font-heading); font-size: 2.5rem; color: white; margin-bottom: 8px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb i { font-size: 0.6rem; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toppers-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  
  .topbar-left { display: none; }
  
  .main-nav {
    position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px;
    height: 100vh; background: white; z-index: 1000;
    overflow-y: auto; padding: 80px 24px 24px;
    box-shadow: var(--shadow-lg); transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  }
  .main-nav.open { right: 0; }
  .nav-overlay.open { display: block; }
  
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav > ul > li > a { border-radius: 8px; padding: 12px 16px; }
  
  .dropdown {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none;
    border: none; padding: 0 0 0 20px;
    display: none;
  }
  .has-dropdown.open .dropdown { display: block; }
  
  .menu-toggle { display: flex; }
  
  .about-grid, .admission-wrapper, .contact-grid, .principal-grid { grid-template-columns: 1fr; }
  .about-badge-float { position: static; display: inline-block; }
  .principal-img-wrap img { width: 100%; height: 260px; }
  
  .hero-stats .container { flex-wrap: wrap; }
  .stat-item { flex: 0 0 50%; border-bottom: 1px solid var(--border); }
  
  .about-features { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  
  .achievements-timeline::before { display: none; }
  .achievement-item { grid-template-columns: 1fr; }
  .achievement-item:nth-child(even) .ach-content,
  .achievement-item:nth-child(odd) .ach-content { order: 1; text-align: left; }
  .ach-dot { display: none; }
  .ach-empty { display: none; }
  
  .footer-grid { grid-template-columns: 1fr; }
  
  .toppers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-buttons { flex-direction: column; }
  .btn-primary, .btn-outline { text-align: center; }
  .stat-item { flex: 0 0 100%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .toppers-grid { grid-template-columns: 1fr 1fr; }
  .event-item { grid-template-columns: 80px 1fr; }
}

/* =============================================
   MOBILE FIXES — HERO + BUTTONS + LAYOUT
   ============================================= */

/* Tablet */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    padding: 90px 0 200px;
    align-items: flex-start;
  }
  .hero .container { padding: 0 18px; }
  .hero-buttons { flex-direction: column; gap: 12px; }
  .btn-primary, .btn-outline { text-align: center; width: 100%; display: block; }
  .btn-admission { padding: 9px 14px; font-size: 0.82rem; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-stats .container { flex-wrap: wrap; }
  .stat-item { flex: 0 0 50%; }
}

/* Mobile Phone */
@media (max-width: 480px) {
  .hero {
    min-height: 100vh;
    padding: 95px 0 230px;
    align-items: flex-start;
  }
  .hero .container { padding: 0 16px; }
  .hero-content { width: 100%; max-width: 100%; }
  .hero-badge {
    font-size: 0.72rem !important;
    padding: 5px 10px !important;
    margin-bottom: 14px;
    white-space: normal;
  }
  .hero h1 {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
    margin-bottom: 12px;
  }
  .hero-sub {
    font-size: 0.88rem !important;
    margin-bottom: 20px;
    line-height: 1.6;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .btn-primary, .btn-outline {
    display: block;
    width: 100%;
    text-align: center;
    padding: 13px 18px;
    font-size: 0.92rem;
  }
  .hero-stats {
    position: relative;
    bottom: auto;
  }
  .hero-stats .container { flex-wrap: wrap; }
  .stat-item {
    flex: 0 0 50% !important;
    padding: 14px 8px;
    border-bottom: 1px solid var(--border);
  }
  .stat-number { font-size: 1.5rem; }
  .stat-label { font-size: 0.7rem; }
  .stat-icon { font-size: 1.2rem; }

  /* Apply / Admission button */
  .btn-admission {
    padding: 8px 14px !important;
    font-size: 0.8rem !important;
    white-space: nowrap;
  }
  .btn-submit {
    width: 100%;
    font-size: 0.95rem;
  }

  section { padding: 48px 0; }
  .section-title { font-size: 1.55rem; }
  .courses-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .course-card { padding: 18px 12px; }
  .faculty-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .news-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .toppers-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .event-item { grid-template-columns: 72px 1fr; }
  .event-day { font-size: 1.8rem; }
  .testimonial-card { flex: 0 0 290px; }
  .footer-grid { grid-template-columns: 1fr; }
  .floating-buttons { bottom: 14px; right: 10px; gap: 8px; }
  .float-btn { padding: 10px 13px; font-size: 0.8rem; }
  .page-hero { padding: 55px 0 36px; }
  .page-hero h1 { font-size: 1.7rem; }
  .admission-form { padding: 22px 14px; }
  .form-row { grid-template-columns: 1fr; }
  .toppers-filters { gap: 6px; }
  .filter-btn { padding: 6px 14px; font-size: 0.8rem; }
  .logo-name { font-size: 0.9rem; }
  .logo-sub { font-size: 0.62rem; }
}

/* Very small screens */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.45rem !important; }
  .courses-grid { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: 1fr; }
  .stat-item { flex: 0 0 50% !important; }
}
