:root {
  /* Colors */
  --primary-color: #0F172A; /* Deep Trust Blue */
  --secondary-color: #1E293B; /* Lighter Blue for depth */
  --accent-color: #F59E0B; /* Bright Accent Gold */
  --accent-hover: #D97706; /* Darker Gold for hover */
  --bg-color: #F8FAFC; /* Clean White/Off-white */
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --white: #FFFFFF;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s ease-out;
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-accent { color: var(--accent-color); }
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-size: 1rem;
}
.btn-primary {
  background-color: var(--accent-color);
  color: var(--white);
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}
.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}
.navbar .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.logo span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-weight: 500;
  color: var(--primary-color);
  transition: color var(--transition-fast);
  position: relative;
}
.nav-links a:hover {
  color: var(--accent-color);
}
.nav-links a.nav-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-fast);
}
.nav-links a.nav-item:hover::after,
.nav-links a.nav-item.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
}

/* Modern Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-color);
  overflow: hidden;
  padding-top: 80px; /* offset navbar */
}

/* Animated Background Shapes */
.shape {
  position: absolute;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.6;
  border-radius: 50%;
}
.shape-1 {
  top: -10%; left: -10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(59,130,246,0.3) 0%, rgba(255,255,255,0) 70%);
  animation: blob-bounce 10s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
.shape-2 {
  bottom: -10%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(245,158,11,0.2) 0%, rgba(255,255,255,0) 70%);
  animation: blob-bounce 12s infinite alternate-reverse cubic-bezier(0.4, 0, 0.2, 1);
}
.shape-3 {
  top: 30%; left: 50%;
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, rgba(255,255,255,0) 70%);
  animation: blob-bounce 14s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes blob-bounce {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(30px, -30px); }
  100% { transform: scale(0.9) translate(-30px, 30px); }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(15, 23, 42, 0.05);
  color: var(--primary-color);
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.hero-title {
  font-size: 4.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  animation: fadeLeft 1s ease-out forwards;
  opacity: 0;
}

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

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  animation: fadeLeft 1s ease-out 0.2s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  animation: fadeLeft 1s ease-out 0.4s forwards;
  opacity: 0;
}

.btn-glow {
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.5);
}

.glass-btn {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(15, 23, 42, 0.1);
  color: var(--primary-color);
}
.glass-btn:hover {
  background: var(--primary-color);
  color: white;
}

.hero-visual {
  position: relative;
  animation: fadeRight 1s ease-out 0.4s forwards;
  opacity: 0;
}

.hero-image-wrapper {
  position: relative;
  z-index: 2;
}

.main-hero-img {
  width: 100%;
  border-radius: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 8px solid white;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.floating-card i {
  font-size: 2rem;
  color: var(--accent-color);
  background: #FEF3C7;
  padding: 1rem;
  border-radius: 50%;
}
.floating-card h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary-color);
}
.floating-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

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

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: rotate(-2deg);
  transition: transform var(--transition-normal);
}
.about-image:hover {
  transform: rotate(0deg) scale(1.02);
}
.about-image img {
  width: 100%;
  height: auto;
  display: block;
}
.about-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}
.about-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}
.feature-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  text-align: center;
  border-bottom: 4px solid transparent;
}
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-color);
}
.feature-icon {
  width: 64px;
  height: 64px;
  background-color: #FEF3C7; /* Light accent */
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.5rem;
  transition: transform var(--transition-fast);
}
.feature-card:hover .feature-icon {
  transform: scale(1.1);
}
.feature-card h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Gallery Section */
.gallery-section {
  background-color: var(--primary-color);
  color: var(--white);
}
.gallery-section .section-subtitle {
  color: #CBD5E1;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 250px;
  gap: 1rem;
}
/* Masonry-like look for some items */
.gallery-item {
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item.tall {
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  transition: opacity var(--transition-normal);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay h4 {
  color: var(--white);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}
.gallery-item:hover .gallery-overlay h4 {
  transform: translateY(0);
}

/* =============================================
   ADMISSION PAGE - PROCESS STEPS & LAYOUT
   ============================================= */

/* Process Steps Timeline */
.process-steps-section {
  background: linear-gradient(180deg, var(--bg-color) 0%, #F1F5F9 100%);
  padding: 3rem 0;
  position: relative;
  z-index: 5;
  margin-top: -4rem;
}

.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.process-step {
  text-align: center;
  flex: 0 0 auto;
  position: relative;
}

.process-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: white;
  border: 3px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.process-icon i {
  font-size: 1.5rem;
  color: #94A3B8;
  transition: color var(--transition-fast);
}

.process-icon.active-step {
  border-color: var(--accent-color);
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  box-shadow: 0 8px 20px -4px rgba(245, 158, 11, 0.3);
  animation: pulseGlow 2s ease-in-out infinite;
}

.process-icon.active-step i {
  color: var(--accent-color);
}

.process-step-num {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
}

.process-step h4 {
  font-size: 0.95rem;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

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

.process-connector {
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, #E2E8F0 0%, #CBD5E1 50%, #E2E8F0 100%);
  margin-top: 36px;
  min-width: 40px;
  position: relative;
}

.process-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #CBD5E1;
  border-radius: 50%;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 8px 20px -4px rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 8px 30px -2px rgba(245, 158, 11, 0.5); }
}

/* Admission Area & Dot Pattern */
.admission-area {
  background-color: var(--bg-color);
  padding: 3rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.dot-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #CBD5E1 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.3;
  pointer-events: none;
}

/* 3-Column Admission Layout */
.admission-layout {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 2rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

/* Side Info Cards */
.side-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 100px;
}

.info-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid #F1F5F9;
  transition: all var(--transition-normal);
}

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

.info-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.info-card-icon i {
  font-size: 1.2rem;
  color: var(--accent-color);
}

.info-card h4 {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}

/* Info List (Dates) */
.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed #E2E8F0;
  font-size: 0.85rem;
}

