:root {
  --primary-color: #f6c752;  /* Orange */
  --secondary-color: #FFA500; /* Light Orange */
  --accent-color: #FFD700;   /* Gold */
  --text-color: #333333;     /* Dark Gray */
  --light-bg: #FFF8F0;       /* Off White */
  --border-color: #FFE4B5;   /* Moccasin */
  --white: #FFFFFF;
  --primary-font-size: 16px;
  --primary-line-height: 1.6;
  --primary-font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Theme Colors - Customizable */
  --theme-brown: #FF8C00;
  --theme-light-brown: #FFD700;
  --theme-dark-brown: #FF6347;
  --theme-white: #FFFFFF;
  --theme-off-white: #FFF8F0;
  
  /* High Contrast */
  --high-contrast-text: #000000;
  --high-contrast-bg: #FFFFFF;
  
  /* Animation Speeds */
  --transition-speed: 0.3s;
  --mobile-padding: 1rem;
  --mobile-radius: 16px;
  --mobile-font-size: 14px;
}
.faq{
  margin-top: 200px;
}
.navbar-logo a{
  text-decoration: none;
}
.about{
  padding-top: 60px;
  padding-bottom:60px ;
}
.aef-about {
  background: #fdfdfd;
  padding: 60px 20px;
  font-family: 'Segoe UI', sans-serif;
  color: #222;
}

.aef-container {
  max-width: 900px;
  margin: auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  padding: 40px 30px;
}

.aef-title {
  text-align: center;
  font-size: 34px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.aef-subtitle {
  text-align: center;
  font-size: 18px;
  color: #888;
  margin-bottom: 40px;
}

.aef-section {
  margin-bottom: 35px;
}

.aef-section h3 {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.aef-section p {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.aef-section ul {
  margin-top: 10px;
  padding-left: 20px;
}

.aef-section ul li {
  margin-bottom: 8px;
  font-size: 16px;
  color: #444;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .aef-title {
    font-size: 26px;
  }

  .aef-subtitle {
    font-size: 16px;
  }

  .aef-section h3 {
    font-size: 18px;
  }

  .aef-section p,
  .aef-section ul li {
    font-size: 15px;
  }

  .aef-container {
    padding: 25px 20px;
  }
  
}
/* Example CSS */
#nav-links {
  display: none;
  flex-direction: column;
  gap: 20px;
}

#nav-links.open {
  display: flex;
}


.images img {
  margin-left: 80px;
  width: 500px;
  height: auto;
  border-radius: 8px;
}
.about-div-text{
  margin-right: 50px;
  margin-left: 50px;
  margin-top: 100px;
  width: 700px;
}
.about h2{
  text-align: center;
}
.about-div{
  display: flex;
  justify-content: inline-block;
}
@media screen and (max-width: 768px) {
  
  body{
    width: auto;
  }
  .map img{
  max-width: 400px;
  max-height: 150px;
  }
  .images img{
    max-width: 300px;
    margin-right: auto;
    margin-left: auto;
  }
  .about-div{
    display: block;
  }
  .about-div p{
    max-width: 300px;
  }
  .footer-section img{
  max-width: 60px;
}

}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--primary-font-family);
  scroll-behavior: smooth; /* Smooth scrolling for all anchors */
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
}


.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 50px;
  margin-right: 10px;
}

.navbar-title {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 18px;
}

.navbar-links {
  display: flex;
  gap: 20px;
}

.navbar-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 100;
}

.hamburger .bar {
  height: 3px;
  width: 100%;
  background: #333;
  transition: all 0.3s ease;
}

/* MOBILE STYLES */
@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 6rem 2rem;
    gap: 1.5rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 99;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}


body {
  line-height: var(--primary-line-height);
  color: var(--text-color);
  background-color: var(--light-bg);
}

/* Header Styles */
header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 1.5rem; /* Reduced gap for more items */
  flex-wrap: wrap; /* Allow wrapping for more items */
}

