/* === VARIABLES === */
:root {
  --primary-color: #651fff;
  --secondary-color: #4a4a4a;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --background-color: #f9f9fc;
  --card-radius: 12px;
  --transition: all 0.3s ease;
  --font-main: 'Cairo', Arial, sans-serif;
}

/* === DIRECTION CLASSES === */
.rtl { direction: rtl; text-align: right; }
.ltr { direction: ltr; text-align: left; }

/* === HEADER STYLES === */
.header {
  background: var(--primary-color);
  color: #fff;
  padding: 1rem 0;
  font-family: var(--font-main);
  /* ... */
}

/* === COURSE CARDS === */
.course-card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: 0 2px 8px #0001;
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: var(--transition);
  font-family: var(--font-main);
}
.course-card.large {
  width: 320px;
}
.course-card.success {
  border: 2px solid var(--success-color);
}
.course-card.warning {
  border: 2px solid var(--warning-color);
}

/* === STARS RATING === */
.stars {
  color: #f59e0b;
  font-size: 1.2em;
  transition: var(--transition);
}

/* === FOOTER === */
.footer {
  background: var(--secondary-color);
  color: #fff;
  padding: 1.5rem 0;
  text-align: center;
  font-family: var(--font-main);
}

/* === RESPONSIVE BREAKPOINTS === */
@media (max-width: 1024px) {
  .course-card { width: 90%; }
}
@media (max-width: 768px) {
  .course-card { width: 100%; }
}
@media (max-width: 480px) {
  .header, .footer { padding: 0.5rem; }
  .course-card { padding: 1rem; }
}

/* === SUBTLE EFFECTS === */
.course-card:hover {
  box-shadow: 0 4px 16px #0002;
  transform: translateY(-2px);
}

/* === VARIABLES === */
:root {
  --main-color: #333;
  --accent-color: #4a4a4a;
  --bg-light: #f7f9fa;
  --text-color: #333;
  --border-color: #ccc;
  --highlight: #b4690e;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* === Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: #fff;
  color: var(--text-color);
}

/* === Header === */
.main-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-color);
  background-color: #fff;
}

.left-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--main-color);
}

.explore-link,
.right-links a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 14px;
  transition: color 0.3s;
}

.explore-link:hover,
.right-links a:hover {
  color: var(--accent-color);
}

.search-box {
  flex: 1 1 100%;
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

.search-box input {
  width: 100%;
  max-width: 500px;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  outline: none;
}

.right-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  flex: 1 1 100%;
}

.btn {
  padding: 8px 15px;
  border: 1px solid var(--main-color);
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.btn:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

.login {
  background-color: #fff;
  color: var(--main-color);
}



.cart-icon,
.lang-icon {
  font-size: 18px;
}

/* === Course Cards === */
.courses-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 40px 5%;
  background-color: var(--bg-light);
}

@media (min-width: 600px) {
  .courses-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .courses-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.course-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  border: 1px solid #eee;
  padding: 16px;
  width: 270px;
  min-width: 270px;
  flex-shrink: 0;
  position: relative;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.course-image,
.course-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.course-content {
  padding: 15px 20px;
}

.course-title,
.course-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  color: var(--main-color);
}

.course-info,
.course-card .instructor {
  font-size: 14px;
  color: #6a6f73;
  margin-bottom: 12px;
}

.course-meta,
.course-card .rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: #6a6f73;
  gap: 8px;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.course-meta span:first-child {
  color: var(--highlight);
  font-weight: bold;
}

.course-meta span:last-child {
  margin-left: auto;
  font-size: 12px;
  color: var(--main-color);
}

.course-card .price {
  font-weight: bold;
  margin-bottom: 6px;
  color: #000;
}

.course-card .tag {
  background-color: #d1f5e0;
  color: #0a7b4f;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}

/* === Scroll Buttons === */
.scroll-btn {
  background-color: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  padding: 12px 16px;
  font-size: 20px;
  cursor: pointer;
  margin: 0 6px;
}

.scroll-btn:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

/* === Categories === */
.categories-section {
padding: 20px 5% 1px 5%;
  background-color: #f9f9f9;
  color: #222;
  text-align: center;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.categories-scroll {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 0;
  margin-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.categories-scroll::-webkit-scrollbar,
.course-cards::-webkit-scrollbar {
  display: none;
}

.category {
  flex: 0 0 auto;
  background-color: #eee;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  scroll-snap-align: start;
  white-space: nowrap;
  transition: background-color 0.3s;
}

.category:hover,
.category.active {
  background-color: #333;
  color: #fff;
}

.category small {
  display: block;
  font-size: 12px;
  color: #aaa;
}

/* === Horizontal Course Scroll === */
.course-wrapper {
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 20px 10px;
}

.course-scroll-container {
  padding-top: 0;       /* قلل أو أزل الحشوة العلوية */
  padding-bottom: 10px; /* اختياري */
}

.course-cards {
  gap: 12px;             /* قلل الفراغ الأفقي بين البطاقات (كان 20px) */
  padding: 0;            /* إزالة الحشوة العلوية والسفلية */
}

.course-card {
  margin-top: -10px;     /* يرفع البطاقة للأعلى */
  padding: 18px;         /* حافظ على الحشوة المناسبة داخل البطاقة */
}

.course-cards {
  display: flex;
  gap: 10px; /* تقليل المسافة الأفقية بين البطاقات */
  padding: 5px 0; /* تقليل الحشوة العلوية والسفلية */
  overflow-x: auto;
  scroll-behavior: smooth;
  margin-top: -5px; /* رفع البطاقات قليلاً لأعلى */
}


/* === Responsive Tweaks === */
@media (max-width: 500px) {
  .course-title,
  .course-card h3 {
    font-size: 14px;
  }

  .btn {
    padding: 6px 12px;
    font-size: 13px;
  }

  .search-box input {
    padding: 8px 10px;
  }
}

@media (min-width: 768px) {
  .main-header {
    flex-wrap: nowrap;
  }

  .search-box {
    flex: 1;
    margin: 0 20px;
  }

  .right-links {
    flex: none;
    gap: 15px;
  }
}

@media (max-width: 600px) {
  .course-card {
    width: 200px;
    min-width: 200px;
  }

  .scroll-btn {
    padding: 8px 12px;
    font-size: 18px;
  }
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--text-color);
  padding: 5px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: var(--main-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}
.course-card {
  width: 320px;       /* زاد من 270px */
  min-width: 320px;
  padding: 20px;      /* زاد من 16px */
}

.course-card h3 {
  font-size: 17px;    /* زاد من 15px */
}

.course-card .instructor,
.course-card .rating,
.course-card .price {
  font-size: 14px;    /* زادت من 13px */
}

.course-card img {
  height: 180px;      /* ارتفاع الصورة أكبر */
  object-fit: cover;
}
/* ✅ اجعل النجوم كلها بنفس الحجم واللون */
.stars span {
  font-size: 15px;       /* حجم النجوم */
  color: #f59e0b;        /* ذهبي */
  line-height: 1;
}

/* ✅ رقم التقييم بنفس الذهبي لكن أوضح قليلاً */
.rating-value {
  font-weight: bold;
  color: #eab308;        /* أصفر ذهبي أفتح يندمج مع النجوم */
  font-size: 15px;
}


.course-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
}
.course-scroll-container {
  position: relative;
  overflow: hidden;
}

.scroll-right-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgb(235, 234, 234);
  border: none;
  font-size: 24px;
  padding: 10px 14px;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 90%;
}
.scroll-left-btn {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: white;
  border: none;
  font-size: 24px;
  padding: 10px 14px;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 50%;
}


.payment-info {
  max-width: 600px;
  margin: 2rem auto;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  text-align: right;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  margin-right: 0;
  margin-left: auto;
  transform: translateX(-30px);
  transition: all 0.3s ease; /* سلاسة التحريك */
}

/* تحسين المظهر على الشاشات الصغيرة */
@media (max-width: 768px) {
  .payment-info {
    max-width: 95%;
    padding: 1.5rem 1rem;
    transform: none; /* إلغاء التحريك على الهاتف */
    margin: 1rem auto;
    text-align: right;
  }
}


.payment-info h2 {
  color: #1e293b;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.payment-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.payment-list li {
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.instruction {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.instruction a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 500;
}

.contact {
  margin-top: 1rem;
  color: #0f172a;
  font-size: 1rem;
}


.contact-form {
  max-width: 600px;
  margin: 30px auto; /* تقليل الفراغ العلوي */
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  direction: rtl;
  font-family: 'Segoe UI', sans-serif;
}

.contact-form h2 {
  margin-bottom: 16px;
  font-size: 22px;
  color: #333;
  text-align: center;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  background-color: #fff;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #7e3af2;
  outline: none;
}

.contact-form button {
  background-color: #7e3af2;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #5d28b6;
}

/* 💡 تحسين الاستجابة على الشاشات الصغيرة */
@media (max-width: 600px) {
  .contact-form {
    margin: 20px 16px;
    padding: 16px;
  }

  .contact-form h2 {
    font-size: 20px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
    padding: 10px;
  }

  .contact-form button {
    font-size: 15px;
    padding: 10px;
  }
}
.main-footer {
  background-color: #2d2d2d;
  color: #fff;
  padding: 40px 20px 20px;
  font-family: 'Segoe UI', sans-serif;
  direction: rtl;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1 1 250px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #fff;
}

.footer-section p,
.footer-section a {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 8px;
  text-decoration: none;
}

.footer-section a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  margin-top: 30px;
  font-size: 13px;
  color: #aaa;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .footer-section {
    flex: 1 1 100%;
  }
}
.social-icons {
  margin-top: 15px;
}

