/* استيراد خط مشابه جداً للتصميم */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* إعدادات عامة وتصفير الهوامش */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  overflow-x: hidden;
  background-color: #ffffff;
}

/* ================= شريط التنقل العلوي لصفحة تفاصيل الكورس (Navbar Section) ================= */
.single-course-nav-section {
  width: 100%;
  padding: 24px 40px 0 40px;
  background-color: transparent;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* القسم الرئيسي */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 60px 50px 60px;
  overflow: hidden;
}

/* الخلفية والتدرج اللوني المطابق للصورة */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* تدرج لوني من التييل الغامق على اليسار إلى البرتقالي/الذهبي على اليمين مع شفافية بالمنتصف لإظهار الطفل */
  background: linear-gradient(90deg, #065A5A 19.23%, rgba(6, 90, 90, 0.8) 37.86%, rgba(6, 90, 90, 0.47) 45.18%, rgba(6, 90, 90, 0.33) 52.76%, rgba(237, 167, 27, 0.2) 57.89%, rgba(227, 154, 6, 0.59) 62.65%, #E39A06 86.37%);
}

/* حاوية المحتوى الأساسي */
.hero-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1240px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
  gap: 40px;
}

/* القسم الأيسر (النصوص) */
.hero-content {
  margin-top: 50px;
  flex: 1;
  max-width: 610px;
  color: #ffffff;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background-color: rgba(11, 88, 93, 0.65);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
}

