/* ========================================
   SPOORTHY JUNIOR COLLEGE - STATIC CSS
   ======================================== */

/* CSS Variables */
:root {
  /* Colors */
  --background: 210 20% 98%;
  --foreground: 215 25% 15%;
  --card: 0 0% 100%;
  --card-foreground: 215 25% 15%;
  --popover: 0 0% 100%;
  --popover-foreground: 215 25% 15%;
  --primary: 215 80% 28%;
  --primary-foreground: 0 0% 100%;
  --secondary: 42 80% 55%;
  --secondary-foreground: 215 25% 15%;
  --muted: 210 15% 94%;
  --muted-foreground: 215 12% 50%;
  --accent: 215 60% 94%;
  --accent-foreground: 215 80% 28%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 215 20% 88%;
  --input: 215 20% 88%;
  --ring: 215 80% 28%;
  --radius: 0.75rem;
  --gold: 42 80% 55%;
  --gold-foreground: 42 90% 20%;
  
  /* Gradients */
  --hero-gradient: linear-gradient(135deg, hsl(215 80% 20%), hsl(215 80% 35%), hsl(215 60% 45%));
  --glass-bg: hsla(0, 0%, 100%, 0.12);
  --glass-border: hsla(0, 0%, 100%, 0.2);
  --shadow-card: 0 4px 24px -4px hsla(215, 80%, 28%, 0.12);
  --shadow-hero: 0 20px 60px -15px hsla(215, 80%, 28%, 0.4);
  
  /* HSL Color Values */
  --bg-color: hsl(210, 20%, 98%);
  --fg-color: hsl(215, 25%, 15%);
  --card-color: hsl(0, 0%, 100%);
  --primary-color: hsl(215, 80%, 28%);
  --primary-fg: hsl(0, 0%, 100%);
  --secondary-color: hsl(42, 80%, 55%);
  --secondary-fg: hsl(215, 25%, 15%);
  --muted-color: hsl(210, 15%, 94%);
  --muted-fg: hsl(215, 12%, 50%);
  --accent-color: hsl(215, 60%, 94%);
  --accent-fg: hsl(215, 80%, 28%);
  --border-color: hsl(215, 20%, 88%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--fg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 4rem;
  }
}

.section-padding {
  padding: 4rem 1rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 6rem 2rem;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 6rem 4rem;
  }
}

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

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