.info-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  color: var(--text-secondary);
}

.info-value {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.8rem;
}

/* Info Checklist (Documents) */
.info-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-checklist li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.info-checklist li i {
  color: #10B981;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* Help Card */
.help-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.help-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.help-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  background: #FFFBEB;
  border-radius: 0.5rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.help-link:hover {
  background: #FEF3C7;
  transform: translateX(3px);
}

.help-link i {
  font-size: 0.8rem;
}

/* Stats Card */
.stat-card {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
}

.stat-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--accent-color);
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
  margin-top: 0.2rem;
  display: block;
}

/* CTA Section */
.cta-section {
  background-color: var(--accent-color);
  color: white;
  text-align: center;
}
.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}
.cta-desc {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}
.cta-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}
.cta-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Forms (Login/Admission) Shared Styles */
.page-header {
  padding-top: 140px;
  padding-bottom: 5rem;
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
}
.admission-header {
  background-color: var(--bg-color);
  color: var(--primary-color);
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
}
.admission-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.admission-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.admission-card {
  position: relative;
  z-index: 2;
  padding: 3rem;
  animation-delay: 0.2s;
  max-width: none;
}
.auth-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: radial-gradient(circle at top right, #e0f2fe, var(--bg-color));
}
.auth-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  padding: 3rem;
  animation: slideUpFade 0.6s ease-out;
}
.auth-card.wide {
  max-width: 800px;
}
.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-header h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.auth-header p {
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.form-row .form-group {
  margin-bottom: 0;
}
.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #CBD5E1;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
  background-color: #F8FAFC;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
  background-color: var(--white);
}
.form-control::placeholder {
  color: #94A3B8;
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
.form-actions {
  margin-top: 2rem;
}
.btn-block {
  width: 100%;
  display: block;
  text-align: center;
  padding: 1rem;
  font-size: 1.1rem;
}

/* Admission Form Enhancements */
.section-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #E2E8F0;
  position: relative;
}
.section-indicator::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--accent-color);
}
.step-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #CBD5E1;
  font-family: var(--font-heading);
  letter-spacing: -1px;
}
.step-title {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 0;
}
.group-hover-fx {
  padding: 1.5rem;
  border-radius: 1rem;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}
.group-hover-fx:hover {
  background-color: #F8FAFC;
  border-color: #E2E8F0;
}

