/* --- Udaan Academy Stylesheet --- */

:root {
  /* Brand Color Tokens matching exact logo colors */
  --primary-orange: #F07C00;
  --primary-orange-hover: #D66E00;
  --primary-orange-light: rgba(240, 124, 0, 0.1);
  --primary-blue: #0D2D5E;
  --primary-blue-dark: #061A35;
  --primary-blue-light: #EBF3FF;
  --gold-accent: #FFD700;
  
  /* Text and Neutral colors */
  --text-dark: #1C1C1C;
  --text-grey: #4A5568;
  --text-light: #718096;
  --bg-light: #F7FAFC;
  --white: #FFFFFF;
  
  /* Shadows and Radii */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(13, 45, 94, 0.12);
  --border-radius: 12px;
  --border-radius-pill: 50px;
  
  /* Fonts */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Resets & Global Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px; /* offset for sticky navbar */
}

body {
  font-family: var(--font-sans);
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-blue);
  font-weight: 700;
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  transition: var(--transition-fast);
}

/* --- Layout Grid Utilities --- */
.max-w-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  align-items: center;
}

.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }

.section-container {
  padding: 100px 0;
  background-color: rgba(255, 255, 255, 0.95);
  position: relative;
  z-index: 5;
}

.bg-light {
  background-color: rgba(248, 250, 252, 0.95) !important;
}

.text-center {
  text-align: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.relative {
  position: relative;
}

.w-full {
  width: 100%;
}

.mb-md {
  margin-bottom: 48px;
}

.mt-sm {
  margin-top: 16px;
}

/* --- Typography System --- */
.section-tag {
  color: var(--primary-orange);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-subtitle {
  color: var(--text-grey);
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
}

.section-desc {
  color: var(--text-grey);
  margin-bottom: 20px;
  font-size: 16px;
}

/* --- Premium Buttons --- */
.btn {
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--border-radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background-color: var(--primary-orange);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(240, 124, 0, 0.3);
}

.btn-outline {
  background-color: var(--white);
  color: var(--text-grey);
  border: 1px solid #E2E8F0;
}

.btn-outline:hover {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* --- Header / Navigation Bar --- */
.main-header {
  position: fixed;
  top: 15px;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-normal);
}

/* Rounded Header Frame (exactly matching the user image borders) */
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--primary-orange);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  transition: var(--transition-normal);
}

.main-header.scrolled {
  top: 0;
}

.main-header.scrolled .header-container {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  max-width: 100%;
  padding: 8px 48px;
  background-color: rgba(255, 255, 255, 0.98);
}

/* Logo SVG inside navbar */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary-blue-dark);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Outfit', sans-serif;
  transition: transform var(--transition-fast);
}

.logo-text span {
  color: var(--primary-orange);
}

.logo-text:hover {
  transform: scale(1.02);
}

.logo-svg,
.logo-img {
  height: 62px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-grey);
  letter-spacing: 0.5px;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, 
.nav-link.active {
  color: var(--primary-orange);
}

/* Active Orange Line marker under navigation link */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-orange);
  transition: var(--transition-fast);
}

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

.btn-enroll {
  background-color: var(--primary-orange);
  color: var(--white);
  padding: 10px 22px;
  font-size: 13px;
  border-radius: var(--border-radius-pill);
}

.btn-enroll:hover {
  background-color: var(--primary-orange-hover);
  transform: scale(1.03);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
}

.mobile-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--primary-blue);
  border-radius: 4px;
  transition: var(--transition-fast);
}

/* --- Mobile Drawer Menu --- */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 26, 53, 0.4);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(4px);
  transition: var(--transition-normal);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-drawer {
  position: absolute;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background-color: var(--white);
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.mobile-menu-overlay.active .mobile-menu-drawer {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 24px;
}

.drawer-title {
  font-weight: 800;
  color: var(--primary-blue);
}

.drawer-close {
  background: none;
  font-size: 28px;
  line-height: 1;
  color: var(--text-grey);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: auto;
}

.drawer-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-grey);
  padding: 8px 0;
  border-bottom: 1px solid #F7FAFC;
}

.drawer-link.active,
.drawer-link:hover {
  color: var(--primary-orange);
  padding-left: 6px;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-image: var(--body-bg-image, url('assets/hero_bg.jpg'));
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 160px; /* Room for floating header */
  padding-bottom: 80px;
  background-color: transparent;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.98) 35%, rgba(255, 255, 255, 0.88) 60%, rgba(255, 255, 255, 0.1) 100%);
  background-size: cover;
  background-position: center bottom;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  z-index: 10;
  max-width: 650px;
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary-blue);
  letter-spacing: -0.5px;
  margin-bottom: 15px;
}

.hero-title .accent-text {
  color: var(--primary-orange);
}

