/* =====================
   CSS Variables (Theme)
   ===================== */
:root {
  --primary: #4f8cff;
  --secondary: #ffb347;
  --accent: #43e97b;
  --danger: #ff3a55;
  --background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --surface: #fff;
  --text: #23272f;
  --text-light: #6c757d;
  --border: #e0e0e0;
  --shadow: 0 4px 24px rgba(60,60,60,0.10);
  --radius: 20px;
  --transition: 0.3s cubic-bezier(.4,2,.6,1);
  --font-main: 'Cairo', 'Rubik', Arial, sans-serif;
}
body.dark-mode {
  --background: linear-gradient(135deg, #23262f 0%, #181a20 100%);
  --surface: #23262f;
  --text: #f5f6fa;
  --text-light: #b0b3b8;
  --border: #23262f;
  --shadow: 0 4px 24px rgba(0,0,0,0.30);
}
html, body {
  font-family: var(--font-main);
  background: var(--background);
  color: var(--text);
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}
/* === تكبير الكروت والصور بداخلها بشكل واضح === */
.teacher-card, .course-card, .feature-card, .plan-card {
  min-width: 270px;
  max-width: 370px;
  padding: 2.2rem 1.5rem;
}
.course-detail-card {
  min-width: 340px;
  max-width: 520px;
  padding: 2.5rem 2rem 2rem 2rem;
}
.teacher-card img, .course-card img, .course-detail-card img, .feature-card img {
  width: 100%;
  max-width: 320px;
  height: 240px;
  max-height: 260px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  margin-bottom: 1.5rem;
  border-radius: 22px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s cubic-bezier(.4,2,.6,1);
}
.teacher-card:hover img, .course-card:hover img, .course-detail-card:hover img, .feature-card:hover img {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 12px 36px rgba(79,140,255,0.15);
}
/* === تحسين ألوان الكروت والخلفيات والتدرجات === */
:root {
  --primary: #4f8cff;
  --secondary: #ffb347;
  --accent: #43e97b;
  --danger: #ff3a55;
  --background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --surface: #fff;
  --text: #23272f;
  --text-light: #6c757d;
  --border: #e0e0e0;
  --shadow: 0 4px 24px rgba(60,60,60,0.10);
  --radius: 20px;
  --transition: 0.3s cubic-bezier(.4,2,.6,1);
  --font-main: 'Cairo', 'Rubik', Arial, sans-serif;
}
body.dark-mode {
  --background: linear-gradient(135deg, #23262f 0%, #181a20 100%);
  --surface: #23262f;
  --text: #f5f6fa;
  --text-light: #b0b3b8;
  --border: #23262f;
  --shadow: 0 4px 24px rgba(0,0,0,0.30);
}
/* === تحسين توزيع الكروت والمسافات === */
.teachers-cards, .courses-cards, .features-cards, .plans-cards {
  gap: 2.5rem;
  justify-content: flex-start;
}
.teacher-card, .course-card, .feature-card, .plan-card {
  min-width: 220px;
  max-width: 320px;
  margin: 0.5rem auto;
}
.course-detail-card {
  min-width: 270px;
  max-width: 400px;
  margin: 0.5rem auto;
}
/* === تحسين تأثيرات الهوفر والانيميشن === */
.teacher-card:hover, .course-card:hover, .feature-card:hover, .plan-card:hover, .course-detail-card:hover {
  box-shadow: 0 12px 36px rgba(79,140,255,0.18), 0 2px 8px rgba(67,233,123,0.10);
  transform: translateY(-12px) scale(1.045) rotate(-1deg);
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
}
.teacher-card:hover h3, .teacher-card:hover p,
.course-card:hover h3, .course-card:hover p,
.feature-card:hover h3, .feature-card:hover p,
.plan-card:hover h3, .plan-card:hover p,
.course-detail-card:hover h3, .course-detail-card:hover p {
  color: #fff;
}
/* === تحسين ألوان الأزرار === */
.start-btn, .enroll-btn, .join-btn, .view-teachers-btn {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff !important;
  border: none;
  box-shadow: 0 2px 12px rgba(67,233,123,0.10);
}
.start-btn:hover, .enroll-btn:hover, .join-btn:hover, .view-teachers-btn:hover {
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
  color: #fff !important;
}
/* === تحسين الفوتر والخلفيات === */
.footer-section, .follow-me-section {
  background: linear-gradient(120deg, #fff 0%, #e3f0ff 100%);
}
body.dark-mode .footer-section, body.dark-mode .follow-me-section {
  background: linear-gradient(120deg, #23262f 0%, #181a20 100%);
}
/* === تحسين الخطوط والأحجام === */
h1, h2, h3, h4 {
  font-family: var(--font-main);
  letter-spacing: 0.5px;
}
.hero-text h1 {
  font-size: 3.2rem;
}
/* =====================
   Navbar
   ===================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 2.5rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.logo-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}
/* === تحسين توزيع النافبار والمسافات بين الأيقونات === */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  column-gap: 0.6rem;
  row-gap: 0;
}
.nav-links a, .nav-links i {
  color: var(--text);
  text-decoration: none;
  font-size: 1.18rem;
  padding: 0.32rem 0.7rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform 0.18s cubic-bezier(.4,2,.6,1);
  cursor: pointer;
  margin: 0 0.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* === إزالة الخلفية حول أيقونات اللغة والوضع الليلي والبحث === */
.nav-links i {
  font-size: 1.35rem;
  background: none;
  color: var(--text);
  padding: 0.32rem 0.7rem;
  border-radius: 50%;
  margin: 0 0.1rem;
  box-shadow: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform 0.18s cubic-bezier(.4,2,.6,1);
}
.nav-links i:hover {
  background: rgba(79,140,255,0.10);
  color: var(--primary);
  box-shadow: none;
  transform: scale(1.13) rotate(-8deg);
}
.nav-links a:hover {
  background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,179,71,0.13);
  transform: scale(1.07);
}
/* === تحسين النافبار عند التمرير === */
.navbar {
  box-shadow: var(--shadow), 0 2px 16px rgba(79,140,255,0.07);
  transition: var(--transition), box-shadow 0.18s cubic-bezier(.4,2,.6,1);
}
.start-btn {
  background: var(--primary);
  color: #fff !important;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(58,134,255,0.08);
}
.start-btn:hover {
  background: var(--secondary);
  color: var(--text) !important;
}
.login-btn {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary) !important;
  font-weight: 500;
}
.login-btn:hover {
  background: var(--primary);
  color: #fff !important;
}
/* =====================
   Hero Section
   ===================== */
.hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 3.5rem 2rem 2rem 2rem;
  background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.hero-text {
  flex: 1 1 350px;
  min-width: 300px;
}
.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 900;
  margin: 0 0 0.5rem 0;
  color: #fff;
  letter-spacing: 1px;
}
.hero-text .hero-subtitle {
  font-size: 1.2rem;
  color: #f5f6fa;
  margin-top: 1.2rem;
  line-height: 1.7;
  background: rgba(0,0,0,0.08);
  padding: 1rem;
  border-radius: var(--radius);
}
.hero-image {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* === توسيط نصوص hero-section بشكل صحيح === */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}
.hero-text h1, .hero-text .hero-subtitle {
  text-align: center;
  margin-left: 0;
  margin-right: 0;
}
/* === توسيط جميع العناوين والفقرات الرئيسية === */
.teachers-section h2,
.courses-section h2,
.courses-section .subtitle,
.courses-details-section h2,
.join-section h2,
.plans-section h2,
.features-section h2,
.features-section .subtitle,
.follow-me-section h2,
.footer-section h2,
.hero-section h1,
.hero-section .hero-subtitle {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
}
html[dir="rtl"] .teachers-section h2,
html[dir="rtl"] .courses-section h2,
html[dir="rtl"] .courses-section .subtitle,
html[dir="rtl"] .courses-details-section h2,
html[dir="rtl"] .join-section h2,
html[dir="rtl"] .plans-section h2,
html[dir="rtl"] .features-section h2,
html[dir="rtl"] .features-section .subtitle,
html[dir="rtl"] .follow-me-section h2,
html[dir="rtl"] .footer-section h2,
html[dir="rtl"] .hero-section h1,
html[dir="rtl"] .hero-section .hero-subtitle {
  text-align: center !important;
}
/* =====================
   Teachers Section
   ===================== */
.teachers-section {
  padding: 3rem 2rem 2rem 2rem;
  background: var(--background);
}
.teachers-section h2 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--primary);
}
.teachers-cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
/* === كارت المدرس بحجم متوسط واحترافي === */
.teacher-card {
  min-width: 260px;
  max-width: 340px;
  min-height: 320px;
  padding: 2rem 1.2rem 1.5rem 1.2rem;
  border-radius: 22px;
  box-shadow: 0 4px 18px rgba(79,140,255,0.10), 0 1px 4px rgba(67,233,123,0.07);
  background: var(--surface);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s cubic-bezier(.4,2,.6,1), transform 0.22s cubic-bezier(.4,2,.6,1);
}
.teacher-card img {
  max-width: 210px;
  height: 140px;
  max-height: 160px;
  border-radius: 16px;
  margin-bottom: 1.1rem;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(79,140,255,0.08);
  border: 2.5px solid var(--primary);
}
.teacher-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0.5rem 0 0.2rem 0;
  color: var(--primary);
}
.teacher-card p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin: 0.1rem 0 0 0;
}
.teacher-card:hover {
  box-shadow: 0 12px 36px rgba(79,140,255,0.18), 0 2px 8px rgba(67,233,123,0.10);
  transform: translateY(-8px) scale(1.04) rotate(-1deg);
  background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
}
.teacher-card:hover h3, .teacher-card:hover p {
  color: #fff;
}
.view-teachers-btn {
  display: inline-block;
  margin: 2rem auto 0 auto;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 2.2rem;
  border-radius: var(--radius);
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0,184,148,0.10);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.view-teachers-btn:hover {
  background: var(--danger);
  color: #fff;
}
/* === توسيط زر عرض المدرسين في قسم المدرسين === */
.view-teachers-btn {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
/* =====================
   Courses Section
   ===================== */
.courses-section {
  padding: 3rem 2rem 2rem 2rem;
  background: var(--surface);
}
.courses-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.courses-section .subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
/* === توسيط عناوين وأوصاف الأقسام الرئيسية === */
.courses-section h2,
.courses-section .subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: block;
}
/* دعم التوسيط في RTL أيضاً */
html[dir="rtl"] .courses-section h2,
html[dir="rtl"] .courses-section .subtitle {
  text-align: center;
}
.courses-cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
/* === كارت الكورسات بعرض متوسط وارتفاع أقل === */
.course-card {
  min-width: 260px;
  max-width: 340px;
  min-height: 220px;
  max-height: 320px;
  padding: 1.3rem 1.1rem 1.1rem 1.1rem;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(79,140,255,0.10), 0 1px 4px rgba(67,233,123,0.07);
  background: var(--surface);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s cubic-bezier(.4,2,.6,1), transform 0.22s cubic-bezier(.4,2,.6,1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.course-card img {
  max-width: 210px;
  width: 100%;
  height: 90px;
  max-height: 100px;
  border-radius: 12px;
  margin-bottom: 0.7rem;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(79,140,255,0.08);
  border: 2px solid var(--primary);
}
.course-card h3 {
  font-size: 1.13rem;
  font-weight: 800;
  margin: 0.3rem 0 0.12rem 0;
  color: var(--primary);
}
.course-card p {
  font-size: 0.97rem;
  color: var(--text-light);
  margin: 0.08rem 0 0 0;
}
.course-card:hover {
  box-shadow: 0 12px 36px rgba(79,140,255,0.18), 0 2px 8px rgba(67,233,123,0.10);
  transform: translateY(-8px) scale(1.04) rotate(-1deg);
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
}
.course-card:hover h3, .course-card:hover p {
  color: #fff;
}
/* =====================
   Courses Details Section
   ===================== */
.courses-details-section {
  padding: 3rem 2rem 2rem 2rem;
  background: var(--background);
}
.courses-details-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  justify-content: center;
}
.course-detail-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.course-detail-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.course-detail-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.5rem 0 0.2rem 0;
}
.course-detail-card p {
  color: var(--text-light);
  font-size: 1rem;
  margin: 0.5rem 0 0.7rem 0;
}
.course-detail-card ul {
  list-style: disc inside;
  color: var(--text-light);
  margin: 0 0 1rem 0;
  padding: 0;
  text-align: left;
}
.course-detail-card .price {
  color: var(--danger);
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.enroll-btn {
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1.7rem;
  border-radius: var(--radius);
  font-weight: bold;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(58,134,255,0.10);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  display: inline-block;
}
.enroll-btn:hover {
  background: var(--accent);
  color: #fff;
}
/* =====================
   Join Section
   ===================== */
.join-section {
  padding: 3rem 2rem 2rem 2rem;
  background: var(--surface);
  border-radius: var(--radius);
  margin: 2rem 0;
  box-shadow: var(--shadow);
}
.join-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
  justify-content: center;
}
.join-image img {
  width: 220px;
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,184,148,0.13);
  background: #fff;
}
.join-text {
  flex: 1 1 320px;
  min-width: 250px;
}
.join-text h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}
.join-text p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}
.join-btn {
  background: var(--secondary);
  color: #fff;
  padding: 0.7rem 2.2rem;
  border-radius: var(--radius);
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(255,190,11,0.10);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.join-btn:hover {
  background: var(--primary);
  color: #fff;
}
/* === توسيط زر التفعيل في قسم الانضمام === */
.join-btn {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
/* =====================
   Plans Section
   ===================== */
.plans-section {
  padding: 3rem 2rem 2rem 2rem;
  background: var(--background);
}
.plans-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--danger);
  margin-bottom: 1.5rem;
}
.plans-cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.plan-card {
  background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.5rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  min-width: 180px;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.plan-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 8px 32px rgba(255,190,11,0.18);
  background: linear-gradient(120deg, var(--secondary) 0%, var(--primary) 100%);
}
/* =====================
   Features Section
   ===================== */