.social-icons a {
  font-size: 22px;
  color: #ccc;
  margin: 0 8px;
  transition: color 0.3s ease;
  display: inline-block;
}

.social-icons a:hover {
  color: #fff;
}

.signup {
  background-color: #651fff;
  color: #fff !important;       /* يجبر النص أن يكون أبيض */
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}
.signup:hover,
.signup:focus {
  background-color: #4a00e0;
  color: #fff !important;       /* حتى عند التحويم */
  transform: translateY(-2px);
}
.course-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 260px;
  transition: transform 0.3s ease;
  cursor: pointer;
  border: 1px solid #e5e7eb;
}

.course-card:hover {
  transform: translateY(-5px);
}

.course-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-content {
  padding: 4px;
}

.course-title {
  font-size: 16px;
  font-weight: bold;
  color: #111827;
  margin-bottom: 6px;
  line-height: 1.4;
}

.instructor {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rating {
  font-size: 14px;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}



.stars {
  color: #f59e0b;
  font-size: 14px;
}

.reviews {
  color: #6b7280;
  font-size: 13px;
}

.price {
  font-size: 18px;              /* أكبر قليلاً */
  font-weight: bold;
  color: #fff;                  /* لون النص أبيض */
  background-color: #61c470;    /* أزرق داكن جذاب */
  padding: 6px 20px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 12px;             /* إزاحة للأسفل */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.course-scroll-container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.course-card {
  margin-top: 0 !important;
}
.course-scroll-container {
  overflow-x: auto;
  padding-right: 0 !important;
  margin-right: 0 !important;
  max-width: 100%; /* مهم لتفادي التمدد */
}

.course-cards {
  margin-right: 0 !important;
}

.scroll-right-btn {
  right: 10px; /* قلل القيمة إذا كانت عالية */
}
/* === Search Box === */
.search-box {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  margin: 10px 0;
  padding: 0 10px;
}

.search-box input {
  width: 100%;
  max-width: 500px;
  padding: 10px 18px;
  border: 1px solid #ccc;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box input:focus {
  border-color: #4f46e5;
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* === Suggestions Dropdown === */
.suggestions {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  display: none;
}

.suggestions.active {
  display: block;
}

.suggestion-item {
  padding: 10px 16px;
  font-size: 0.95rem;
  color: #374151;
  cursor: pointer;
  transition: background 0.2s;
}

.suggestion-item:hover {
  background-color: #f3f4f6;
}

/* === Clean Bullet Points from Suggestions === */
#suggestionsList {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#suggestionsList li {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  background-color: white;
}

#suggestionsList li:hover {
  background-color: #f0f0f0;
}

/* === Responsive Fix for Mobile === */
@media (max-width: 768px) {
  .search-box {
    padding: 0 15px;
  }

  .search-box input {
    font-size: 1rem;
    padding: 12px 16px;
  }

  .suggestions {
    left: 0;
    transform: none;
    max-width: none;
    width: calc(100% - 30px);
    margin: 0 15px;
  }
}
.purple {
  color: #651fff;
  font-weight: bold;
}
.logo {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.logo:hover {
  color: #651fff;
}
/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  padding: 0.5rem 0;
  margin: 0;
  min-width: 240px;
  list-style: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 1000;
  border-radius: 10px;
}

/* Remove bullet points */
.dropdown-menu li {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Section titles (like 1ère Année) */
.dropdown-menu li.section-title {
  font-weight: bold;
  color: #666;
  padding: 10px 18px;
  font-size: 14px;
  background-color: #f9f9f9;
  cursor: default;
}

/* Normal links */
.dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  transition: background-color 0.25s ease, color 0.25s ease;
  border-radius: 4px;
}

/* الحاوية العامة للقائمة */
.explore-dropdown {
  position: relative;
  display: inline-block;
}

/* كلمة Explore بدون أي تنسيق */
.explore-link {
  cursor: pointer;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
  color: inherit;
}

/* القوائم المنسدلة */
.dropdown-menu,
.submenu {
  position: absolute;
  display: none;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background-color: white;
  border: 1px solid #ddd;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  min-width: 180px;
  z-index: 1000;
}

/* إظهار القائمة عند المرور */
.explore-dropdown:hover > .dropdown-menu {
  display: block;
}

.has-submenu {
  position: relative;
}

.has-submenu:hover > .submenu {
  display: block;
  top: 0;
  left: 100%;
  margin-left: -1px; /* لتلاصق دقيق مع القائمة الأصلية */
}
.submenu {
  border-radius: 8px;
  white-space: nowrap;
}


/* تنسيق الروابط داخل القوائم */
.dropdown-menu a,
.submenu a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

/* تأثير عند المرور على الروابط */
.dropdown-menu a:hover,
.submenu a:hover {
  background-color: #f5f5f5;
}
.support-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #28a745;
  color: white;
  font-size: 20px;
  padding: 12px;
  border-radius: 50%;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s;
  z-index: 999;
}

