* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #004ba3;
  --secondary-color: #FF7323;
  --accent-color: #00ff00;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #004ba3 0%, #62aafc 100%);
  --gradient-secondary: linear-gradient(135deg, #FF7323 0%, #FF7323 100%);
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Responsive Variables */
  --container-padding: clamp(1rem, 5vw, 2rem);
  --section-padding: clamp(3rem, 8vw, 6rem);
  --header-height: clamp(60px, 8vw, 80px);
}

/* Base Styles */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  font-size: clamp(14px, 2.5vw, 16px);
}

.container {
  max-width: min(1400px, 95vw);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Header - Super Responsive */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  height: var(--header-height);
}

.navbar {
  padding: clamp(0.5rem, 2vw, 1rem) 0;
  height: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: min(1400px, 95vw);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.footer .logo-img {
  width: 40px;
  height: 40px;
}

.logo i {
  margin-right: clamp(0.3rem, 1vw, 0.5rem);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  font-size: clamp(0.9rem, 2vw, 1rem);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: clamp(20px, 4vw, 25px);
  height: 3px;
  background: var(--text-dark);
  margin: 2px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero Section - Ultra Responsive */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  /* Dynamic viewport height for mobile */
  background: var(--gradient-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  padding: var(--header-height) var(--container-padding) 2rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,800 1000,1000"/></svg>');
  background-size: cover;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: min(1400px, 95vw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-text {
  order: 1;
}

.hero-visual {
  order: 2;
}

.hero-title {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  line-height: 1.1;
  word-wrap: break-word;
  hyphens: auto;
  text-align: center;
}

.highlight {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  font-weight: 700;
  text-align: center;
}

@supports not (-webkit-background-clip: text) {
  .highlight {
    color: #de9909;
    background: none;
    -webkit-text-fill-color: initial;
  }
}

.hero-description {
  font-size: clamp(1rem, 3vw, 1.3rem);
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: clamp(0.8rem, 2vw, 1rem);
  align-items: center;
  width: 100%;
}

.btn {
  padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
  border: none;
  border-radius: 50px;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  min-width: clamp(200px, 40vw, 250px);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.floating-elements {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.floating-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1rem);
  animation: float 6s ease-in-out infinite;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.floating-card:nth-child(2) {
  animation-delay: -2s;
}

.floating-card:nth-child(3) {
  animation-delay: -4s;
}

.floating-card i {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--secondary-color);
  flex-shrink: 0;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(2rem, 5vw, 4rem);
  max-width: min(600px, 90vw);
  position: relative;
  z-index: 2;
  width: 100%;
}

.stat-item {
  text-align: center;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.stat-number {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--secondary-color);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: clamp(0.8rem, 2vw, 1rem);
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* Sections - Universal Responsive */
.about,
.programs,
.facilities,
.testimonials,
.contact {
  padding: var(--section-padding) 0;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 6vw, 4rem);
}

.section-header h2 {
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
  line-height: 1.2;
}

.section-header p {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--text-light);
  max-width: min(600px, 90vw);
  margin: 0 auto;
  line-height: 1.5;
}

/* Mission, Vision, Values styles */
.mission-vision-values {
  margin-bottom: 4rem;
}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.mvv-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mvv-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.mvv-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.mvv-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.mvv-card p {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 0;
}

.values-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.values-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.values-list i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(1.5rem, 4vw, 2rem);
}

.feature-card {
  background: white;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.feature-icon {
  width: clamp(60px, 12vw, 80px);
  height: clamp(60px, 12vw, 80px);
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto clamp(1rem, 3vw, 1.5rem);
}

.feature-icon i {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: white;
}

.feature-card h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-bottom: clamp(0.8rem, 2vw, 1rem);
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.feature-card ul {
  list-style: none;
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
}

.feature-card li {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1rem);
  margin-bottom: clamp(0.8rem, 2vw, 1rem);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--text-light);
  line-height: 1.6;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.feature-card li i {
  color: var(--accent-color);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  flex-shrink: 0;
}

/* Programs Section */
.programs {
  background: white;
}

.programs-tabs {
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
  flex-wrap: wrap;
}

.tab-btn {
  padding: clamp(0.8rem, 2vw, 1rem) clamp(1.2rem, 3vw, 2rem);
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: clamp(0.8rem, 2vw, 1rem);
  white-space: nowrap;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--primary-color);
  color: white;
}

.programs-content {
  max-width: min(1200px, 95vw);
  margin: 0 auto;
}

.program-content {
  display: none;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
  text-align: center;
}

.program-content.active {
  display: grid;
}

.program-info h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: clamp(0.8rem, 2vw, 1rem);
}