.features-section {
  padding: 3rem 2rem 2rem 2rem;
  background: var(--surface);
}
.features-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.features-cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.feature-card {
  background: var(--background);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1rem;
  width: 220px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.feature-card img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 2px solid var(--accent);
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0.5rem 0 0.2rem 0;
}
.feature-card p {
  color: var(--text-light);
  font-size: 1rem;
  margin: 0;
}
.feature-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 8px 32px rgba(0,184,148,0.18);
  background: linear-gradient(120deg, var(--accent) 0%, var(--secondary) 100%);
  color: #fff;
}
.feature-card:hover h3, .feature-card:hover p {
  color: #fff;
}
/* =====================
   Footer Section
   ===================== */
.footer-section {
  background: var(--background);
  padding: 2.5rem 2rem 1rem 2rem;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
  justify-content: center;
}
.footer-image img {
  width: 180px;
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(58,134,255,0.13);
  background: #fff;
}
.footer-text {
  flex: 1 1 320px;
  min-width: 250px;
}
.footer-text h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}
.footer-text p {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.footer-copyright {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-light);
}
.footer-links {
  margin-top: 0.5rem;
}
.footer-links a {
  color: var(--primary);
  text-decoration: none;
  margin: 0 0.7rem;
  font-weight: 500;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--danger);
}
/* === تحسين قسم السوشيال وتكبير الأيقونات === */
.follow-me-section {
  background: var(--surface);
  padding: 2.5rem 2rem 1.5rem 2rem;
  border-radius: var(--radius);
  margin: 2rem 0;
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.follow-me-section h2 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 1.7rem;
  letter-spacing: 0.5px;
}
.social-icons {
  display: flex;
  gap: 2.2rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.social-icon img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(79,140,255,0.13);
  background: #fff;
  transition: transform 0.22s cubic-bezier(.4,2,.6,1), box-shadow 0.22s cubic-bezier(.4,2,.6,1);
  border: 2.5px solid var(--primary);
  padding: 7px;
  object-fit: contain;
}
.social-icon:hover img {
  transform: scale(1.18) rotate(-8deg);
  box-shadow: 0 12px 36px rgba(255,179,71,0.18);
  border-color: var(--accent);
}
/* =====================
   Support Button (WhatsApp)
   ===================== */