.support-icon:hover {
  background-color: #1e7e34;
}
  /* تصميم عصري بألوان محسّنة لقسم الدفع */
  #pay-methods-section {
    margin: 2rem 0;
    padding: 0;
    background: #fdfdff;
    border-radius: 16px;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.04);
    max-width: 100vw;
    width: 100vw;
    border: 1px solid #e0e4f0;
    position: relative;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    /* فراغ من الأطراف */
    box-sizing: border-box;
  }
  @media (min-width: 700px) {
    #pay-methods-section {
      max-width: 98vw;
      width: 98vw;
      margin-left: 1vw;
      margin-right: 1vw;
    }
  }
  @media (max-width: 700px) {
    #pay-methods-section {
      max-width: 100vw;
      width: 100vw;
      border-radius: 0;
      margin: 0;
    }
  }
  .pay-methods-list {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  #pay-methods-section h2 {
    color: #4c1d95;
    text-align: center;
    font-size: 1.7em;
    font-weight: 800;
    margin: 1.5rem 0 1rem 0;
  }

  #pay-methods-section ol {
    counter-reset: step;
    list-style: none;
    padding-right: 0;
    padding-left: 0;
  }
  #pay-methods-section ol li {
    position: relative;
    padding-right: 2.2em;
    margin-bottom: 0.7em;
    font-weight: 500;
  }
  #pay-methods-section ol li::before {
    counter-increment: step;
    content: ": الخطوة " counter(step) " ";
    position: absolute;
    right: 0;
    color: #2563eb;
    font-weight: bold;
    font-size: 1em;
    min-width: 80px;
    text-align: right;
  }

  #pay-methods-section ol {
    background: #ffffff;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin: 0 auto 2rem auto;
    font-size: 1.05em;
    font-weight: 500;
    max-width: 640px;
    color: #333;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 5px rgba(76, 29, 149, 0.05);
    line-height: 1.7;
  }

  #pay-methods-section ol li {
    margin-bottom: 0.6em;
  }

  .pay-methods-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
  }

  .pay-card {
    background: #ffffff;
    border: 1px solid #d6d9e7;
    border-radius: 12px;
    padding: 1.3rem 1rem;
    flex: 1 1 280px;
    max-width: 360px;
    min-width: 240px;
    box-shadow: 0 3px 8px rgba(76, 29, 149, 0.06);
    position: relative;
    font-size: 1em;
  }

  .pay-card h3 {
    margin: 0 0 0.8rem;
    text-align: center;
    font-size: 1.1em;
    font-weight: 700;
    color: #4c1d95;
  }

  .pay-card p {
    text-align: center;
    margin-bottom: 1rem;
    color: #444;
  }

  #pay-methods-section .pay-card ul {
    direction: rtl;
    text-align: right;
    padding-right: 0;
    margin-right: 0;
  }
  #pay-methods-section .pay-card ul li {
    margin-bottom: 0.3em;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #1e293b;
    font-size: 0.97em;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3em;
  }
  #pay-methods-section .pay-card ul li b {
    color: #2563eb;
    margin-left: 3px;
    font-weight: bold;
    font-size: 1em;
    min-width: 70px;
    display: inline-block;
  }
  #pay-methods-section .pay-card ul li span,
  #pay-methods-section .pay-card ul li .copy-btn,
  #pay-methods-section .pay-card ul li .copied-msg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0;
    margin-left: 0;
    font-family: inherit;
    font-size: 1em;
    direction: ltr;
    color: #334155;
    font-weight: 500;
  }
  #pay-methods-section .pay-card ul li .copy-btn {
    margin-right: 8px;
    margin-left: 0;
  }
  #pay-methods-section .pay-card ul li .copied-msg {
    margin-right: 8px;
    color: #059669;
  }
  /* Rip في سطر واحد */
  #pay-methods-section .poste-data span.rip-value {
    direction: ltr;
    font-weight: bold;
    color: #2563eb;
    font-size: 1em;
    display: inline-block;
    margin-bottom: 0;
    margin-top: 0;
    letter-spacing: 1px;
    word-break: break-all;
  }
  #pay-methods-section .poste-data .copy-btn,
  #pay-methods-section .poste-data .copied-msg {
    margin-right: 8px;
    margin-left: 0;
    vertical-align: middle;
  }

  .badge {
    position: absolute;
    top: -14px;
    right: 16px;
    background: #14b8a6;
    color: #fff;
    padding: 4px 10px;
    font-size: 0.9em;
    border-radius: 7px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  }

  .poste-logo {
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .poste-logo img {
    width: 60px;
    filter: grayscale(0.3) brightness(0.9);
  }

  .poste-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    padding: 0.9rem;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 0.98em;
    border: 1px solid #e0e4f0;
    direction: ltr;
  }

  .poste-data span:first-child {
    color: #4c1d95;
    font-weight: bold;
  }

  .poste-data span:last-child {
    font-weight: 600;
    color: #333;
  }

  .poste-note {
    margin-top: 1rem;
    text-align: center;
    background: #ecfdf5;
    color: #065f46;
    font-weight: 500;
    padding: 0.6rem 0.5rem;
    border-radius: 6px;
    font-size: 0.95em;
  }

  .copy-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 4px;
    padding: 2px 8px;
    margin-left: 5px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #4c1d95;
    font-weight: 500;
  }

  .copy-btn:hover {
    background: #e0e7ff;
  }

  .copied-msg {
    color: #16a34a;
    font-size: 0.9em;
    margin-left: 6px;
    display: none;
  }

  .copied-msg.active {
    display: inline;
    animation: fadeOut 1.3s forwards;
  }

  @keyframes fadeOut {
    0% { opacity: 1;}
    80% { opacity: 1;}
    100% { opacity: 0;}
  }

  @media (max-width: 700px) {
    #pay-methods-section h2 {
      font-size: 1.3em;
    }
    #pay-methods-section ol {
      font-size: 0.97em;
    }
    .pay-methods-list {
      flex-direction: column;
      gap: 1rem;
    }
    .pay-card {
      max-width: 100%;
      padding: 1rem 0.9rem;
    }
  }

  .steps-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 2rem auto;
    background: #fff;
    border-radius: 12px;
    max-width: 650px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 5px rgba(76, 29, 149, 0.05);
    font-size: 1.08em;
    font-weight: 500;
    color: #22223b;
    line-height: 1.8;
    direction: rtl;
    text-align: right;
  }
  .steps-list li {
    position: relative;
    padding: 1rem 7.5em 1rem 1.2em;
    margin-bottom: 0;
    border-bottom: 1px solid #f3f4f6;
    min-height: 2.5em;
  }
  .steps-list li:last-child {
    border-bottom: none;
  }
  .steps-list li::before {
    content: "الخطوة " attr(data-step) " ";
    position: absolute;
    right: 1.2em;
    top: 50%;
    transform: translateY(-50%);
    background: none; /* إزالة الخلفية الزرقاء */
    color: #2563eb;
    font-weight: bold;
    font-size: 1.05em;
    border-radius: 0;
    padding: 0;
    min-width: 90px;
    text-align: center;
    box-shadow: none;
    letter-spacing: 0.5px;
    display: inline-block;
  }
  @media (max-width: 700px) {
    .steps-list {
      font-size: 0.97em;
      padding: 0;
    }
    .steps-list li {
      padding: 0.9rem 6em 0.9rem 0.7em;
      font-size: 1em;
    }
    .steps-list li::before {
      font-size: 0.98em;
      min-width: 70px;
      padding: 0.18em 0.7em;
      right: 0.7em;
    }
  }

  /* اجعل رقم RIP لا يلتف للسطر التالي */
  .rip-value {
    white-space: nowrap;
  }

  .pay-card {
  background: #ffffff;
  border: 1px solid #d6d9e7;
  border-radius: 14px;
  padding: 1.8rem 1.5rem;
  flex: 1 1 500px; /* مساحة مبدئية واسعة */
  max-width: 720px; /* عرض البطاقة الأقصى */
  min-width: 340px; /* أصغر عرض مسموح به */
  width: 100%;
  box-shadow: 0 4px 12px rgba(76, 29, 149, 0.1);
  position: relative;
  font-size: 1.1em; /* حجم الخط داخل البطاقة */
  margin: 0 auto; /* توسيط البطاقة */
}