.mb-12 {
  margin-bottom: 3rem;
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Gold Gradient */
.gold-gradient {
  background: linear-gradient(135deg, hsl(42 80% 55%), hsl(42 90% 65%));
}

/* Section Styles */
.section-tagline {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-tagline-light {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.75rem;
  color: var(--fg-color);
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-title-light {
  font-size: 1.75rem;
  color: var(--primary-fg);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-title-light {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .section-title-light {
    font-size: 3rem;
  }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--primary-color);
  color: var(--primary-fg);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: hsl(215, 80%, 23%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--secondary-color);
  color: var(--secondary-fg);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: hsl(42, 80%, 50%);
}

/* Form Elements */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background-color: var(--bg-color);
  color: var(--fg-color);
  font-size: 0.875rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px hsla(215, 80%, 28%, 0.1);
}

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

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: hsla(0, 0%, 100%, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: hsla(0, 0%, 100%, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .nav-container {
    height: 80px;
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .nav-logo-img {
    width: 56px;
    height: 56px;
  }
}

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

.nav-logo-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

@media (min-width: 768px) {
  .nav-logo-title {
    font-size: 1.25rem;
  }
}

.nav-logo-subtitle {
  font-size: 0.625rem;
  color: var(--muted-fg);
  font-weight: 500;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .nav-logo-subtitle {
    font-size: 0.75rem;
  }
}

.nav-links {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  transition: color 0.3s ease;
}

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

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  margin-right: -0.5rem;
  border-radius: 0.5rem;
  color: var(--fg-color);
  transition: background-color 0.3s ease;
}

.nav-toggle:hover {
  background-color: var(--muted-color);
}

.nav-toggle-icon {
  width: 24px;
  height: 24px;
}

.close-icon {
  display: none;
}

.nav-toggle.active .menu-icon {
  display: none;
}

.nav-toggle.active .close-icon {
  display: block;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background-color: var(--card-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.active {
  display: block;
  max-height: 500px;
  opacity: 1;
  overflow-y: auto;
  max-height: calc(100vh - 60px);
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--primary-color);
  background-color: var(--muted-color);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
  
  .mobile-menu {
    display: none !important;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    min-height: 100vh;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: hsla(215, 25%, 15%, 0.25);
}

.hero-gradient-left {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6rem;
  background: linear-gradient(to right, hsla(215, 25%, 15%, 0.8), transparent);
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero-gradient-left {
    width: 12rem;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 6rem 1rem 2rem;
  max-width: 800px;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 8rem 2rem 2rem;
  }
}

.hero-tagline {
  color: hsla(0, 0%, 100%, 0.8);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .hero-tagline {
    font-size: 0.875rem;
  }
}

.hero-sponsor {
  color: hsla(0, 0%, 100%, 0.9);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .hero-sponsor {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }
}

.hero-description {
  color: hsla(0, 0%, 100%, 0.8);
  font-size: 0.875rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
  }
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 700px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.stat-card {
  padding: 0.75rem;
  border-radius: 0.75rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stat-card {
    padding: 1rem;
  }
}

.stat-icon {
  width: 20px;
  height: 20px;
  margin: 0 auto 0.5rem;
  color: var(--secondary-color);
}

@media (min-width: 768px) {
  .stat-icon {
    width: 24px;
    height: 24px;
  }
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 1.5rem;
  }
}

.stat-label {
  font-size: 0.75rem;
  color: hsla(0, 0%, 100%, 0.7);
}

@media (min-width: 768px) {
  .stat-label {
    font-size: 0.875rem;
  }
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s ease-out forwards;
}

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

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.about-video-wrapper {
  position: relative;
}

.about-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
}

.about-badge {
  position: absolute;
  bottom: -0.75rem;
  right: -0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
  .about-badge {
    bottom: -1rem;
    right: -1rem;
    padding: 0.75rem 1.5rem;
  }
}

.about-badge-text {
  font-family: 'Playfair Display', serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold-foreground);
}

@media (min-width: 768px) {
  .about-badge-text {
    font-size: 1.125rem;
  }
}

.about-content {
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .about-content {
    margin-top: 0;
  }
}

.about-text {
  color: var(--muted-fg);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .about-text {
    font-size: 1rem;
  }
}

/* ========================================
   LEADERSHIP SECTION
   ======================================== */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .leadership-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.leader-card {
  background-color: var(--card-color);
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: box-shadow 0.3s ease;
}

@media (min-width: 768px) {
  .leader-card {
    padding: 2rem;
  }
}

.leader-card:hover {
  box-shadow: var(--shadow-card);
}

.leader-image-wrapper {
  width: 80px;
  height: 112px;
  border-radius: 0.5rem;
  overflow: hidden;
  margin: 0 auto 0.75rem;
  border: 4px solid hsla(215, 80%, 28%, 0.2);
  transition: border-color 0.3s ease;
}

@media (min-width: 768px) {
  .leader-image-wrapper {
    width: 112px;
    height: 144px;
    margin-bottom: 1rem;
  }
}

.leader-card:hover .leader-image-wrapper {
  border-color: hsla(215, 80%, 28%, 0.4);
}

.leader-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-name {
  font-size: 0.875rem;
  color: var(--fg-color);
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .leader-name {
    font-size: 1.25rem;
  }
}

.leader-title {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .leader-title {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }
}

.leader-message {
  color: var(--muted-fg);
  font-size: 0.75rem;
  line-height: 1.6;
  display: none;
}

@media (min-width: 640px) {
  .leader-message {
    display: block;
  }
}

@media (min-width: 768px) {
  .leader-message {
    font-size: 0.875rem;
  }
}

/* ========================================
   VISION SECTION
   ======================================== */
.vision-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .vision-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.vision-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 2rem;
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}

.vision-card:hover {
  border-color: hsla(215, 80%, 28%, 0.3);
}

.vision-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 128px;
  height: 128px;
  background-color: hsla(215, 80%, 28%, 0.05);
  border-radius: 50%;
  transform: translate(50%, -50%);
  transition: background-color 0.3s ease;
}

