/* Home Page Specific Styles */
:root {
  --primary-yellow: #e9a319;
  --primary-dark: #333333;
  --primary-light: #f8f8f8;
  --accent-color: #2c7bbf;
  --text-dark: #333333;
  --text-light: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Hero Banner Styles */
.hero-banner {
  position: relative;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4)),
    url('../images/graduation.jpg');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  padding: 8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  width: 100%;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 123, 191, 0.15);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-content h2 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: var(--primary-yellow);
}

/* School Motto Styling */
.school-motto {
  margin-bottom: 2rem;
  animation: fadeIn 1s forwards 0.3s, glowPulse 4s infinite 1s;
  opacity: 0;
}

.motto-quote {
  display: inline-block;
  font-size: 2rem;
  font-weight: 600;
  font-style: italic;
  color: white;
  padding: 0.5rem 1.5rem;
  border-top: 2px solid var(--primary-yellow);
  border-bottom: 2px solid var(--primary-yellow);
  position: relative;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.motto-quote::before,
.motto-quote::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: var(--primary-yellow);
}

.motto-quote::before {
  top: -2px;
  left: -10px;
  transform: rotate(45deg);
}

.motto-quote::after {
  bottom: -2px;
  right: -10px;
  transform: rotate(45deg);
}

.hero-tagline {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem auto;
}

.hero-badge {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.hero-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background-color: var(--primary-yellow);
}

.hero-btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

/* Animation Classes */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.school-motto {
  animation: fadeIn 1s forwards 0.3s, glowPulse 4s infinite 1s;
  opacity: 0;
}

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

@keyframes glowPulse {
  0% {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  }
  50% {
    text-shadow: 0 0 10px rgba(233, 163, 25, 0.5),
      0 0 20px rgba(233, 163, 25, 0.3);
  }
  100% {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  }
}

/* Welcome Section */
.welcome-section {
  padding: 5rem 2rem;
  background-color: var(--primary-light);
  position: relative;
  z-index: 1;
}

.welcome-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
  animation: fadeInUp 1s forwards;
}

.welcome-content {
  padding: 3.5rem;
  color: var(--text-dark);
}

.welcome-content h2 {
  color: var(--primary-dark);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  line-height: 1.2;
  word-wrap: break-word;
  hyphens: auto;
  animation: fadeIn 1s forwards 0.3s;
  opacity: 0;
}

.welcome-content h2:after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  height: 4px;
  width: 80px;
  background-color: var(--primary-yellow);
}

.lead-paragraph {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent-color);
  margin-bottom: 1.8rem;
  line-height: 1.6;
  animation: fadeIn 1s forwards 0.6s;
  opacity: 0;
}

.welcome-content p {
  line-height: 1.7;
  color: var(--text-dark);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 1s forwards 0.9s;
  opacity: 0;
}

.welcome-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3.5rem;
  justify-content: center;
  background-color: rgba(248, 248, 248, 0.7);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
  animation: fadeIn 1s forwards 1.2s;
  opacity: 0;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 140px;
  padding: 1.2rem;
  transition: var(--transition);
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 0.8s forwards;
  opacity: 0;
}

.stat-item:nth-child(1) {
  animation-delay: 1.4s;
}

.stat-item:nth-child(2) {
  animation-delay: 1.6s;
}

.stat-item:nth-child(3) {
  animation-delay: 1.8s;
}

.stat-item:nth-child(4) {
  animation-delay: 2s;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-yellow);
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.stat-label {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.3;
}

/* Values Section */
.values-section {
  padding: 6rem 2rem;
  background-color: #f9f9f9;
  position: relative;
}

.values-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/lefaon.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.035;
  z-index: 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  width: 80px;
  background-color: var(--primary-yellow);
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-dark);
  max-width: 700px;
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.value-card {
  background-color: white;
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  transform: translateY(0);
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background-color: var(--primary-yellow);
  transition: height 0.5s ease;
}

.value-card:hover::before {
  height: 100%;
}

.value-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.value-card:hover .value-icon {
  color: var(--primary-yellow);
  transform: scale(1.1);
}

.value-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.value-card:hover h3 {
  color: var(--accent-color);
}

.value-card p {
  color: #666;
  line-height: 1.6;
}

