/* ==========================================
   Design System & Styling - Aryan Public School
   ========================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* CSS Variables */
:root {
  --primary: #0f2c59;          /* Deep Navy Blue */
  --primary-light: #0088cc;    /* Sky Blue (inspired by logo border) */
  --primary-dark: #07152b;     /* Very Dark Navy */
  --accent: #f37021;           /* Sunset Orange (inspired by logo figures) */
  --accent-hover: #d35400;     /* Deep Orange */
  --accent-light: #fff3eb;     /* Soft Light Orange Cream */
  --text-dark: #1e293b;        /* Charcoal for main text */
  --text-muted: #64748b;       /* Muted gray for subtitles */
  --text-light: #f8fafc;       /* White/slate-50 for dark bg */
  --bg-light: #f8fafc;         /* Light page background */
  --bg-white: #ffffff;         /* Pure white for cards */
  --bg-gray: #f1f5f9;          /* Section backgrounds */
  --shadow-sm: 0 2px 4px rgba(15, 44, 89, 0.05);
  --shadow-md: 0 10px 20px rgba(15, 44, 89, 0.06), 0 2px 6px rgba(15, 44, 89, 0.04);
  --shadow-lg: 0 20px 40px rgba(15, 44, 89, 0.08), 0 4px 12px rgba(15, 44, 89, 0.04);
  --shadow-gold: 0 10px 20px rgba(243, 112, 33, 0.15);
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 24px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --header-height: 80px;
}

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-light);
  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);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

.font-serif {
  font-family: var(--font-serif);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
}

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

.btn-accent {
  background-color: var(--accent);
  color: var(--primary-dark);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-outline-white {
  border-color: var(--text-light);
  color: var(--text-light);
  background: transparent;
}

.btn-outline-white:hover {
  background-color: var(--text-light);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(15, 44, 89, 0.08);
  transition: var(--transition);
}

header.scrolled {
  height: 70px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-link img {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

header.scrolled .logo-link img {
  height: 44px;
}

.school-title {
  display: flex;
  flex-direction: column;
}

.school-title .main-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.school-title .tag-name {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: -2px;
}

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

.nav-item a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  position: relative;
  padding: 6px 0;
}

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

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

.nav-item.active a {
  color: var(--accent-hover);
}

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

.hamburger span {
  width: 100%;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(7, 21, 43, 0.75), rgba(15, 44, 89, 0.85)), 
              url('../assets/images/school_building.png') no-repeat center center/cover;
  color: var(--text-light);
  text-align: center;
}

.hero-content {
  max-width: 900px;
  padding: 2rem 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #ffffff;
  line-height: 1.2;
}

.hero-desc {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Sections General */
section {
  padding: 6rem 1.5rem;
}

.bg-gray {
  background-color: var(--bg-gray);
}

.bg-primary-dark {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.bg-primary-dark .section-title {
  color: var(--text-light);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.bg-primary-dark .section-desc {
  color: rgba(255, 255, 255, 0.8);
}

/* Stats Counter Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-card {
  background-color: var(--bg-white);
  padding: 3rem 1.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 4px solid var(--accent);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1;
}

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

/* Leadership Messages */
.leadership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

.leader-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  border: 1px solid rgba(15, 44, 89, 0.05);
}

.leader-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.leader-image-wrapper {
  position: relative;
  height: 380px;
  overflow: hidden;
  background-color: var(--bg-gray);
}

.leader-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: var(--transition);
}

.leader-card:hover .leader-image-wrapper img {
  transform: scale(1.04);
}

.leader-info {
  padding: 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.leader-role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.leader-name {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.leader-msg {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.7;
}

/* Core Values / Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background-color: var(--bg-white);
  padding: 3rem 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(15, 44, 89, 0.04);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
  transition: var(--transition);
}

.feature-card:hover::before {
  width: 8px;
  background-color: var(--accent);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(15, 44, 89, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  color: var(--primary);
  font-size: 1.5rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon-box {
  background-color: var(--primary);
  color: var(--text-light);
}

.feature-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Footer Section */
footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding-top: 5rem;
  padding-bottom: 2rem;
  border-top: 5px solid var(--accent);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .footer-logo-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.footer-brand img {
  height: 55px;
}

.footer-brand .footer-school-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-light);
}

.footer-brand .footer-school-tag {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 1.75rem;
  position: relative;
  padding-bottom: 10px;
}

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

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-copyright {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer-copyright-left span {
  display: block;
  margin-bottom: 4px;
}

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

.footer-meta span {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding-right: 1.5rem;
}

.footer-meta span:last-child {
  border-right: none;
  padding-right: 0;
}

/* ==========================================
   Inner Page Layouts
   ========================================== */

/* Subpage Hero Banner */
.page-banner {
  height: 380px;
  padding-top: var(--header-height);
  background: linear-gradient(rgba(7, 21, 43, 0.8), rgba(15, 44, 89, 0.9)), 
              url('../assets/images/school_building.png') no-repeat center center/cover;
  display: flex;
  align-items: center;
  color: var(--text-light);
}

.banner-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
}

.banner-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.banner-breadcrumbs {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.banner-breadcrumbs a:hover {
  color: var(--accent);
}

.banner-breadcrumbs span {
  color: var(--accent);
}

/* Split Content Grid (Text on one side, Image on other) */
.split-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}

.split-grid.reverse {
  grid-template-columns: 1fr 1.2fr;
}

.split-text-content h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.split-text-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.split-image-wrapper {
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  background-color: var(--bg-gray);
  border: 1px solid rgba(15, 44, 89, 0.05);
}

.split-image-wrapper img {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

.split-image-wrapper:hover img {
  transform: scale(1.03);
}

/* DISE Code Showcase Block */
.dise-block {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-light);
  padding: 4rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
  overflow: hidden;
}

.dise-block::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  top: -50px;
  right: -50px;
  pointer-events: none;
}

.dise-info-text h3 {
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.dise-info-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

.dise-badge {
  background-color: var(--accent);
  color: var(--primary-dark);
  padding: 1.5rem 3rem;
  font-size: 2.25rem;
  font-weight: 800;
  border-radius: var(--border-radius-sm);
  letter-spacing: 2px;
  box-shadow: var(--shadow-gold);
  font-family: monospace;
  text-align: center;
}

.dise-badge span {
  display: block;
  font-size: 0.8rem;
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(15, 44, 89, 0.75);
  margin-bottom: 4px;
}

/* Academics Section */
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.curriculum-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(15, 44, 89, 0.05);
}

.curriculum-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.curriculum-header {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 2.5rem 2rem;
  position: relative;
}

.curriculum-header h3 {
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.curriculum-header span {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.curriculum-body {
  padding: 2.5rem 2rem;
}

.curriculum-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.curriculum-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
}

.curriculum-list li svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.curriculum-list li strong {
  color: var(--primary);
}

/* Timing Card Component */
.timing-highlight-box {
  background-color: var(--accent-light);
  border-left: 6px solid var(--accent);
  padding: 2.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.timing-desc h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.timing-desc p {
  color: var(--text-dark);
}

.timing-badge {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 1rem 2rem;
  border-radius: var(--border-radius-sm);
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

/* Admission Guide Flow */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  position: relative;
}

.process-step {
  background-color: var(--bg-white);
  padding: 3rem 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  border: 1px solid rgba(15, 44, 89, 0.05);
}

.process-step-num {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--primary-dark);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
}

.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

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

/* Requirements & Documents list */
.docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.docs-card {
  background-color: var(--bg-white);
  padding: 3rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 44, 89, 0.04);
}

.docs-card h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid rgba(15, 44, 89, 0.08);
  padding-bottom: 1rem;
}

