/* ========================================================
   SECTION 1: HERO BANNER (البانر العلوي الفاتح المائل للرمادي)
   ======================================================== */
.course-hero-banner {
  background-color: #f0f4fa; /* نفس درجة لون خلفية البانر بلقطة الشاشة الأولى */
  padding: 40px 0 50px;
  border-bottom: 1px solid var(--border);
}

.header-flex-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
}

.course-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 25px;
  direction: ltr; /* اتجاه فتات الخبز كالموقع تماماً يبدأ بالإنجليزي يساراً */
}

.course-breadcrumb a {
  font-weight: 700;
  color: #111111;
}

.course-breadcrumb .sep {
  color: #a0aec0;
}

.course-main-title {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  color: #111111;
  margin-bottom: 20px;
  line-height: 1.4;
}

.course-meta-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #444444;
}

.course-meta-top .sub-meta {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-weight: 600;
}

/* ========================================================
   SECTION 2: MAIN WORK LAYOUT (توزيع محتوى الصفحة والـ Sidebar)
   ======================================================== */
.course-body-layout {
  padding: 50px 0 80px;
  background-color: #ffffff;
}

.main-layout-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

/* عمود محتوى التبويبات والمحاور جهة اليسار (تأخذ 65%) */
.course-content-area {
  flex: 0 0 65%;
  text-align: right;
}

/* عمود الـ Sidebar الجانبي الثابت جهة اليمين (تأخذ 32%) */
.course-sticky-sidebar {
  flex: 0 0 32%;
  position: sticky;
  top: 90px; /* جعل الكارت يثبت في مكانه أثناء النزول بالماوس */
  z-index: 10;
}

/* ========================================================
   STICKY SIDEBAR CARD STYLES (كارت الشراء الجانبي الفاخر)
   ======================================================== */
.sticky-card-box {
  background-color: #f8fafd;
  border: 1px solid #e2eaf4;
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.card-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #f1f4f9;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 24px;
}

.tag-category {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #2454ff;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
}

.card-price-wrap {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 20px;
}

.card-price-wrap .currency {
  font-size: 20px;
  font-weight: 700;
  color: #111111;
}

.card-price-wrap .price-amount {
  font-size: 36px;
  font-weight: 900;
  color: #111111;
  font-family: system-ui, sans-serif;
}

/* زر التقديم العريض الأزرق بلقطة الشاشة */
.btn-add-to-cart {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #3b66f5;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  margin-bottom: 24px;
  transition: background-color 0.2s ease;
}

.btn-add-to-cart:hover {
  background-color: #224ad1;
}

/* القائمة الإحصائية الجانبية */
.course-stats-list {
  display: flex;
  flex-direction: column;
}

.course-stats-list li {
  display: flex;
  justify-content: flex-end; /* جعل الأيقونة والتكست يبدأ محاذاتهم يميناً لليسار */
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px dashed #e2eaf4;
  font-size: 14.5px;
  color: #333333;
  font-weight: 600;
}

.course-stats-list li:last-child {
  border-bottom: none;
}

.stat-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.badge-level {
  background-color: #e2ecff;
  color: #2454ff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 6px;
}

/* ========================================================
   TABS & INNER DETAILS (الألسنة والمحاور التفصيلية)
   ======================================================== */
.course-tabs-nav {
  display: flex;
  justify-content: flex-start;
  gap: 30px;
  border-bottom: 1px solid #e2e8f5;
  margin-bottom: 35px;
}

.c-tab-link {
  background: none;
  border: none;
  padding: 14px 10px;
  font-size: 17px;
  font-weight: 700;
  color: #555555;
  cursor: pointer;
  position: relative;
}

.c-tab-link.active {
  color: #3b66f5;
}

.c-tab-link.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #3b66f5;
}

.inner-green-title {
  font-size: 22px;
  font-weight: 800;
  color: #247a44; /* ترويسة العنوان الأخضر الغامق المطابق لقطات الشاشة */
  margin-bottom: 25px;
}

.inner-green-title.font-large {
  font-size: 24px;
  margin-top: 40px;
}

.course-section-block {
  margin-bottom: 30px;
  font-size: 15.5px;
  color: #222222;
  line-height: 1.8;
}