.poste-data {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px 18px;
  font-size: 1.15rem;
  line-height: 2;
  color: #1e293b;
  background-color: #f9fafb;
  padding: 1.4rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  max-width: 520px;
  width: 100%;
  margin: 1.2rem auto 0 auto;
}
.why-choose-us {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  text-align: left;
  max-width: 900px;
  margin: 3rem auto;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.reasons-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.reasons-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.05em;
  color: #1e293b;
}

.reasons-list .check {
  color: #10b981;
  font-size: 1.4em;
  margin-right: 0.6rem;
}
.features-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  padding: 2.5rem 1.5rem;
  margin: 2rem auto;
  max-width: 1100px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
}

.features-section h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #1e293b;
}

.features-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  text-align: right;
}

.features-list {
  list-style: none;
  padding: 0;
  max-width: 480px;
  margin: 0 auto;
  text-align: right;
  direction: rtl;
}

.features-list.en {
  direction: ltr;
  text-align: left;
}

.features-list li {
  margin-bottom: 1rem;
  font-size: 1.05em;
  line-height: 1.6;
  color: #1e293b;
}

.features-list .check {
  color: #10b981;
  font-size: 1.3em;
  margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .features-container {
    flex-direction: column;
    gap: 2rem;
  }
}
.about-us {
  flex: 1 1 48%;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-align: left;
}

.about-us h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2d3748;
}

.about-us p {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 1.2rem;
}

.about-us .benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-us .benefits-list li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
  color: #2d3748;
}
.about-benefits-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-block,
.benefits-block {
  flex: 1 1 48%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.section-heading {
  font-size: 1.6rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  text-align: left;
}

.about-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1.2rem;
}

.about-list,
.benefits-list-ar {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-list li,
.benefits-list-ar li {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  line-height: 1.6;
  color: #333;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
  .about-benefits-container {
    flex-direction: column;
  }

  .about-block,
  .benefits-block {
    flex: 1 1 100%;
    padding: 1.5rem 1rem;
  }

  .section-heading {
    text-align: center;
  }
}
.benefits-block[dir="rtl"] {
  text-align: right;
}
body, html {
  overflow-x: hidden;
}
.section-heading.rtl {
  direction: rtl;
  text-align: right;
}
.student-comments-modern {
  background: #f9f9fb;
  padding: 2rem 1rem;
}

.comments-title {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #4b0082;
  font-size: 1.5rem;
}

.comments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
  max-width: 1200px;
  margin: auto;
}

.comment-card-modern {
  background: #fff;
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  background-color: #f97316;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-name {
  font-weight: bold;
  color: #111827;
}

.comment-time {
  color: #6b7280;
  font-size: 0.8rem;
}

.comment-body {
  color: #374151;
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.comment-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #6b7280;
}
@media (max-width: 768px) {
  .main-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
    gap: 10px;
  }

  .left-section {
    width: 100%;
    display: flex;
    justify-content: flex-start; /* ✅ جعله يبدأ من اليسار */
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px; /* ✅ مسافة بين Explore واسم الأكاديمية */
  }

  .explore-dropdown {
    order: -1; /* ✅ يجعل "Explore" يظهر قبل اسم Derradj Academy */
  }

  .logo {
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
  }

  .explore-link {
    padding: 6px 12px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-block;
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 4px;
    z-index: 999;
    min-width: 200px;
  }

  .dropdown-menu li {
    list-style: none;
  }

  .dropdown-menu li a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    font-size: 0.95rem;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    width: 100%;
    padding: 8px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
  }

  .right-links {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
  }

  .right-links a {
    font-size: 0.9rem;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 6px;
  }

  .right-links .btn {
    padding: 8px 14px;
  }

  .suggestions {
    font-size: 0.9rem;
  }
}
@media (max-width: 768px) {
  .left-section {
    width: 100%;
    display: flex;
    justify-content: center; /* ✅ يجعل العناصر في الوسط */
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    position: relative;
  }

  .logo {
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    margin: 0 auto; /* ✅ للمحافظة على تمركزها */
  }

  .explore-dropdown {
    position: absolute;
    left: 12px; /* ✅ يثبت Explore في أقصى اليسار */
    top: 0;
  }
}
@media (max-width: 768px) {
  #pay-methods-section {
    padding: 0 12px;
  }

  #pay-methods-section h2 {
    text-align: center;
    font-size: 1.4em;
  }

  #pay-methods-section p {
    font-size: 1rem !important;
    padding: 1rem 1rem !important;
  }

  .pay-card {
    padding: 1rem 1rem !important;
    max-width: 100% !important;
    margin: 1rem auto !important;
    font-size: 1rem !important;
  }

  .pay-card h3 {
    font-size: 1.15em !important;
  }

  .poste-data {
    grid-template-columns: 1fr !important;
    gap: 8px 0 !important;
    font-size: 1rem !important;
  }

  .poste-data span {
    text-align: right;
  }

  .poste-note {
    font-size: 0.95em !important;
    padding: 0.6rem !important;
  }

  .pay-methods-list > div {
    margin-bottom: 1.5rem;
  }

  .badge {
    font-size: 0.8em !important;
    padding: 3px 8px !important;
    right: 12px !important;
  }
}
@media (max-width: 768px) {
  .poste-data {
    direction: ltr !important;
    text-align: left !important;
  }

  .poste-data span {
    direction: ltr !important;
    text-align: left !important;
  }
}
@media (max-width: 768px) {
  .baridi-rip {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .baridi-rip-label {
    font-size: 1rem;
    color: #1e40af;
    margin-bottom: 0.4rem;
  }

  .baridi-rip-value {
    font-size: 1.3rem;
    word-break: break-word;
  }
}
 .pay-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
  }

  .pay-img {
    width: 200px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
  }

  /* 📱 مظهر الهاتف */
  @media (max-width: 600px) {
    .pay-grid {
      grid-template-columns: 1fr; /* عمود واحد فقط */
    }

    .pay-img {
      width: 100%; /* الصور تاخذ العرض كامل */
      max-width: 340px; /* أقصى عرض مريح */
    }
  }

  #hero-subtitle {
  font-size: 1rem;            /* حجم متوازن */
  line-height: 1.7;           /* مسافة مريحة بين الأسطر */
  font-weight: 300;           /* خفيف وأنيق */
  color: #555;                /* رمادي ناعم بدل الأسود القوي */
  max-width: 720px;           /* عرض مناسب لعدم التمدد كثير */
  margin: 15px auto 0 auto;   /* توسيط النص + مسافة فوق */
  padding: 0 15px;            /* تباعد بسيط يمين ويسار */
  text-align: center;         /* وسط */
  font-family: "Cairo", sans-serif; /* خط عربي أنيق */
}