.support-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: #25d366;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 4px 24px rgba(37,211,102,0.18);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 200;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.support-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.07);
}
.support-btn i {
  font-size: 1.5rem;
}
/* =====================
   Animations & Effects
   ===================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(.4,2,.6,1), transform 0.7s cubic-bezier(.4,2,.6,1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: none;
}
.from-left {
  transform: translateX(-40px);
}
.from-right {
  transform: translateX(40px);
}
.from-bottom {
  transform: translateY(40px);
}
.from-top {
  transform: translateY(-40px);
}
.animate-on-scroll.visible.from-left,
.animate-on-scroll.visible.from-right,
.animate-on-scroll.visible.from-bottom,
.animate-on-scroll.visible.from-top {
  transform: none;
}
.clicked {
  animation: click-bounce 0.25s cubic-bezier(.4,2,.6,1);
}
@keyframes click-bounce {
  0% { transform: scale(1); }
  50% { transform: scale(0.96); }
  100% { transform: scale(1); }
}
/* === خطوط فاصلة Gradient بين الأقسام === */
section:not(:last-child) {
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--primary), var(--accent)) 1;
  margin-bottom: 2.5rem;
}

/* === تدرج لوني للعناوين الرئيسية === */
h2, h1 {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* === انيميشن ظهور العناصر (Fade In + Scale) === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(.4,2,.6,1), transform 0.7s cubic-bezier(.4,2,.6,1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: none;
}

/* === تأثير موجة للأزرار عند الضغط === */
button, .start-btn, .enroll-btn, .join-btn, .view-teachers-btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}
button::after, .start-btn::after, .enroll-btn::after, .join-btn::after, .view-teachers-btn::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.18);
  border-radius: 100%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
  z-index: 0;
}
button:active::after, .start-btn:active::after, .enroll-btn:active::after, .join-btn:active::after, .view-teachers-btn:active::after {
  width: 200%; height: 200%;
}