.course-section-block strong {
  display: block;
  font-size: 16px;
  color: #111111;
  margin-bottom: 10px;
}

.course-section-block p {
  margin-bottom: 14px;
}

.course-section-block ul,
.course-section-block ol {
  padding-right: 20px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-section-block ul li {
  list-style-type: disc;
}

.highlight-p {
  font-weight: 700;
  color: #111111;
}

/* ترقيم المحاور المنظم */
.numbered-axis li {
  margin-bottom: 12px;
}

.numbered-axis li strong {
  display: inline;
  font-weight: 800;
}

.numbered-axis li span {
  display: block;
  margin-top: 4px;
  color: #555555;
}

.benefits-list li,
.how-to-study li {
  list-style-type: disc;
  font-weight: 600;
}

.trip-title {
  margin-top: 20px;
}

.expert-p {
  font-size: 16px;
  font-weight: 800;
  color: #247a44;
}

/* صندوق الحجز والاستعلام الممركز السفلي */
.booking-info-block {
  max-width: 500px;
  margin: 50px auto 40px;
  text-align: center;
  background-color: #ffffff;
  padding: 20px;
}

.booking-info-block h3 {
  font-size: 26px;
  font-weight: 900;
  color: #247a44;
  margin-bottom: 8px;
}

.booking-info-block p {
  font-size: 15px;
  color: #444444;
  margin-bottom: 16px;
}

.booking-info-block .phone-num {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #222222;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.booking-info-block .channels-text,
.booking-info-block .confirm-text {
  display: block;
  font-size: 14.5px;
  color: #555555;
  font-weight: 600;
  margin-bottom: 4px;
}

/* ========================================================
   COURSE REVIEWS WIDGET (شارت التقييمات التوضيحي بالأسفل)
   ======================================================== */
.course-reviews-widget {
  margin-top: 60px;
  border-top: 1px solid #e2e8f5;
  padding-top: 40px;
  text-align: right;
}

.reviews-widget-title {
  font-size: 26px;
  font-weight: 800;
  color: #247a44;
  margin-bottom: 30px;
  font-family: system-ui, sans-serif;
}

.reviews-flex-box {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 60px;
}

.chart-bars-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 300px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.star-num {
  font-size: 13px;
  color: #444444;
  font-weight: 600;
  white-space: nowrap;
}

.bar-bg {
  flex: 1;
  height: 8px;
  background-color: #eeeeee;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background-color: #f5b301;
}

.total-rating-side {
  text-align: center;
}

.dots-placeholder {
  font-size: 24px;
  color: #222222;
  letter-spacing: 4px;
  line-height: 1;
  margin-bottom: 8px;
}

.gold-stars {
  color: #ccc;
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.ratings-text {
  font-size: 13.5px;
  color: #777777;
  font-family: system-ui, sans-serif;
}

/* ========================================================
   SECTION 3: SUGGESTED GRID (كورسات قد تكون مهتم بها)
   ======================================================== */
.suggested-courses-section {
  padding: 60px 0 80px;
  background-color: #ffffff;
  border-top: 1px solid #f0f4fa;
}

.suggested-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 35px;
}

.suggested-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: #247a44;
}

.view-all-link {
  font-size: 14px;
  font-weight: 700;
  color: #111111;
}

.suggested-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.suggested-card {
  background-color: #ffffff;
  border: 1px solid #edf1f7;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.card-img-box {
  width: 100%;
  height: 100%;
  background-color: #f1f4f9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-box .tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff8c00;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ========================================================
   RESPONSIVE DESIGN (التوافق التام مع الجوال والتابلت)
   ======================================================== */
@media (max-width: 991px) {
  .main-layout-flex {
    flex-direction: column-reverse; /* يرتفع كارت السعر والشراء لأعلى الصفحة في الجوال لراحة المستخدم */
    gap: 40px;
  }
  .course-content-area,
  .course-sticky-sidebar {
    width: 100%;
    flex: none;
  }
  .course-sticky-sidebar {
    position: static;
  }
  .suggested-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .suggested-grid {
    grid-template-columns: 1fr;
  }
  .reviews-flex-box {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }
  .chart-bars-side {
    width: 100%;
    flex: none;
  }
  .course-tabs-nav {
    gap: 15px;
  }
  .c-tab-link {
    font-size: 15px;
  }
}