/* ✅ قسم الباقات - نسخة محسّنة للهاتف والكمبيوتر */
.special-bundles-section {
  margin: 2rem 0;
  text-align: center;
  background: none;
  padding: 1rem 0;
  border-radius: 16px;
  box-shadow: none;
  overflow: visible;
}

.special-bundles-section h2 {
  color: #6a1b9a;
  margin-bottom: 1.2rem;
  font-size: 1.8em;
  font-weight: 800;
  letter-spacing: 0.5px;
  position: relative;
}

.special-bundles-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg,#6a1b9a,#4a148c);
  margin: 0.4rem auto 0;
  border-radius: 3px;
}

.bundles-container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: stretch;
  padding: 0 6px;
}

.bundle-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  padding: 1.2rem 1rem;
  max-width: 330px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(76,29,149,0.07);
  text-align: center;
  transition: transform 0.22s, box-shadow 0.22s;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s ease-out forwards;
}

.bundle-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 6px 20px rgba(76,29,149,0.12);
  border-color: #6a1b9a;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bundle-card h3 {
  color: #6a1b9a;
  font-size: 1.2em;
  margin-bottom: 1rem;
  font-weight: 700;
}

.bundle-courses,
.bundle-benefits {
  text-align: right;
  direction: rtl;
  font-size: 1em;
  margin-bottom: 1rem;
  list-style: none;
  padding: 0;
}

.bundle-courses li,
.bundle-benefits li {
  margin-bottom: 0.45em;
  padding-right: 1em;
  position: relative;
}



.bundle-price {
  font-size: 1.05em;
  color: #1e293b;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.bundle-price .old-price {
  color: #888;
  text-decoration: line-through;
  margin-left: 8px;
  font-size: 0.95em;
}

.bundle-price .new-price {
  color: #16a34a;
  font-weight: bold;
  font-size: 1.1em;
}

.bundle-discount {
  margin-bottom: 0.8rem;
  color: #6a1b9a;
  font-size: 0.95em;
  font-weight: 500;
}

