/*
================================================================
  PREMIUM GIRLS HIGHER SECONDARY SCHOOL WEBSITE - DESIGN SYSTEM
  Fonts: Cinzel (Heading), Poppins (Body)
  Colors: Sky Blue, Deep Blue, White, Success Green
================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Marcellus&family=Nunito+Sans:wght@300;400;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #4FC3F7;
  --primary-rgb: 79, 195, 247;
  --primary-dark: #29B6F6;
  --accent: #1565C0;
  --accent-rgb: 21, 101, 192;
  --accent-light: #1E88E5;
  --secondary: #FFFFFF;
  --secondary-rgb: 255, 255, 255;
  --bg: #F5FBFF;
  --text: #1F2937;
  --text-muted: #4B5563;
  --text-light: #9CA3AF;
  --success: #22C55E;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --shadow-sm: 0 4px 6px -1px rgba(21, 101, 192, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(21, 101, 192, 0.08), 0 4px 6px -2px rgba(21, 101, 192, 0.04);
  --shadow-lg: 0 20px 40px -5px rgba(21, 101, 192, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Poppins', 'Nunito Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #EBF7FF;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--border-radius-sm);
  border: 2px solid #EBF7FF;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-light);
}

/* Typography & Headers */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.subheading-font {
  font-family: 'Marcellus', serif;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 10;
}

.section-tag {
  display: inline-block;
  font-family: 'Marcellus', serif;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(79, 195, 247, 0.15);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  border: 1px solid rgba(79, 195, 247, 0.3);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 195, 247, 0.6);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-light) 100%);
  color: var(--secondary);
  box-shadow: 0 6px 20px rgba(79, 195, 247, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  border-radius: 50px;
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(21, 101, 192, 0.4);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: var(--secondary);
  color: var(--accent);
  border: 1px solid rgba(21, 101, 192, 0.2);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--primary);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: var(--secondary);
  box-shadow: 0 6px 20px rgba(21, 101, 192, 0.25);
}

.btn-accent:hover {
  background: #0d47a1;
  box-shadow: 0 8px 25px rgba(13, 71, 161, 0.4);
  transform: translateY(-2px);
}

/* Animations & Keyframes */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse-slow {
  0% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.5; }
  100% { transform: scale(1); opacity: 0.3; }
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 0.4; }
  100% { transform: scale(1.3); opacity: 0; }
}

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

.page-entrance {
  animation: pageTransition 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Background Floating Elements */
.bg-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.decor-shape {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 195, 247, 0.2) 0%, rgba(21, 101, 192, 0) 70%);
  filter: blur(40px);
}

.decor-shape-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  animation: pulse-slow 15s infinite ease-in-out;
}

.decor-shape-2 {
  width: 500px;
  height: 500px;
  bottom: 10%;
  left: -200px;
  animation: pulse-slow 12s infinite ease-in-out 2s;
}