.vision-card:hover .vision-decoration {
  background-color: hsla(215, 80%, 28%, 0.1);
}

.vision-icon {
  width: 40px;
  height: 40px;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.vision-title {
  font-size: 1.5rem;
  color: var(--fg-color);
  margin-bottom: 0.75rem;
}

.vision-text {
  color: var(--muted-fg);
  line-height: 1.7;
}

/* ========================================
   COURSES SECTION
   ======================================== */
.courses-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 640px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .courses-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.course-card {
  background-color: var(--card-color);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  text-align: left;
  transition: all 0.3s ease;
}

.course-card:hover {
  box-shadow: var(--shadow-card);
  border-color: hsla(215, 80%, 28%, 0.3);
}

.course-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  background-color: hsla(215, 80%, 28%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background-color 0.3s ease;
}

.course-card:hover .course-icon-wrapper {
  background-color: hsla(215, 80%, 28%, 0.2);
}

.course-icon {
  width: 28px;
  height: 28px;
  color: var(--primary-color);
}

.course-label {
  font-size: 1.25rem;
  color: var(--fg-color);
  margin-bottom: 0.25rem;
}

.course-fullname {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-bottom: 0.75rem;
}

.course-desc {
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.course-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.subject-tag {
  background-color: var(--accent-color);
  color: var(--accent-fg);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}

.coaching-tagline {
  margin-top: 3rem;
}

.coaching-title {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .coaching-title {
    font-size: 1.875rem;
  }
}

.coaching-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .coaching-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .coaching-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.coaching-card {
  background-color: var(--card-color);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  text-align: left;
  transition: all 0.3s ease;
}

.coaching-card:hover {
  box-shadow: var(--shadow-card);
  border-color: hsla(42, 80%, 55%, 0.3);
}

.coaching-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background-color: hsla(42, 80%, 55%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background-color 0.3s ease;
}

.coaching-card:hover .coaching-icon-wrapper {
  background-color: hsla(42, 80%, 55%, 0.2);
}

.coaching-icon {
  width: 24px;
  height: 24px;
  color: var(--secondary-color);
}

.coaching-title-card {
  font-size: 1.125rem;
  color: var(--fg-color);
  margin-bottom: 0.5rem;
}

.coaching-for {
  display: inline-block;
  background-color: hsla(215, 80%, 28%, 0.1);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.coaching-desc {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.6;
}

.apply-btn {
  margin-top: 2.5rem;
}

/* ========================================
   CURRICULUM, ADMISSIONS, FACILITIES, CAMPUS, GALLERY, CONTACT, FOOTER, FABs
   ======================================== */

/* Curriculum */
.curriculum-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .curriculum-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .curriculum-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.curriculum-card {
  position: relative;
  background-color: var(--card-color);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
}

.curriculum-card:hover {
  border-color: hsla(215, 80%, 28%, 0.3);
}

.curriculum-number {
  position: absolute;
  top: -0.75rem;
  left: -0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--primary-fg);
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.curriculum-icon {
  width: 40px;
  height: 40px;
  color: var(--primary-color);
  margin: 0 auto 1rem;
  transition: color 0.3s ease;
}

.curriculum-card:hover .curriculum-icon {
  color: var(--secondary-color);
}

.curriculum-step {
  font-size: 1.125rem;
  color: var(--fg-color);
  margin-bottom: 0.5rem;
}

.curriculum-desc {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.6;
}

/* Admissions */
.admissions {
  position: relative;
  overflow: hidden;
}

.admissions-bg {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  opacity: 0.95;
}

.admissions-container {
  position: relative;
  z-index: 10;
}

.admissions-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .admissions-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

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

@media (min-width: 768px) {
  .admissions-content {
    text-align: left;
  }
}

.admissions-desc {
  color: hsla(0, 0%, 100%, 0.8);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .admissions-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
}

.admissions-highlights {
  display: inline-flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

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

.highlight-icon {
  width: 20px;
  height: 20px;
  color: var(--secondary-color);
  flex-shrink: 0;
}

.highlight-item span {
  color: hsla(0, 0%, 100%, 0.9);
  font-size: 0.875rem;
}

.admissions-form {
  background-color: var(--card-color);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .admissions-form {
    padding: 2rem;
  }
}

.form-title {
  font-size: 1.125rem;
  color: var(--fg-color);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .form-title {
    font-size: 1.25rem;
  }
}

.admissions-form .form-input,
.admissions-form .form-select {
  margin-bottom: 1rem;
}

.form-btn {
  width: 100%;
  padding: 0.875rem;
}

/* Facilities */
.facilities-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .facilities-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.facility-card {
  background-color: var(--card-color);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease;
}

.facility-card:hover {
  box-shadow: var(--shadow-card);
}

.facility-image-wrapper {
  overflow: hidden;
  height: 160px;
}

.facility-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.facility-card:hover .facility-image {
  transform: scale(1.05);
}

.facility-content {
  padding: 1.25rem;
}

.facility-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.facility-title {
  font-size: 1.125rem;
  color: var(--fg-color);
  margin-bottom: 0.25rem;
}

.facility-desc {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.6;
}

/* Campus Life */
.campus-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .campus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .campus-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.campus-card {
  background-color: var(--card-color);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: border-color 0.3s ease;
}

.campus-card:hover {
  border-color: hsla(42, 80%, 55%, 0.5);
}

.campus-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: hsla(42, 80%, 55%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.campus-icon {
  width: 28px;
  height: 28px;
  color: var(--secondary-color);
}

.campus-title {
  font-size: 1.125rem;
  color: var(--fg-color);
  margin-bottom: 0.5rem;
}

.campus-desc {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.6;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

@media (min-width: 768px) {
  .gallery-item {
    border-radius: 0.75rem;
  }
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(215, 80%, 28%, 0.6), transparent);
  display: flex;
  align-items: flex-end;
  padding: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
  .gallery-overlay {
    padding: 1rem;
  }
}

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

.gallery-caption {
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .gallery-caption {
    font-size: 0.875rem;
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  touch-action: pan-y pinch-zoom;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  color: hsla(0, 0%, 100%, 0.9);
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  color: white;
  background: rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: none;
  }
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  color: hsla(0, 0%, 100%, 0.9);
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  color: white;
  background: rgba(0, 0, 0, 0.5);
}

.lightbox-prev {
  left: 0.5rem;
}

@media (min-width: 768px) {
  .lightbox-prev {
    left: 1.5rem;
    width: 48px;
    height: 48px;
    background: none;
  }
}

.lightbox-next {
  right: 0.5rem;
}

@media (min-width: 768px) {
  .lightbox-next {
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: none;
  }
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

#lightboxCaption {
  color: hsla(0, 0%, 100%, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  #lightboxCaption {
    font-size: 1rem;
  }
}

/* Achievements */
.achievements {
  position: relative;
  overflow: hidden;
}

.achievements-bg {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  opacity: 0.92;
}

.achievements-container {
  position: relative;
  z-index: 10;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .achievements-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

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

.achievement-icon {
  width: 24px;
  height: 24px;
  color: var(--secondary-color);
  margin: 0 auto 0.5rem;
}

@media (min-width: 768px) {
  .achievement-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0.75rem;
  }
}

.achievement-counter {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary-fg);
}

@media (min-width: 768px) {
  .achievement-counter {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .achievement-counter {
    font-size: 3rem;
  }
}

.achievement-label {
  font-size: 0.75rem;
  color: hsla(0, 0%, 100%, 0.7);
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .achievement-label {
    font-size: 0.875rem;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

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

@media (min-width: 768px) {
  .contact-info {
    gap: 1.5rem;
  }
}

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

@media (min-width: 768px) {
  .contact-item {
    gap: 1rem;
  }
}

.contact-icon {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .contact-icon {
    width: 24px;
    height: 24px;
  }
}

.contact-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-color);
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .contact-label {
    font-size: 1rem;
  }
}

.contact-text {
  font-size: 0.75rem;
  color: var(--muted-fg);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .contact-text {
    font-size: 0.875rem;
  }
}

.contact-link {
  color: var(--muted-fg);
  transition: color 0.3s ease;
}

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

.contact-map {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  height: 200px;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .contact-map {
    height: 220px;
  }
}

.contact-form {
  background-color: var(--card-color);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .contact-form {
    padding: 2rem;
  }
}

/* Footer */
.footer {
  background-color: hsl(215, 25%, 15%);
  padding: 3rem 1rem;
  color: hsla(0, 0%, 100%, 0.6);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

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

.footer-logo-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(0, 0%, 100%);
}

.footer-logo-subtitle {
  font-size: 0.75rem;
  color: hsla(0, 0%, 100%, 0.5);
  letter-spacing: 0.05em;
}

.footer-desc {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.footer-courses {
  margin-top: 1rem;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(0, 0%, 100%);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.footer-course-list {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

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

.footer-link {
  font-size: 0.875rem;
  color: hsla(0, 0%, 100%, 0.6);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--secondary-color);
}

.footer-contact-item {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-contact-icon {
  width: 16px;
  height: 16px;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-contact-text {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid hsla(0, 0%, 100%, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
}

.footer-seo-text {
  font-size: 0.75rem;
  color: hsla(0, 0%, 100%, 0.5);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 1rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: hsla(0, 0%, 100%, 0.5);
  margin-bottom: 0.5rem;
}

.footer-powered {
  font-size: 0.75rem;
  color: hsla(0, 0%, 100%, 0.35);
}

.footer-powered .footer-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Floating Action Buttons */
.fab {
  position: fixed;
  right: 1.5rem;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .fab {
    width: 56px;
    height: 56px;
    right: 1.5rem;
  }
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.fab:active {
  transform: scale(0.95);
}

.whatsapp-fab {
  bottom: 1.5rem;
  background-color: #22c55e;
}

.whatsapp-fab:hover {
  background-color: #16a34a;
}

.call-fab {
  bottom: 5.5rem;
  background-color: var(--primary-color);
  color: var(--primary-fg);
}

.call-fab:hover {
  background-color: hsl(215, 80%, 23%);
}

@media (min-width: 768px) {
  .call-fab {
    bottom: 6rem;
  }
}

.fab-icon {
  width: 24px;
  height: 24px;
}

@media (min-width: 768px) {
  .fab-icon {
    width: 28px;
    height: 28px;
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 100;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.toast.error .toast-content {
  border-color: #ef4444;
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  color: #22c55e;
}

.toast.error .toast-icon {
  color: #ef4444;
}

.toast-message {
  font-size: 0.875rem;
  color: var(--fg-color);
}

body.menu-open {
  overflow: hidden;
}

/* ========================================
   MOBILE RESPONSIVE FIXES (< 480px)
   ======================================== */
@media (max-width: 480px) {
  /* Container */
  .container {
    padding: 0 0.75rem;
  }
  
  /* Section padding */
  .section-padding {
    padding: 3rem 0.75rem;
  }
  
  /* Navigation */
  .nav-container {
    height: 60px;
    padding: 0 0.75rem;
  }
  
  .nav-logo-img {
    width: 36px;
    height: 36px;
  }
  
  .nav-logo-title {
    font-size: 0.875rem;
  }
  
  /* Hero */
  .hero {
    min-height: 85vh;
  }
  
  .hero-content {
    padding: 5rem 0.75rem 1.5rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-description {
    font-size: 0.8125rem;
  }
  
  .hero-stats {
    gap: 0.5rem;
  }
  
  .stat-card {
    padding: 0.5rem;
  }
  
  .stat-value {
    font-size: 1rem;
  }
  
  .stat-label {
    font-size: 0.625rem;
  }
  
  /* Leadership */
  .leadership-grid {
    gap: 0.75rem;
  }
  
  .leader-card {
    padding: 0.75rem;
  }
  
  .leader-image-wrapper {
    width: 64px;
    height: 88px;
  }
  
  .leader-name {
    font-size: 0.75rem;
  }
  
  .leader-title {
    font-size: 0.625rem;
  }
  
  /* Vision cards */
  .vision-grid {
    gap: 1rem;
  }
  
  .vision-card {
    padding: 1.25rem;
  }
  
  .vision-title {
    font-size: 1.25rem;
  }
  
  /* Courses */
  .courses-grid {
    gap: 1rem;
  }
  
  .course-card {
    padding: 1rem;
  }
  
  .course-icon-wrapper {
    width: 48px;
    height: 48px;
  }
  
  .course-label {
    font-size: 1.125rem;
  }
  
  .coaching-card {
    padding: 1rem;
  }
  
  /* Curriculum */
  .curriculum-grid {
    gap: 1rem;
  }
  
  .curriculum-card {
    padding: 1.25rem;
  }
  
  /* Facilities */
  .facilities-grid {
    gap: 1rem;
  }
  
  .facility-image-wrapper {
    height: 140px;
  }
  
  /* Campus */
  .campus-grid {
    gap: 1rem;
  }
  
  .campus-card {
    padding: 1rem;
  }
  
  /* Gallery */
  .gallery-grid {
    gap: 0.375rem;
  }
  
  /* Contact */
  .contact-grid {
    gap: 1.5rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0.75rem;
  }
  
  .footer-grid {
    gap: 1.5rem;
  }
  
  .footer-logo-img {
    width: 48px;
    height: 48px;
  }
  
  .footer-logo-title {
    font-size: 1.125rem;
  }
}

/* ========================================
   MOBILE TOUCH IMPROVEMENTS
   ======================================== */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets on mobile */
  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
  }
  
  .mobile-nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .fab {
    min-width: 48px;
    min-height: 48px;
  }
  
  .lightbox-close,
  .lightbox-nav {
    min-width: 44px;
    min-height: 44px;
  }
  
  /* Remove hover effects on touch devices */
  .course-card:hover,
  .coaching-card:hover,
  .facility-card:hover,
  .campus-card:hover,
  .leader-card:hover {
    transform: none;
  }
  
  /* Gallery captions always visible on mobile */
  .gallery-overlay {
    opacity: 1;
    background: linear-gradient(to top, hsla(215, 80%, 28%, 0.7), transparent 60%);
  }
}

/* ========================================
   SAFARI/IOS SPECIFIC FIXES
   ======================================== */
@supports (-webkit-touch-callout: none) {
  /* iOS specific fixes */
  .hero {
    min-height: -webkit-fill-available;
  }
  
  .fab {
    /* Prevent FAB from being hidden by iOS bottom bar */
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }
  
  .whatsapp-fab {
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }
  
  .call-fab {
    bottom: calc(5.5rem + env(safe-area-inset-bottom));
  }
}

/* ========================================
   TOAST NOTIFICATION MOBILE FIX
   ======================================== */
@media (max-width: 768px) {
  .toast {
    bottom: 6rem;
    max-width: calc(100% - 2rem);
  }
  
  .toast-content {
    padding: 0.75rem 1rem;
  }
}