.bundle-btn {
  display: inline-block;
  background: linear-gradient(90deg,#6a1b9a,#4a148c);
  color: #fff;
  padding: 9px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  margin-top: 0.5rem;
  box-shadow: 0 2px 8px rgba(76,29,149,0.1);
  transition: background 0.22s, transform 0.22s;
}

.bundle-btn:hover {
  background: linear-gradient(90deg,#4a148c,#6a1b9a);
  transform: translateY(-2px) scale(1.03);
}

/* 🎁 شارة خصم افتراضية */
.bundle-card::after {
  position: absolute;
  top: -14px;
  left: 14px;
  background: linear-gradient(90deg,#16a34a,#15803d);
  color: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(22,163,74,0.18);
  letter-spacing: 0.3px;
}

/* 🟣 الباقة الأولى – خصم 23% */
.bundle-card:nth-child(1)::after {
  content: "خصم %23";
}

/* 🟢 الباقة الثانية – خصم 26% */
.bundle-card:nth-child(2)::after {
  content: "خصم %26";
}

.payment-methods {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 20px;   /* 🔹 أنزل الأزرار أكثر لأسفل */
  flex-wrap: wrap;
}


.pay-option {
  width: 130px;            /* 🔹 نفس العرض لكل زر */
  height: 40px;            /* 🔹 نفس الارتفاع */
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 17px;         /* 🔹 خط متناسق */
  font-weight: 600;
  color: #1e293b;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;                /* مسافة بين الأيقونة والنص */
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  white-space: nowrap;     /* النص يبقى في سطر واحد */
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.pay-option:hover {
  background: #4f46e5;
  color: #fff;
  border-color: #4338ca;
  transform: translateY(-2px);
}
.payment-options h4 {
  margin-top: -10px;   /* 🔹 مسافة من الأعلى */
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #374151;     /* رمادي غامق */
}
.bundle-btn {
  margin-top: 20px;  /* 🔹 ينزل الزر لأسفل */
}
/* زر تثبيت التطبيق */
.install-btn {
  display: none; /* مبدئياً مخفي */
  padding: 10px 18px;
  background: #6a1b9a;
  color: #fff;
  border: none;
  border-radius: 50px;           /* شكل كبسولة أنيق */
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  margin: 14px auto;
  width: fit-content;
  min-width: 200px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(106, 27, 154, 0.25);
  transition: all 0.3s ease;
}

/* Hover effect */
.install-btn:hover {
  background: #50157a;
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(106, 27, 154, 0.35);
}

/* Active (عند الضغط) */
.install-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(106, 27, 154, 0.25);
}

/* 📱 نسخة الهاتف */
@media (max-width: 600px) {
  .install-btn {
    width: 90%;                 /* يأخذ تقريبًا عرض الشاشة */
    min-width: unset;
    font-size: 0.9em;            /* خط أصغر قليلاً */
    padding: 12px;               /* توازن في الهوامش */
    border-radius: 40px;         /* شكل كبسولة */
    position: fixed;             /* يثبت أسفل الشاشة */
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
  }
}
  .rating {
    display: none !important;       /* إلغاء ظهور التقييمات*/
  }
/* ===== تحسين عرض course-cards: أحجام ثابتة، ترتيب أفقي متسق ===== */
.course-cards {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  padding: 8px 6px !important;
  margin: 0 !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  align-items: stretch !important;
  -webkit-overflow-scrolling: touch;
}

/* حجم ثابت ومتناسق لكل بطاقة */
.course-card {
  flex: 0 0 320px !important;    /* ثابت العرض */
  width: 320px !important;
  min-width: 330px !important;
  max-width: 320px !important;
  height: 390px !important;      /* ارتفاع موحّد للحفاظ على توازن الشبكة */
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
  scroll-snap-align: start !important;
  overflow: hidden !important;
}

/* صورة الكتاب تظهر كاملة بدون قص */
.course-card .course-img,
.course-image {
  width: 100% !important;
  height: 250px !important;      /* نفس الارتفاع الحالي */
  object-fit: contain !important;/* 🔑 هذا هو المفتاح */
  background: #ffffff;           /* خلفية عند وجود فراغ */
  border-radius: 6px !important;
  display: block;
}


/* محتوى البطاقة يتصرف بشكل مرن ويملأ المساحة المتبقية */
.course-card .course-content,
.course-content {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 12px !important;
}

/* اقتطاع النصوص الطويلة بدلاً من تغيير حجم البطاقة */
/* ✂️ اقتطاع النصوص الطويلة داخل بطاقات الدورات */
.course-title,
.course-card h3 {
  display: -webkit-box;
  display: box; /* دعم أوسع */
  -webkit-box-orient: vertical;
          box-orient: vertical;
  -webkit-line-clamp: 2;
          line-clamp: 2; /* ✅ الخاصية القياسية الحديثة */
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4; /* تباعد أسطر مريح */
  max-height: calc(1.4em * 2); /* ضبط الارتفاع بدقة */
  white-space: normal; /* السماح بكسر الأسطر */
}


/* معالج الأسماء والمدرّس */
.instructor {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* تأكد من أن السعر/زر يظهر في أسفل البطاقة */
.course-card .price,
.price {
  margin-top: 12px !important;
  align-self: center; /* ✅ يضع العنصر في المنتصف داخل flex container */
  text-align: center;
}


/* استجابة للشاشات الصغيرة: تقليل العرض مع الحفاظ على نفس النسبة */
@media (max-width: 600px) {
  .course-card {
    flex: 0 0 260px !important;
    width: 260px !important;
    min-width: 260px !important;
    height: 400px !important;
  }
  .course-card .course-img,
  .course-image {
    height: 150px !important;
    flex: 0 0 150px !important;
  }
}
/* ✅ تحسين عرض بطاقات الدورات على الهاتف */
@media (max-width: 600px) {
  .course-card {
    flex: 0 0 300px !important;   /* كانت 260px، أصبحت أكبر قليلاً */
    width: 300px !important;
    min-width: 300px !important;
    height: 390px !important;     /* ارتفاع متناسب مع العرض */
    padding: 16px !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
    margin-bottom: 12px !important;
  }

  .course-card .course-img,
  .course-image {
    height: 170px !important;     /* رفع ارتفاع الصورة لتبدو أوضح */
    border-radius: 10px !important;
  }

  .course-title,
  .course-card h3 {
    font-size: 15px !important;   /* أكبر قليلًا للقراءة على الهاتف */
    line-height: 1.5 !important;
  }

  .instructor {
    font-size: 13px !important;
  }

  .price {
    font-size: 16px !important;
    padding: 8px 22px !important;
    border-radius: 10px !important;
  }

  .course-cards {
    gap: 14px !important;         /* زيادة المسافة قليلاً بين البطاقات */
    padding: 8px 4px !important;
  }
}


.course-cards {
display: grid !important;
grid-template-columns: repeat(3, 1fr); /* 🔹 ثلاث بطاقات في كل صف /
gap: 24px; / 🔹 تباعد مريح بين البطاقات */
padding: 20px 5%;
justify-items: center;
background-color: var(--bg-light, #f9f9fc);
}

/* تحسين المظهر لكل بطاقة */
.course-card {
width: 100%;
max-width: 320px;
background: #fff;
border-radius: 12px;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
transition: transform 0.3s ease;
}

.course-card:hover {
transform: translateY(-5px);
}

/* 📱 استجابة للشاشات /
@media (max-width: 900px) {
.course-cards {
grid-template-columns: repeat(2, 1fr); / صفين فقط على التابلت */



@media (max-width: 600px) {
.course-cards {
grid-template-columns: 1fr; /* دورة واحدة في كل صف */
}
}
.course-card .price {
  margin-top: auto !important;     /* يدفع السعر إلى أسفل البطاقة */
  margin-bottom: -7px !important;  /* يترك مسافة بسيطة من الحافة */
  align-self: center;
  text-align: center;
}
.course-card .instructor {
  margin-bottom: 6x !important;  /* ينزله قليلاً للأسفل */
  margin-top: auto !important;    /* يثبت موقعه فوق السعر مباشرة */
  text-align: center;
  color: #6b7280;
}
/* 🎯 تحسين مظهر رابط "آراء الطلاب" */
.nav-link[href="#student-feedback"] {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 400;             /* وزن أخف وأجمل */
  font-size: 0.93rem;
  color: #111111;               /* أسود مريح للعين */
  transition: color 0.25s ease-in-out, transform 0.2s ease-in-out;
}

/* 💫 تأثير عند المرور */
.nav-link[href="#student-feedback"]:hover {
  color: #333333;               /* أسود فاتح قليلاً */
  transform: translateY(-1px);  /* حركة خفيفة للأعلى */
}

/* 🎯 تحسين مظهر رابط "نبذة عنا" */
.nav-link[href="#why-us"] {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 400;             /* وزن أخف وأنيق */
  font-size: 0.93rem;
  color: #111111;               /* أسود مريح للعين */
  transition: color 0.25s ease-in-out, transform 0.2s ease-in-out;
}

/* 💫 تأثير عند المرور */
.nav-link[href="#why-us"]:hover {
  color: #333333;               /* أسود فاتح قليلاً */
  transform: translateY(-1px);  /* حركة خفيفة للأعلى */
}
/* 🎯 تحسين مظهر رابط "حجز حصة مباشرة" */
.nav-link[href="sign-up/book-session.html"] {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 400;             /* وزن أنيق ومتناسق */
  font-size: 0.93rem;
  color: #111111;               /* أسود مريح للعين */
  transition: color 0.25s ease-in-out, transform 0.2s ease-in-out;
}

/* 💫 تأثير عند المرور */
.nav-link[href="book-session.html"]:hover {
  color: #333333;               /* أسود فاتح قليلاً */
  transform: translateY(-1px);  /* حركة خفيفة للأعلى */
}
/* 🎯 تحسين مظهر رابط "حجز حصة مباشرة" */
.nav-link[href="book-session.html"] {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 400;             /* وزن أنيق ومتناسق */
  font-size: 0.93rem;
  color: #111111;               /* أسود مريح للعين */
  transition: color 0.25s ease-in-out, transform 0.2s ease-in-out;
}

/* 💫 تأثير عند المرور */
.nav-link[href="book-session.html"]:hover {
  color: #333333;               /* أسود فاتح قليلاً */
  transform: translateY(-1px);  /* حركة خفيفة للأعلى */
}
/* 🌟 الخلفية الشفافة */
.live-popup-overlay {
  display: none; /* تظهر عبر الجافاسكربت */
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

/* ✨ صندوق الإعلان */
.live-popup-box {
  background: #ffffff;
  padding: 2rem 2.2rem;
  border-radius: 16px;
  max-width: 520px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(91, 33, 182, 0.25);
  position: relative;
  animation: popupShow 0.4s ease-out;
}

/* 🕶️ زر الإغلاق */
.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #555;
  transition: color 0.2s ease;
}
.popup-close:hover {
  color: #000;
}

/* 🧠 النصوص */
.live-popup-box h2 {
  color: #5b21b6;
  margin-bottom: 0.8rem;
}
.live-popup-box p {
  color: #1f2937;
  line-height: 1.7;
}

/* 🔹 تفاصيل البث */
.live-info {
  background: #faf5ff;
  border-radius: 10px;
  border: 1px solid #e9d5ff;
  padding: 1rem;
  margin: 1.2rem 0;
  text-align: right;
  direction: rtl;
  font-size: 1rem;
}

/* 🚀 زر الانضمام */
.join-live-btn {
  display: inline-block;
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 10px;
  padding: 12px 22px;
  margin-top: 0.8rem;
  transition: all 0.3s ease;
}
.join-live-btn:hover {
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  transform: translateY(-2px);
}

/* 🎞️ الحركات */
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes popupShow {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
/* 🎯 تحسين مظهر رابط "شرح طريقة التسجيل" */
.nav-link[href="../how-to-register.html"],
.nav-link[href="how-to-register.html"] {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 400;             /* وزن أنيق ومتناسق مع باقي الروابط */
  font-size: 0.93rem;
  color: #111111;               /* أسود مريح للعين */
  text-decoration: none;        /* إزالة الخط السفلي */
  transition: color 0.25s ease-in-out, transform 0.2s ease-in-out;
}

/* 💫 تأثير عند المرور */
.nav-link[href="../how-to-register.html"]:hover,
.nav-link[href="how-to-register.html"]:hover {
  color: #333333;               /* أسود أفتح قليلاً عند hover */
  transform: translateY(-1px);  /* حركة خفيفة للأعلى لإحساس بالتفاعل */
}
/* 🎓 تحسين تباعد البطاقات داخل قسم الباقات الخاصة */
#bundle-section .bundles-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 80px; /* 👈 زيدها من 50 إلى 80px لتباعد أوضح بين البطاقتين */
  margin-top: 30px; /* مسافة إضافية فوق البطاقات */
  margin-bottom: 40px; /* ومسافة أسفلها */
}

/* 🎁 تصميم كل بطاقة */
#bundle-section .bundle-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 25px;
  width: 330px;
  transition: transform 0.3s ease;
  position: relative;
}

#bundle-section .bundle-card:hover {
  transform: translateY(-6px);
}

/* 🎁 شارة الخصم */
#bundle-section .bundle-card::after {
  position: absolute;
  top: -14px;
  left: 14px;
  background: linear-gradient(90deg, #16a34a, #15803d);
  color: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(22,163,74,0.18);
  letter-spacing: 0.3px;
}
/* باقة السنة الأولى */
#bundle-section .bundle-card:nth-child(1)::after {
  content: "خصم %48";
}

/* باقة المواد العلمية المميزة */
#bundle-section .bundle-card:nth-child(2)::after {
  content: "خصم %23";  /* ← كان خطأ 26% */
}

/* باقة السنة الثالثة هندسة كهربائية */
#bundle-section .bundle-card:nth-child(3)::after {
  content: "خصم %26";
}