.decor-shape-3 {
  width: 400px;
  height: 400px;
  top: 40%;
  right: -150px;
  animation: pulse-slow 18s infinite ease-in-out 1s;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 1000;
  transition: var(--transition-smooth);
  background: #ffffff;
  border-bottom: 1px solid rgba(79, 195, 247, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

header.scrolled {
  height: 80px;
  background: #ffffff;
  border-bottom: 1px solid rgba(79, 195, 247, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* Inner Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.school-logo {
  height: 55px;
  width: 55px;
  border-radius: 50%;
  background: var(--secondary);
  padding: 3px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

header.scrolled .school-logo {
  height: 50px;
  width: 50px;
}

.school-name-wrapper {
  display: flex;
  flex-direction: column;
}

.school-name {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.school-tagline {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 0.2rem;
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent);
  font-weight: 600;
}

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

/* Mobile Menu Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1002;
  background: transparent;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--accent);
  border-radius: 3px;
  transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  padding-top: 90px;
  background: linear-gradient(135deg, rgba(235, 247, 255, 0.9) 0%, rgba(255, 255, 255, 0.85) 100%);
  z-index: 1;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: saturate(1.2);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(79, 195, 247, 0.12) 0%, rgba(21, 101, 192, 0.05) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 5;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(21, 101, 192, 0.08);
  border: 1px solid rgba(21, 101, 192, 0.15);
  color: var(--accent);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.hero-tag span {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: relative;
}

.hero-tag span::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  animation: pulse-ring 1.5s infinite ease-in-out;
}

.hero-headline {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-headline span {
  color: var(--primary-dark);
  position: relative;
  background: linear-gradient(120deg, var(--accent) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-weight: 400;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
}

.hero-stats-grid {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(21, 101, 192, 0.1);
  padding-top: 1.5rem;
  max-width: 580px;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
}

.hero-stat-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-card {
  width: 100%;
  max-width: 460px;
  border-radius: var(--border-radius-lg);
  border: 8px solid var(--secondary);
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: var(--transition-smooth);
  overflow: hidden;
  background: #EBF7FF;
}

.hero-image-card:hover {
  transform: rotate(0deg) scale(1.02);
}

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

.hero-blob {
  position: absolute;
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, rgba(79, 195, 247, 0.25) 0%, rgba(21, 101, 192, 0.03) 70%);
  z-index: -1;
  filter: blur(20px);
  animation: float 6s ease-in-out infinite;
}

.hero-floating-badge {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background: var(--secondary);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
  border: 1px solid rgba(79, 195, 247, 0.25);
  animation: float 5s ease-in-out infinite alternate;
}

.hero-floating-badge .badge-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(79, 195, 247, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.3rem;
}

.hero-floating-badge .badge-title {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

.hero-floating-badge .badge-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 5;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: 100%;
  height: 80px;
}

.wave-divider .shape-fill {
  fill: var(--bg);
}

/* Sections Global */
section {
  padding: 7rem 0;
  position: relative;
  z-index: 1;
}

/* Welcome Section */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.welcome-images {
  position: relative;
}

.welcome-img-main {
  width: 85%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--secondary);
  background: #EBF7FF;
}

.welcome-img-sub {
  position: absolute;
  width: 55%;
  bottom: -30px;
  right: 0;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--secondary);
  background: #EBF7FF;
}

.welcome-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.welcome-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

.welcome-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.highlight-icon {
  width: 40px;
  height: 40px;
  background: rgba(79, 195, 247, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
}

.highlight-title {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Leadership Section */
.leadership-section {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(235, 247, 255, 0.6) 100%);
}

.leadership-container {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.leadership-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem;
}

.leadership-card.reverse {
  grid-template-columns: 1.2fr 0.8fr;
}

.leader-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.leader-image-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--secondary);
  background: #EBF7FF;
}

.leader-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.leader-image-frame:hover img {
  transform: scale(1.05);
}

.leader-badge {
  position: absolute;
  bottom: -20px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--secondary);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-family: 'Marcellus', serif;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--secondary);
}

.leader-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.leader-quote-icon {
  font-size: 3rem;
  color: rgba(79, 195, 247, 0.4);
  line-height: 1;
  margin-bottom: 1rem;
}

.leader-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.leader-designation {
  font-family: 'Marcellus', serif;
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.leader-message {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid var(--primary);
}

.leader-signature {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 1rem;
}

/* Why Choose Section */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-card {
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.why-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.15) 0%, rgba(21, 101, 192, 0.05) 100%);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem;
  border: 1px solid rgba(79, 195, 247, 0.2);
  transition: var(--transition-smooth);
}

.why-card:hover .why-icon {
  background: var(--accent);
  color: var(--secondary);
  transform: scale(1.1);
}

.why-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Statistics Section */
.stats-section {
  background: linear-gradient(135deg, var(--accent) 0%, #0d47a1 100%);
  color: var(--secondary);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
  z-index: 5;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: 'Cinzel', serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
}

.stat-title {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #EBF7FF;
}

.news-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.news-card:hover .news-img-wrapper img {
  transform: scale(1.05);
}

.news-date-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--secondary);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--primary);
}

.news-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: var(--accent);
  transition: var(--transition-fast);
}

.news-title:hover {
  color: var(--primary-dark);
}

.news-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.news-link {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-link:hover {
  color: var(--primary-dark);
}

/* Upcoming Events Timeline */
.events-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.events-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 120px;
  width: 2px;
  background: rgba(79, 195, 247, 0.3);
}