/* Decorative Divider Under Hero Title */
.title-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.sep-line {
  height: 1.5px;
  width: 80px;
  background-color: var(--primary-orange);
  opacity: 0.6;
}

.sep-diamond {
  width: 6px;
  height: 6px;
  background-color: var(--primary-orange);
  transform: rotate(45deg);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-grey);
  font-weight: 500;
  margin-bottom: 35px;
}

/* Hero Badge Features (2x2 Grid Layout) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
  margin-bottom: 40px;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 12px 16px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform var(--transition-fast);
}

.feature-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-icon svg {
  width: 20px;
  height: 20px;
}

/* Different color variables for icons matching theme colors */
.icon-blue { background-color: var(--primary-blue-light); color: var(--primary-blue); }
.icon-orange { background-color: rgba(240, 124, 0, 0.15); color: var(--primary-orange); }
.icon-blue-dark { background-color: #EBF3FF; color: var(--primary-blue); }
.icon-gold { background-color: #FFFDE6; color: var(--primary-orange); }

.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.badge-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.badge-sub {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-blue-dark);
}

.hero-actions-group {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Large Emblem Right Side */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.hero-logo-card {
  padding: 24px;
  background-color: rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-lg);
  animation: floatEffect 6s ease-in-out infinite;
}

.hero-large-logo {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
}

/* floating airplane decoration */
.paper-airplane-container {
  position: absolute;
  top: 15%;
  right: 10%;
  opacity: 0.7;
  animation: airplaneGlide 10s ease-in-out infinite;
}

/* --- About Us Strengths & Values --- */
.about-strengths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
  border-top: 1px solid #E2E8F0;
  padding-top: 24px;
}

.strength-item {
  display: flex;
  flex-direction: column;
}

.strength-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-orange);
  line-height: 1.1;
}

.strength-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
}

/* Interactive Card Stack layout */
.interactive-card-stack {
  width: 380px;
  height: 380px;
  position: relative;
}

.stacked-card {
  position: absolute;
  width: 320px;
  padding: 32px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  color: var(--white);
  transition: transform var(--transition-normal), z-index 0s;
}

.card-blue {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  top: 20px;
  left: 20px;
  z-index: 2;
  transform: rotate(-3deg);
}

.card-orange {
  background: linear-gradient(135deg, var(--primary-orange), #FF9900);
  top: 90px;
  left: 80px;
  z-index: 1;
  transform: rotate(4deg);
}

.stacked-card:hover {
  transform: translateY(-10px) scale(1.02);
  z-index: 5;
}

.stacked-card .card-title {
  color: var(--white);
  font-size: 22px;
  margin-bottom: 12px;
}

.stacked-card p {
  font-size: 14px;
  opacity: 0.9;
}

/* --- Courses Section (Filters & Cards) --- */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--border-radius-pill);
  background-color: var(--white);
  color: var(--text-grey);
  border: 1px solid #E2E8F0;
  transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-orange);
  color: var(--white);
  border-color: var(--primary-orange);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.course-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #EDF2F7;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.course-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--primary-blue);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--border-radius-pill);
  z-index: 2;
}

.course-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.course-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.course-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.course-text {
  font-size: 14px;
  color: var(--text-grey);
  margin-bottom: 20px;
  flex-grow: 1;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
  border-top: 1px solid #EDF2F7;
  padding-top: 15px;
  margin-bottom: 18px;
}

.course-meta i {
  color: var(--primary-orange);
  margin-right: 4px;
}

/* --- Facilities Section --- */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.facility-card {
  background-color: var(--white);
  padding: 32px 24px;
  border-radius: var(--border-radius);
  border: 1px solid #EDF2F7;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.facility-card:hover {
  border-color: var(--primary-orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.facility-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background-color: var(--primary-orange-light);
  color: var(--primary-orange);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition-fast);
}

.facility-card:hover .facility-icon {
  background-color: var(--primary-blue);
  color: var(--white);
}

.facility-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.facility-desc {
  font-size: 14px;
  color: var(--text-grey);
  line-height: 1.5;
}

/* --- Gallery Section --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 20px;
}

.gallery-item {
  background-size: cover;
  background-position: center;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(13, 45, 94, 0.8), rgba(13, 45, 94, 0.2));
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  transition: opacity var(--transition-fast);
}

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

.gallery-title {
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  transform: translateY(10px);
  transition: transform var(--transition-fast);
}

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

/* Spanning variants for masonry grids */
.gallery-item.w-2 { grid-column: span 2; }
.gallery-item.h-2 { grid-row: span 2; }

/* --- Achievements Slider --- */
.achievements-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.achievement-card {
  background-color: var(--white);
  padding: 36px 30px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(13, 45, 94, 0.08);
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
  transition: var(--transition-normal);
}

.achievement-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 124, 0, 0.2);
}