/* Educational Approach Section */
.approach-section {
  padding: 6rem 2rem;
  background-color: white;
}

.approach-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.approach-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  transition: var(--transition);
}

.approach-image:hover {
  transform: rotate(0deg) scale(1.02);
}

.approach-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.approach-image:hover img {
  transform: scale(1.05);
}

.approach-content {
  flex: 1;
  min-width: 300px;
}

.approach-item {
  margin-bottom: 2rem;
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid transparent;
  transition: var(--transition);
}

.approach-item:hover {
  border-left-color: var(--primary-yellow);
  padding-left: 1.5rem;
}

.approach-item h3 {
  font-size: 1.4rem;
  color: var(--accent-color);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.approach-item i {
  color: var(--primary-yellow);
}

.approach-item p {
  color: #666;
  line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
  padding: 6rem 2rem;
  background-color: #f9f9f9;
  position: relative;
}

.testimonials-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  background-color: white;
}

.testimonial-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
}

.testimonial-content {
  padding: 3rem;
}

.testimonial-quote {
  text-align: center;
  position: relative;
  padding: 2rem 1rem;
}

.testimonial-quote i.fa-quote-left {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--primary-yellow);
  opacity: 0.3;
  font-size: 1.5rem;
}

.testimonial-quote i.fa-quote-right {
  position: absolute;
  bottom: 0;
  right: 0;
  color: var(--primary-yellow);
  opacity: 0.3;
  font-size: 1.5rem;
}

.testimonial-quote p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.testimonial-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-yellow);
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: var(--text-dark);
}

.author-info p {
  font-size: 0.9rem;
  color: #777;
}

.slider-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: #f8f8f8;
  border-top: 1px solid #eee;
}

.slider-arrow {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #555;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slider-arrow:hover {
  background-color: var(--accent-color);
  color: white;
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background-color: var(--accent-color);
  transform: scale(1.2);
}

/* CTA Section */
.cta-section {
  background-color: var(--accent-color);
  color: white;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/lefaon2.jpeg') center/cover no-repeat;
  opacity: 0.05;
  z-index: 1;
}

.cta-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Mission and Vision Section */
.mission-vision-section {
  padding: 5rem 2rem;
  background-color: #f9f9f9;
  position: relative;
  overflow: hidden;
}

.mission-vision-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/pattern.png');
  background-size: 200px;
  opacity: 0.03;
  z-index: 1;
}

.mission-vision-container {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.mission-card,
.vision-card {
  flex: 1;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover,
.vision-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.icon-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.icon-header i {
  font-size: 2.5rem;
  color: var(--primary-yellow);
}

.icon-header h3 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin: 0;
  font-weight: 700;
}

.mission-card p,
.vision-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark);
}

/* Program Section */
.program-section {
  padding: 5rem 2rem;
  background-color: #f8f9fa;
}

.program-container {
  max-width: 1200px;
  margin: 0 auto;
}