.timeline-event {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-event:last-child {
  margin-bottom: 0;
}

.event-date-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-day {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.event-month {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 1px;
}

.event-node {
  position: absolute;
  left: 121px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--secondary);
  border: 3px solid var(--primary);
  z-index: 5;
  box-shadow: 0 0 0 4px rgba(79, 195, 247, 0.2);
  transition: var(--transition-fast);
}

.timeline-event:hover .event-node {
  background: var(--accent);
  border-color: var(--secondary);
  box-shadow: 0 0 0 6px rgba(21, 101, 192, 0.2);
}

.event-details-card {
  padding: 2rem;
}

.event-details-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.event-meta-info {
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.event-meta-info span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.event-meta-info i {
  color: var(--primary-dark);
}

/* Testimonials Carousel */
.testimonial-section {
  background: linear-gradient(180deg, rgba(235, 247, 255, 0.4) 0%, var(--bg) 100%);
  overflow: hidden;
}

.carousel-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 0 3rem;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  padding: 2rem 1rem;
}

.testimonial-card {
  text-align: center;
  padding: 3rem;
}

.testimonial-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--secondary);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  background: #EBF7FF;
}

.testimonial-stars {
  color: #FFB300;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.testimonial-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--primary-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
  z-index: 10;
  border: 1px solid rgba(79, 195, 247, 0.15);
}

.carousel-btn:hover {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: var(--shadow-lg);
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(21, 101, 192, 0.2);
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-dot.active {
  background: var(--accent);
  width: 25px;
  border-radius: 10px;
}

/* Call to Action */
.cta-section {
  padding: 8rem 0;
}

.cta-box {
  padding: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, var(--accent) 0%, #0d47a1 100%);
  color: var(--secondary);
  box-shadow: var(--shadow-lg);
}

.cta-box .bg-decorations .decor-shape-1 {
  background: radial-gradient(circle, rgba(79, 195, 247, 0.3) 0%, transparent 70%);
}

.cta-box h2 {
  color: var(--secondary);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 5;
}

.cta-box p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
  position: relative;
  z-index: 5;
}

.cta-box .btn {
  position: relative;
  z-index: 5;
}

/* Inner Page Header */
.inner-hero {
  position: relative;
  height: 350px;
  background: linear-gradient(135deg, rgba(21, 101, 192, 0.95) 0%, rgba(13, 71, 161, 0.9) 100%);
  color: var(--secondary);
  display: flex;
  align-items: center;
  padding-top: 90px;
  overflow: hidden;
}

.inner-hero-content {
  position: relative;
  z-index: 5;
}

.inner-hero h1 {
  color: var(--secondary);
  font-size: 3rem;
  margin-bottom: 0.8rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.breadcrumb-separator {
  opacity: 0.5;
}

.breadcrumb-active {
  color: var(--primary);
  font-weight: 500;
}

/* About Page History Timeline */
.history-timeline {
  position: relative;
  padding: 3rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.history-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: rgba(79, 195, 247, 0.3);
}

.history-item {
  display: flex;
  justify-content: flex-end;
  position: relative;
  margin-bottom: 4rem;
  width: 50%;
  padding-right: 3rem;
}

.history-item.left {
  align-self: flex-start;
}

.history-item.right {
  align-self: flex-end;
  justify-content: flex-start;
  width: 100%;
  padding-left: 50%;
  padding-right: 0;
}

.history-item.right .history-content-card {
  margin-left: 3rem;
}

.history-node {
  position: absolute;
  right: -8px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--secondary);
  border: 4px solid var(--accent);
  z-index: 10;
  box-shadow: 0 0 0 4px rgba(79, 195, 247, 0.3);
}

.history-item.right .history-node {
  left: 50%;
  transform: translateX(-50%);
  right: auto;
}



.history-content-card {
  padding: 2rem;
}

.history-year {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.history-content-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}

.history-content-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* About Identity Grid */
.identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.identity-card {
  padding: 3rem;
  height: 100%;
}

.identity-card h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.identity-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.identity-card ul {
  list-style: none;
}

.identity-card li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.identity-card li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary-dark);
}

/* Admissions Steps */
.admissions-steps-wrapper {
  margin-bottom: 5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.admissions-steps {
  display: flex;
  justify-content: space-between;
  min-width: 900px;
  position: relative;
  padding: 2rem 0;
}

.admissions-steps::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 50px;
  right: 50px;
  height: 3px;
  background: rgba(79, 195, 247, 0.25);
  z-index: 1;
}

.step-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 5;
  padding: 0 1rem;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--accent);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 6px rgba(79, 195, 247, 0.15);
  transition: var(--transition-smooth);
}

.step-card:hover .step-number {
  background: var(--accent);
  color: var(--secondary);
  border-color: var(--secondary);
  box-shadow: 0 0 0 8px rgba(21, 101, 192, 0.2);
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Tabular fee layouts */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  background: var(--secondary);
  margin-bottom: 2rem;
}