/* === تحسين الظلال والعمق للكروت === */
.teacher-card, .course-card, .feature-card, .plan-card, .course-detail-card {
  box-shadow: 0 6px 32px rgba(79,140,255,0.13), 0 2px 8px rgba(67,233,123,0.10);
  transition: box-shadow 0.25s cubic-bezier(.4,2,.6,1), transform 0.22s cubic-bezier(.4,2,.6,1);
}
.teacher-card:hover, .course-card:hover, .feature-card:hover, .plan-card:hover, .course-detail-card:hover {
  box-shadow: 0 16px 48px rgba(79,140,255,0.18), 0 4px 16px rgba(67,233,123,0.13);
  transform: translateY(-10px) scale(1.045) rotate(-1deg);
}
/* =====================
   Responsive Design
   ===================== */
@media (max-width: 1100px) {
  .hero-section, .join-content, .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .hero-text, .join-text, .footer-text {
    min-width: unset;
  }
}
@media (max-width: 800px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1rem;
  }
  .nav-links {
    gap: 0.7rem;
  }
  .hero-section, .teachers-cards, .courses-cards, .features-cards, .plans-cards {
    flex-direction: column;
    gap: 1.2rem;
  }
  .courses-details-cards {
    grid-template-columns: 1fr;
  }
  .support-btn {
    bottom: 16px;
    right: 16px;
    padding: 0.7rem 1.1rem;
    font-size: 1rem;
  }
  .teacher-card {
    min-width: 90vw;
    max-width: 98vw;
    padding: 1.2rem 0.5rem;
  }
  .teacher-card img {
    max-width: 98vw;
    height: 120px;
    max-height: 140px;
  }
  .course-card {
    min-width: 90vw;
    max-width: 98vw;
    padding: 1rem 0.4rem;
  }
  .course-card img {
    max-width: 98vw;
    height: 70px;
    max-height: 80px;
  }
  .social-icons {
    gap: 1.2rem;
  }
  .social-icon img {
    width: 44px;
    height: 44px;
    padding: 4px;
  }
}
@media (max-width: 500px) {
  .hero-section, .teachers-section, .courses-section, .courses-details-section, .join-section, .plans-section, .features-section, .footer-section, .follow-me-section {
    padding: 1.2rem 0.3rem;
  }
  .navbar {
    padding: 0.5rem 0.3rem;
  }
  .support-btn {
    bottom: 8px;
    right: 8px;
    padding: 0.6rem 0.7rem;
    font-size: 0.95rem;
  }
}
/* =====================
   RTL Support
   ===================== */