.program-levels {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.program-level {
  display: flex;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-level:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.program-icon {
  width: 120px;
  background-color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.program-icon i {
  font-size: 3rem;
}

.program-content {
  padding: 2rem;
}

.program-content h3 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.program-content p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.program-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.program-link:hover {
  gap: 0.8rem;
}

/* Dynamic Method Section */
.method-section {
  padding: 5rem 2rem;
  background-color: white;
}

.method-container {
  display: flex;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.method-image {
  flex: 1;
  max-width: 500px;
}

.method-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.method-content {
  flex: 1;
}

.method-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.method-feature {
  display: flex;
  gap: 1.5rem;
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(233, 163, 25, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 1.8rem;
  color: var(--primary-yellow);
}

.feature-text h3 {
  margin-top: 0;
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.feature-text p {
  margin: 0;
  line-height: 1.6;
}

/* Animate on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation variants */
.program-level.animate-on-scroll {
  transform: translateX(-30px);
}

.program-level.animate-on-scroll.visible {
  transform: translateX(0);
}

.method-feature.animate-on-scroll {
  transform: translateY(20px);
}

.method-feature.animate-on-scroll.visible {
  transform: translateY(0);
}

.mission-card.animate-on-scroll,
.vision-card.animate-on-scroll {
  transform: translateY(20px) scale(0.95);
}

.mission-card.animate-on-scroll.visible,
.vision-card.animate-on-scroll.visible {
  transform: translateY(0) scale(1);
}

/* Welcome section animations */
.welcome-card {
  animation: fadeInUp 1s forwards;
}

.welcome-content h2 {
  animation: fadeIn 1s forwards 0.3s;
  opacity: 0;
}

.lead-paragraph {
  animation: fadeIn 1s forwards 0.6s;
  opacity: 0;
}

.welcome-content p:not(.lead-paragraph) {
  animation: fadeIn 1s forwards 0.9s;
  opacity: 0;
}

.welcome-stats {
  animation: fadeIn 1s forwards 1.2s;
  opacity: 0;
}

.stat-item {
  animation: fadeInUp 0.8s forwards;
  opacity: 0;
}

.stat-item:nth-child(1) {
  animation-delay: 1.4s;
}

.stat-item:nth-child(2) {
  animation-delay: 1.6s;
}

.stat-item:nth-child(3) {
  animation-delay: 1.8s;
}

.stat-item:nth-child(4) {
  animation-delay: 2s;
}

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

@media (prefers-reduced-motion: reduce) {
  .welcome-card,
  .welcome-content h2,
  .lead-paragraph,
  .welcome-content p,
  .welcome-stats,
  .stat-item {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary-yellow);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent-color);
  transform: translateY(-5px);
}

/* Finance and Calendar Section */
.finance-calendar-section {
  padding: 5rem 2rem;
  background-color: white;
}

.section-container {
  display: flex;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.info-card {
  flex: 1;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: white;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
  padding: 1.5rem;
  background-color: var(--primary-yellow);
  color: white;
  text-align: center;
}

.section-subtitle h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.info-content {
  padding: 2rem;
}

.info-item {
  margin-bottom: 1.5rem;
}

.info-item h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.info-item h4 i {
  color: var(--accent-color);
}

.info-item p {
  line-height: 1.6;
  font-size: 1rem;
}

.info-button {
  text-align: center;
  margin-top: 1.5rem;
}

/* Calendar Specific Styles */
.calendar-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calendar-highlight {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.calendar-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(44, 123, 191, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.calendar-icon i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.calendar-text h4 {
  margin: 0 0 0.3rem 0;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.calendar-text p {
  margin: 0;
  font-weight: 600;
  color: var(--accent-color);
}

/* Partners and Languages Section */
.partners-languages-section {
  padding: 5rem 2rem;
  background-color: #f9f9f9;
}

.partners-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.partner-item {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.partner-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.partner-logo i {
  font-size: 1.5rem;
}

.partner-text h4 {
  margin: 0 0 0.3rem 0;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.partner-text p {
  margin: 0;
  line-height: 1.5;
}

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

.language-item {
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.language-item:hover {
  transform: translateY(-5px);
}

.language-flag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background-color: var(--primary-dark);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.language-item h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.language-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.language-approach {
  grid-column: span 2;
  padding: 1.5rem;
  background-color: rgba(44, 123, 191, 0.1);
  border-radius: var(--border-radius);
}

.language-approach h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: var(--accent-color);
}

.language-approach p {
  margin: 0;
  line-height: 1.6;
}

/* Partners logos styling */
.partners-logos {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
}

.partner-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.partner-logo-item p {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 1.2rem;
  margin: 0;
}

.info-content > p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  text-align: justify;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
  .hero-content h2 {
    font-size: 3rem;
  }

  .motto-quote {
    font-size: 1.8rem;
  }

  .hero-tagline {
    font-size: 1.3rem;
  }

  .welcome-content,
  .testimonial-content {
    padding: 2.5rem;
  }
}

@media screen and (max-width: 768px) {
  .hero-banner {
    padding: 6rem 1.5rem;
    min-height: 50vh;
  }

  .hero-content h2 {
    font-size: 2.5rem;
  }

  .motto-quote {
    font-size: 1.5rem;
    padding: 0.4rem 1rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .hero-btn-group {
    flex-direction: column;
    align-items: center;
  }

  .welcome-section,
  .values-section,
  .approach-section,
  .testimonials-section,
  .cta-section {
    padding: 4rem 1rem;
  }

  .welcome-content {
    padding: 2rem 1.5rem;
  }

  .welcome-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .welcome-content h2:after {
    width: 60px;
    bottom: -10px;
  }

  .lead-paragraph {
    font-size: 1.1rem;
  }

  .welcome-stats {
    gap: 1.5rem;
    padding: 1.2rem 0.8rem;
    margin-top: 2.5rem;
  }

  .stat-item {
    min-width: calc(50% - 1.5rem);
    flex: 0 0 calc(50% - 1.5rem);
    padding: 1rem;
  }

  .stat-number {
    font-size: 2.4rem;
  }

  .stat-label {
    font-size: 0.95rem;
  }

  .approach-container {
    flex-direction: column;
    gap: 2rem;
  }

  .approach-image {
    transform: none;
    margin: 0 auto;
  }

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

  .cta-content h2 {
    font-size: 2rem;
  }

  .partners-logos {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
}

@media screen and (max-width: 576px) {
  .hero-content h2 {
    font-size: 2rem;
  }

  .motto-quote {
    font-size: 1.3rem;
    padding: 0.3rem 0.8rem;
  }

  .motto-quote::before,
  .motto-quote::after {
    width: 15px;
  }

  .hero-badges {
    gap: 0.5rem;
  }

  .hero-badge {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }

  .welcome-section {
    padding: 3rem 0.75rem;
  }

  .welcome-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  }

  .welcome-content {
    padding: 1.5rem 1.2rem;
  }

  .welcome-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .lead-paragraph {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .welcome-content p {
    font-size: 0.95rem;
  }

  .welcome-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    padding: 1rem 0.5rem;
    margin-top: 2rem;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .stat-item {
    width: 100%;
    min-width: unset;
    flex: none;
    padding: 0.8rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }

  .testimonial-quote p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 380px) {
  .welcome-content h2 {
    font-size: 1.6rem;
  }

  .welcome-content p {
    font-size: 0.9rem;
  }

  .welcome-stats {
    grid-template-columns: 1fr;
  }

  .stat-item {
    padding: 0.8rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }
}

/* Responsive Styles for New Sections */
@media screen and (max-width: 992px) {
  .mission-vision-container {
    flex-direction: column;
  }

  .section-container {
    flex-direction: column;
  }

  .method-container {
    flex-direction: column;
  }

  .method-image {
    max-width: 100%;
  }

  .languages-grid {
    grid-template-columns: 1fr;
  }

  .language-approach {
    grid-column: span 1;
  }

  /* Removed redundant media query as it's now handled in the parent declaration */
}

@media screen and (max-width: 768px) {
  .program-level {
    flex-direction: column;
  }

  .program-icon {
    width: 100%;
    height: 100px;
  }

  .partner-item {
    flex-direction: column;
    text-align: center;
  }

  .partner-logo {
    margin: 0 auto;
  }

  .method-feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .icon-header {
    flex-direction: column;
    text-align: center;
  }
}

/* Welcome section scroll animations */
.welcome-card.in-viewport {
  transform: translateY(0);
  opacity: 1;
}

/* Initial state for scroll animations */
.welcome-card:not(.in-viewport) {
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.stat-item.in-viewport {
  transform: translateY(0);
  opacity: 1;
}

.stat-item:not(.in-viewport) {
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

/* Compact view for smaller screens */
.welcome-stats.compact-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.welcome-stats.compact-view .stat-item {
  width: 100%;
  min-width: 100%;
  margin-bottom: 0.5rem;
}

/* Print styles for welcome section */
@media print {
  .welcome-section {
    padding: 1rem 0;
    background-color: white;
  }

  .welcome-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .welcome-content {
    padding: 1rem;
  }

  .welcome-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .welcome-content h2:after {
    display: none;
  }

  .welcome-stats {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding: 0.5rem;
    background: none;
    box-shadow: none;
  }

  .stat-item {
    flex: 0 0 25%;
    box-shadow: none;
    border: 1px solid #eee;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  /* Hide animations for print */
  .welcome-card,
  .welcome-content h2,
  .lead-paragraph,
  .welcome-content p,
  .welcome-stats,
  .stat-item {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
}