.hero-title {
  color: #ffffff;
  margin-top: 22px;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.hero-description {
  font-size: 20px;
  line-height: 1.55;
  color: #ffffff;
  margin-bottom: 42px;
  font-weight: 400;
  max-width: 570px;
}

/* أزرار الدعوة لاتخاذ إجراء (CTA Buttons) */
.hero-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.btn-primary {
  background-color: #e59400;
  color: #ffffff;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background-color: #cc8400;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #ffffff;
  color: #464545;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background-color: #f3f3f3;
  transform: translateY(-2px);
}

/* القسم الأيمن (البطاقات المائلة والتقييم) */
.hero-visuals {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.cards-stack {
  position: relative;
  width: 500px;
  height: 310px;
  margin-bottom: 25px;
}

.photo-card {
  position: absolute;
  background-color: #ffffff;
  padding: 11px;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition: transform 0.35s ease;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* البطاقة اليسرى (الأمامية) */
.card-left {
  width: 331px;
  height: 235px;
  left: 15px;
  top: 40px;
  transform: rotate(-3.5deg);
  z-index: 3;
}

/* البطاقة اليمنى (الخلفية المائلة) */
.card-right {
  width: 304px;
  height: 220px;
  right: 10px;
  top: 10px;
  transform: rotate(19deg);
  z-index: 2;
}

.card-left:hover {
  transform: rotate(-1deg) scale(1.03);
}

.card-right:hover {
  transform: rotate(15deg) scale(1.03);
}

/* كبسولة التقييم السفلية */
.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 3px 22px;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-right: 15px;
}

.stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.star {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.rating-text {
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

/* التجاوب مع الشاشات الأصغر (Responsive) */
@media (max-width: 1100px) {
  .hero-section {
    padding: 20px 30px 40px 30px;
  }
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    margin-top: 100px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-visuals {
    align-items: center;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hero-section {
    padding: 15px 15px 35px 15px;
  }
  .hero-title {
    font-size: 36px;
  }
  .cards-stack {
    width: 100%;
    max-width: 340px;
    height: 250px;
  }
  .card-left {
    width: 200px;
    height: 170px;
    left: 0;
  }
  .card-right {
    width: 180px;
    height: 160px;
    right: 0;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

/* ================= تنسيقات القسم الثاني (Methodology Section) ================= */
.methodology-section {
  background-color: #ffffff;
  padding: 90px 60px;
  width: 100%;
}

.methodology-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 44px;
}

/* 1. الصندوق الأيسر (صورة المصحف) */
.methodology-image-box {
  flex: 0 0 385px;
  border-radius: 14px;
  overflow: hidden;
}

.methodology-img {
  width: 100%;
  height: 100%;
  min-height: 515px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 2. الصندوق الأيمن (المحتوى والبطاقات) */
.methodology-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0;
}

/* شارة Authentic Methodology */
.methodology-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: #e6f0f0;
  color: #0d5f63;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}

/* العنوان الرئيسي */
.methodology-title {
  font-size: 44px;
  font-weight: 700;
  color: #313131;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.6px;
}

/* الوصف */
.methodology-desc {
  font-size: 18px;
  line-height: 1.55;
  color: #464545b2;
  font-weight: 400;
  margin-bottom: 28px;
  max-width: 670px;
}

/* شبكة البطاقات */
.methodology-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: 20px;
  margin-top: auto;
}

/* العمود الأيسر للبطاقات (100% Native + Zero Contracts) */
.cards-left-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  border-radius: 14px;
  padding: 22px 24px;
  color: #ffffff;
}

.info-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.info-card p {
  font-size: 13.5px;
  line-height: 1.48;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  max-width: 270px;
}

/* البطاقة الخضراء */
.card-teal {
  background-color: #065a5a;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* البطاقة السوداء/الرمادي الغامق */
.card-dark {
  background-color: #313131;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* البطاقة البرتقالية (خريطة العالم) */
.card-orange {
  background-color: #e59400;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  padding: 22px 26px;
  min-height: 256px;
}

.orange-card-title {
  font-size: 27px !important;
  font-weight: 800 !important;
  line-height: 1.15;
  margin-bottom: 0 !important;
  position: relative;
  z-index: 2;
  letter-spacing: -0.3px;
}

.orange-card-title .dark-word {
  color: #2c2e30;
}

/* صندوق صورة الخريطة الشفافة */
.world-map-box {
  position: relative;
  width: 100%;
  height: 135px;
  margin: 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.map-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* الإحصائية السفلية (86% Students...) */
.orange-card-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.stat-number {
  font-size: 36px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

/* التجاوب مع الشاشات الأصغر (Responsive) */
@media (max-width: 1080px) {
  .methodology-section {
    padding: 60px 30px;
  }
  .methodology-container {
    flex-direction: column;
  }
  .methodology-image-box {
    flex: none;
    width: 100%;
    max-height: 420px;
  }
  .methodology-img {
    min-height: 360px;
  }
}

@media (max-width: 768px) {
  .methodology-title {
    font-size: 32px;
  }
  .methodology-cards-grid {
    grid-template-columns: 1fr;
  }
}
/* ================= تنسيقات القسم الثالث (Onboarding Steps Section) ================= */
.onboarding-section {
  background-color: #fbf9f4; /* لون الخلفية الكريمي الفاتح المطابق للصورة */
  padding: 90px 60px 110px 60px;
  width: 100%;
}

.onboarding-container {
  max-width: 1080px;
  margin: 0 auto;
}

/* رأس السكشن */
.onboarding-header {
  text-align: center;
  margin-bottom: 65px;
}

.onboarding-badge {
  display: inline-block;
  background-color: #f8eed7;
  color: #e29300;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.onboarding-title {
  font-size: 46px;
  font-weight: 800;
  color: #2c2d30;
  line-height: 1.18;
  margin-bottom: 14px;
  letter-spacing: -0.6px;
}

.onboarding-subtitle {
  font-size: 17px;
  color: #555555;
  font-weight: 400;
  line-height: 1.5;
}

/* تخطيط الشبكة المتدرجة (Staggered Two-Column Layout) */
.steps-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 55px;
}

.steps-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* العمود الأيسر يبدأ من مسافة سفلية ليطابق تدرج الكروت 01 ثم 02 ثم 03 ثم 04 */
.steps-col-left {
  margin-top: 155px;
  gap: 120px;
}

/* العمود الأيمن يبدأ من الأعلى */
.steps-col-right {
  gap: 130px;
}

/* التصميم المشترك للكروت الأربعة */
.step-card {
  position: relative;
  width: 100%;
  height: 235px;
  border-radius: 16px;
  padding: 28px 30px;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
}

/* الرقم في أعلى يمين الكارت (01, 02, 03, 04) */
.step-num {
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  z-index: 3;
}

/* محتوى النص على يسار الكارت */
.step-info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 60%;
  height: 100%;
}

.step-heading {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.step-desc {
  font-size: 16px;
  line-height: 1.52;
  font-weight: 400;
}

/* حاوية الشكل/الصورة في يمين الكارت */
.step-illustration {
  position: absolute;
  right: 5px;
  bottom: 1px;
  width: 233px;
  height: 195px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* للكارت رقم 02 حيث تلامس الصورة الحافة السفلية للكارت */
.step-illustration.illus-bottom {
  bottom: 0;
  height: 160px;
}

.step-img {
  border-radius: 12px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* ================= ألوان كل كارت على حدة ================= */

/* 1. كارت 01 (الداكن) */
.card-step-dark {
  background: linear-gradient(-90deg, #2f3030 50%, #212222 100%);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.card-step-dark .step-desc {
  color: rgba(255, 255, 255, 0.82);
}

/* 2. كارت 02 (الأبيض) */
.card-step-white {
  background: linear-gradient(-90deg, #ffffff 50%, #dfdfdf 100%);
  color: #2c2d30;
  border: 1.5px solid #eceae4;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}
.card-step-white .step-desc {
  color: #4f4f4f;
}

/* 3. كارت 03 (البرتقالي) */
.card-step-orange {
  background: linear-gradient(-90deg, #ea9724 50%, #a2691a 100%);
  color: #ffffff;
  margin-left: -25px; /* إزاحة خفيفة لليسار كما في الصورة الأصلية */
  width: calc(100% + 10px);
  box-shadow: 0 12px 30px rgba(229, 148, 0, 0.18);
}
.card-step-orange .step-desc {
  color: rgba(255, 255, 255, 0.92);
}

/* 4. كارت 04 (التييل / الأخضر الغامق) */
.card-step-teal {
  background: linear-gradient(-90deg, #025360 50%, #012d2e 100%);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(5, 90, 91, 0.15);
}
.card-step-teal .step-desc {
  color: rgba(255, 255, 255, 0.85);
}

/* ================= تصميم مشغل الصوت الموجي (Audio Waveform) ================= */
.audio-wave {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
}

.wave-play-btn {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-right: 4px;
  opacity: 0.85;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.wave-play-btn:hover {
  transform: scale(1.12);
  opacity: 1;
}

.wave-play-btn svg {
  width: 20px;
  height: 20px;
}

.wave-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
  flex-shrink: 0;
}

.wave-bars {
  display: flex;
  align-items: center;
  gap: 3.5px;
  height: 22px;
}

.wave-bar {
  width: 2.5px;
  border-radius: 4px;
  background-color: currentColor;
  transition:
    height 0.2s ease,
    opacity 0.2s ease;
}

/* الجزء غير النشط من الموجة الصوتية يكون شفافاً كما في التصميم */
.wave-bar.inactive {
  opacity: 0.32;
}

/* أيقونة Play/Pause حسب حالة التشغيل */
.wave-play-btn .icon-pause {
  display: none;
}
.audio-wave.playing .wave-play-btn svg:not(.icon-pause) {
  display: none;
}
.audio-wave.playing .wave-play-btn .icon-pause {
  display: block;
}

/* الموجة قابلة للضغط للتقديم والتأخير */
.wave-bars {
  cursor: pointer;
}

/* التجاوب مع الشاشات المتوسطة والموبايل */
@media (max-width: 992px) {
  .onboarding-section {
    padding: 60px 25px;
  }
  .steps-layout {
    flex-direction: column;
    gap: 30px;
  }
  .steps-col-left,
  .steps-col-right {
    margin-top: 0;
    gap: 30px;
    width: 100%;
  }
  .card-step-orange {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .onboarding-title {
    font-size: 32px;
  }
  .step-card {
    height: auto;
    min-height: 240px;
    padding: 24px 20px;
  }
  .step-info {
    max-width: 65%;
  }
  .step-illustration {
    width: 115px;
    height: 115px;
    right: 12px;
  }
}

/* ================= تنسيقات القسم الرابع (Courses Tracks Section) ================= */
.courses-section {
  background-color: #065a5a; /* لون الخلفية التييل الغامق المطابق للصورة */
  padding: 75px 60px 105px 60px;
  width: 100%;
}

.courses-container {
  max-width: 1120px;
  margin: 0 auto;
}

/* شارة CURRICULUM PATHWAYS البيضاء */
.courses-top-badge {
  display: inline-block;
  background-color: #ffffff;
  color: #06575b;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 9px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

/* صف العنوان وزرار Browse Courses */
.courses-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 42px;
  gap: 20px;
}

.courses-main-title {
  font-size: 44px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.6px;
}

/* زرار Browse Courses البرتقالي بإطار أبيض */
.btn-browse-courses {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #e39a06;
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 50px;
  border: 1.5px solid #ffffff;
  margin-top: 4px;
  transition:
    background-color 0.25s ease,
    transform 0.2s ease;
}

.btn-browse-courses:hover {
  background-color: #cc8400;
  transform: translateY(-2px);
}

.arrow-up-right {
  width: 17px;
  height: 17px;
}

/* شبكة الكروت الثلاثة (Flex + Wrap) */
.courses-grid {
  --courses-gap: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: var(--courses-gap);
}

.courses-grid > .course-card {
  flex: 0 1 calc((100% - 2 * var(--courses-gap)) / 3);
  min-width: 0;
}

/* تصميم كارت الكورس */
.course-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 14px 14px 20px 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

/* رابط وصورة الكارت القابلة للضغط */
.course-img-link {
  position: relative;
  display: block;
  width: 100%;
  height: 215px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  cursor: pointer;
}

.course-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.course-img-link:hover .course-img {
  transform: scale(1.05);
}

/* الشارة العلوية فوق الصورة (Just Kids / Adult / All ages) */
.card-age-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  line-height: 1.2;
}

.badge-dark {
  background-color: #3b3b3b;
}

.badge-teal {
  background-color: #0b5d61;
}

.badge-orange {
  background-color: #e59400;
}

/* التاجات الرمادية الصغيرة تحت الصورة (Foundational / All ages) */
.course-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 0 2px;
}

.course-tag {
  background-color: #efefef;
  color: #666666;
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
}

/* عنوان ووصف الكورس */
.course-title {
  font-size: 24px;
  font-weight: 800;
  color: #313131;
  margin-bottom: 10px;
  padding: 0 2px;
  letter-spacing: -0.3px;
}

.course-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.course-title a:hover {
  color: #06575b;
}

.course-desc {
  font-size: 16px;
  line-height: 1.52;
  color: #727272;
  font-weight: 400;
  margin-bottom: 24px;
  padding: 0 2px;
}

/* الفوتر السفلي للكارت (زرار Course Details + السهم البرتقالي) */
.course-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

/* زرار Course Details */
.btn-course-details {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #065a5a;
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  padding: 10px 20px;
  border-radius: 50px;
  transition:
    background-color 0.25s ease,
    transform 0.2s ease;
}

.btn-course-details:hover {
  background-color: #043f42;
  transform: translateY(-1px);
}

.help-bubble-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* زرار السهم البرتقالي الدائري */
.btn-course-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #e59400;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition:
    background-color 0.25s ease,
    transform 0.2s ease;
}

.btn-course-arrow:hover {
  background-color: #cc8400;
  transform: rotate(45deg);
}

.btn-course-arrow svg {
  width: 19px;
  height: 19px;
}

/* التجاوب مع الشاشات المتوسطة والموبايل */
@media (max-width: 1024px) {
  .courses-section {
    padding: 60px 30px 80px 30px;
  }
  /* كارتين في الصف، والتالت يتسنتر تحتهم */
  .courses-grid > .course-card {
    flex-basis: calc((100% - var(--courses-gap)) / 2);
  }
}

@media (max-width: 768px) {
  .courses-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .courses-main-title {
    font-size: 34px;
  }
  /* كارت واحد في الصف */
  .courses-grid > .course-card {
    flex-basis: 100%;
    max-width: 480px;
  }
}
/* ================= تنسيقات القسم الخامس (Household Features Section) ================= */
.household-section {
  background-color: #cd8a03; /* الخلفية الذهبية/البرتقالية المحيطة */
  padding: 55px 45px;
  width: 100%;
}

/* الصندوق الأبيض الكبير */
.household-white-box {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 26px;
  padding: 45px 65px 50px 65px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

/* البانر العلوي المصور */
.household-banner {
  position: relative;
  width: 100%;
  height: 365px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 38px;
}

.household-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* التدرج اللوني التييل أسفل الصورة مع العنوان */
.household-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 87, 91, 0) 48%,
    rgba(6, 87, 91, 0.78) 78%,
    rgba(5, 83, 87, 0.98) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 24px 28px;
}

.household-banner-title {
  color: #ffffff;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.4px;
}

/* شبكة الكروت الأربعة السفلية */
.household-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* تصميم الكارت الواحد */
.feature-item-card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 26px 18px 28px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #f0f0f0;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.feature-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

/* حاوية صورة الأيقونة داخل الكارت */
.feature-icon-box {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* يحافظ على أبعاد صورة الأيقونة الدائرية بدون أي مط أو تشويه */
  display: block;
}

/* عنوان الكارت وتلوين الكلمات المميزة */
.feature-item-title {
  font-size: 24px;
  font-weight: 800;
  color: #313131;
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}

.text-gold {
  color: #e59400;
}

.text-teal {
  color: #08575b;
}

.text-grey {
  color: #7a7a7a;
}

/* النص الوصفي داخل الكارت */
.feature-item-desc {
  font-size: 15px;
  line-height: 1.5;
  color: #464545e5;
  font-weight: 400;
}

/* التجاوب مع الشاشات المتوسطة والموبايل */
@media (max-width: 1080px) {
  .household-white-box {
    padding: 35px 35px 40px 35px;
  }
  .household-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .household-section {
    padding: 30px 16px;
  }
  .household-white-box {
    padding: 22px 18px 28px 18px;
    border-radius: 20px;
  }
  .household-banner {
    height: 250px;
  }
  .household-banner-title {
    font-size: 21px;
  }
  .household-features-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= تنسيقات القسم السادس (Guides / Articles Section) ================= */
.guides-section {
  background-color: #fbf9f4; /* خلفية كريمية فاتحة مطابقة للتصميم */
  padding: 85px 60px 100px 60px;
  width: 100%;
}

.guides-container {
  max-width: 1160px;
  margin: 0 auto;
  text-align: center;
}

/* الشارة العلوية */
.guides-top-badge {
  display: inline-block;
  background-color: #e5f0f0;
  color: #06575b;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
}

/* العنوان والوصف */
.guides-main-title {
  font-size: 44px;
  font-weight: 800;
  color: #2b2c2e;
  margin-bottom: 12px;
  letter-spacing: -0.6px;
}

.guides-subtitle {
  font-size: 17px;
  color: #6b6b6b;
  font-weight: 400;
  margin-bottom: 50px;
}

/* شبكة الكروت الثلاثة (Flex + Wrap) */
.guides-grid {
  --guides-gap: 35px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* الكارت اللي لوحده في السطر الأخير يتسنتر */
  align-items: stretch; /* كل الكروت بنفس الارتفاع في نفس السطر */
  gap: var(--guides-gap);
  margin-bottom: 45px;
  text-align: left;
}

/* كل عنصر داخل الشبكة (الكارت نفسه أو الـ placeholder اللي بيتحقن فيه) */
.guides-grid > * {
  display: flex;
  flex: 0 1 calc((100% - 2 * var(--guides-gap)) / 3); /* 3 في الصف */
  min-width: 0;
}

/* الكارت يملأ عنصره بالكامل علشان الارتفاعات تتساوى */
.guides-grid > * > .guide-card,
.guides-grid > .guide-card {
  flex: 1 1 auto;
  width: 100%;
}

/* تصميم الكارت الواحد */
.guide-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 14px 14px 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0ede6;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

/* صورة الكارت القابلة للضغط */
.guide-img-link {
  display: block;
  width: 100%;
  height: 205px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.guide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.guide-img-link:hover .guide-img {
  transform: scale(1.04);
}

/* المحتوى النصي */
.guide-content {
  padding: 0 4px;
  margin-bottom: 20px;
}

.guide-title {
  font-size: 18.5px;
  font-weight: 800;
  color: #2b2c2e;
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.guide-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.guide-title a:hover {
  color: #06575b;
}

.guide-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #727272;
  font-weight: 400;
}

/* زرار Read the Bolg السفلي داخل الكارت */
.guide-read-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #e59400;
  color: #ffffff;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(229, 148, 0, 0.2);
  transition:
    background-color 0.25s ease,
    transform 0.2s ease;
  margin-top: auto;
}

.guide-read-btn:hover {
  background-color: #cc8400;
  transform: translateY(-1px);
}

.guide-read-btn svg {
  width: 19px;
  height: 19px;
}

/* صندوق وزرار Explore blogs السفلي العام */
.guides-footer-btn-box {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.btn-explore-blogs {
  display: inline-block;
  background-color: #046868;
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  padding: 18px 65px;
  border-radius: 50px;
  box-shadow: 0 8px 22px rgba(6, 87, 91, 0.22);
  transition:
    background-color 0.25s ease,
    transform 0.2s ease;
}

.btn-explore-blogs:hover {
  background-color: #097c7c;
  transform: translateY(-2px);
}

/* التجاوب مع الشاشات المتوسطة والموبايل */
@media (max-width: 1024px) {
  .guides-section {
    padding: 60px 30px;
  }
  .guides-grid {
    --guides-gap: 24px;
  }
  /* كارتين في الصف، والتالت يتسنتر تحتهم */
  .guides-grid > * {
    flex-basis: calc((100% - var(--guides-gap)) / 2);
  }
}

@media (max-width: 768px) {
  .guides-section {
    padding: 50px 20px;
  }
  .guides-main-title {
    font-size: 32px;
  }
  /* كارت واحد في الصف */
  .guides-grid > * {
    flex-basis: 100%;
    max-width: 480px;
  }
}
