/* layout.css */
/* الحاوية الرئيسية */
.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* الأقسام */
.section {
  background: white;
  border-radius: 15px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  border-top: 5px solid var(--secondary);
  opacity: 0;
  transform: translateY(30px);
}

.section.animated {
  animation: fadeUp 0.8s forwards;
}

.section:nth-child(1) { animation-delay: 0.2s; }
.section:nth-child(2) { animation-delay: 0.4s; }
.section:nth-child(3) { animation-delay: 0.6s; }
.section:nth-child(4) { animation-delay: 0.8s; }
.section:nth-child(5) { animation-delay: 1.0s; }
.section:nth-child(6) { animation-delay: 1.2s; }
.section:nth-child(7) { animation-delay: 1.4s; }
.section:nth-child(8) { animation-delay: 1.6s; }
.section:nth-child(9) { animation-delay: 1.8s; }

.section:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* الشبكات */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  text-align: right;
}

/* التجاوب للهواتف */
@media (max-width: 768px) {
  .logo-container {
    flex-direction: column;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 30px 20px;
  }
  
  form {
    grid-template-columns: 1fr;
  }
  
  button {
    grid-column: span 1;
  }
  
  .language-switcher {
    top: 10px;
    left: 10px;
    padding: 5px 10px;
  }
  
  .lang-btn {
    padding: 5px 10px;
    font-size: 0.9rem;
  }
  
  .whatsapp-float, .chat-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  
  .navigation {
    top: 70px;
    right: 10px;
    left: 10px;
    width: auto;
    padding: 8px;
  }
  
  .nav-list {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .counter {
    flex-direction: column;
    gap: 20px;
  }
  
  .contact-details {
    flex-direction: column;
    gap: 10px;
  }
  
  .video-description {
    font-size: 1rem;
  }
  
  .video-container {
    margin: 20px auto;
  }
}