/* 📱 تحسين العرض على الهاتف */
@media (max-width: 768px) {
  #bundle-section .bundles-container {
    gap: 40px; /* تقليل التباعد قليلاً على الشاشات الصغيرة */
  }

  #bundle-section .bundle-card {
    width: 90%;
  }
}
/* 🎯 تحسين مظهر رابط "شرح طريقة التسجيل" */
.nav-link[href="how-to-register.html"] {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 400;             /* وزن أنيق ومتناسق */
  font-size: 0.93rem;
  color: #111111;               /* أسود مريح للعين */
  transition: color 0.25s ease-in-out, transform 0.2s ease-in-out;
}

/* 💫 تأثير عند المرور */
.nav-link[href="how-to-register.html"]:hover {
  color: #333333;               /* أسود فاتح قليلاً */
  transform: translateY(-1px);  /* حركة خفيفة للأعلى */
}
/* 🎓 قسم آراء الطلاب */
.student-comments-modern {
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  padding: 2.5rem 1rem;
  font-family: 'Cairo', sans-serif;
}

/* العنوان */
.comments-title {
  text-align: center;
  margin-bottom: 2rem;
  color: #4b0082;
  font-size: 1.6rem;
  font-weight: 700;
  position: relative;
  letter-spacing: 0.3px;
}

.comments-title::after {
  content: "";
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  display: block;
  margin: 10px auto 0;
  border-radius: 3px;
  opacity: 0.85;
}

/* شبكة البطاقات */
.comments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

/* بطاقة التعليق */
.comment-card-modern {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  position: relative;
}

.comment-card-modern:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.08);
  border-color: #dcdafc;
}

/* رأس البطاقة */
.comment-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

/* الصورة الرمزية */
.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.18);
}

/* اسم المستخدم */
.comment-name {
  font-weight: 700;
  color: #111827;
  font-size: 1rem;
}

/* وقت التعليق */
.comment-time {
  color: #6b7280;
  font-size: 0.8rem;
}

/* نص التعليق */
.comment-body {
  color: #374151;
  line-height: 1.7;
  margin-bottom: 0.7rem;
  word-break: break-word;
  text-align: start;
    font-size: 1.05rem; /* ← التكبير البسيط هنا */

}

/* اتجاه اللغة */
.comment-body[lang="ar"],
.comment-body[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
.comment-body[lang="fr"],
.comment-body[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

/* شريط تفاعلي بسيط */
.comment-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #6b7280;
  border-top: 1px solid #f3f4f6;
  padding-top: 0.6rem;
  margin-top: auto;
}

/* حركة لطيفة عند الظهور */
.comment-card-modern {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.45s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* للهواتف */
@media (max-width: 768px) {
  .comments-title {
    font-size: 1.4rem;
  }
  .comment-card-modern {
    padding: 1.1rem;
  }
  .comment-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .comment-body {
    font-size: 0.94rem;
  }
}

.comment-avatar {
  width: 48px;                     /* حجم ثابت */
  height: 48px;
  min-width: 48px;                 /* يمنع الانكماش في flexbox */
  min-height: 48px;
  border-radius: 50%;              /* يجعلها دائرية دائمًا */
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.18);
  flex-shrink: 0;                  /* 🔥 يمنعها من الانكماش مهما كان الاسم */
  overflow: hidden;                /* يمنع أي نص زائد من الخروج */
  text-transform: uppercase;       /* يجعل الحرف دائماً كبير وواضح */
}
@media (max-width: 768px) {
  /* 🔹 تحسين خط التعليقات فقط في الهواتف */
  .comment-body {
    font-family: 'Tajawal', 'Cairo', sans-serif; /* خط مخصص وواضح للجوال */
    font-size: 1rem; /* تكبير خفيف مريح للعين */
    line-height: 1.9; /* زيادة طفيفة في التباعد بين الأسطر */
  }
}


/* 🎯 تنسيق موحد لجميع روابط الـ nav-link */
.nav-link[href*="index.html#student-feedback"],
.nav-link[href*="index.html#why-us"],
.nav-link[href*="how-to-register.html"],
.nav-link[href*="../how-to-register.html"] {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 400;             /* وزن أنيق ومتناسق */
  font-size: 0.93rem;
  color: #111111;               /* لون مريح للعين */
  text-decoration: none;        /* إزالة الخط السفلي */
  transition: color 0.25s ease-in-out, transform 0.2s ease-in-out;
}

/* 💫 تأثير عند المرور بالماوس */
.nav-link[href*="index.html#student-feedback"]:hover,
.nav-link[href*="index.html#why-us"]:hover,
.nav-link[href*="how-to-register.html"]:hover,
.nav-link[href*="../how-to-register.html"]:hover {
  color: #333333;               /* لون أفتح قليلاً عند hover */
  transform: translateY(-1px);  /* حركة خفيفة للأعلى */
}


.launch-banner {
  background: #fff4d6;        /* أصفر ذهبي ناعم بدل الأصفر الباهت */
  color: #8a4b0d;             /* بني دافئ أعمق وأكثر وضوحاً */
  padding: 10px 16px;
  text-align: center;
  font-size: 0.95rem;
  border-bottom: 1px solid #f5c542; /* حد ذهبي أوضح */
  font-weight: 500;
  direction: rtl;
}
 .course-section {
    background: #faf7ff;
    padding: 25px 20px;
    border-radius: 14px;
    margin: 40px 0;
    border: 1px solid #e8ddff;
  }

  .category-title {
    margin-bottom: 20px;
    font-size: 1.9rem;
    font-weight: bold;
    color: #4c2ec7;
    text-align: right;
  }

  .course-scroll-container {
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .course-cards {
    display: flex;
    gap: 20px;
  }

  .category-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  background: linear-gradient(to right, #eef0ff, #f9f7ff);
  padding: 14px 22px;
  border-radius: 14px;

  font-size: 1.7rem;
  font-weight: 800;
  color: #2b2165;

  border: 1px solid #dad4ff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);

  margin: 35px 0 25px;
  width: fit-content;

  direction: rtl;
}

.category-title::before {
  content: "📘";   /* ← لكل سنة نغير الإيموجي فقط */
  font-size: 1.8rem;
}
.category-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  background: #f4f2ff;
  padding: 12px 20px;
  border-radius: 12px;

  font-size: 1.45rem;          /* ⬅ أصغر وأجمل */
  font-weight: 500;             /* ⬅ خفيف وأنيق بدل Bold */
  color: #2d2670;

  border: 1px solid #ddd7ff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);

  margin: 35px 0 25px;
  width: fit-content;
  direction: rtl;
}

.category-title::before {
  content: "📘";
  font-size: 1.4rem;
}
@media (max-width: 480px) {
  #top-update-banner {
    flex-direction: column-reverse !important; /* 🔥 يعالج عكس الترتيب */
    text-align: center;
    gap: 8px;
    padding: 15px 10px;
    font-size: 0.92rem;
  }

  #top-update-banner a {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
  }

  #top-update-banner span {
    display: block;
    line-height: 1.5;
  }

  #close-banner {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.4rem;
  }
}
  .live-dot {
    width: 14px;
    height: 14px;
    background: #ff2d2d;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(255,45,45,0.7);
    animation: livePulse 1.2s infinite;
  }

  @keyframes livePulse {
    0% {
      transform: scale(0.9);
      box-shadow: 0 0 0 0 rgba(255,45,45,0.7);
    }
    70% {
      transform: scale(1);
      box-shadow: 0 0 0 8px rgba(255,45,45,0);
    }
    100% {
      transform: scale(0.9);
      box-shadow: 0 0 0 0 rgba(255,45,45,0);
    }
  }