html[dir="rtl"] body, html[dir="rtl"] .navbar, html[dir="rtl"] .hero-section, html[dir="rtl"] .teachers-section, html[dir="rtl"] .courses-section, html[dir="rtl"] .courses-details-section, html[dir="rtl"] .join-section, html[dir="rtl"] .plans-section, html[dir="rtl"] .features-section, html[dir="rtl"] .footer-section, html[dir="rtl"] .follow-me-section {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}
html[dir="rtl"] .footer-links {
  text-align: right;
}
/* === توسيط عناوين وأوصاف جميع الأقسام الرئيسية ما عدا الفوتر === */
.teachers-section h2,
.courses-section h2,
.courses-section .subtitle,
.courses-details-section h2,
.join-section h2,
.plans-section h2,
.features-section h2,
.features-section .subtitle,
.follow-me-section h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: block;
}
html[dir="rtl"] .teachers-section h2,
html[dir="rtl"] .courses-section h2,
html[dir="rtl"] .courses-section .subtitle,
html[dir="rtl"] .courses-details-section h2,
html[dir="rtl"] .join-section h2,
html[dir="rtl"] .plans-section h2,
html[dir="rtl"] .features-section h2,
html[dir="rtl"] .features-section .subtitle,
html[dir="rtl"] .follow-me-section h2 {
  text-align: center;
}
/* === إعادة ضبط محاذاة عنوان الفوتر مع أولوية عالية === */
.footer-section h2 {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  display: block;
}
html[dir="rtl"] .footer-section h2 {
  text-align: right !important;
  margin-right: 0 !important;
  margin-left: auto !important;
}
/* === عنوان قسم الانضمام بمحاذاة اليسار أو اليمين حسب اللغة === */
.join-section h2 {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  display: block;
}
html[dir="rtl"] .join-section h2 {
  text-align: right;
  margin-right: 0;
  margin-left: auto;
}
/* === توسيط نصوص وروابط الفوتر بشكل واضح === */
.footer-links, .footer-links h4 {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
}
.footer-links a {
  display: inline-block;
  margin: 0 0.7rem;
  vertical-align: middle;
}
html[dir="rtl"] .footer-links, html[dir="rtl"] .footer-links h4 {
  text-align: center !important;
}
/* === إعادة ضبط محاذاة عنوان قسم الانضمام مع أولوية عالية === */
.join-section h2 {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  display: block;
}
html[dir="rtl"] .join-section h2 {
  text-align: right !important;
  margin-right: 0 !important;
  margin-left: auto !important;
}
/* =====================
   Scrollbar Styling
   ===================== */