.docs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.docs-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.docs-list li svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Contact Grid & Form Layouts */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-card {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  border: 1px solid rgba(15, 44, 89, 0.04);
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(15, 44, 89, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-text h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.contact-info-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  white-space: pre-line;
}

.form-wrapper {
  background-color: var(--bg-white);
  padding: 3.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 44, 89, 0.04);
}

.form-wrapper h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.form-wrapper p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

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

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

.form-group.full-width {
  grid-column: span 2;
}

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

.form-control {
  width: 100%;
  padding: 0.9rem 1.25rem;
  font-size: 0.95rem;
  border: 1.5px solid rgba(15, 44, 89, 0.15);
  border-radius: var(--border-radius-sm);
  outline: none;
  transition: var(--transition);
  font-family: var(--font-sans);
  color: var(--text-dark);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 44, 89, 0.08);
}

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

/* Map Frame Container */
.map-frame-wrapper {
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  height: 450px;
  background-color: var(--bg-gray);
  border: 1px solid rgba(15, 44, 89, 0.05);
}

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

/* Success Message Overlay style */
.form-success-message {
  display: none;
  background-color: #d1fae5;
  color: #065f46;
  padding: 1.5rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid #10b981;
  margin-bottom: 2rem;
  font-weight: 500;
  text-align: center;
  animation: fadeIn 0.5s ease-out;
}

/* ==========================================
   Animations
   ========================================== */

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* IntersectionObserver trigger classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ==========================================
   Responsive Media Queries
   ========================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .leadership-grid {
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .split-grid, .split-grid.reverse {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  header {
    height: var(--header-height);
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 2rem;
    gap: 1.5rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    transition: var(--transition);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    letter-spacing: 2px;
  }
  
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  section {
    padding: 4rem 1.25rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .leadership-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .leader-image-wrapper {
    height: 320px;
  }
  
  .dise-block {
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    text-align: center;
    gap: 2rem;
  }
  
  .dise-badge {
    font-size: 1.75rem;
    padding: 1rem 2rem;
    width: 100%;
  }

  .docs-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .docs-card {
    padding: 2rem;
  }
  
  .contact-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .form-wrapper {
    padding: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-copyright {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .footer-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  
  .footer-meta span {
    border-right: none;
    padding-right: 0;
  }
}

/* ==========================================
   School Activities Gallery Section
   ========================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background-color: var(--bg-gray);
  border: 1px solid rgba(15, 44, 89, 0.05);
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 44, 89, 0.9) 0%, rgba(15, 44, 89, 0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition);
}

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

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

.gallery-info {
  transform: translateY(20px);
  transition: var(--transition);
}

.gallery-item:hover .gallery-info {
  transform: translateY(0);
}

.gallery-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  display: block;
}

.gallery-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
}

/* ==========================================
   Preloader Splash Screen
   ========================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--primary-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.2s;
  transform: scale(1);
  overflow: hidden;
}

.preloader-content {
  text-align: center;
  color: white;
}

.preloader-text-wrapper {
  animation: zoomText 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  opacity: 0;
}

.preloader-subtext {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.preloader-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: white;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.preloader-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  letter-spacing: 1px;
}

/* Preloader Zoom keyframe: Scales up from 0.7 to 3.0 to zoom in full screen! */
@keyframes zoomText {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  15% {
    transform: scale(1.0);
    opacity: 1;
  }
  75% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(3.0); /* Full screen zoom expand! */
    opacity: 0;
  }
}

/* Hide preloader class: Zooms/expands the entire screen wrapper outwards */
#preloader.fade-out {
  opacity: 0;
  transform: scale(1.5); /* Overlay expands outwards as it clears */
  visibility: hidden;
  pointer-events: none;
}


