* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  color: #1f2937;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
}

/* Updated color scheme to match TSX components */
:root {
  --background: #ffffff;
  --foreground: #1f2937;
  --card: #f1f5f9;
  --card-foreground: #1f2937;
  --primary: #1f2937;
  --primary-foreground: #ffffff;
  --secondary: #8b5cf6;
  --secondary-foreground: #ffffff;
  --muted: #f1f5f9;
  --muted-foreground: #6b7280;
  --accent: #8b5cf6;
  --border: #d1d5db;
  --destructive: #be123c;
}

/* Header Styles */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 0;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  font-weight: bold;
  font-size: 18px;
}

.logo-text h1 {
  font-size: 18px;
  font-weight: bold;
  color: var(--foreground);
  margin: 0;
}

.logo-text p {
  font-size: 12px;
  color: var(--muted-foreground);
  margin: 0;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--secondary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phone-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
}

.phone-info i {
  color: var(--secondary);
}

.cta-button {
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: rgba(139, 92, 246, 0.9);
  color: white;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section with Video Background */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: white;
  text-align: center;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-content {
  max-width: 1000px;
  padding: 2rem;
  animation: fadeIn 0.8s ease-out;
  z-index: 1;
}

.hero-content h6 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-content h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-content h1 em {
  color: var(--secondary);
  font-style: normal;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  background: rgba(139, 92, 246, 0.2);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 16px;
  display: inline-block;
}

.hero-subtitle strong {
  color: var(--secondary);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.hero-cta .cta-button {
  background-color: var(--secondary);
  color: white;
  font-size: 1.125rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-cta .cta-button:hover {
  background-color: #0da271;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.hero-phone-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 1.125rem;
}

.hero-phone-info a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
}

.hero-phone-info a:hover {
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.2);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator div {
  width: 24px;
  height: 40px;
  border: 2px solid white;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-indicator div::after {
  content: "";
  width: 4px;
  height: 12px;
  background: white;
  border-radius: 2px;
  animation: pulse 2s infinite;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes pulse {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Video Controls */
.video-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.video-control-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.video-control-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* About Section */
.about-section {
  padding: 5rem 0;
  background: var(--background);
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text {
  animation: slideIn 0.8s ease-out;
}

.about-text .section-label {
  color: var(--secondary);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.about-text h2 {
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: bold;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.about-text p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-images {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-images img {
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 300px;
  object-fit: fill;
}

.about-images img:nth-child(2) {
  margin-top: 2rem;
}

/* Stats Section */
.stats-section {
  padding: 5rem 0;
  background: var(--muted);
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-card {
  text-align: center;
  animation: fadeIn 0.6s ease-out;
}

.stat-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: bold;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--muted-foreground);
  font-weight: 500;
}

/* Banner Section */
.banner-section {
  width: 100%;
  margin: 40px 0;
  padding: 0;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

.banner-section-fullwidth {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 40px;
  margin-bottom: 40px;
  overflow: hidden;
}

.banner-section-fullwidth .banner-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.banner-section-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 2rem;
}

.banner-section-container .banner-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Management Section */
.management-section {
  background: #f8f9fa;
  padding: 5rem 2rem;
}

.management-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: bold;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-heading h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: bold;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-heading p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.management-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: center;
}

.management-intro img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.management-text h3 {
  color: #4e54c8;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.management-text p {
  margin-bottom: 1.5rem;
  color: #666;
  line-height: 1.8;
}

.management-leadership {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.management-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.management-card:hover {
  transform: translateY(-5px);
}

.card-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 5px solid #f8f9fa;
}

.management-card h4 {
  color: #4e54c8;
  margin-bottom: 0.5rem;
}

.management-card h5 {
  color: #333;
  margin-bottom: 1rem;
}

.management-card p {
  color: #666;
  line-height: 1.6;
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.teacher-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.teacher-card:hover {
  transform: translateY(-5px);
}

.teacher-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid #f8f9fa;
}

.teacher-card h4 {
  color: #333;
  margin-bottom: 0.5rem;
}

.teacher-card p {
  color: #666;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Entities Section */
.entities-section {
  padding: 5rem 0;
  background: var(--muted);
}

.entities-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.entities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.entity-card {
  background: var(--background);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.entity-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.entity-card .card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.entity-card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.entity-card h4 {
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.entity-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Facilities Section */
.facilities-section {
  background: #f8f9fa;
  padding: 5rem 2rem;
}

.facilities-container {
  max-width: 1200px;
  margin: 0 auto;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.facility-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.facility-card:hover {
  transform: translateY(-5px);
}

.facility-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.facility-card h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.facility-card p {
  color: #666;
  line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
  padding: 5rem 0;
  background: var(--muted);
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 41, 55, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-content {
  text-align: center;
}

.gallery-overlay-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  font-size: 1.5rem;
}

/* Events Section */
.events-section {
  background: white;
  padding: 5rem 2rem;
}

.events-container {
  max-width: 1200px;
  margin: 0 auto;
}

.events-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.event-tab {
  background: #f8f9fa;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #666;
}

.event-tab:hover {
  background: #4e54c8;
  color: white;
}

.event-tab.active {
  background: #4e54c8;
  color: white;
}

.event-tab-content {
  display: none;
}

.event-tab-content.active {
  display: block;
}

.event-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.event-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.event-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-item:hover img {
  transform: scale(1.05);
}

/* Make images in the Magic Show tab fill the area (cover) */
#magic-show .event-item img {
  height: 250px; /* keep same gallery height for consistent layout */
  object-fit: cover; /* fill the area, cropping if needed */
  object-position: center; /* focus on the center of the image */
  background: none;
}

.event-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 1rem;
  text-align: center;
}

/* Testimonials Section */
.testimonials-section {
  padding: 5rem 0;
  background: var(--background);
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.testimonial-quote {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.testimonial-text {
  color: var(--card-foreground);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-info h4 {
  font-weight: bold;
  color: var(--card-foreground);
  margin-bottom: 0.25rem;
}

.testimonial-info p {
  color: var(--secondary);
  font-size: 0.875rem;
  margin: 0;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background: var(--muted);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--secondary);
  margin-top: 0.25rem;
}

.contact-details h4 {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: var(--muted-foreground);
  margin: 0;
  line-height: 1.6;
}

.contact-details a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: var(--secondary);
}

.contact-form {
  background: var(--background);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--background);
  color: var(--foreground);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-control::placeholder {
  color: var(--muted-foreground);
}

.btn-submit {
  width: 100%;
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background: rgba(139, 92, 246, 0.9);
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 3rem 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 40px;
  height: 40px;
  background: var(--secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.footer-brand-text h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0;
}

.footer-brand-text p {
  font-size: 0.875rem;
  opacity: 0.8;
  margin: 0;
}

.footer-description {
  font-size: 0.875rem;
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-section h4 {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-contact {
  font-size: 0.875rem;
  opacity: 0.8;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  opacity: 0.8;
  margin: 0;
}

/* Admission Section */
.admission-section {
  padding: 5rem 0;
  background: var(--background);
}

.admission-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.admission-dropdown-container {
  margin: 2rem auto;
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: center;
}

.dropdown {
  position: relative;
  width: 100%;
}

.dropdown-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.dropdown-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.dropdown-arrow {
  transition: transform 0.3s ease;
}

.dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.dropdown-content.show {
  max-height: 600px;
  overflow-y: auto;
}

.admission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
}

.admission-item {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.admission-item:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.admission-item h4 {
  color: #1e40af;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.admission-item p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.download-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.download-btn:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ============================================ */

/* Extra Large Desktop - 1400px and up */
@media (min-width: 1400px) {
  .header-content,
  .about-content,
  .stats-container,
  .management-container,
  .entities-container,
  .facilities-container,
  .events-container,
  .testimonials-container,
  .contact-container,
  .footer-container {
    max-width: 1400px;
    padding: 0 3rem;
  }

  .hero-content h1 {
    font-size: 7rem;
  }

  .section-heading h2 {
    font-size: 4rem;
  }
}

/* Large Desktop - 1200px to 1399px */
@media (min-width: 1200px) and (max-width: 1399px) {
  .hero-content h1 {
    font-size: 6rem;
  }

  .section-heading h2 {
    font-size: 3.5rem;
  }

  .facilities-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .teachers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop - 992px to 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
  .header-content {
    padding: 1rem 2rem;
  }

  .about-grid,
  .management-intro,
  .contact-grid {
    gap: 2.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .facilities-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .teachers-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .management-leadership {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Landscape - 768px to 991px */
@media (min-width: 768px) and (max-width: 991px) {
  .main-nav ul {
    gap: 1.5rem;
  }

  .main-nav ul li a {
    font-size: 0.95rem;
  }

  .header-cta .phone-info span {
    display: none;
  }

  .about-grid,
  .management-intro,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-text {
    order: 1;
  }

  .about-images {
    order: 2;
    justify-self: center;
    max-width: 500px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .entities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .management-leadership {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .event-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Portrait and Mobile Landscape - 576px to 767px */
@media (min-width: 576px) and (max-width: 767px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .main-nav.active {
    display: block;
    animation: slideDown 0.3s ease-out;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  .main-nav ul li a {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
  }

  .main-nav ul li a:hover {
    border-bottom-color: var(--secondary);
  }

  .mobile-menu-btn {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .header-content {
    padding: 1rem 1.5rem;
    height: auto;
    min-height: 70px;
  }

  .logo-text h1 {
    font-size: 18px;
  }

  .logo-text p {
    font-size: 12px;
  }

  .hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 1.3rem;
    padding: 1.5rem;
  }

  .hero-subtitle h2 {
    font-size: 1.8rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-phone-info {
    flex-direction: column;
    gap: 1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-text {
    order: 1;
  }

  .about-images {
    order: 2;
    justify-self: center;
    max-width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .entities-grid,
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .management-leadership {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .event-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .admission-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .banner-section,
  .banner-section-fullwidth {
    margin: 20px 0;
  }
  
  .banner-img {
    max-height: 250px;
  }
}

/* Mobile Portrait - 320px to 575px */
@media (max-width: 575px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .main-nav.active {
    display: block;
    animation: slideDown 0.3s ease-out;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav ul li a {
    font-size: 1rem;
    padding: 0.75rem 0;
    display: block;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .main-nav ul li a:hover {
    background: var(--muted);
  }

  .mobile-menu-btn {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .header-content {
    padding: 0.75rem 1rem;
    height: auto;
    min-height: 60px;
  }

  .logo {
    gap: 0.5rem;
  }

  .logo-text h1 {
    font-size: 16px;
  }

  .logo-text p {
    font-size: 11px;
  }

  .hero-content {
    padding: 1.5rem 1rem;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .hero-content h6 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    padding: 1rem;
    margin-bottom: 2rem;
  }

  .hero-subtitle h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .hero-subtitle p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .hero-cta .cta-button {
    font-size: 1rem;
    padding: 1rem 2rem;
    width: auto;
    min-width: 200px;
  }

  .hero-phone-info {
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.95rem;
  }

  .hero-phone-info a {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(5px);
  }

  /* Section spacing adjustments */
  .about-section,
  .stats-section,
  .management-section,
  .entities-section,
  .facilities-section,
  .events-section,
  .testimonials-section,
  .contact-section {
    padding: 3rem 0;
  }

  .about-content,
  .stats-container,
  .management-container,
  .entities-container,
  .facilities-container,
  .events-container,
  .testimonials-container,
  .contact-container,
  .footer-container {
    padding: 0 1rem;
  }

  /* About section mobile - images below text */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-text {
    order: 1;
  }

  .about-images {
    order: 2;
    justify-self: center;
    max-width: 100%;
  }

  .section-heading {
    margin-bottom: 2rem;
    text-align: center;
  }

  .section-heading h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .section-heading p {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* Stats section mobile */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 300px;
    margin: 0 auto;
  }

  .stat-card {
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .stat-number {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }

  .stat-label {
    font-size: 1rem;
  }

  /* Entities/Academics section mobile */
  .entities-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .entity-card {
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .entity-card .card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .entity-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .entity-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  /* Facilities section mobile */
  .facilities-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .facility-card {
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .facility-card .facility-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .facility-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  /* Management section mobile */
  .management-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .management-leadership {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .management-card {
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .teachers-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .teacher-card {
    padding: 1.5rem;
    text-align: center;
  }

  .teacher-image,
  .card-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
  }

  /* Events section mobile */
  .events-tabs {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .event-tab {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    flex: 1;
    min-width: calc(50% - 0.25rem);
  }

  .event-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .event-item img {
    height: 250px;
    width: 100%;
    object-fit: cover;
  }

  /* Testimonials section mobile */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .testimonial-card {
    padding: 2rem 1.5rem;
  }

  .testimonial-quote {
    font-size: 3rem;
  }

  .testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .testimonial-avatar {
    width: 50px;
    height: 50px;
  }

  /* Contact section mobile */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-info {
    order: 2;
  }

  .contact-form {
    order: 1;
    padding: 2rem 1.5rem;
  }

  .contact-item {
    margin-bottom: 2rem;
    text-align: center;
    flex-direction: column;
    align-items: center;
  }

  .contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    margin-top: 0;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-control {
    padding: 1rem;
    font-size: 1rem;
    border-radius: 8px;
  }

  .btn-submit {
    padding: 1rem 2rem;
    font-size: 1rem;
    width: 100%;
  }

  /* Footer mobile */
  .footer {
    padding: 3rem 0 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
    margin-bottom: 1rem;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .footer-links li {
    flex: 0 0 auto;
  }

  /* Admission section mobile */
  .admission-section {
    padding: 3rem 0;
  }

  .admission-container {
    padding: 0 1rem;
  }

  .admission-dropdown-container {
    margin: 2rem auto;
    max-width: 100%;
  }

  .dropdown-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    text-align: left;
  }

  .dropdown-arrow {
    float: right;
  }

  .admission-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .admission-item {
    padding: 1.5rem;
    text-align: center;
  }

  .admission-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .admission-item p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .download-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
  }

  /* Banner section mobile */
  .banner-section,
  .banner-section-fullwidth {
    margin: 15px 0;
  }
  
  .banner-img {
    max-height: 200px;
  }
}

/* Extra small devices - 320px and below */
@media (max-width: 319px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-subtitle h2 {
    font-size: 1.3rem;
  }

  .section-heading h2 {
    font-size: 1.75rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .hero-cta .cta-button {
    min-width: 180px;
    padding: 0.875rem 1.5rem;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
  }

  .hero-cta {
    gap: 1rem;
  }

  .scroll-indicator {
    display: none;
  }
}

/* Enhanced hover states for touch devices */
@media (hover: none) and (pointer: coarse) {
  .cta-button:hover,
  .dropdown-btn:hover,
  .download-btn:hover,
  .event-tab:hover {
    transform: none;
    box-shadow: none;
  }

  .cta-button:active,
  .dropdown-btn:active,
  .download-btn:active,
  .event-tab:active {
    transform: scale(0.98);
  }
}

/* Print styles */
@media print {
  .main-header,
  .mobile-menu-btn,
  .scroll-indicator,
  .hero-cta,
  .cta-button,
  .contact-form,
  .dropdown-content {
    display: none !important;
  }

  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  .section-heading h2 {
    font-size: 18pt;
    margin-bottom: 1rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border: #000000;
    --muted-foreground: #000000;
  }

  .hero-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.8) 100%);
  }

  .cta-button,
  .dropdown-btn,
  .download-btn {
    border: 2px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-indicator {
    animation: none;
  }

  .gallery-item:hover img {
    transform: none;
  }
}