.terms-box {
  margin-top: 3rem; 
  background-color: #F8FAFC; 
  padding: 1.5rem; 
  border-radius: 0.5rem; 
  border-left: 4px solid var(--accent-color);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.terms-box:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

.custom-checkbox {
  display: flex; 
  align-items: flex-start; 
  gap: 1rem; 
  cursor: pointer;
  position: relative;
  user-select: none;
}
.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.checkmark {
  min-width: 20px;
  height: 20px;
  background-color: #fff;
  border: 2px solid #CBD5E1;
  border-radius: 4px;
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}
.checkmark:after {
  content: "";
  display: none;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}
.terms-text {
  font-size: 0.95rem; 
  color: var(--text-secondary); 
  line-height: 1.5;
}

.section-border-top {
  border-top: 1px solid #E2E8F0;
  padding-top: 2rem;
  margin-top: 2rem;
}

/* Animations */
.animate-up {
  opacity: 0;
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.footer {
  background-color: var(--primary-color);
  color: #CBD5E1;
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer h4 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
.footer p {
  margin-bottom: 1rem;
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: all var(--transition-fast);
}
.social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Reveal Elements */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   UI POPUPS / MODALS
   ============================================= */
.success-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}
.success-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.success-modal-content {
  background: white;
  padding: 2.5rem;
  border-radius: 1.5rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  transform: translateY(20px) scale(0.95);
  transition: all var(--transition-normal) cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
}
.success-modal.active .success-modal-content {
  transform: translateY(0) scale(1);
}
.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34D399, #10B981);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.4);
}
.success-modal-content h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}
.success-modal-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.close-modal-btn {
  width: 100%;
}

/* =============================================
   RESPONSIVE / MOBILE OPTIMIZATION
   ============================================= */