.school-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.school-table th {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--secondary);
  font-family: 'Cinzel', serif;
  padding: 1.2rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.school-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(79, 195, 247, 0.1);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.school-table tr:last-child td {
  border-bottom: none;
}

.school-table tr:nth-child(even) {
  background: rgba(79, 195, 247, 0.03);
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: var(--border-radius-md) !important;
  overflow: hidden;
}

.faq-header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
}

.faq-header h3 {
  font-size: 1.05rem;
  color: var(--accent);
  transition: var(--transition-fast);
}

.faq-icon-box {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(79, 195, 247, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: var(--transition-smooth);
}

.faq-item.active .faq-icon-box {
  background: var(--accent);
  color: var(--secondary);
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.4);
}

.faq-content-inner {
  padding: 0 2rem 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(79, 195, 247, 0.08);
  padding-top: 1.5rem;
}

/* Academics Departments */
.departments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.dept-card {
  padding: 2.5rem;
  text-align: center;
}

.dept-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(79, 195, 247, 0.15);
  color: var(--accent);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 1px solid rgba(79, 195, 247, 0.25);
  transition: var(--transition-smooth);
}

.dept-card:hover .dept-icon {
  background: var(--accent);
  color: var(--secondary);
  transform: scale(1.08);
}

.dept-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.dept-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Donation Page Elements */
.donation-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
}

.donation-progress-card {
  padding: 3rem;
  margin-bottom: 2rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.progress-goal {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.progress-raised {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.progress-bar-container {
  height: 12px;
  background: rgba(79, 195, 247, 0.15);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent-light));
  width: 65%; /* Hardcoded initial percentage */
  border-radius: 10px;
  transition: width 1s ease-in-out;
}

.donor-count-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(79, 195, 247, 0.15);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  display: inline-block;
}

.donation-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.donate-amount-card {
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.5);
  transition: var(--transition-fast);
}

.donate-amount-card:hover, .donate-amount-card.active {
  border-color: var(--primary);
  background: rgba(79, 195, 247, 0.1);
  transform: translateY(-2px);
}

.donate-custom-input-wrapper {
  margin-bottom: 2rem;
  position: relative;
}

.donate-custom-input {
  width: 100%;
  padding: 1.2rem 1.5rem 1.2rem 3rem;
  border-radius: var(--border-radius-md);
  border: 2px solid var(--glass-border);
  background: var(--secondary);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition-fast);
}

.donate-custom-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.15);
}

.currency-symbol {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
}

.donation-trust-section {
  display: flex;
  justify-content: space-around;
  margin-top: 3rem;
  border-top: 1px solid rgba(79, 195, 247, 0.15);
  padding-top: 2rem;
}

.trust-badge {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.trust-badge i {
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  display: block;
}

/* Gallery Masonry Layout */
.gallery-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3rem;
  list-style: none;
}

.filter-tab {
  padding: 0.6rem 1.5rem;
  background: var(--secondary);
  border: 1px solid rgba(21, 101, 192, 0.15);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.filter-tab:hover, .filter-tab.active {
  background: var(--accent);
  color: var(--secondary);
  border-color: var(--accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  transition: var(--transition-smooth);
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 4px solid var(--secondary);
  background: #EBF7FF;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(21, 101, 192, 0) 40%, rgba(21, 101, 192, 0.8) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--secondary);
}

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

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.gallery-item-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1px;
  font-weight: 600;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 71, 161, 0.95);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--border-radius-sm);
  border: 4px solid var(--secondary);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.lightbox-caption {
  color: var(--secondary);
  margin-top: 1rem;
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: var(--secondary);
  font-size: 2.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--primary);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary);
  font-size: 3rem;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.lightbox-arrow:hover {
  color: var(--primary);
}

.lightbox-arrow.prev {
  left: -80px;
}

.lightbox-arrow.next {
  right: -80px;
}

/* Contact Page Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-info-item {
  display: flex;
  gap: 1.5rem;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-sm);
  background: rgba(79, 195, 247, 0.15);
  color: var(--accent);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(79, 195, 247, 0.25);
}

.contact-info-details h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.contact-info-details p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.contact-form-card {
  padding: 3rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(21, 101, 192, 0.15);
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  background: var(--secondary);
  box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Emergency Banner */
.emergency-banner {
  background: #FFF3F3;
  border: 1px solid #FFCDCD;
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2rem;
}

.emergency-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #FFE5E5;
  color: #D32F2F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.emergency-text h4 {
  color: #D32F2F;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