.program-info p {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--text-light);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.6;
}

.program-info ul {
  list-style: none;
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
}

.program-info li {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1rem);
  margin-bottom: clamp(0.8rem, 2vw, 1rem);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

.program-info li i {
  color: var(--accent-color);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  flex-shrink: 0;
}

.program-image {
  order: -1;
}

.program-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
}

/* Facilities Grid */
.facilities {
  background: var(--bg-light);
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(1.5rem, 4vw, 2rem);
}

.facility-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  aspect-ratio: 4 / 3;
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.facility-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facility-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: clamp(1rem, 3vw, 2rem);
  transform: translateY(30%);
  transition: all 0.3s ease;
}

.facility-card:hover .facility-overlay {
  transform: translateY(0);
}

.facility-overlay h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.facility-overlay p {
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.4;
}

/* Facilities Carousel styles */
.facilities-carousel {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.carousel-container {
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 500%;
  /* 5 slides */
}

.facility-slide {
  width: 20%;
  /* 100% / 5 slides */
  position: relative;
  flex-shrink: 0;
}

.facility-slide img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-dot.active {
  background: var(--primary-color);
}

/* Testimonials */
.testimonials {
  background: white;
}

.testimonials-slider {
  max-width: min(800px, 90vw);
  margin: 0 auto;
  position: relative;
}

.testimonial-card {
  display: none;
  text-align: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.testimonial-card.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-content p {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-style: italic;
  color: var(--text-light);
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 2vw, 1rem);
  flex-wrap: wrap;
}

.testimonial-author img {
  width: clamp(50px, 10vw, 60px);
  height: clamp(50px, 10vw, 60px);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-author div {
  text-align: center;
}

.testimonial-author h4 {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 600;
  color: var(--text-dark);
}

.testimonial-author span {
  color: var(--text-light);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 2vw, 1rem);
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.dot {
  width: clamp(10px, 2vw, 12px);
  height: clamp(10px, 2vw, 12px);
  border-radius: 50%;
  background: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* Contact Section */
.contact {
  background: var(--bg-light);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: min(1200px, 95vw);
  margin: 0 auto;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.8rem, 2vw, 1rem);
  padding: clamp(1rem, 3vw, 1.5rem);
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow-light);
}

.contact-item i {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--primary-color);
  width: clamp(30px, 6vw, 40px);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.contact-item div {
  flex: 1;
  min-width: 0;
}

.contact-item h3 {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--text-light);
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.4;
  word-wrap: break-word;
}

.contact-form {
  background: white;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
}