::-webkit-scrollbar {
  width: 10px;
  background: var(--background);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 8px;
}

/* === لون واضح واحترافي لعناوين hero-section h1 === */
.hero-section h1 {
  color: #181a20 !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
}

/* === خط احترافي وجذاب لعناوين hero-section h1 === */
.hero-section h1 {
  font-family: 'Rubik', 'Cairo', Arial, sans-serif !important;
  font-weight: 900 !important;
  font-size: 3.2rem !important;
  letter-spacing: 1.5px !important;
  color: #181a20 !important;
  text-shadow: 0 2px 12px rgba(60,60,60,0.08);
  margin-bottom: 0.3em;
}
@media (max-width: 600px) {
  .hero-section h1 {
    font-size: 2.1rem !important;
    letter-spacing: 1px !important;
  }
}

/* === تكبير صورة .main-image في hero-section === */
.main-image {
  width: 420px;
  max-width: 98vw;
  height: 320px;
  max-height: 380px;
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(58,134,255,0.13);
  background: #fff;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}
/* === تكبير إضافي لصورة .main-image في hero-section === */
.main-image {
  width: 540px;
  max-width: 100vw;
  height: 400px;
  max-height: 480px;
}
@media (max-width: 800px) {
  .main-image {
    width: 98vw;
    height: 220px;
    max-height: 260px;
  }
}

/* === إزالة الخلفية البيضاء من صورة .main-image في hero-section === */
.main-image {
  background: transparent !important;
}

/* === تحسين وتكبير اسم المنصة بجانب اللوجو في النافبار === */
.logo span {
  font-family: 'Rubik', 'Cairo', Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 1px;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  line-height: 1.1;
  display: inline-block;
}
@media (max-width: 600px) {
  .logo span {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
  }
}

/* === تكبير صورة الفوتر بشكل أكبر واحترافي === */
.footer-image img {
  width: 480px;
  max-width: 100vw;
  height: 320px;
  max-height: 380px;
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(58,134,255,0.13);
  background: #fff;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 800px) {
  .footer-image img {
    width: 98vw;
    height: 180px;
    max-height: 220px;
    object-fit: cover;
    object-position: center;
  }
}

/* === تصميم احترافي لقسم حقوق النشر copyright-section === */
.copyright-section {
  background: var(--surface);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 2px 16px rgba(79,140,255,0.07);
  margin: 0 auto 0 auto;
  padding: 1.5rem 0.5rem 1.2rem 0.5rem;
  text-align: center;
  width: 100%;
  max-width: 100vw;
}
.copyright-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.copyright-content h4 {
  font-size: 1.05rem;
  color: var(--text-light);
  font-weight: 600;
  margin: 0.2rem 0;
  letter-spacing: 0.2px;
}
.copyright-section .footer-links {
  margin-top: 0.5rem;
  text-align: center;
}
.copyright-section .footer-links a {
  color: var(--primary);
  text-decoration: none;
  margin: 0 0.7rem;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color var(--transition);
  display: inline-block;
}
.copyright-section .footer-links a:hover {
  color: var(--danger);
}
@media (max-width: 600px) {
  .copyright-section {
    padding: 1.1rem 0.2rem 0.7rem 0.2rem;
  }
  .copyright-content h4 {
    font-size: 0.95rem;
  }
  .copyright-section .footer-links a {
    font-size: 0.95rem;
  }
}

/* === تدرج لوني متحرك لاسم Belal Ali لجذب الانتباه === */
@keyframes gradient-move {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.copyright-content h4 span.developer-name {
  background: linear-gradient(90deg, #3a86ff, #43e97b, #ffbe0b, #ff3a55, #3a86ff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 1.13em;
  animation: gradient-move 3.5s ease-in-out infinite;
  transition: filter 0.2s;
}
.copyright-content h4 span.developer-name:hover {
  filter: brightness(1.2) drop-shadow(0 2px 8px #3a86ff33);
}
/* === فاصل Gradient علوي للقسم === */
.copyright-section {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary)) 1;
  margin-top: 2.5rem;
  box-shadow: 0 4px 24px rgba(58,134,255,0.10);
}
.copyright-content {
  gap: 0.7rem;
}

/* === تدرج لوني متحرك لجملة الحقوق بالكامل === */
.copyright-content h4.developer {
  background: linear-gradient(90deg, #3a86ff, #43e97b, #ffbe0b, #ff3a55, #3a86ff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 1.13em;
  animation: gradient-move 3.5s ease-in-out infinite;
  transition: filter 0.2s;
}
.copyright-content h4.developer:hover {
  filter: brightness(1.2) drop-shadow(0 2px 8px #3a86ff33);
}