.navbar-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  position: relative;
}

.navbar-links a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s;
}

.navbar-links a:hover:after {
  width: 100%;
}

.navbar-links a:hover {
  background: var(--light-bg);
  color: var(--primary-color);
}

.language-switcher {
  margin-left: 1rem;
}

#languageSelect {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 25px;
  background: var(--white);
  color: var(--text-color);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.3s ease;
  direction: ltr; /* Ensure LTR for language selector */
}

#languageSelect:hover {
  border-color: var(--primary-color);
}

/* RTL support for Arabic */
html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

html[dir="rtl"] .language-switcher {
  margin-left: 0;
  margin-right: 1rem;
}

html[dir="rtl"] .nav-links a {
  direction: rtl;
}

/* Responsive language selector */
@media (max-width: 768px) {
  .language-switcher {
    grid-column: 1 / -1;
    margin: 1rem 0;
    position: static; /* Reset position for mobile menu */
    text-align: center;
  }
  
  #languageSelect {
    width: 100%;
    max-width: 200px;
    display: block;
    margin: 0 auto;
  }
}

/* Mobile menu styles */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  transition: all 0.3s ease;
}

.mobile-nav {
  display: flex;
}

.mobile-nav.active {
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 60px; /* Adjust based on header height */
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    transition: left 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 999;
    align-items: center; /* Center items in mobile menu */
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links a {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    text-align: center;
  }
  
  /* Mobile hero */
  .hero {
    margin-top: 60px; /* Adjust for header only */
    padding: 3rem 1rem;
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    padding: 0 var(--mobile-padding);
  }
  
  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-image {
    margin-top: 2rem;
    max-width: 280px;
  }
  
  .coffee-image {
    border-radius: var(--mobile-radius);
  }
  
  /* Mobile sections */
  section {
    
    width: auto;
  }
  
  section h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }
  
  /* Mobile grid layouts */
  .lesson-grid,
  .features,
  .reasons-grid,
  .activity-cards,
  .faq-grid,
  .cultural-grid,
  .kids-programs-subsections { /* Added for new sections */
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-left: 50px;
  }
  
  
  .lesson-card,
  .game-card,
  .room-card,
  .activity-card,
  .faq-item,
  .kids-program-card { /* Added for new sections */
 /* Removed horizontal margin for full width */
    padding: 1.5rem;
    border-radius: var(--mobile-radius);
  }
  
  /* Mobile buttons */
  .cta-button,
  .module-btn,
  .play-btn,
  .join-btn,
  .share-button {
    margin-top: 10px;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border-radius: var(--mobile-radius);
  }
  
  /* Mobile modal */
  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 1.5rem;
    border-radius: var(--mobile-radius);
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .close-modal {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Mobile feedback section */
  .feedback-section {
    margin: 1.5rem 0 0 0; /* Adjusted margins */
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: var(--mobile-radius); /* Added radius */
  }
  
  .feedback-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .feedback-btn {
    justify-content: center;
    padding: 1rem;
  }
  
  /* Mobile chatbot */
  #chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: calc(100vw - 40px);
    max-width: 350px;
    height: 500px;
    border-radius: var(--mobile-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  }
  
  #chatbot.open {
    height: 70vh;
  }
  
  /* Mobile touch enhancements */
  button,
  .interactive-element,
  .option,
  .greeting-item,
  .vocab-card {
    min-height: 44px;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 140, 0, 0.3);
  }
  
  /* Mobile scroll improvements */
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Mobile card shadows */
  .lesson-card,
  .game-card,
  .room-card,
  .activity-card,
  .faq-item,
  .kids-program-card { /* Added for new sections */
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  }
  
  /* Mobile animations */
  @keyframes slideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }
  
  /* Mobile specific utilities */
  .mobile-only {
    display: block;
  }
  
  .desktop-only {
    display: none;
  }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
  .lesson-grid,
  .kids-programs-subsections { /* Added for new sections */
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }

  .about-content-wrapper {
    flex-direction: block;
  }

  .about-image {
    order: -1; /* Move image to top on tablets */
    margin-bottom: 2rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .lesson-card:hover,
  .game-card:hover,
  .room-card:hover,
  .kids-program-card:hover { /* Added for new sections */
    transform: none;
  }
  
  .interactive-element:active {
    transform: scale(0.98);
  }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: -webkit-fill-available;
  }
  
  .modal-content {
    -webkit-overflow-scrolling: touch;
  }
}

