html, body {
  font-family: 'Cairo', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(120deg, #f8fafc 0%, #e0e7ef 100%);
  color: #222;
  direction: rtl;
  overflow-x: hidden;
  width: 100vw;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}


header.hero {
  background: linear-gradient(120deg, #1976d2 0%, #42a5f5 100%);
  color: #fff;
  padding-bottom: 40px;
  width: 100%;
  box-sizing: border-box;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 6vw 0 6vw;
}
.logo {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  font-weight: bold;
  gap: 10px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  padding: 0;
  margin: 0;
}
.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links li a:hover {
  color: #ffd600;
}
.cta-btn {
  background: #ffd600;
  color: #1976d2;
  padding: 10px 28px;
  border-radius: 24px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.3s, transform 0.2s;
  box-shadow: 0 2px 10px #ffd60033;
}
.cta-btn:hover, .cta-btn:focus {
  background: #fff;
  color: #1976d2;
  box-shadow: 0 4px 18px #ffd60055;
  transform: scale(1.07);
}
.cta-btn:active {
  transform: scale(0.96);
}
.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 60px 6vw 0 6vw;
  gap: 40px;
}
.hero-text {
  max-width: 600px;
}
.hero-text h1 {
  font-size: 2.6rem;
  margin-bottom: 18px;
  font-weight: 700;
}
.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 28px;
}
.main-cta {
  background: #ffd600;
  color: #1976d2;
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.3s, transform 0.2s;
  box-shadow: 0 2px 12px rgba(25, 118, 210, 0.08);
}
.main-cta:hover, .main-cta:focus {
  background: #fff;
  color: #1976d2;
  box-shadow: 0 4px 24px #ffd60055;
  transform: scale(1.08);
}
.main-cta:active {
  transform: scale(0.98);
}
.hero-img img {
  border-radius: 24px;
  width: 350px;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba(25, 118, 210, 0.18);
  opacity: 0;
  transform: scale(0.94);
  animation: hero-img-fade-in 1.2s ease 0.3s forwards;
}
@keyframes hero-img-fade-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.features-section {
  background: #fff;
  padding: 60px 6vw 40px 6vw;
  text-align: center;
}
.features-section h2 {
  font-size: 2.1rem;
  margin-bottom: 38px;
  color: #1976d2;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.feature {
  background: #f1f7fb;
  border-radius: 18px;
  padding: 32px 18px;
  box-shadow: 0 2px 12px rgba(25, 118, 210, 0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  will-change: transform, box-shadow;
}
.feature:hover {
  transform: translateY(-8px) scale(1.06);
  box-shadow: 0 10px 32px #1976d222;
}
.feature i {
  font-size: 2.4rem;
  margin-bottom: 16px;
  color: #1976d2;
}
.feature h3 {
  margin: 12px 0 10px 0;
  font-size: 1.2rem;
  color: #222;
}
.feature p {
  font-size: 1rem;
  color: #444;
}
.about-section {
  padding: 56px 6vw 40px 6vw;
  background: #f8fafc;
  text-align: center;
}
.about-section h2 {
  color: #1976d2;
  font-size: 2rem;
  margin-bottom: 18px;
}
.about-section p {
  font-size: 1.1rem;
  color: #444;
  max-width: 700px;
  margin: 0 auto;
}
.contact-section {
  padding: 56px 6vw 40px 6vw;
  background: #fff;
  text-align: center;
}
.contact-section h2 {
  color: #1976d2;
  font-size: 2rem;
  margin-bottom: 18px;
}
.contact-form {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #b6c8e2;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #f8fafc;
  resize: none;
}
.contact-form button {
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover {
  background: #ffd600;
  color: #1976d2;
}
footer {
  background: #1976d2;
  color: #fff;
  text-align: center;
  padding: 18px 0 10px 0;
  font-size: 1rem;
  margin-top: 32px;
}

/* قسم آراء الطلاب */
.testimonials-section {
  background: #f1f7fb;
  padding: 56px 6vw 40px 6vw;
  text-align: center;
}
.testimonials-section h2 {
  color: #1976d2;
  font-size: 2rem;
  margin-bottom: 36px;
}
.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}
.testimonial {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(25, 118, 210, 0.09);
  padding: 28px 22px;
  max-width: 320px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
  will-change: transform, box-shadow;
}
.testimonial:hover {
  transform: translateY(-8px) scale(1.06);
  box-shadow: 0 12px 32px #1976d233;
}
.testimonial img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin-bottom: 18px;
  border: 3px solid #ffd600;
  opacity: 0;
  transform: scale(0.8);
  animation: testimonial-img-fade 1.2s ease forwards;
}
@keyframes testimonial-img-fade {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.testimonial p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 12px;
}
.testimonial span {
  font-size: 0.97rem;
  color: #1976d2;
  font-weight: bold;
}

/* قسم الأسئلة الشائعة */
.faq-section {
  background: #fff;
  padding: 56px 6vw 40px 6vw;
  text-align: center;
}
.faq-section h2 {
  color: #1976d2;
  font-size: 2rem;
  margin-bottom: 36px;
}
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  text-align: right;
}
.faq-item {
  margin-bottom: 18px;
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: 0 1px 4px rgba(25, 118, 210, 0.07);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-weight: bold;
  color: #1976d2;
  padding: 18px 18px 18px 40px;
  text-align: right;
  cursor: pointer;
  transition: background 0.2s;
}
.faq-question.active,
.faq-question:hover {
  background: #e3edfa;
  transition: background 0.2s, color 0.2s;
  color: #ffd600;
}
.faq-answer {
  display: none;
  padding: 0 18px 18px 18px;
  font-size: 1rem;
  color: #444;
  background: #f8fafc;
}

/* زر واتساب عائم */
.whatsapp-float {
  position: fixed;
  left: 28px;
  bottom: 28px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.18);
  z-index: 999;
  transition: background 0.2s, transform 0.2s;
}
.whatsapp-float:hover {
  background: #128c7e;
  transform: scale(1.13) rotate(-8deg);
  box-shadow: 0 8px 32px #128c7e44;
}

/* تأثيرات انتقال للأقسام الرئيسية */
.features-section, .about-section, .contact-section, .testimonials-section, .faq-section {
  transition: box-shadow 0.3s, background 0.3s, border-radius 0.3s;
}

@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .hero-img img {
    width: 90vw;
    max-width: 350px;
  }
}
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    gap: 14px;
    padding: 18px 2vw 0 2vw;
  }
  .hero-content {
    padding: 28px 2vw 0 2vw;
  }
  .features-section, .about-section, .contact-section {
    padding: 32px 2vw 24px 2vw;
  }
}