/* تحسين العرض في الهاتف */
@media (max-width: 600px) {

  .promo-banner {
    padding: 1.6rem 1.2rem !important;
    border-radius: 16px;
  }

  .promo-banner h2 {
    font-size: 1.45rem !important;
    line-height: 1.4;
    flex-direction: column; /* 🔹 العنوان + النقطة تحت بعض */
    gap: 6px;
  }

  .live-dot {
    width: 10px;
    height: 10px;
  }

  .promo-banner p {
    font-size: 0.95rem !important;
    line-height: 1.75;
  }

  .promo-banner a {
    width: 100%;
    max-width: 320px;
    padding: 14px 20px !important;
    font-size: 1rem !important;
  }

  .promo-banner span {
    font-size: 0.9rem !important;
  }
}
/* ===== Scoped Live Badge (Courses Only) ===== */

/* غلاف الصورة داخل كرت الكورس فقط */
.course-card .course-img-wrapper {
  position: relative;
}

/* شارة البث */
.course-card .live-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
  backdrop-filter: blur(4px);
}

/* النقطة الوامضة */
.course-card .live-dot {
  width: 9px;
  height: 9px;
  background: #ff2d2d;
  border-radius: 50%;
  animation: livePulse 1.2s infinite;
}

/* حركة الوميض */
@keyframes livePulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.6;
  }
  100% {
    transform: scale(0.8);
    opacity: 1;
  }
}

/* تحسين للهاتف */
@media (max-width: 600px) {
  .course-card .live-badge {
    font-size: 0.7rem;
    padding: 5px 8px;
  }
}
.bundle-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 41, 59, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.bundle-popup-card {
  background: #ffffff;
  max-width: 420px;
  width: 90%;
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 35px rgba(0,0,0,0.25);
  animation: popupScale 0.35s ease;
}

@keyframes popupScale {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.bundle-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #64748b;
}

.bundle-popup-card h2 {
  color: #4f46e5;
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.bundle-popup-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1e293b;
}

.bundle-popup-price {
  margin: 18px 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
}

.bundle-popup-price .old {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 1.1rem;
}

.bundle-popup-price .new {
  background: linear-gradient(135deg,#4f46e5,#7c3aed);
  color: #fff;
  padding: 6px 16px;
  border-radius: 10px;
  font-size: 1.25rem;
  font-weight: 800;
}

.bundle-popup-note {
  font-size: 0.95rem;
  color: #92400e;
  background: #fff7ed;
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.bundle-popup-btn {
  display: inline-block;
  background: #4f46e5;
  color: #fff;
  padding: 12px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.25s;
}

.bundle-popup-btn:hover {
  background: #4338ca;
}
/* اجعل ترتيب العملة يسار الرقم حتى داخل RTL */
.bundle-popup-price .old,
.bundle-popup-price .new {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

/* ستايل العملة */
.bundle-popup-price .cur {
  font-weight: 800;
}

/* ستايل الرقم القديم مع الشطب */
.bundle-popup-price .old .num {
  text-decoration: line-through;
}
/* البطاقة */
.course-card {
  padding: 18px 16px 20px;   /* توازن عام */
  text-align: center;
}

/* الصورة */
.course-card .course-img {
  height: 250px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 14px;       /* 🔑 مسافة مريحة تحت الصورة */
}

/* المحتوى */
.course-content {
  padding: 0;                /* إزالة أي padding زائد */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* العنوان */
.course-title {
  margin: -30px 0 4px;         /* مسافة خفيفة */
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

/* اسم المؤلف */
.instructor {
  margin: 0 0 14px;          /* فصل واضح قبل السعر */
  font-size: 14px;
  color: #6b7280;
}

/* السعر */
.price {
  margin-top: auto;          /* 🔥 يثبّت السعر أسفل البطاقة */
  padding: 8px 22px;
  font-size: 16px;
  border-radius: 10px;
}
.course-card {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.bundles-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* 👈 هذه السطر هو الذي يضيف المسافة بين البطاقات */
  }

  .bundle-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 320px;
    transition: transform 0.3s ease;
  }

  .bundle-card:hover {
    transform: translateY(-5px);
  }
/* الوضع الافتراضي (كمبيوتر / لابتوب) */
.about-content p {
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-list {
  margin-top: 20px;
}

.about-list li {
  margin-bottom: 10px;
}

/* 📱 شاشات صغيرة (هواتف) */
@media (max-width: 768px) {
  .about-content p {
    line-height: 1.9;
    margin-bottom: 18px;
    font-size: 0.95rem;
  }

  .about-list li {
    margin-bottom: 12px;
  }
}

/* 📱 شاشات صغيرة جدًا */
@media (max-width: 480px) {
  .about-content p {
    line-height: 2;
    margin-bottom: 20px;
    font-size: 0.9rem;
  }
}
/* ====== About Section (مثل الصورة) ====== */
.ds-about{
  padding: 42px 14px;
  background: #fff;
}

.ds-about-wrap{
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.ds-about-title{
  margin: 0 0 14px;
  font-size: 30px;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.3px;
}

.ds-about-text{
  margin: 0 auto 10px;
  max-width: 820px;
  font-size: 16px;
  line-height: 2;
  color: #1f2937;
}

.ds-about-text strong{
  font-weight: 900;
  color: #111827;
}

.ds-about-points{
  list-style: none;
  padding: 0;
  margin: 18px auto 10px;
  max-width: 560px;
  text-align: right;
  direction: rtl;
  display: grid;
  gap: 12px;
}

.ds-about-points li{
  display: flex;
  flex-direction: row-reverse; /* الأيقونة على اليمين */
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 1.9;
  color: #111827;
}

.ds-icon{
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.ds-about-foot{
  margin: 14px auto 0;
  max-width: 820px;
  font-size: 16px;
  line-height: 2;
  color: #111827;
}

/* ✅ تحسين الهاتف فقط */
@media (max-width: 520px){
  .ds-about{ padding: 30px 12px; }
  .ds-about-title{ font-size: 24px; }
  .ds-about-text, .ds-about-foot{ font-size: 15px; line-height: 1.95; }
  .ds-about-points{ max-width: 100%; }
  .ds-about-points li{ font-size: 15px; }
}