/* Android specific fixes */
@supports (-webkit-appearance: none) {
  input[type="search"] {
    -webkit-appearance: none;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  margin-top: 60px; /* Adjust for fixed header height */
  padding: 6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 500px;
}

.coffee-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.coffee-image:hover {
  transform: rotate(0deg);
}

.hero h1 {
  font-size: 3rem;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: var(--white);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  padding: 1rem 2.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(232, 76, 61, 0.2);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
}

/* Lessons Section */
.courses { /* Renamed from .lessons to .courses */
  padding: 5rem 2rem;
  background-color: var(--white);
  margin-top: 50px;
}
.courses a{
  color: var(--primary-color);
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted minmax for more flexible columns */
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.lesson-card {
  border: none;
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.lesson-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.15);
}

.module-btn {
  border-radius: 50px;
  background: var(--light-bg);
  color: var(--text-color);
  font-weight: 600;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

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

/* About Us Section */
.about {
  padding: 5rem 2rem;
  background-color: var(--light-bg);
}

.about h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.about-content-wrapper {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping for responsiveness */
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start; /* Align items to the top */
}

.about-text {
  flex: 2;
  min-width: 300px; /* Ensure text section doesn't get too small */
}

.about-text h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.about-text p {
  margin-bottom: 2rem;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-width: 280px; /* Ensure image section doesn't get too small */
}

.campus-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.about  {
  margin-bottom: 2rem; /* Add margin below map */
  border-radius: 12px;
  overflow: hidden;
}


.about .features,
.about .reasons-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.about .feature,
.about .reason {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
}

.about .feature svg,
.about .reason svg {
  margin-bottom: 1rem;
}

/* Contact Section */
.contact {
  padding: 5rem 2rem;
  background-color: var(--white);
  margin-top: 100px;
}

.contact h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.contact p {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  color: var(--text-color);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--light-bg);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-color);
  background: var(--white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

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

.contact-form .cta-button {
  width: auto; /* Override full-width for buttons in form */
  padding: 1rem 3rem;
  display: block;
  margin: 0 auto;
}

/* Enhanced Lesson Styles */
.lesson-navigation {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.lesson-nav-btn {
  padding: 0.8rem 1.5rem;
  background: var(--light-bg);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.lesson-nav-btn.active {
  background: var(--primary-color);
  color: white;
}

.dialogue-lesson {
  padding: 1.5rem;
  background: var(--light-bg);
  border-radius: 12px;
}

.dialogue-line {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.french-line {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.english-line {
  color: var(--text-color);
  font-style: italic;
}

.vocabulary-lesson {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.vocab-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.vocab-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.15);
}

.french-word {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.english-word {
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.usage-note {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  margin-bottom: 1rem;
}

.quiz-lesson {
  max-width: 600px;
  margin: 0 auto;
}

.quiz-progress {
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.question {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.options {
  display: grid;
  gap: 1rem;
}

.option {
  padding: 1rem;
  background: var(--light-bg);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.option:hover:not(.disabled) {
  background: rgba(139, 69, 19, 0.1);
}

.option.correct {
  background: rgba(40, 167, 69, 0.2) !important;
  border: 2px solid #28a745;
}

.option.incorrect {
  background: rgba(220, 53, 69, 0.2) !important;
  border: 2px solid #dc3545;
}

.option.disabled {
  cursor: default;
  opacity: 0.7;
}

.next-question {
  display: block;
  margin: 2rem auto 0;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.next-question:hover {
  background: var(--secondary-color);
}

.quiz-results {
  text-align: center;
  padding: 2rem;
}

.quiz-results h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.retry-quiz {
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.achievement-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideIn 0.3s ease-out;
  z-index: 1000;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification-icon {
  font-size: 1.5rem;
}

.notification-content {
  display: flex;
  flex-direction: column;
}

.notification-title {
  font-weight: 600;
  color: var(--primary-color);
}

.practice-pronunciation {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.practice-pronunciation:hover {
  background: var(--secondary-color);
}

/* Section Headers */
section h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* Practice Section Specific */
.practice {
  background-color: var(--light-bg);
  padding: 5rem 2rem;
}

.speech-interface {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.word-display {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  font-weight: 600;
}

.speech-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.speech-btn:hover {
  background: var(--secondary-color);
}

/* Game Cards */
.game-card {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.15);
}

.play-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 0.8rem 2rem;
  font-weight: 600;
}

.play-btn:hover {
  background: var(--secondary-color);
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
}

.modal-content {
  background: var(--white);
  margin: 5% auto;
  padding: 2.5rem;
  width: 90%;
  max-width: 800px;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 4px 20px rgba(139, 69, 19, 0.15);
}

.close-modal {
  background: var(--light-bg);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute; /* Added position absolute */
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
  z-index: 1; /* Ensure it's above content */
}

/* Cultural Content Styles */
.cultural-section {
  padding: 5rem 2rem;
  background: var(--white);
}

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

.cultural-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--light-bg);
  padding: 1.5rem;
}

.cultural-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.cultural-card iframe,
.cultural-card audio {
  border-radius: 10px;
  margin-top: 1rem;
  width: 100%;
}

.cultural-content {
  padding: 2rem;
  background: var(--white);
  border-radius: 16px;
  margin: 2rem auto;
  max-width: 1200px;
}

.media-player {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.podcast-list, .video-section {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 12px;
}

/* Flashcard Styles */
.flashcard-container {
  perspective: 1000px;
  margin: 2rem auto;
  width: 300px;
  height: 200px;
}

.flashcard {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.flashcard.flipped {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-back {
  transform: rotateY(180deg);
}

/* Quiz Styles */
.quiz-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
}

.question {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.options {
  display: grid;
  gap: 1rem;
}

.option {
  padding: 1rem;
  background: var(--light-bg);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option:hover {
  background: rgba(232, 76, 61, 0.1);
}

.option.correct {
  background: rgba(40, 167, 69, 0.2);
  border-color: #28a745;
}

.option.incorrect {
  background: rgba(220, 53, 69, 0.2);
  border-color: #dc3545;
}

/* Room Card */
.room-card {
  background: var(--white);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.join-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 0.8rem 2rem;
  font-weight: 600;
}

.join-btn:hover {
  background: var(--secondary-color);
}

/* Progress Bar */
.progress-bar {
  height: 8px;
  background: var(--accent-color);
  border-radius: 4px;
  margin: 1rem 0;
}

.progress-bar > div {
  background: var(--primary-color);
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Accessibility Features */
.high-contrast {
  background: var(--high-contrast-bg);
  color: var(--high-contrast-text);
}

.large-text {
  font-size: 120%;
}

.dyslexic-font {
  font-family: 'OpenDyslexic', var(--primary-font-family);
}

/* Content Cards */
.content-card {
  background: var(--theme-white);
  border-radius: 15px;
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed);
}

.content-card:hover {
  transform: translateY(-5px);
}

/* Immersive Content */
.immersive-content {
  position: relative;
  padding: 2rem;
  background: linear-gradient(135deg, var(--theme-brown), var(--theme-dark-brown));
  color: var(--theme-white);
  border-radius: 20px;
  overflow: hidden;
}

.immersive-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50%" y="50%" text-anchor="middle" dy=".3em" font-size="80" fill="rgba(255,255,255,0.1)">🇫🇷</text></svg>');
  opacity: 0.1;
}

/* Interactive Elements */
.interactive-element {
  cursor: pointer;
  transition: all var(--transition-speed);
}

.interactive-element:hover {
  transform: scale(1.05);
}

/* Gamification Elements */
.achievement-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--theme-light-brown);
  color: var(--theme-dark-brown);
  font-size: 24px;
  margin: 0.5rem;
  position: relative;
  overflow: hidden;
}

.achievement-badge.unlocked {
  animation: unlockBadge 0.6s ease-out;
}

@keyframes unlockBadge {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* Progress Tracking */
.progress-ring {
  position: relative;
  width: 80px;
  height: 80px;
}

.progress-ring circle {
  transition: stroke-dashoffset var(--transition-speed);
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

/* Smart Search */
.search-container {
  position: relative;
  max-width: 600px;
  margin: 2rem auto;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid var(--theme-light-brown);
  border-radius: 25px;
  font-size: 1rem;
  background: var(--theme-white);
  transition: border-color var(--transition-speed);
}

.search-input:focus {
  border-color: var(--theme-brown);
  outline: none;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--theme-white);
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
}

/* Note Taking */
.note-container {
  background: var(--theme-off-white);
  border-radius: 15px;
  padding: 1rem;
  margin: 1rem 0;
}

.note-editor {
  width: 100%;
  min-height: 150px;
  padding: 1rem;
  border: 1px solid var(--theme-light-brown);
  border-radius: 10px;
  resize: vertical;
  font-family: inherit;
}

/* Share Features */
.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--theme-brown);
  color: var(--theme-white);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background var(--transition-speed);
}

.share-button:hover {
  background: var(--theme-dark-brown);
}

/* New styles for feedback section */
.feedback-section {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.feedback-section h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feedback-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.feedback-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 8px;
  background: var(--light-bg);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.feedback-icon {
  font-size: 1.2rem;
}

.feedback-display {
  margin-top: 1rem;
}

/* Enhanced feedback styles */
.feedback-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(139, 69, 19, 0.1);
  border: 1px solid var(--border-color);
}

.recording-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.recording-timer {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  font-family: monospace;
}

.recording-indicator {
  color: #dc3545;
  font-weight: 600;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.recording-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.recording-controls button {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.start-recording,
.feedback-submit {
  background: var(--primary-color);
  color: var(--white);
}

.stop-recording {
  background: #dc3545;
  color: var(--white);
}

.play-recording {
  background: #28a745;
  color: var(--white);
}

.feedback-cancel {
  background: var(--light-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.recording-controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.video-container {
  margin-bottom: 1rem;
  text-align: center;
}

.video-container video {
  border: 2px solid var(--border-color);
  background: #000;
}

.text-feedback-container {
  margin-bottom: 1rem;
}

.feedback-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.3s ease;
}

.feedback-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.character-counter {
  text-align: right;
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

.feedback-success {
  text-align: center;
  padding: 2rem;
  background: rgba(40, 167, 69, 0.1);
  border: 2px solid #28a745;
  border-radius: 12px;
  color: #28a745;
}

.feedback-success .feedback-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.feedback-success blockquote {
  background: rgba(40, 167, 69, 0.05);
  padding: 1rem;
  border-left: 4px solid #28a745;
  margin: 1rem 0;
  font-style: italic;
  color: var(--text-color);
}

.feedback-error {
  background: rgba(220, 53, 69, 0.1);
  border: 2px solid #dc3545;
  border-radius: 8px;
  padding: 1rem;
  color: #dc3545;
  text-align: center;
}

.feedback-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* New styles for kids program details within the modal */
.kids-program-details {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.program-detail-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
}

.program-detail-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.program-detail-card p {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.program-detail-card p strong {
  color: var(--secondary-color);
}

/* New styles for interactive modes within Kids & Teens program details */
.interactive-modes {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.interactive-modes h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.interactive-modes .feedback-buttons { /* Reusing existing feedback-buttons for layout */
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.interactive-modes .mode-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 8px;
  background: var(--light-bg);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.interactive-modes .mode-btn:hover {
  background: var(--primary-color);
  color: var(--white);
}

.interactive-content-area {
  min-height: 150px; /* Ensure space for content */
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
  position: relative; /* For loading indicator */
}

/* Specific styles for interactive mode content */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 400px; /* Fixed height for chat scroll */
  border-radius: 8px;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: var(--light-bg);
  border-bottom: 1px solid var(--border-color);
  display: flex; /* For chat bubble alignment */
  flex-direction: column;
  gap: 0.75rem;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  max-width: 85%;
}

.chat-message.user {
  align-self: flex-end;
  justify-content: flex-end;
}

.chat-message.bot {
  align-self: flex-start;
  justify-content: flex-start;
}

.message-icon {
  font-size: 1.4rem;
  margin: 0.2rem 0.5rem;
}

.message-bubble {
  padding: 0.75rem 1rem;
  border-radius: 18px;
  max-width: calc(100% - 3rem); /* Account for icon and padding */
  line-height: 1.4;
}

.chat-message.user .message-bubble {
  background: var(--primary-color);
  color: var(--white);
  border-bottom-right-radius: 4px; /* Tail for user */
}

.chat-message.bot .message-bubble {
  background: #E0E0E0; /* Light gray for bot */
  color: var(--text-color);
  border-bottom-left-radius: 4px; /* Tail for bot */
}

.chat-input-area {
  display: flex;
  padding: 1rem;
  background: var(--white);
  border-top: 1px solid var(--border-color);
}

.chat-input-area input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 25px;
  font-size: 1rem;
  margin-right: 0.5rem;
}

.chat-input-area button {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 25px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.chat-input-area button:hover {
  background: var(--secondary-color);
}

.chat-input-area button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Voice & Video specific controls */
.interactive-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.interactive-controls button {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.interactive-controls .start-recording,
.interactive-controls .start-voice-chat {
  background: #28a745; /* Green for start */
  color: white;
}

.interactive-controls .stop-recording,
.interactive-controls .stop-voice-chat {
  background: #dc3545; /* Red for stop */
  color: white;
}

.interactive-controls .get-ai-feedback,
.interactive-controls .play-recording {
  background: var(--primary-color); /* Orange for AI/play */
  color: var(--white);
}

.interactive-controls .reset-mode {
  background: var(--light-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.interactive-controls button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.interactive-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Video display within activity */
.video-stream-area video {
  width: 100%;
  max-width: 500px;
  height: auto;
  background: black;
  border-radius: 8px;
  display: block;
  margin: 1rem auto;
}

/* Mobile enhancements for feedback */
@media (max-width: 768px) {
  .interactive-modes .feedback-buttons,
  .interactive-controls {
    flex-direction: column;
    width: 100%;
  }

  .interactive-modes .mode-btn,
  .interactive-controls button {
    width: 100%;
    justify-content: center;
  }
  
  .chat-container {
    height: 300px; /* Smaller height for mobile chat */
  }

  .chat-message {
    max-width: 95%; /* Adjust for smaller screens */
  }
}

html[dir="rtl"] .chat-message.user .message-bubble {
  border-bottom-right-radius: 18px; /* Reset tail */
  border-bottom-left-radius: 4px; /* New tail for RTL */
}

html[dir="rtl"] .chat-message.bot .message-bubble {
  border-bottom-left-radius: 18px; /* Reset tail */
  border-bottom-right-radius: 4px; /* New tail for RTL */
}

/* Print Styles */
@media print {
  .no-print {
    display: none;
  }
  
  .content-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* Footer updates */
footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 3rem 2rem 1rem;
}

.footer-section h4 {
  color: var(--white);
}



.social-links a {
  color: var(--white);
  text-decoration: none;
}

.social-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid var(--accent-color);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
}

/* Chart color updates */
.chart-container {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.1);
}

/* Add new styles for enhanced content */
.role-play-container {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.scenario-description {
  font-style: italic;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(139, 69, 19, 0.1);
  border-radius: 8px;
}

.dialogue-practice {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
}

.dialogue-line {
  margin-bottom: 1rem;
  padding: 0.8rem;
  border-radius: 6px;
}

.dialogue-line.A {
  background: rgba(139, 69, 19, 0.05);
  margin-right: 20%;
}

.dialogue-line.B {
  background: rgba(222, 184, 135, 0.2);
  margin-left: 20%;
}

.speaker {
  font-weight: 600;
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.user-input {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.user-input input {
  flex: 1;
  padding: 0.8rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
}

.submit-response {
  padding: 0.8rem 1.5rem;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-response:hover {
  background: var(--secondary-color);
}

.example-sentences {
  margin-top: 2rem;
}

.example {
  background: var(--light-bg);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.example .french {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.example .english {
  color: var(--text-color);
  font-style: italic;
}

/* Song Activity Styles */
.song-container {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 12px;
}

.audio-player {
  margin-bottom: 2rem;
  text-align: center;
}

.audio-player audio {
  width: 100%;
  max-width: 500px;
}

.lyrics-container {
  max-width: 600px;
  margin: 0 auto;
}

.lyric-line {
  display: flex;
  flex-direction: column;
  padding: 0.8rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.lyric-line.active {
  background: rgba(139, 69, 19, 0.1);
}

.lyric-line .french {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.lyric-line .english {
  color: var(--text-color);
  font-style: italic;
}

.karaoke-mode {
  text-align: center;
  margin-top: 2rem;
}

.start-karaoke {
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.start-karaoke:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
  background: var(--secondary-color);
}

/* Level Indicators */
.level-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.level-a1 { background: #E3F2FD; color: #1976D2; }
.level-a2 { background: #E8F5E9; color: #388E3C; }
.level-b1 { background: #FFF3E0; color: #F57C00; }
.level-b2 { background: #F3E5F5; color: #7B1FA2; }
.level-c1 { background: #FFEBEE; color: #D32F2F; }
.level-c2 { background: #E8EAF6; color: #3F51B5; }

/* New styles for Kids & Teens subsections */
.kids-programs-subsections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto; /* Added margin to separate from FAQ grid */
  padding: 0 1rem; /* Added padding for smaller screens */
}

.kids-program-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  text-align: center;
}

.kids-program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.15);
}

.kids-program-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.kids-program-card p {
  font-size: 1rem;
  color: var(--text-color);
}

/* Styles for support content within modal */
.support-content {
  padding: 1rem;
  color: var(--text-color);
}

.support-content h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--primary-color);
}

.support-content p {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.support-content ul {
  list-style: none;
  padding: 0;
  max-width: 500px;
  margin: 0 auto;
}

.support-content li {
  background: var(--light-bg);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.support-content li::before {
  content: '✓';
  color: #28a745;
  font-weight: bold;
  font-size: 1.2em;
}

/* Button in community section */
.community-content .cta-button {
  margin-top: 2rem;
  display: block;
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
#location img{
  width: 1200px;
  height: 400px;
}
#location{
  margin-top: 100px;
}
footer img{
  width: 160px;
  margin-left: auto;
}
.footer_c{
  display: flex;
}
/* Base navbar styling */


.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background-color: #fff;
  padding: 10px 20px;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 40px;
  margin-right: 10px;
}

.navbar-title {
  font-size: 18px;
  font-weight: bold;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: black;
  margin: 4px 0;
}

.navbar-links {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navbar-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    margin-top: 10px;
  }

  .navbar-links a {
    padding: 10px;
    width: 100%;
    text-align: center;
  }

  .navbar-links.active {
    display: flex;
  }

  .language-switcher.mobile-lang {
    margin-top: 10px;
    width: 100%;
    text-align: center;
  }
}