.student-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background-size: cover;
  background-position: center;
  border: 3px solid var(--primary-orange);
  box-shadow: var(--shadow-sm);
}

.student-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-blue-dark);
}

.student-rank {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-orange);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

.student-quote {
  font-size: 14px;
  color: var(--text-grey);
  font-style: italic;
}

/* --- Blog Section --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-post {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #EDF2F7;
  display: flex;
  flex-direction: column;
}

.blog-img {
  height: 190px;
  background-size: cover;
  background-position: center;
}

.blog-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.blog-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.35;
}

.blog-title a:hover {
  color: var(--primary-orange);
}

.blog-excerpt {
  font-size: 14px;
  color: var(--text-grey);
  margin-bottom: 18px;
  flex-grow: 1;
}

.blog-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-orange);
}

.blog-link:hover {
  color: var(--primary-orange-hover);
  letter-spacing: 0.5px;
}

/* --- Contact Us Section & Form --- */
.contact-card {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  height: 100%;
}

.contact-card-title {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.contact-card-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-orange);
}

.contact-detail-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.detail-icon {
  font-size: 20px;
  color: var(--primary-orange);
  flex-shrink: 0;
}

.detail-content strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}

.detail-content p {
  font-size: 15px;
  line-height: 1.5;
}

.contact-socials {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

.contact-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
}

.contact-socials a:hover {
  background-color: var(--primary-orange);
  transform: translateY(-2px);
}

/* Contact Form Styling */
.contact-form {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  border: 1px solid #EDF2F7;
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 22px;
  margin-bottom: 24px;
  color: var(--primary-blue-dark);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-grey);
}

.form-group label .required {
  color: var(--primary-orange);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(240, 124, 0, 0.15);
  outline: none;
}

/* --- Footer --- */
.main-footer {
  background-color: var(--primary-blue-dark);
  color: rgba(255,255,255,0.75);
  padding: 70px 0 40px;
}

.footer-content-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 40px;
  margin-bottom: 30px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.brand-col .footer-title {
  font-size: 20px;
  font-weight: 800;
}

.footer-title {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-about {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

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

.footer-links a {
  font-size: 14px;
}

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

.newsletter-form {
  display: flex;
  background-color: rgba(255,255,255,0.08);
  padding: 4px;
  border-radius: var(--border-radius-pill);
  border: 1px solid rgba(255,255,255,0.15);
  margin-top: 10px;
}

.newsletter-form input {
  background: transparent;
  border: none;
  outline: none;
  padding: 8px 16px;
  color: var(--white);
  font-size: 13px;
  flex-grow: 1;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.4);
}

.newsletter-form button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-form button:hover {
  background-color: var(--primary-orange-hover);
  transform: scale(1.05);
}

/* --- Enrollment Modal Box --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 26, 53, 0.6);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(5px);
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background-color: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  background-color: var(--primary-blue);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  background: none;
  font-size: 26px;
  color: rgba(255,255,255,0.8);
  line-height: 1;
}

.modal-close:hover {
  color: var(--white);
}

.modal-body {
  padding: 24px;
}

/* --- Toast Custom Alert Messages --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background-color: var(--primary-blue-dark);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid var(--primary-orange);
  transform: translateY(20px);
  opacity: 0;
  animation: toastFadeIn 0.35s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.success {
  border-color: #22C55E;
}

.toast.error {
  border-color: #EF4444;
}

/* --- Keyframes Animations --- */
@keyframes floatEffect {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes airplaneGlide {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-30px, -20px) rotate(-5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes toastFadeIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- Responsive Adaptability --- */
@media (max-w-desktop: 1200px) {
  .logo-svg {
    height: 52px;
  }
}

@media (max-width: 991px) {
  .grid-container {
    gap: 24px;
  }
  .col-6, .col-5, .col-7 {
    grid-column: span 12;
  }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title {
    font-size: 38px;
  }
  .title-separator {
    justify-content: center;
  }
  .features-grid {
    max-width: 600px;
    margin: 0 auto 35px;
  }
  .hero-actions-group {
    justify-content: center;
  }
  .hero-logo-card {
    max-width: 380px;
    margin: 0 auto;
  }
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .achievements-slider {
    grid-template-columns: repeat(2, 1fr);
  }
  .interactive-card-stack {
    margin: 0 auto;
  }
  .footer-content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 30px;
  }
  .main-header {
    top: 0;
  }
  .header-container {
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    padding: 8px 16px;
  }
  .nav-menu, .header-actions {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero-section {
    padding-top: 110px;
  }
  .courses-grid, .facilities-grid, .blog-grid, .achievements-slider {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 30px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions-group button,
  .hero-actions-group a {
    width: 100%;
  }
  .interactive-card-stack {
    width: 100%;
    height: 350px;
  }
  .stacked-card {
    width: 100%;
    max-width: 290px;
  }
  .card-orange {
    left: 20px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .gallery-item.w-2 { grid-column: span 1; }
  .gallery-item.h-2 { grid-row: span 1; }
}

/* --- Teachers Section Grid & Cards (LinkedIn Style) --- */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.teacher-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #EDF2F7;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(240, 124, 0, 0.2);
}

.teacher-card-banner {
  width: 100%;
  height: 120px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--primary-blue-dark);
}

.teacher-card-body {
  padding: 0 24px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.teacher-card-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-sm);
  margin-top: -45px;
  margin-bottom: 14px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #E2E8F0;
}

.teacher-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-blue-dark);
  margin-bottom: 4px;
}