.form-group {
  position: relative;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: clamp(0.8rem, 2vw, 1rem);
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: all 0.3s ease;
  background: transparent;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group label {
  position: absolute;
  top: clamp(0.8rem, 2vw, 1rem);
  left: clamp(0.8rem, 2vw, 1rem);
  color: var(--text-light);
  transition: all 0.3s ease;
  pointer-events: none;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.form-group input:focus+label,
.form-group input:valid+label,
.form-group select:focus+label,
.form-group select:valid+label,
.form-group textarea:focus+label,
.form-group textarea:valid+label {
  top: -0.5rem;
  left: 0.5rem;
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  color: var(--primary-color);
  background: white;
  padding: 0 0.5rem;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(1rem, 2vw, 1rem);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.footer-section h3 {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  margin-bottom: clamp(0.8rem, 2vw, 1rem);
  color: var(--secondary-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.4;
}

.footer-section ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
  word-wrap: break-word;
}

.footer-section ul li a:hover {
  color: var(--secondary-color);
}

.social-links {
  display: flex;
  gap: clamp(0.8rem, 2vw, 1rem);
  margin-top: clamp(0.8rem, 2vw, 1rem);
  flex-wrap: wrap;
}

.social-links a {
  width: clamp(35px, 8vw, 40px);
  height: clamp(35px, 8vw, 40px);
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: clamp(1rem, 2vw, 2rem);
  border-top: 1px solid #374151;
  color: #9ca3af;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  padding: var(--container-padding);
}

.modal-content {
  background-color: white;
  margin: 5vh auto;
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: 20px;
  width: min(600px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close {
  position: absolute;
  right: clamp(1rem, 2vw, 1rem);
  top: clamp(1rem, 2vw, 1rem);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: bold;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.3s ease;
  line-height: 1;
}

.close:hover {
  color: var(--text-dark);
}


@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: clamp(3px, 1vw, 4px);
  background: var(--gradient-primary);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Animations */
[data-aos] {
  opacity: 0;
  transition: all 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

[data-aos="zoom-in"] {
  transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
  transform: scale(1);
}

/* Responsive Breakpoints */

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
    --section-padding: 2.5rem;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 1.5rem;
    word-wrap: break-word;
    hyphens: auto;
    text-align: center;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: var(--header-height);
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-medium);
    padding: 2rem 0;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  .hero {
    padding: calc(var(--header-height) + 1rem) 1rem 1.5rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }

  .floating-elements {
    gap: 1rem;
    max-width: 100%;
  }

  .floating-card {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .programs-tabs {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .tab-btn {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
  }

  .program-content {
    gap: 1.5rem;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .contact-content {
    gap: 2rem;
  }

  .testimonial-author {
    flex-direction: column;
    gap: 1rem;
  }

  .mvv-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .mvv-card {
    padding: 1.5rem;
  }

  .mvv-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .prev-btn {
    left: 5px;
  }

  .next-btn {
    right: 5px;
  }

  .facility-slide img {
    height: 250px;
  }

  .facility-overlay {
    padding: 1rem;
  }

  .footer-content {
    gap: 2rem;
  }

  .modal-content {
    margin: 2vh auto;
    padding: 1.5rem;
    width: 95vw;
  }
}

/* Medium Mobile (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-title {
    font-size: 2rem;
    word-wrap: break-word;
    hyphens: auto;
    text-align: center;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: var(--header-height);
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-medium);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .contact-content {
    grid-template-columns: 1fr 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }
}

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-buttons {
    justify-content: flex-start;
    flex-direction: row;
  }

  .program-content {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .program-image {
    order: 0;
  }

  .contact-content {
    grid-template-columns: 1fr 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .facilities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop (1025px - 1440px) */
@media (min-width: 1025px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .hero-text {
    text-align: left;
  }

  .hero-buttons {
    justify-content: flex-start;
    flex-direction: row;
  }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .program-content {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .program-image {
    order: 0;
  }

  .contact-content {
    grid-template-columns: 1fr 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .facilities-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Desktop (1441px+) */
@media (min-width: 1441px) {
  .container {
    max-width: 1400px;
  }

  .facilities-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Ultra-wide screens (1920px+) */
@media (min-width: 1920px) {
  :root {
    --container-padding: 2rem;
    --section-padding: 8rem;
  }

  .hero-title {
    font-size: 4.5rem;
  }

  .section-header h2 {
    font-size: 3rem;
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

  .facility-card img,
  .program-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding: calc(var(--header-height) + 1rem) var(--container-padding) 1rem;
  }

  .hero-content {
    gap: 2rem;
  }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 2rem;
  }
}

/* Print styles */
@media print {

  .header,
  .scroll-progress {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  * {
    box-shadow: none !important;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .floating-card {
    animation: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  }

  .btn {
    border: 2px solid currentColor;
  }

  .feature-card,
  .facility-card,
  .contact-item {
    border: 1px solid var(--text-light);
  }
}

/* Opción 1: Efecto de brillo/glow clásico */
.highlight-glow {
  color: #3b82f6;
  /* Azul */
  font-weight: 700;
  text-shadow:
    0 0 5px rgba(59, 130, 246, 0.5),
    0 0 10px rgba(59, 130, 246, 0.4),
    0 0 15px rgba(59, 130, 246, 0.3),
    0 0 20px rgba(59, 130, 246, 0.2);
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  from {
    text-shadow:
      0 0 5px rgba(59, 130, 246, 0.5),
      0 0 10px rgba(59, 130, 246, 0.4),
      0 0 15px rgba(59, 130, 246, 0.3);
  }

  to {
    text-shadow:
      0 0 10px rgba(59, 130, 246, 0.8),
      0 0 20px rgba(59, 130, 246, 0.6),
      0 0 30px rgba(59, 130, 246, 0.4),
      0 0 40px rgba(59, 130, 246, 0.2);
  }
}

/* Opción 2: Efecto neón futurista */
.highlight-neon {
  color: #00ff88;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow:
    0 0 7px #00ff88,
    0 0 10px #00ff88,
    0 0 21px #00ff88,
    0 0 42px #00ff41,
    0 0 82px #00ff41,
    0 0 92px #00ff41,
    0 0 102px #00ff41,
    0 0 151px #00ff41;
  animation: flicker 1.5s infinite alternate;
}

@keyframes flicker {

  0%,
  18%,
  22%,
  25%,
  53%,
  57%,
  100% {
    text-shadow:
      0 0 4px #00ff88,
      0 0 11px #00ff88,
      0 0 19px #00ff88,
      0 0 40px #00ff41,
      0 0 80px #00ff41,
      0 0 90px #00ff41,
      0 0 100px #00ff41,
      0 0 150px #00ff41;
  }

  20%,
  24%,
  55% {
    text-shadow: none;
  }
}

/* Opción 3: Degradado arcoíris brillante */
.highlight-rainbow {
  font-weight: bold;
  font-size: 1.2em;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24, #f0932b, #eb4d4b, #6c5ce7);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow-flow 3s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.3));
}

@keyframes rainbow-flow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Opción 4: Efecto de luz dorada elegante */
.highlight-gold {
  color: #ffd700;
  font-weight: 600;
  text-shadow:
    0 0 5px rgba(255, 215, 0, 0.8),
    0 0 10px rgba(255, 215, 0, 0.6),
    0 0 15px rgba(255, 215, 0, 0.4),
    0 0 20px rgba(255, 215, 0, 0.2);
  position: relative;
  display: inline-block;
}

.highlight-gold::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700, #ffed4e);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.3;
  animation: golden-shimmer 2s linear infinite;
}

@keyframes golden-shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Opción 5: Efecto de resaltador/highlighter */
.highlight-marker {
  background: linear-gradient(120deg, #a8e6cf 0%, #dcedc8 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.2em;
  background-position: 0 88%;
  transition: background-size 0.25s ease-in;
  font-weight: 600;
  color: #2d5a27;
  padding: 2px 4px;
  animation: highlight-grow 0.8s ease-out forwards;
}

@keyframes highlight-grow {
  from {
    background-size: 0% 0.2em;
  }

  to {
    background-size: 100% 0.2em;
  }
}

/* Opción 6: Efecto 3D con sombra */
.highlight-3d {
  color: #e74c3c;
  font-weight: bold;
  text-shadow:
    1px 1px 0px #c0392b,
    2px 2px 0px #a93226,
    3px 3px 0px #922b21,
    4px 4px 8px rgba(0, 0, 0, 0.3);
  transform: perspective(500px) rotateX(15deg);
  display: inline-block;
  transition: all 0.3s ease;
}

.highlight-3d:hover {
  transform: perspective(500px) rotateX(0deg) scale(1.05);
  text-shadow:
    2px 2px 0px #c0392b,
    4px 4px 0px #a93226,
    6px 6px 0px #922b21,
    8px 8px 15px rgba(0, 0, 0, 0.4);
}

/* Opción 7: Efecto de destello/shine */
.highlight-shine {
  color: #8e44ad;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.highlight-typing-minimal {
  color: #f0f0f0;
  font-weight: 600;
  border-right: 2px solid #f0f0f0;
  white-space: nowrap;
  overflow: hidden;
  animation: typing 2s steps(25, end), blink-caret-minimal 0.75s step-end infinite;
  display: inline-block;
  padding: 4px 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.3),
    0 0 40px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);

}

@keyframes blink-caret-minimal {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: #f0f0f0;
  }
}

/* Floating Social Media Buttons */
.floating-container {
  position: fixed;
  bottom: clamp(1.5rem, 4vw, 2rem);
  right: clamp(1rem, 3vw, 1.5rem);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vw, 12px);
}

.social-btn {
  width: clamp(48px, 10vw, 54px);
  height: clamp(48px, 10vw, 54px);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: clamp(20px, 4vw, 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  opacity: 0.92;
}

.social-btn:hover {
  transform: translateX(-5px) scale(1.08);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
  opacity: 1;
}

.social-btn:active {
  transform: translateX(-3px) scale(1.02);
}

.social-btn.whatsapp { 
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.social-btn.whatsapp:hover {
  background: linear-gradient(135deg, #2ee672, #149e8c);
}

.social-btn.facebook { 
  background: linear-gradient(135deg, #1877f2, #0d5dbf);
}

.social-btn.facebook:hover {
  background: linear-gradient(135deg, #3b8df5, #1068d4);
}

.social-btn.telefono { 
  background: linear-gradient(135deg, var(--primary-color), #0056c7);
}

.social-btn.telefono:hover {
  background: linear-gradient(135deg, #0056c7, #0068e0);
}

/* Responsive adjustments for floating buttons */
@media (max-width: 480px) {
  .floating-container {
    bottom: 1rem;
    right: 0.8rem;
    gap: 8px;
  }
  
  .social-btn {
    width: 46px;
    height: 46px;
    font-size: 19px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .floating-container {
    bottom: 1.2rem;
    right: 1rem;
  }
  
  .social-btn {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
}