/* --- Tablet & small desktop (max-width: 992px) --- */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-actions { justify-content: center; }
  .floating-card { display: none; }
  .hero-title { font-size: 3rem; }
  .hero-desc { font-size: 1.1rem; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-image {
    transform: none;
    max-width: 600px;
    margin: 0 auto;
  }

  .features {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .section-title { font-size: 2rem; }
  .section-subtitle { font-size: 1rem; }

  /* Admission layout - hide right sidebar on tablet */
  .admission-layout {
    grid-template-columns: 220px 1fr;
  }
  .side-info-right {
    display: none;
  }
}

/* --- Mobile nav overlay backdrop --- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
  /* Navigation */
  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh; /* dynamic viewport fix for Safari */
    background-color: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    transition: right var(--transition-normal);
    z-index: 1000;
    overflow-y: auto;
    gap: 0;
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links a {
    padding: 0.85rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid #F1F5F9;
    width: 100%;
  }
  .nav-links a:last-child {
    border-bottom: none;
  }
  .nav-links .btn.btn-primary {
    margin-left: 0 !important;
    margin-top: 1rem;
    text-align: center;
    width: 100%;
  }

  /* Navbar */
  .navbar { padding: 1rem 0; }
  .logo span { font-size: 1.15rem; }
  .logo img { height: 40px; }

  /* Container */
  .container { padding: 0 1.25rem; }

  /* Sections */
  .section { padding: 3.5rem 0; }

  /* Hero */
  .hero { padding-top: 70px; min-height: auto; padding-bottom: 3rem; }
  .hero-title { font-size: 2.25rem; margin-bottom: 1rem; }
  .hero-desc { font-size: 1rem; margin-bottom: 2rem; }
  .hero-actions { flex-direction: column; gap: 0.75rem; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; text-align: center; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .main-hero-img { border-width: 5px; border-radius: 1.25rem; }

  /* Badge */
  .badge { font-size: 0.8rem; padding: 0.4rem 0.85rem; }

  /* About */
  .about-content h3 { font-size: 1.5rem; }
  .about-content p { font-size: 1rem; }

  /* Features */
  .features {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
  }
  .feature-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 220px !important;
    gap: 0.75rem;
  }
  .gallery-item.large,
  .gallery-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }
  /* Show overlay on mobile since no hover */
  .gallery-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.7), transparent 60%);
  }

  /* CTA Section */
  .cta-title { font-size: 1.75rem; }
  .cta-desc { font-size: 1rem; }
  .cta-btn { padding: 0.85rem 2rem; font-size: 1rem; }

  /* Footer */
  .footer { padding: 3rem 0 1.5rem; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  .footer h4 { margin-bottom: 1rem; }
  .social-links { justify-content: flex-start; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }

  /* Admission page */
  .page-header { padding-top: 100px; padding-bottom: 3rem; }
  .admission-header { padding-bottom: 6rem; }
  .admission-title { font-size: 2.25rem; }
  .admission-desc { font-size: 1rem; }
  .admission-card { padding: 1.75rem; }
  .step-num { font-size: 1.25rem; }
  .step-title { font-size: 1.2rem; }
  .group-hover-fx { padding: 1rem; }
  .terms-box { padding: 1.25rem; }
  .form-actions .btn { width: 100%; text-align: center; }
  .form-actions.text-right { text-align: center; }
  .section-border-top .btn { padding: 0.9rem 2rem; font-size: 1rem; }

  /* Admission layout - single column */
  .admission-layout {
    grid-template-columns: 1fr;
  }
  .side-info {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 0.5rem;
  }
  .side-info-left {
    order: -1;
  }
  .side-info-right {
    display: flex;
    order: 1;
  }
  .info-card {
    min-width: 240px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  /* Process steps - compact */
  .process-steps-section {
    margin-top: -3rem;
    padding: 2rem 0;
  }
  .process-icon {
    width: 56px;
    height: 56px;
  }
  .process-icon i { font-size: 1.15rem; }
  .process-step h4 { font-size: 0.8rem; }
  .process-step p { font-size: 0.7rem; }
  .process-step-num {
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
  }
  .process-connector { min-width: 20px; margin-top: 28px; }

  /* Admission area */
  .admission-area { padding: 2rem 0 4rem; }
  .dot-pattern { background-size: 24px 24px; }
}

/* --- Small mobile (max-width: 480px) --- */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }

  .hero-title { font-size: 1.85rem; }
  .hero-desc { font-size: 0.95rem; }

  .section-title { font-size: 1.65rem; }
  .section-subtitle { font-size: 0.9rem; margin-bottom: 2rem; }

  .about-content h3 { font-size: 1.3rem; }
  .about-content p { font-size: 0.95rem; }

  .feature-card { padding: 1.5rem; }
  .feature-icon { width: 56px; height: 56px; font-size: 1.5rem; }
  .feature-card h4 { font-size: 1.1rem; }
  .feature-card p { font-size: 0.9rem; }

  .gallery-grid { grid-auto-rows: 180px !important; }

  .admission-card { padding: 1.25rem; }
  .admission-title { font-size: 1.75rem; }
  .admission-desc { font-size: 0.95rem; }
  .step-title { font-size: 1.05rem; }
  .form-control { padding: 0.65rem 0.85rem; font-size: 0.95rem; }
  .form-label { font-size: 0.9rem; }

  .footer p, .footer li { font-size: 0.9rem; }
  .social-links a { width: 36px; height: 36px; font-size: 0.9rem; }

  .logo span { font-size: 1rem; }
  .logo img { height: 36px; }

  /* Process steps - extra compact */
  .process-icon { width: 48px; height: 48px; }
  .process-icon i { font-size: 1rem; }
  .process-connector { margin-top: 24px; min-width: 16px; }
  .process-step-num { width: 16px; height: 16px; font-size: 0.55rem; top: -4px; right: -4px; }
  .process-step h4 { font-size: 0.7rem; }
  .process-step p { display: none; }

  /* Side cards scroll on small screens */
  .info-card { min-width: 220px; padding: 1.25rem; }
  .stat-number { font-size: 1.2rem; }

  /* CTA section responsive text */
  .cta-title { font-size: 1.4rem; }
  .cta-desc { font-size: 0.95rem; }
  .cta-btn { padding: 0.75rem 1.75rem; font-size: 0.95rem; }

  /* Success Modal */
  .success-modal-content {
    padding: 1.75rem 1.25rem;
    width: 95%;
  }
  .success-icon {
    width: 56px; height: 56px; font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  .success-modal-content h3 { font-size: 1.35rem; }
  .success-modal-content p { font-size: 0.9rem; margin-bottom: 1.5rem; }
}

/* --- Touch-friendly tap targets --- */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
  .nav-links a { min-height: 48px; display: flex; align-items: center; }
  .form-control { min-height: 48px; }
  .custom-checkbox { min-height: 48px; }
  .social-links a { min-width: 44px; min-height: 44px; }
}

/* Alive Animations */
@keyframes aliveFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes aliveBreathe {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.alive-float {
  animation: aliveFloat 5s ease-in-out infinite;
}

.alive-breathe img {
  animation: aliveBreathe 8s ease-in-out infinite;
  transform-origin: center;
}

.alive-breathe:hover img {
  animation-play-state: paused;
}