.teacher-qualification {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-grey);
  margin-bottom: 16px;
  display: block;
}

.teacher-meta-section {
  width: 100%;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  padding: 12px 0;
  margin-bottom: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.teacher-meta-item {
  font-size: 13px;
  color: var(--primary-blue-dark);
  line-height: 1.4;
}

.teacher-meta-item strong {
  font-weight: 800;
  color: var(--primary-orange);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  margin-right: 6px;
  display: inline-block;
  min-width: 75px;
}

.teacher-meta-item span {
  color: var(--text-grey);
  font-weight: 500;
}

.teacher-bio {
  font-size: 14px;
  color: var(--text-grey);
  line-height: 1.5;
  font-style: italic;
}

/* Checkbox Grid Styles inside Admin Panel */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  background-color: var(--bg-light);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  margin-top: 6px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-grey);
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary-orange);
}

/* --- Admin Panel Modal & Dashboard --- */
.modal-box.modal-lg {
  max-width: 760px;
  width: 95%;
}

.admin-tabs {
  display: flex;
  background-color: var(--bg-light);
  border-bottom: 1px solid #E2E8F0;
}

.admin-tab-btn {
  padding: 14px 24px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-grey);
  background: transparent;
  border-bottom: 3px solid transparent;
  transition: var(--transition-fast);
}

.admin-tab-btn:hover {
  color: var(--primary-orange);
}

.admin-tab-btn.active {
  color: var(--primary-orange);
  border-bottom-color: var(--primary-orange);
  background-color: var(--white);
}

.admin-modal-body {
  max-height: 70vh;
  overflow-y: auto;
  padding: 28px;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.admin-section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-blue-dark);
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 8px;
  margin-bottom: 20px;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Password Visibility Toggle Styles */
.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 46px !important; /* make room for the eye button */
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-grey);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition-fast);
  z-index: 10;
}

.password-toggle-btn:hover {
  color: var(--primary-orange);
}

.forgot-password-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.forgot-password-link {
  font-size: 13px;
  color: var(--text-grey);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.forgot-password-link:hover {
  color: var(--primary-orange);
  text-decoration: underline;
}

/* Admin Teachers Management List */
.admin-teachers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.admin-teacher-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: var(--bg-light);
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  gap: 12px;
}

.admin-teacher-info {
  display: flex;
  flex-direction: column;
}

.admin-teacher-name {
  font-weight: 700;
  color: var(--primary-blue-dark);
}

.admin-teacher-sub {
  font-size: 12px;
  color: var(--text-light);
}

.btn-edit {
  background-color: #E0F2FE;
  color: #0284C7;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #BAE6FD;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-edit:hover {
  background-color: #0284C7;
  color: var(--white);
  border-color: #0284C7;
}

.btn-delete {
  background-color: #FEE2E2;
  color: #EF4444;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #FCA5A5;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-delete:hover {
  background-color: #EF4444;
  color: var(--white);
  border-color: #EF4444;
}

/* Responsiveness for Teachers section */
@media (max-width: 991px) {
  .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .teachers-grid {
    grid-template-columns: 1fr;
  }
}

/* User Queries List Cards in Admin Panel */
.admin-queries-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.query-card {
  background-color: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.query-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 8px;
  margin-bottom: 6px;
}

.query-type-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.query-type-badge.general {
  background-color: #E0F2FE;
  color: #0369A1;
}

.query-type-badge.enroll {
  background-color: #FEF3C7;
  color: #D97706;
}

.query-time {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
}

.query-field {
  font-size: 13px;
  color: var(--text-grey);
  line-height: 1.4;
}

.query-field strong {
  color: var(--primary-blue-dark);
  font-weight: 700;
  margin-right: 6px;
  display: inline-block;
  min-width: 60px;
}

.query-field span {
  color: var(--text-grey);
}

.query-message {
  font-size: 13px;
  color: var(--text-grey);
  background-color: #F8FAFC;
  padding: 10px 12px;
  border-radius: 6px;
  border-left: 4px solid var(--primary-orange);
  margin-top: 6px;
  font-style: italic;
  line-height: 1.5;
}