/* Info Banner */
.info-banner {
  background: rgba(79, 195, 247, 0.05);
  border: 1px solid rgba(79, 195, 247, 0.2);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2rem;
}

.info-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(79, 195, 247, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-text h4 {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  font-family: 'Cinzel', serif;
  font-weight: 700;
}

.emergency-text p {
  font-size: 0.85rem;
  color: #5C6266;
}

/* Styled Map Container */
.map-container {
  height: 400px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 6px solid var(--secondary);
  margin-top: 4rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer styling */
footer {
  background: linear-gradient(135deg, #0a2d57 0%, #061c36 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: 6rem 0 2rem;
  font-size: 0.9rem;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h3 {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-bottom: 1.8rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.footer-logo {
  height: 50px;
  width: 50px;
  background: var(--secondary);
  padding: 2px;
  border-radius: 50%;
}

.footer-school-name {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.2;
}

.footer-intro {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(79, 195, 247, 0.3);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--primary);
  transition: var(--transition-fast);
}

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

.footer-contact-info li {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.footer-contact-info i {
  color: var(--primary);
  font-size: 1rem;
  margin-top: 0.2rem;
}

.newsletter-form {
  display: flex;
  margin-top: 1rem;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.newsletter-input {
  flex-grow: 1;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
  color: var(--secondary);
}

.newsletter-input:focus {
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
  background: var(--primary);
  color: var(--accent);
  padding: 0 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
  font-weight: 600;
}

.newsletter-btn:hover {
  background: var(--secondary);
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* Scroll Reveal classes */
.reveal {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-scale {
  transform: scale(0.95);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: -60px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  z-index: 999;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-to-top:hover {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
  right: 30px;
}

/* Page Loader styling */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(79, 195, 247, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-headline {
    font-size: 2.8rem;
  }
  .welcome-grid, .leadership-card, .leadership-card.reverse, .contact-grid, .donation-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .leadership-card.reverse .leader-image-wrapper {
    order: 0;
  }
  .why-grid, .news-grid, .departments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .history-timeline::before {
    left: 30px;
  }
  .history-item {
    width: 100% !important;
    padding-left: 60px !important;
    padding-right: 0 !important;
    justify-content: flex-start !important;
  }
  .history-node {
    left: 30px !important;
    transform: translateX(-50%) !important;
  }
  .history-content-card {
    margin-left: 0 !important;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  header {
    height: 80px;
  }
  .navbar {
    padding: 0 1rem;
  }
  .hamburger {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: var(--transition-smooth);
    z-index: 1001;
    padding: 2rem;
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-link {
    font-size: 1.1rem;
  }
  .nav-cta {
    display: none; /* Hide Apply button in mobile header, display in menu instead if needed */
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-headline {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    margin: 0 auto 2rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-visual {
    margin-top: 2rem;
  }
  .why-grid, .news-grid, .departments-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline-event {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-left: 40px;
  }
  .events-timeline::before {
    left: 15px;
  }
  .event-node {
    left: 16px;
  }
  .event-date-side {
    text-align: left;
  }
  .leadership-card {
    padding: 1.5rem;
  }
  .cta-box {
    padding: 3rem 1.5rem;
  }
  .cta-box h2 {
    font-size: 2rem;
  }
  .identity-grid {
    grid-template-columns: 1fr;
  }
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .lightbox-arrow {
    font-size: 2rem;
  }
  .lightbox-arrow.prev {
    left: -40px;
  }
  .lightbox-arrow.next {
    right: -40px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ================================================================
  11. Public Examination Results Section
================================================================ */
.results-section {
  padding: 6rem 0;
  background-color: var(--bg);
  position: relative;
  overflow: hidden;
}

.results-tab-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 5;
}

.results-tab-switcher {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.5rem;
  border-radius: 50px;
  display: inline-flex;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.results-tab-btn {
  padding: 0.8rem 2rem;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50px;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.results-tab-btn.active {
  background: var(--accent);
  color: var(--secondary);
  box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
}

.results-tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.results-tab-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.results-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.progress-circle-card {
  padding: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.progress-circle-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 1.5rem;
}

.progress-circle-wrapper svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.progress-circle-bg {
  fill: none;
  stroke: rgba(79, 195, 247, 0.1);
  stroke-width: 12px;
}

.progress-circle-bar {
  fill: none;
  stroke: url(#progressGradient);
  stroke-width: 12px;
  stroke-linecap: round;
  stroke-dasharray: 565.48; /* 2 * PI * r (r=90) */
  stroke-dashoffset: 565.48;
  transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-circle-num {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.progress-circle-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stats-vertical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.results-stat-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.results-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 195, 247, 0.4);
}

.results-stat-icon {
  width: 50px;
  height: 50px;
  background: rgba(79, 195, 247, 0.15);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.results-stat-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.results-stat-lbl {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.results-stat-details {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Toppers Podium & Cards styling */
.toppers-section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.toppers-section-title h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.toppers-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 2rem;
  align-items: flex-end; /* To form a visual podium */
  max-width: 1000px;
  margin: 0 auto;
}

.topper-card-item {
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
  border: 1px solid var(--glass-border);
}

.topper-card-item.rank-1 {
  order: 2; /* Middle in display grid */
  padding: 3rem 2rem;
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 15px 30px rgba(255, 215, 0, 0.1), var(--shadow-md);
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.03) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.topper-card-item.rank-2 {
  order: 1; /* Left in display grid */
  border-color: rgba(192, 192, 192, 0.3);
  box-shadow: 0 10px 25px rgba(192, 192, 192, 0.08), var(--shadow-md);
  background: linear-gradient(180deg, rgba(192, 192, 192, 0.02) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.topper-card-item.rank-3 {
  order: 3; /* Right in display grid */
  border-color: rgba(205, 127, 50, 0.3);
  box-shadow: 0 10px 25px rgba(205, 127, 50, 0.08), var(--shadow-md);
  background: linear-gradient(180deg, rgba(205, 127, 50, 0.02) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.topper-card-item:hover {
  transform: translateY(-8px);
}

.topper-card-item.rank-1:hover {
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.18), var(--shadow-lg);
}

.topper-rank-badge {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.topper-card-item.rank-1 .topper-rank-badge {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: white;
}

.topper-card-item.rank-2 .topper-rank-badge {
  background: linear-gradient(135deg, #E0E0E0 0%, #9E9E9E 100%);
  color: white;
}

.topper-card-item.rank-3 .topper-rank-badge {
  background: linear-gradient(135deg, #D7A15C 0%, #A05A2C 100%);
  color: white;
}

.topper-avatar-wrapper {
  width: 90px;
  height: 90px;
  margin: 0.5rem auto 1.5rem;
  position: relative;
}

.topper-card-item.rank-1 .topper-avatar-wrapper {
  width: 105px;
  height: 105px;
}

.topper-avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.15);
  border: 3px solid white;
}

.topper-card-item.rank-1 .topper-avatar-initials {
  background: linear-gradient(135deg, #FFE082 0%, #FFB300 100%);
  font-size: 2.2rem;
  border-color: #FFD700;
}

.topper-card-item.rank-2 .topper-avatar-initials {
  background: linear-gradient(135deg, #CFD8DC 0%, #78909C 100%);
  border-color: #C0C0C0;
}

.topper-card-item.rank-3 .topper-avatar-initials {
  background: linear-gradient(135deg, #FFE0B2 0%, #B5651D 100%);
  border-color: #CD7F32;
}

.topper-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.topper-card-item.rank-1 .topper-name {
  font-size: 1.3rem;
}

.topper-marks {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.topper-marks span {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

.topper-rank-label {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.topper-card-item.rank-1 .topper-rank-label {
  color: #D4AF37;
}

.topper-card-item.rank-2 .topper-rank-label {
  color: #7A7A7A;
}

.topper-card-item.rank-3 .topper-rank-label {
  color: #CD7F32;
}

/* Ties side by side grid layout */
.toppers-grid-tie {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

/* Responsiveness for Results Section */
@media (max-width: 992px) {
  .results-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .toppers-grid {
    grid-template-columns: 1fr !important;
    align-items: stretch;
    max-width: 450px;
  }
  .topper-card-item.rank-1 {
    order: 1; /* Standard top-to-bottom layout on mobile */
    padding: 2.5rem 2rem;
  }
  .topper-card-item.rank-2 {
    order: 2;
  }
  .topper-card-item.rank-3 {
    order: 3;
  }
  .topper-avatar-wrapper, .topper-card-item.rank-1 .topper-avatar-wrapper {
    width: 90px;
    height: 90px;
  }
  .topper-card-item.rank-1 .topper-avatar-initials {
    font-size: 1.8rem;
  }
  .toppers-grid-tie {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .stats-vertical-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

