/* ============================================================
   MERGED STYLESHEET
   ├── .design-home   →  Home / Landing page styles
   └── .design-about  →  About page styles
   ============================================================ */

/* ─────────────────────────────────────────────
   SHARED CSS VARIABLES
   (متاحة globally لأن الـ variables بتنتشر
    من :root لكل العناصر تحتيه)
───────────────────────────────────────────── */
:root {
  /* Home palette */
  --brand-dark:   #7a0c0c;
  --brand-light:  #b62b46;
  --text-main:    #383838;
  --text-muted:   #606060;
  --panel:        #fff;
  --soft-bg:      rgba(255, 223, 229, 0.44);
  --shadow-md:    0 4px 16px rgba(0, 0, 0, 0.18);
  --radius-md:    14px;
  --radius-lg:    30px;

  /* About palette  (aliases للـ same colors بأسماء semantic) */
  --wine-900:   #7a0c0c;
  --wine-700:   #b62b46;
  --text-900:   #383838;
  --text-700:   #606060;
  --soft-pink:  rgba(255, 223, 229, 0.44);
  --white:      #ffffff;
  --shadow:     0 4px 12px rgba(0, 0, 0, 0.2);

    --rose-soft:   rgba(255, 223, 229, 0.44);
  --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}


/* ============================================================
   RESET & BASE  (مشترك بين الصفحتين)
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--text-main);
  font-family: "Tajawal", "Cairo", sans-serif;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}


/* ============================================================
   .design-home  — HOME / LANDING PAGE
   ============================================================ */

.design-home .container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

/* ── Topbar ── */
.design-home .topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand-light) 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.design-home .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1.25rem;
}

.design-home .nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.8rem;
  padding: 0;
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
}

.design-home .nav-links a { opacity: 0.95; }
.design-home .nav-links a:hover { opacity: 1; }

.design-home .nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.design-home .nav-left {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  font-size: 20px;
}

.design-home .brand-mark img { height: 45px; }

/* Mobile menu toggle */
.design-home .menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.design-home .nav-menu { display: block; }

/* ── Hero ── */
.design-home .hero {
  position: relative;
  min-height: clamp(360px, 55vw, 640px);
  border-bottom-left-radius: 72px;
  border-bottom-right-radius: 72px;
  overflow: hidden;
}

.design-home .hero-bg,
.design-home .hero-overlay {
  position: absolute;
  inset: 0;
}

.design-home .hero-bg {
  background-size: cover;
  background-position: center;
}

.design-home .hero-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42));
}

.design-home .hero-content {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}

.design-home .hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.design-home .hero p {
  margin: 0.75rem 0 1.5rem;
  font-size: clamp(1.1rem, 2.1vw, 2rem);
}

/* ── Buttons ── */
.design-home .btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand-light) 100%);
  color: #fff;
  min-height: 48px;
  padding: 0.55rem 2rem;

  font-size: 1.15rem;
  border: none;
  box-shadow: var(--shadow-md);
}

.design-home .btn-sm {
  min-height: 38px;
  padding-inline: 1.1rem;
  font-size: 1rem;
}

/* ── Intro ── */
.design-home .intro {
  padding: 2rem 0;
  text-align: center;
}

.design-home .intro h2 {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.design-home .intro h2 span:first-child { color: var(--brand-dark); }

.design-home .intro p {
  margin: 0.85rem 0 1.4rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
}

/* ── Stats ── */
.design-home .stats {
  background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand-light) 100%);
  padding: 1.6rem 0;
}

.design-home .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 1rem;
}

.design-home .stat-item {
  text-align: center;
  color: #fff;
}

.design-home .stat-icon {
  margin-inline: auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  font-size: 1.45rem;
  /* background: rgba(255, 255, 255, 0.14); */
}

.design-home .stat-item h3 {
  margin: 0.6rem 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.design-home .stat-item p {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

/* ── Courses ── */
.design-home .courses {
  background: var(--soft-bg);
  padding: 2.2rem 0 2.8rem;
}

.design-home .courses h2,
.design-home .why h2,
.design-home .cta h2,
.design-home .partners h2 {
  margin: 0 0 1.5rem;
  text-align: center;
  color: var(--brand-dark);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.design-home .course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 1.2rem;
}

.design-home .course-card {
  background: var(--panel);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 360px;
}

.design-home .course-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
}

.design-home .course-card h3 {
  margin: 1rem 0 0.55rem;
  min-height: 3rem;
  font-size: 1.3rem;
  color: var(--text-main);
}

.design-home .course-card p,
.design-home .course-card small {
  margin: 0;
  color: var(--text-muted);
}

.design-home .course-card .btn-primary { margin-top: auto; }

/* ── Audience ── */
.design-home .audience {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1.2rem;
  padding: 2.6rem 0;
}

.design-home .audience-card,
.design-home .benefit-card {
  background: #fff;
  border: 1px solid rgba(96, 96, 96, 0.25);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1.1rem;
  text-align: center;
}

.design-home .audience-card h3 {
  color: var(--brand-dark);
  margin: 0.25rem 0 0.85rem;
  font-size: 1.35rem;
}

.design-home .audience-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

/* ── Why ── */
.design-home .why {
  background: var(--soft-bg);
  padding: 2rem 0;
}

.design-home .why-sub {
  text-align: center;
  color: var(--text-muted);
  margin: -0.8rem 0 1.6rem;
  font-size: 1.2rem;
}

.design-home .laptop-wrap {
  width: min(780px, 100%);
  margin-inline: auto;
}

.design-home .benefits-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 1rem;
}

.design-home .benefit-card h3 { margin: 0; font-size: 1.15rem; }
.design-home .benefit-icon { margin: 0 auto 10px !important; }

/* ── CTA ── */
.design-home .cta {
  text-align: center;
  padding: 2.8rem 0;
}

.design-home .cta p {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin: 0 auto 1.2rem;
  max-width: 860px;
}

/* ── Partners ── */
.design-home .partners {
  background: var(--soft-bg);
  padding: 2.2rem 0;
  text-align: center;
}

.design-home .partners p {
  margin: -0.7rem auto 1.5rem;
  color: var(--text-main);
  max-width: 900px;
  font-size: 1.2rem;
}

.design-home .partners-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(128px, 1fr));
  gap: 0.9rem;
}

.design-home .partners-grid img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 0.8rem;
}

.design-home .awards-title {
  color: var(--brand-dark);
  margin: 2rem 0 0;
  font-size: 1.8rem;
}

/* ── Footer ── */
.design-home .footer {
  background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand-light) 100%);
  color: rgba(255, 255, 255, 0.87);
  padding-top: 2.2rem;
}

.design-home .footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 1.3rem;
}

.design-home .footer h4 {
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
  color: #fff;
  border-right: 4px solid #f87171;
  padding-right: 0.65rem;
}

.design-home .footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.design-home .footer li { margin-bottom: 0.45rem; }

.design-home .footer a { color: rgba(255, 255, 255, 0.85); }

.design-home .footer-brand p {
  margin: 0.7rem 0 0;
  line-height: 1.8;
}

.design-home .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 1.8rem;
  padding: 1.5rem 0 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
}

.design-home .footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.design-home .socials {
  display: flex;
  gap: 0.65rem;
}

.design-home .socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}

/* ── Home Responsive ── */
@media (max-width: 1120px) {
  .design-home .course-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
  .design-home .partners-grid {
    grid-template-columns: repeat(4, minmax(128px, 1fr));
  }
  .design-home .footer-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 820px) {
  .design-home .hero {
    border-bottom-left-radius: 42px;
    border-bottom-right-radius: 42px;
  }
  .design-home .stats-grid,
  .design-home .benefits-grid,
  .design-home .audience {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
  .design-home .nav-wrap {
    flex-direction: row;
    justify-content: space-between;
    padding-block: 0.5rem;
  }
  .design-home .nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
  }
  .design-home .nav-links {
    justify-content: center;
    font-size: 1rem;
    gap: 0.6rem 1rem;
    flex-direction: column;
    align-items: center;
  }
  .design-home .partners-grid {
    grid-template-columns: repeat(3, minmax(110px, 1fr));
  }
  .design-home .menu-toggle {
    display: block;
  }
  .design-home .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: linear-gradient(180deg, #7a0c0c, #b62b46);
    text-align: center;
    padding: 15px 0;
  }
  .design-home .nav-menu.active {
    display: block;
  }
}

@media (max-width: 560px) {
  .design-home .course-grid,
  .design-home .audience,
  .design-home .stats-grid,
  .design-home .benefits-grid,
  .design-home .footer-grid {
    grid-template-columns: 1fr;
  }
  .design-home .partners-grid {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
  }
  .design-home .hero-content {
    width: min(560px, calc(100% - 1.3rem));
  }
}


/* ============================================================
   .design-about  — ABOUT PAGE
   ============================================================ */

.design-about .container {
  width: min(1240px, 92vw);
  margin-inline: auto;
}

/* ── Topbar ── */
.design-about .topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, var(--wine-900), var(--wine-700));
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.design-about .topbar-inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.design-about .brand-icon-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.design-about .brand-mark {
  width: 27px;
  height: 33px;
  object-fit: contain;
}

.design-about .logo-mini {
  width: 40px;
  object-fit: contain;
}

.design-about .main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: clamp(15px, 1.2vw, 22px);
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

/* ── Hero ── */
.design-about .hero {
  border-bottom-left-radius: clamp(45px, 10vw, 130px);
  border-bottom-right-radius: clamp(45px, 10vw, 130px);
  overflow: hidden;
}

.design-about .hero img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ── About Section ── */
.design-about .about {
  text-align: center;
  padding: clamp(40px, 7vw, 92px) 0 clamp(55px, 8vw, 110px);
}

.design-about .about h1 {
  margin: 0;
  font-size: clamp(26px, 3.5vw, 33px);
  color: var(--text-900);
}

.design-about .about h1 span { color: var(--wine-700); }

.design-about .about p {
  margin: 24px auto 34px;
  max-width: 1180px;
  line-height: 2.05;
  font-size: clamp(15px, 2vw, 22px);
  color: var(--text-700);
}

.design-about .about strong {
  color: var(--wine-900);
  font-weight: 700;
}

/* ── CTA Button ── */
.design-about .cta {
  border: none;
  background: linear-gradient(180deg, var(--wine-900), var(--wine-700));
  color: #fff;
  border-radius: 999px;
  padding: 14px 40px;
  font-size: clamp(16px, 2vw, 25px);
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.design-about .cta:hover { transform: translateY(-2px); }

/* ── Why Us ── */
.design-about .why-us {
  background: var(--soft-pink);
  padding: clamp(48px, 8vw, 110px) 0;
}

.design-about h2 {
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(24px, 3.2vw, 33px);
  color: var(--wine-900);
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
}

/* ── Feature Cards ── */
.design-about .feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.design-about .feature-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(2px);
  padding: 12px;
  text-align: center;
  min-height: 347px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.design-about .feature-card img {
  width: 100%;
  max-width: 201px;
  height: 132px;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 9px;
}

.design-about .feature-card h3 {
  margin: 0;
  font-size: clamp(18px, 1.85vw, 22px);
  line-height: 1.35;
}

.design-about .feature-card p {
  margin: 0;
  color: var(--text-700);
  font-size: 15px;
  line-height: 1.7;
}

/* ── Principles ── */
.design-about .principles {
  padding: clamp(48px, 8vw, 110px) 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.design-about .principle-card {
  background: #fff;
  border-radius: 30px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 24px;
}

.design-about .principle-text h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.2vw, 33px);
}

.design-about .principle-text p {
  margin: 0;
  font-size: clamp(15px, 2vw, 22px);
  line-height: 1.7;
  color: var(--text-900);
}

.design-about .principle-icon {
  width: 125px;
  min-width: 125px;
 
}

/* ── Partners ── */
.design-about .partners {
  background: var(--soft-pink);
  padding: clamp(40px, 6vw, 60px) 0 32px;
}

.design-about .partners-subtitle {
  margin: 0 auto 30px;
  max-width: 1000px;
  text-align: center;
  font-size: clamp(16px, 2vw, 22px);
  color: var(--text-900);
}

.design-about .partners-subtitle strong { color: var(--wine-900); }

.design-about .logos-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 15px;
}

.design-about .logo-card {
  background: #fff;
  height: 111px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.design-about .logo-card img {
  width: 100%;
  height: 78px;
  object-fit: contain;
}

.design-about .awards-title { margin-top: 40px; }

/* ── Footer ── */
.design-about .footer {
  background: linear-gradient(180deg, var(--wine-900), var(--wine-700));
  color: rgba(231, 229, 228, 0.9);
}

.design-about .footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 70px 0;
}

.design-about .footer-brand { max-width: 320px; }

.design-about .footer-logo {
  width: 79px;
  margin-bottom: 16px;
}

.design-about .footer-brand p {
  margin: 0;
  line-height: 1.8;
}

.design-about .footer-col h4 {
  margin: 0 0 22px;
  color: #fff;
  font-size: 18px;
  border-right: 4px solid #f87171;
  padding-right: 12px;
}

.design-about .footer-col a {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  color: rgba(231, 229, 228, 0.85);
}

.design-about .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 0 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.design-about .social-icons {
  display: flex;
  gap: 16px;
}

.design-about .social-icons a {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.design-about .social-icons img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.design-about .footer-bottom p {
  margin: 0;
  color: rgba(214, 211, 209, 0.7);
  font-size: 14px;
}

/* ── About Responsive ── */
@media (max-width: 1200px) {
  .design-about .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .design-about .logos-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .design-about .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .design-about .main-nav {
    display: none;
  }
  .design-about .principle-card {
    flex-direction: row;
    align-items: flex-start;
  }
  .design-about .logos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .design-about .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 0;
  }
  .design-about .footer-brand {
    max-width: unset;
  }
}

@media (max-width: 620px) {
  .design-about .feature-grid {
    grid-template-columns: 1fr;
  }
  .design-about .principle-card {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }
  .design-about .logos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .design-about .logo-card {
    height: 92px;
    padding: 10px;
  }

}

/* ============================================================
   .design-course  — COURSES PAGE
   ============================================================ */

.design-course .hero {
  margin-top: 0;
  border-bottom-left-radius: 84px;
  border-bottom-right-radius: 84px;
  overflow: hidden;
}

.design-course .hero img {
  width: 100%;
  display: block;
  height: clamp(220px, 38vw, 705px);
  object-fit: cover;
  object-position: center top;
}

.design-course .intro {
  text-align: center;
  padding: 48px 16px 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.design-course .intro h1 {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(28px, 2.7vw, 42px);
  line-height: 1.35;
  font-weight: 500;
}

.design-course .intro p {
  margin: 16px auto 0;
  color: var(--text-main);
  font-size: clamp(21px, 2vw, 33px);
  line-height: 1.45;
  max-width: 960px;
}

.design-course .courses-area {
  background: var(--rose-soft);
  padding: 30px 24px 62px;
}

.design-course .filters {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.design-course .filter-chip {
  background: #fff;
  border: 0.3px solid rgba(163, 163, 163, 0.45);
  border-radius: 9px;
  min-width: 244px;
  min-height: 34px;
  padding: 5px 14px;
  color: var(--brand-dark);
  font-size: 22px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.16);
}



.design-course .pager {
  color: var(--brand-dark);
  text-align: center;
  font-family: "Cairo", sans-serif;
  font-size: 20px;
  margin-bottom: 28px;
  letter-spacing: 2px;
}

.design-course .cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 24px;
}

.design-course .course-card {
  background: #fff;
  border-radius: 25px;
  box-shadow: var(--card-shadow);
  padding: 25px 13px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 450px;
  backdrop-filter: blur(2px);
}

.design-course .course-image {
  width: 100%; /* ← كانت 249px ثابتة، دي كانت المشكلة */
  height: 166px;
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 13px;
}

.design-course .course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.design-course .course-title {
  min-height: 60px;
  text-align: center;
  font-size: 22px;
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 4px 4px rgba(122, 12, 12, 0.34);
  color: var(--text-main);
}

.design-course .course-description {
  width: 100%;
  color: var(--text-muted);
  font-size: 15px;
  text-align: center;
  line-height: 1.35;
  margin: 10px 0 0;
  min-height: 95px;
}

.design-course .more {
  color: var(--brand-dark);
}

.design-course .course-date {
  margin-top: 4px;
}

.design-course .old-price {
  font-family: "Cairo", sans-serif;
  text-decoration: line-through;
  color: #444;
}

.design-course .new-price {
  color: var(--brand-dark);
  font-weight: 500;
}

.design-course .card-actions {
  width: 100%;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.design-course .btn {
  border: 0;
  border-radius: 6px;
  min-height: 34px;
  cursor: pointer;
  background: linear-gradient(180deg, var(--brand-dark), var(--brand-light));
  color: #fff;
  
  font-family: "Tajawal", sans-serif;
}

.design-course .btn-cart {
  min-width: 67px;
  font-size: 20px;
    display: flex;
   align-items: center;     
  justify-content: center; 
 
}

.design-course .btn-details {
  min-width: 149px;
  font-size: 22px;
  padding: 4px 12px;
     display: flex;
     align-items: center;     
  justify-content: center; 
}

/* ── Course Responsive ── */
@media (max-width: 1120px) {
  .design-course .cards {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 820px) {
  .design-course .hero {
    border-bottom-left-radius: 42px;
    border-bottom-right-radius: 42px;
  }
  .design-course .cards {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 16px;
  }
  .design-course .course-card {
    min-height: 400px;
    padding: 16px 10px;
  }
  .design-course .course-image {
    height: 140px;
  }
  .design-course .filters {
    flex-direction: column;
    align-items: stretch;
  }
  .design-course .filter-chip {
    min-width: unset;
    width: 100%;
    font-size: 18px;
  }
  .design-course .intro h1 {
    font-size: clamp(22px, 3vw, 32px);
  }
  .design-course .intro p {
    font-size: clamp(17px, 2.5vw, 24px);
  }
  .design-course .btn-details {
    min-width: unset;
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  .design-course .hero {
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
  }
  .design-course .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .design-course .course-card {
    min-height: unset;
    padding: 16px 12px;
  }
  .design-course .course-image {
    height: 180px;
  }
  .design-course .course-title {
    font-size: 18px;
    min-height: unset;
  }
  .design-course .course-description {
    font-size: 14px;
    min-height: unset;
  }
  .design-course .btn-details {
    min-width: unset;
    font-size: 16px;
    flex: 1;
  }
  .design-course .btn-cart {
    font-size: 16px;
    min-width: 50px;
  }
  .design-course .card-actions {
    gap: 8px;
  }
  .design-course .intro {
    padding: 32px 16px 20px;
  }
  .design-course .pager {
    font-size: 16px;
  }
  .design-course .courses-area {
    padding: 20px 12px 40px;
  }
}

/* ============================================================
   .design-course2  — COURSES PAGE (TESTS / ASSESSMENTS)
   ============================================================ */

.design-course2 .hero {
  max-width: 1345px;
  margin: 0 auto;
}

.design-course2 .hero img {
  width: 100%;
  height: clamp(280px, 52vw, 680px);
  object-fit: cover;
  object-position: center;
  border-bottom-left-radius: 130px;
  border-bottom-right-radius: 130px;
  display: block;
}

.design-course2 .intro {
  max-width: 900px;
  margin: 90px auto 70px;
  text-align: center;
  padding: 0 20px;
}

.design-course2 .intro h1 {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(30px, 3.1vw, 46px);
  line-height: 1.35;
}

.design-course2 .intro p {
  margin: 8px 0 24px;
  font-size: clamp(25px, 2.2vw, 34px);
  line-height: 1.4;
}

.design-course2 .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(352px, 100%);
  min-height: 53px;
  border-radius: 30px;
  background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand-mid, #b62b46) 100%);
  color: #fff;
  font-size: 30px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.design-course2 .courses-wrap {
  background: var(--rose-soft, rgba(255, 223, 229, 0.44));
  max-width: 1343px;
  margin: 0 auto;
  padding: 40px 44px 90px;
}

.design-course2 .controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 60px;
}

.design-course2 .select-shell {
  width: min(100%, 244px);
  height: 32px;
  border-radius: 9px;
  border: 0.3px solid rgba(163, 163, 163, 0.45);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: var(--brand-dark);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  position: relative;
}

.design-course2 .select-shell span {
  font-size: 22px;
  line-height: 1;
  position: absolute;
  right: 12px;
  pointer-events: none;
}

.design-course2 .select-shell select {
  width: 100%;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.design-course2 .cards-grid {
  display: grid;
  /* grid-template-columns: repeat(2, minmax(260px, 372px)); */
  grid-template-columns: repeat(auto-fit, minmax(260px, 372px));
  justify-content: center;
  gap: 56px;
}

.design-course2 .course-card {
  min-height: 436px;
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  padding: 25px 14px 21px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.design-course2 .course-image {
  width: 249px;
  height: 166px;
  border-radius: 9px;
  object-fit: cover;
}

.design-course2 .course-card h3 {
  margin: 30px 0 14px;
  font-size: 29px;
  text-shadow: 0 4px 4px rgba(122, 12, 12, 0.34);
}

.design-course2 .course-card p {
  margin: 0;
  color: var(--text-muted, #606060);
  font-size: 15px;
  line-height: 1.5;
  max-width: 336px;
}

.design-course2 .course-card p a {
  color: var(--brand-dark);
}

.design-course2 .price {
  margin-top: 8px;
  color: var(--brand-dark) !important;
}

.design-course2 .card-actions {
  margin-top: auto;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
}

.design-course2 .details-btn,
.design-course2 .cart-btn {
  min-height: 34px;
  border-radius: 6px;
  border: 0;
  background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand-mid, #b62b46) 100%);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.design-course2 .details-btn {
  width: 149px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.design-course2 .cart-btn {
  width: 67px;
}

/* ── Course2 Responsive ── */
@media (max-width: 1100px) {
  .design-course2 .cards-grid {
    gap: 26px;
  }

  .design-course2 .course-card h3 {
    font-size: 24px;
  }
}

@media (max-width: 760px) {
  .design-course2 .hero img {
    border-bottom-left-radius: 42px;
    border-bottom-right-radius: 42px;
  }

  .design-course2 .intro {
    margin-top: 48px;
  }

  .design-course2 .intro p {
    font-size: clamp(20px, 5vw, 28px);
  }

  .design-course2 .cta {
    font-size: 26px;
  }

  .design-course2 .courses-wrap {
    padding: 24px 16px 52px;
  }

  .design-course2 .controls-row {
    flex-direction: column;
    margin-bottom: 30px;
  }

  .design-course2 .select-shell,
  .design-course2 .select-shell span {
    font-size: 18px;
  }

  .design-course2 .cards-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .design-course2 .course-card {
    width: 100%;
    max-width: 372px;
  }

  .design-course2 .course-image {
    width: 100%;
    max-width: 300px;
  }
}

/* ============================================================
   .design-blog  — BLOG / NEWS PAGE
   ============================================================ */

.design-blog main {
  width: min(1343px, 100%);
  margin: 0 auto;
  padding: 80px 20px 160px;
}

/* ── News Section ── */
.design-blog .news-section h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(28px, 2.6vw, 44px);
  font-weight: 700;
  color: var(--text-main);
}

/* ── Video Row ── */
.design-blog .video-row {
  margin-top: 70px;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) minmax(280px, 1fr) auto;
  align-items: center;
  gap: 26px;
}

.design-blog .carousel-arrow {
  border: 0;
  background: transparent;
  padding: 0;
  width: 34px;
  height: 34px;
  color: #1f1f1f;
  cursor: pointer;
}

.design-blog .carousel-arrow svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Video Card ── */
.design-blog .video-card {
  margin: 0;
}

.design-blog .video-thumb {
  position: relative;
  height: 255px;
  border-radius: 27px;
  overflow: hidden;
}

.design-blog .video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.design-blog .play-btn {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 87px;
  height: 87px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.62);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.design-blog .play-btn svg {
  width: 40px;
  height: 40px;
  fill: #c33b59;
}

.design-blog .video-card h2 {
  margin: 16px 0 0;
  font-size: clamp(19px, 1.5vw, 32px);
  color: var(--brand-dark);
  text-align: center;
  font-weight: 500;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

/* ── Articles Section ── */
.design-blog .articles-section {
  margin-top: 94px;
}

.design-blog .articles-section h3 {
  margin: 0;
  text-align: center;
  font-size: clamp(28px, 2.5vw, 44px);
  font-weight: 500;
  color: var(--text-main);
}

/* ── Articles Grid ── */
.design-blog .articles-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 24px 18px;
}

.design-blog .article-card {
  min-height: 253px;
  border: 1px solid rgba(96, 96, 96, 0.21);
  border-radius: 10px;
  background: #fff;
  padding: 30px 18px 20px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.design-blog .article-card h4 {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(20px, 1.45vw, 31px);
  line-height: 1.35;
  font-weight: 500;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
}

.design-blog .article-card p {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-family: "Tajawal", sans-serif;
  font-size: clamp(18px, 1.35vw, 30px);
  line-height: 1.3;
  flex: 1;
}

.design-blog .read-more {
  align-self: center;
  min-width: 146px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--brand-dark), var(--brand-light));
  color: #fff;
  font-family: "Tajawal", sans-serif;
  font-size: clamp(16px, 1.2vw, 24px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  text-shadow: 0 4px 4px rgba(255, 255, 255, 0.35);
}

/* ── Blog Responsive ── */
@media (max-width: 1200px) {
  .design-blog .video-row {
    grid-template-columns: auto minmax(250px, 1fr) minmax(250px, 1fr) auto;
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .design-blog main {
    padding-top: 54px;
  }

  .design-blog .video-row {
    grid-template-columns: 1fr;
  }

  .design-blog .carousel-arrow {
    display: none;
  }

  .design-blog .articles-grid {
    grid-template-columns: repeat(2, minmax(230px, 1fr));
  }
}

@media (max-width: 640px) {
  .design-blog .news-section h1,
  .design-blog .articles-section h3 {
    font-size: 26px;
  }

  .design-blog .articles-grid {
    grid-template-columns: 1fr;
  }

  .design-blog main {
    padding: 40px 16px 80px;
  }
}
/* ============================================================
   .design-contact  — CONTACT PAGE
   ============================================================ */

/* ── Hero Image ── */
.design-contact .hero-image-wrap {
  width: 100%;
  max-width: 1362px;
  margin: 0 auto;
  overflow: hidden;
  border-bottom-left-radius: 130px;
  border-bottom-right-radius: 130px;
}

.design-contact .hero-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ── Hero Copy ── */
.design-contact .hero-copy {
  width: min(92%, 900px);
  margin: 150px auto 0;
  text-align: center;
}

.design-contact .hero-copy h1 {
  margin: 0 0 18px;
  font-weight: 400;
  font-size: 33px;
  color: var(--brand-dark);
}

.design-contact .hero-actions {
  width: min(100%, 383px);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* ── Buttons ── */
.design-contact .btn {
  border-radius: 13px;
  font-family: "Tajawal", sans-serif;
  font-size: 22px;
  min-height: 43px;
  padding: 8px 22px;
  cursor: pointer;
  border: 1px solid var(--brand-dark);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.design-contact .btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand-light) 100%);
  flex: 1;
}

.design-contact .btn-outline {
  color: var(--text-main);
  background: transparent;
  width: 214px;
}

/* ── Contact Form Section ── */
.design-contact .contact-section {
  width: min(100%, 1362px);
  margin: 150px auto 330px;
}

.design-contact .contact-section h2 {
  margin: 0;
  text-align: center;
  color: var(--brand-dark);
  font-size: 36px;
  font-weight: 400;
}

.design-contact .contact-form {
  margin-top: 48px;
  padding: 0 205px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.design-contact .form-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.design-contact .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.design-contact .field span {
  font-size: 20px;
}

.design-contact .field input,
.design-contact .field textarea {
  width: 100%;
  border: 1px solid rgba(56, 56, 56, 0.17);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  font-family: inherit;
  font-size: 18px;
  color: #1f2937;
  padding: 10px 12px;
}

.design-contact .field input {
  height: 50px;
}

.design-contact .field-message textarea {
  height: 152px;
  resize: vertical;
  min-height: 120px;
}

.design-contact .submit-wrap {
  display: flex;
  justify-content: center;
}

.design-contact .send-btn {
  width: 185px;
  height: 48px;
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 25px;
  font-family: "Tajawal", sans-serif;
  cursor: pointer;
  background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand-light) 100%);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ── Footer ── */
.design-contact .footer {
  color: #fff;
  background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand-light) 100%);
}

/* ── Footer Location ── */
.design-contact .footer-location {
  max-width: 1362px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 389px;
  gap: 48px;
  align-items: center;
}

.design-contact .map-box {
  border-radius: 42px;
  overflow: hidden;
  min-height: 348px;
}

.design-contact .map-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.design-contact .contact-card h3 {
  margin: 0;
  font-family: "Cairo", sans-serif;
  font-size: 48px;
  line-height: 1;
  font-weight: 400;
}

.design-contact .contact-card .country {
  color: #d6d3d1;
  font-size: 18px;
  margin: 16px 0 24px;
}

.design-contact .contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.design-contact .contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.design-contact .contact-list li img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.design-contact .contact-list strong {
  display: block;
  font-family: "Cairo", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.design-contact .contact-list small {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  color: #d6d3d1;
}

/* ── Footer Main ── */
.design-contact .footer-main {
  max-width: 1362px;
  margin: 0 auto;
  padding: 80px 64px;
  display: grid;
  grid-template-columns: 288px repeat(3, 230px);
  justify-content: space-between;
  gap: 24px;
}

.design-contact .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.design-contact .footer-brand img {
  width: 79px;
  height: 58px;
  object-fit: contain;
}

.design-contact .footer-brand p {
  margin: 0;
  max-width: 320px;
  color: rgba(231, 229, 228, 0.8);
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  line-height: 22px;
}

.design-contact .footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.design-contact .footer-col h4 {
  margin: 0 0 16px;
  width: 100%;
  padding-right: 20px;
  border-right: 4px solid #f87171;
  font-family: "Cairo", sans-serif;
  font-size: 18px;
  font-weight: 400;
}

.design-contact .footer-col a {
  color: rgba(231, 229, 228, 0.8);
  font-family: "Cairo", sans-serif;
  font-size: 16px;
}

/* ── Footer Bottom ── */
.design-contact .footer-bottom {
  max-width: 1152px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 41px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.design-contact .social-links {
  display: flex;
  gap: 24px;
}

.design-contact .social-links a {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
}

.design-contact .social-links img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.design-contact .copyright {
  margin: 0;
  padding-top: 32px;
  color: rgba(214, 211, 209, 0.6);
  font-family: "Cairo", sans-serif;
  font-size: 14px;
}

/* ── Contact Responsive ── */
@media (max-width: 1180px) {
  .design-contact .contact-form {
    padding: 0 72px;
  }

  .design-contact .footer-location {
    grid-template-columns: 1fr;
  }

  .design-contact .contact-card {
    max-width: 600px;
    width: 100%;
    justify-self: end;
  }

  .design-contact .footer-main {
    grid-template-columns: repeat(2, minmax(230px, 1fr));
    padding: 56px 32px;
  }
}

@media (max-width: 768px) {
  .design-contact .hero-image-wrap {
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
  }

  .design-contact .hero-copy {
    margin-top: 64px;
  }

  .design-contact .hero-copy h1 {
    font-size: 28px;
    line-height: 1.45;
  }

  .design-contact .hero-actions {
    width: auto;
    flex-wrap: wrap;
  }

  .design-contact .btn {
    min-width: 140px;
    flex: none;
    font-size: 18px;
  }

  .design-contact .contact-section {
    margin: 72px auto 180px;
  }

  .design-contact .contact-section h2 {
    font-size: 28px;
    line-height: 1.35;
    padding: 0 16px;
  }

  .design-contact .contact-form {
    margin-top: 36px;
    padding: 0 16px;
  }

  .design-contact .form-grid-two {
    grid-template-columns: 1fr;
  }

  .design-contact .send-btn {
    width: 170px;
    font-size: 24px;
  }

  .design-contact .footer-location {
    padding: 24px 16px;
    gap: 24px;
  }

  .design-contact .map-box {
    min-height: 250px;
    border-radius: 20px;
  }

  .design-contact .contact-card h3 {
    font-size: 38px;
  }

  .design-contact .footer-main {
    grid-template-columns: 1fr;
    padding: 48px 16px;
    gap: 36px;
  }

  .design-contact .footer-bottom {
    max-width: none;
    padding-right: 16px;
    padding-left: 16px;
  }

  .design-contact .social-links {
    gap: 12px;
  }

  .design-contact .social-links a {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  .design-contact .hero-image-wrap {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }

  .design-contact .hero-copy h1 {
    font-size: 24px;
  }

  .design-contact .contact-section h2 {
    font-size: 24px;
  }
}

/* ============================================================
   .course-details  — COURSE DETAILS PAGE
   ============================================================ */

.course-details .container {
  width: min(1224px, calc(100% - 32px));
  margin: 0 auto;
}

/* ── Page Wrapper ── */
.course-details main {
  padding: 48px 0 0;
}

/* ── Hero ── */
.course-details .hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 44px;
  align-items: center;
}

.course-details .hero-media img {
  border-radius: 43px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.course-details .hero-content h1 {
  margin: 0 0 10px;
  font-size: clamp(31px, 4vw, 44px);
  color: #383838;
  text-shadow: 0 4px 4px rgba(122, 12, 12, 0.34);
}

.course-details .meta {
  margin: 2px 0;
  font-size: 22px;
}

.course-details .price {
  margin: 16px 0;
  font-size: 38px;
  color: var(--brand-dark);
}

/* ── Installments ── */
.course-details .installments {
  background: var(--soft-bg, rgba(255, 223, 229, 0.44));
  border-radius: 30px;
  padding: 24px;
  margin-bottom: 20px;
}

.course-details .installments p {
  text-align: center;
  margin-top: 0;
  font-size: 20px;
}

.course-details .installment-logos {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.course-details .installment-logos div {
  background: #fff;
  border: 1px solid rgba(210, 107, 114, 0.17);
  border-radius: 8px;
  width: 125px;
  min-height: 43px;
  display: grid;
  place-items: center;
  padding: 4px;
}

/* ── Pay By ── */
.course-details .payby p {
  margin: 0 0 8px;
  font-size: 21px;
}

.course-details .payby img {
  width: 280px;
}

/* ── Buttons ── */
.course-details .btn-cart {
  margin-top: 18px;
  width: 100%;
  border: 0;
  border-radius: 30px;
  background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand-light) 100%);
  color: #fff;
  font-size: 24px;
  padding: 14px 24px;
  cursor: pointer;
  box-shadow: 0 4px 4px rgba(243, 249, 255, 0.44);
}

.course-details .btn-fav {
  margin-top: 12px;
  border: 0;
  background: transparent;
  font-size: 24px;
  color: #222;
  cursor: pointer;
}

/* ── Tabs ── */
.course-details .tabs {
  margin-top: 44px;
  border-top: 2px solid #d8d8d8;
}

.course-details .tabs nav {
  display: flex;
  justify-content: flex-start;
  gap: 48px;
  padding-top: 18px;
}

.course-details .tabs button {
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  font-family: inherit;
}

/* ── Facts ── */
.course-details .facts {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.course-details .fact-card {
  background: #fff;
  border: 1px solid rgba(96, 96, 96, 0.21);
  border-radius: 10px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  padding: 20px;
  text-align: center;
}

.course-details .fact-icon {
  font-size: 42px;
  margin-bottom: 10px;
}

.course-details .fact-card h3 {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 27px;
}

.course-details .fact-card p {
  margin: 4px 0;
  font-size: 21px;
  color: var(--text-muted);
}

/* ── Trainer ── */
.course-details .trainer {
  margin-top: 52px;
}

.course-details .trainer h2,
.course-details .details h2 {
  color: var(--brand-dark);
  font-size: 38px;
  margin: 0 0 16px;
}

.course-details .trainer-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  align-items: start;
  direction: ltr; 
  
}

.course-details .trainer-photo {
  border-radius: 12px;
  overflow: hidden;
}

.course-details .trainer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-details .trainer-content h3 {
  margin: 0;
  font-size: 40px;
     direction: rtl;
  text-align: right;
}

.course-details .subtitle {
  margin: 8px 0;
  font-size: 22px;
  
}

.course-details .trainer-content p {
  font-size: 22px;
  line-height: 1.65;
    direction: rtl;
  text-align: right;
}

.course-details .trainer-stats {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  justify-content: end;
  font-size: 22px;
}

/* ── Details ── */
.course-details .details {
  margin: 52px auto 72px;
}

.course-details .details article {
  margin-bottom: 36px;
}

.course-details .details p {
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1.8;
  text-align: justify;
}

/* ── Course Details Responsive ── */
@media (max-width: 1100px) {
  .course-details .hero {
    grid-template-columns: 1fr;
  }

  .course-details .hero-media {
    order: -1;
  }

  .course-details .facts {
    grid-template-columns: 1fr;
  }

  .course-details .trainer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .course-details .container {
    width: min(1224px, calc(100% - 20px));
  }

  .course-details .meta,
  .course-details .fact-card p,
  .course-details .trainer-content p,
  .course-details .details p {
    font-size: 18px;
  }

  .course-details .tabs nav {
    gap: 20px;
  }

  .course-details .tabs button,
  .course-details .btn-fav {
    font-size: 20px;
  }

  .course-details .price,
  .course-details .trainer h2,
  .course-details .details h2 {
    font-size: 30px;
  }
}
/* ============================================================
   .course-details — RESPONSIVE (ALL DEVICES)
   ============================================================ */

/* ── Large Desktop (max 1280px) ── */
@media (max-width: 1280px) {
  .course-details .container {
    width: min(1100px, calc(100% - 32px));
  }

  .course-details .hero {
    gap: 32px;
  }

  .course-details .trainer-grid {
    grid-template-columns: 220px 1fr;
  }
}

/* ── Tablet Landscape (max 1100px) ── */
@media (max-width: 1100px) {
  .course-details .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .course-details .hero-media {
    order: -1;
  }

  .course-details .hero-media img {
    max-height: 400px;
    object-position: center top;
  }

  .course-details .hero-content h1 {
    font-size: clamp(26px, 3.5vw, 38px);
  }

  .course-details .price {
    font-size: 32px;
  }

  .course-details .facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .course-details .trainer-grid {
    grid-template-columns: 200px 1fr;
  }

  .course-details .installment-logos div {
    width: 105px;
  }

  .course-details .payby img {
    width: 240px;
  }
}

/* ── Tablet Portrait (max 820px) ── */
@media (max-width: 820px) {
  .course-details main {
    padding: 32px 0 0;
  }

  .course-details .hero-content h1 {
    font-size: clamp(22px, 4vw, 32px);
  }

  .course-details .meta {
    font-size: 18px;
  }

  .course-details .price {
    font-size: 28px;
  }

  .course-details .installments {
    padding: 16px;
    border-radius: 20px;
  }

  .course-details .installments p {
    font-size: 17px;
  }

  .course-details .installment-logos div {
    width: 90px;
    min-height: 38px;
  }

  .course-details .payby p {
    font-size: 18px;
  }

  .course-details .payby img {
    width: 200px;
  }

  .course-details .btn-cart {
    font-size: 20px;
    padding: 12px 20px;
  }

  .course-details .btn-fav {
    font-size: 20px;
  }

  .course-details .tabs nav {
    gap: 28px;
    flex-wrap: wrap;
  }

  .course-details .tabs button {
    font-size: 20px;
  }

  .course-details .facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .course-details .fact-card h3 {
    font-size: 22px;
  }

  .course-details .fact-card p {
    font-size: 17px;
  }

  .course-details .trainer-grid {
    grid-template-columns: 180px 1fr;
    gap: 18px;
  }

  .course-details .trainer h2,
  .course-details .details h2 {
    font-size: 30px;
  }

  .course-details .trainer-content h3 {
    font-size: 30px;
  }

  .course-details .trainer-content p,
  .course-details .details p {
    font-size: 19px;
  }

  .course-details .trainer-stats {
    font-size: 19px;
  }

  .course-details .subtitle {
    font-size: 19px;
  }
}

/* ── Mobile Large (max 600px) ── */
@media (max-width: 600px) {
  .course-details .container {
    width: calc(100% - 24px);
  }

  .course-details .hero-content h1 {
    font-size: 22px;
  }

  .course-details .meta {
    font-size: 16px;
  }

  .course-details .price {
    font-size: 26px;
  }

  .course-details .installments {
    padding: 14px;
    border-radius: 16px;
  }

  .course-details .installments p {
    font-size: 15px;
  }

  .course-details .installment-logos {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .course-details .installment-logos div {
    width: 85px;
    min-height: 34px;
  }

  .course-details .payby img {
    width: 100%;
    max-width: 240px;
  }

  .course-details .btn-cart {
    font-size: 18px;
    padding: 12px 16px;
    border-radius: 22px;
  }

  .course-details .tabs {
    margin-top: 28px;
  }

  .course-details .tabs nav {
    gap: 16px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .course-details .tabs button {
    font-size: 17px;
    white-space: nowrap;
  }

  .course-details .facts {
    grid-template-columns: 1fr;
  }

  .course-details .fact-icon {
    font-size: 34px;
  }

  .course-details .fact-card h3 {
    font-size: 19px;
  }

  .course-details .fact-card p {
    font-size: 15px;
  }

  .course-details .trainer-grid {
    grid-template-columns: 1fr;
  }

  .course-details .trainer-photo {
    max-width: 180px;
  }

  .course-details .trainer h2,
  .course-details .details h2 {
    font-size: 24px;
  }

  .course-details .trainer-content h3 {
    font-size: 24px;
  }

  .course-details .subtitle {
    font-size: 16px;
  }

  .course-details .trainer-content p,
  .course-details .details p {
    font-size: 16px;
  }

  .course-details .trainer-stats {
    font-size: 16px;
    justify-content: start;
  }

  .course-details .details {
    margin: 32px auto 48px;
  }

  .course-details .details article {
    margin-bottom: 24px;
  }
}

/* ── Mobile Small (max 380px) ── */
@media (max-width: 380px) {
  .course-details .container {
    width: calc(100% - 16px);
  }

  .course-details .hero-content h1 {
    font-size: 19px;
  }

  .course-details .price {
    font-size: 22px;
  }

  .course-details .installment-logos div {
    width: 75px;
  }

  .course-details .tabs button {
    font-size: 15px;
  }

  .course-details .fact-card h3 {
    font-size: 17px;
  }

  .course-details .trainer h2,
  .course-details .details h2 {
    font-size: 21px;
  }

  .course-details .trainer-content h3 {
    font-size: 20px;
  }

  .course-details .trainer-content p,
  .course-details .details p {
    font-size: 14px;
  }
}

/* ============================================================
   .course-details2  — COURSE DETAILS PAGE (REVIEWS & RELATED)
   ============================================================ */

.course-details2 .container {
  width: min(1224px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ── Hero ── */
.course-details2 .hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(340px, 1.1fr);
  gap: 2.75rem;
  align-items: center;
  padding: 3rem 0 2rem;
}

.course-details2 .hero-media img {
  width: 100%;
  border-radius: 43px;
  display: block;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.course-details2 .hero-content {
  text-align: right;
}

.course-details2 .hero-content h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.8rem, 4vw, 2.15rem);
  text-shadow: 0 4px 4px rgba(122, 12, 12, 0.34);
}

.course-details2 .hero-content p {
  margin: 0.1rem 0;
  font-size: 1.2rem;
  line-height: 1.45;
}

.course-details2 .price {
  margin-top: 0.75rem;
  color: var(--brand-dark);
  font-size: 2rem;
  font-weight: 500;
}

/* ── Installments ── */
.course-details2 .installments {
  margin-top: 1rem;
  background: var(--soft-bg);
  border-radius: 30px;
  padding: 1.2rem;
  text-align: center;
}

.course-details2 .installments p {
  margin: 0;
  font-size: 1.1rem;
}

.course-details2 .installment-logos {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.course-details2 .installment-logos span {
  border: 1px solid rgba(210, 107, 114, 0.17);
  border-radius: 8px;
  background: #fff;
  width: 125px;
  height: 43px;
  display: grid;
  place-items: center;
}

.course-details2 .installment-logos img {
  max-width: 90%;
  max-height: 75%;
}

/* ── Pay Methods ── */
.course-details2 .pay-methods {
  margin-top: 1rem;
  max-width: 320px;
  margin-inline-start: auto;
}

.course-details2 .pay-methods p {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.course-details2 .pay-methods img {
  width: 100%;
}

/* ── Buttons ── */
.course-details2 .cta-add {
  width: 100%;
  margin-top: 1rem;
  min-height: 56px;
  border-radius: 30px;
  font-size: 1.45rem;
  border: 0;
  background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand-light) 100%);
  color: #fff;
  cursor: pointer;
  text-shadow: 0 4px 4px rgba(243, 249, 255, 0.44);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  font-family: inherit;
}

.course-details2 .fav {
  margin-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 0;
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
  color: #000;
  font-family: inherit;
}

.course-details2 .fav img {
  width: 24px;
  height: 24px;
}

/* ── Tabs ── */
.course-details2 .tabs {
  display: flex;
  gap: 2.5rem;
  justify-content: flex-start;
  border-bottom: 1px solid #d3d3d3;
  margin-bottom: 2.25rem;
}

.course-details2 .tab {
  padding: 0.85rem 0;
  font-size: 1.3rem;
  color: #000;
  cursor: pointer;
}

.course-details2 .tab.active {
  border-bottom: 4px solid var(--brand-light);
}

/* ── Reviews ── */
.course-details2 .reviews {
  background: var(--soft-bg);
  backdrop-filter: blur(5px);
  padding: 2.4rem 0;
}

.course-details2 .reviews-inner {
  text-align: right;
}

.course-details2 .reviews-inner h2 {
  margin: 0;
  color: var(--brand-dark);
  text-align: center;
  font-size: clamp(1.7rem, 4vw, 2rem);
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.course-details2 .rating-row h3,
.course-details2 .field span {
  margin: 1rem 0 0.4rem;
  display: block;
  font-size: 2rem;
  color: var(--text-main);
}

.course-details2 .stars {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.course-details2 .stars button {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-size: 2.3rem;
  cursor: pointer;
  padding: 0;
}

.course-details2 .field textarea,
.course-details2 .field input {
  width: 100%;
  border: 1px solid rgba(56, 56, 56, 0.17);
  border-radius: 4px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  background: #fff;
  font-family: inherit;
  font-size: 1.1rem;
  padding: 0.7rem;
}

.course-details2 .two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.course-details2 .save-check {
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 1.15rem;
}

.course-details2 .submit {
  margin-top: 1rem;
  min-width: 280px;
  min-height: 48px;
  border-radius: 15px;
  font-size: 1.55rem;
  border: 0;
  background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand-light) 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  font-family: inherit;
}

/* ── Related Courses ── */
.course-details2 .related {
  padding: 3rem 0;
  text-align: center;
}

.course-details2 .related h2 {
  font-size: clamp(1.8rem, 4vw, 2rem);
  margin: 0 0 1.2rem;
}

.course-details2 .cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.course-details2 .card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  padding: 1rem 0.75rem 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 382px;
}

.course-details2 .card img {
  width: 86%;
  height: 132px;
  object-fit: cover;
  border-radius: 9px;
}

.course-details2 .card h3 {
  margin: 1rem 0;
  font-size: 1.35rem;
  line-height: 1.2;
  text-shadow: 0 4px 4px rgba(122, 12, 12, 0.34);
}

.course-details2 .card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.course-details2 .card p span {
  text-decoration: line-through;
  color: #888;
}

.course-details2 .card p strong {
  color: var(--brand-dark);
  font-weight: 500;
}

.course-details2 .card button {
  margin-top: auto;
  width: 118px;
  height: 30px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 1.1rem;
  border: 0;
  background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand-light) 100%);
  color: #fff;
  cursor: pointer;
}

/* ── Course Details2 Responsive ── */
@media (max-width: 1040px) {
  .course-details2 .hero {
    grid-template-columns: 1fr;
  }

  .course-details2 .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .course-details2 .container {
    width: calc(100% - 1.2rem);
  }

  .course-details2 .hero {
    padding: 1.5rem 0 1rem;
    gap: 1.5rem;
  }

  .course-details2 .hero-content h1 {
    font-size: 1.5rem;
  }

  .course-details2 .hero-content p {
    font-size: 1rem;
  }

  .course-details2 .price {
    font-size: 1.75rem;
  }

  .course-details2 .installments p {
    font-size: 0.95rem;
  }

  .course-details2 .installment-logos span {
    width: 90px;
    height: 36px;
  }

  .course-details2 .pay-methods {
    max-width: 100%;
    margin-inline-start: 0;
  }

  .course-details2 .tabs {
    gap: 1.1rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .course-details2 .tab {
    font-size: 1.05rem;
  }

  .course-details2 .rating-row h3,
  .course-details2 .field span {
    font-size: 1.5rem;
  }

  .course-details2 .stars button {
    font-size: 1.8rem;
  }

  .course-details2 .two-col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .course-details2 .submit {
    width: 100%;
    min-width: 0;
    font-size: 1.3rem;
  }

  .course-details2 .cta-add {
    font-size: 1.2rem;
  }

  .course-details2 .reviews {
    padding: 1.6rem 0;
  }

  .course-details2 .cards {
    grid-template-columns: 1fr;
  }

  .course-details2 .card {
    min-height: unset;
  }

  .course-details2 .related h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 400px) {
  .course-details2 .installment-logos {
    flex-wrap: wrap;
    justify-content: center;
  }

  .course-details2 .installment-logos span {
    width: 80px;
  }

  .course-details2 .hero-content h1 {
    font-size: 1.3rem;
  }

  .course-details2 .price {
    font-size: 1.5rem;
  }
}
/* --- Search --- */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  color: white;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon:hover { background: rgba(255,255,255,0.15); }

.search-input-box {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  overflow: hidden;
  transition: width 0.3s ease;
  background: white;
  border-radius: 6px;
}

.search-input-box.open {
  width: 260px;
  left: -265px;
}

.search-input-box input {
  border: none;
  outline: none;
  padding: 8px 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.85rem;
  width: 100%;
  color: #333;
  direction: rtl;
}

/* --- User Dropdown --- */
.user-wrapper { position: relative; }

.user-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.user-btn:hover { background: rgba(255,255,255,0.15); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 10px;
  min-width: 200px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  overflow: hidden;
  z-index: 200;
}

.user-wrapper.active .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: right;
  transition: background 0.15s;
}

.dropdown-menu a:hover { background: #f5f5f5; color: #8B0000; }

.dropdown-divider {
  height: 1px;
  background: #eee;
  margin: 4px 0;
}

.dropdown-menu .logout-link { color: #8B0000; font-weight: 600; }
.dropdown-menu .logout-link:hover { background: #fff0f0; }
.pager {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pager ul {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pager ul li {
    display: inline-block;
}

.course-details .btn-cart {
    margin-top: 18px;
    width: 100%;
    border: 0;
    border-radius: 30px;
    background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand-light) 100%);
    color: #fff;
    font-size: 24px;
    padding: 14px 24px;
    cursor: pointer;
    box-shadow: 0 4px 4px rgba(243, 249, 255, 0.44);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Tajawal", sans-serif;
}

.course-details .btn-buynow {
    display: flex;
     margin-top: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 2px solid var(--brand-dark);
    border-radius: 30px;
    background: transparent;
    color: var(--brand-dark);
    font-size: 24px;
    padding: 14px 24px;
    cursor: pointer;
    text-align: center;
    font-family: "Tajawal", sans-serif;
}

.course-details .btn-buynow:hover {
    background: var(--soft-bg);
}

.course-details .btn-cart.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* mobile */
@media (max-width: 600px) {
    .course-details .btn-buynow {
        font-size: 18px;
        padding: 12px 16px;
        border-radius: 22px;
    }
}

.brand-logo .img{
  filter: invert(16%) sepia(96%) saturate(7492%) hue-rotate(358deg) brightness(95%) contrast(120%);
}


/* === BLOG DETAILS AREA === */
.lms_blog_details_area {
    padding: 60px 0 80px;
    background: var(--bg-light);
    min-height: 100vh;
}
 
/* === BLOG DETAILS INNER === */
.blog_details_inner {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
}
 
/* === BANNER IMAGE === */
.blog_details_banner {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 520px;
    position: relative;
}
 
.blog_details_banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.95));
}
 
.blog_details_banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
 
.blog_details_banner img:hover {
    transform: scale(1.02);
}
 
/* === POST META (date, author) === */
.blog_post_date {
    padding: 20px 28px 0;
}
 
.blog_post_date p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
}
 
.blog_post_date p::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}
 
/* === BLOG TITLE === */
.blog_details_inner > h3,
.blog_details_inner h3:first-of-type {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.5;
    padding: 14px 28px 0;
    margin: 0 0 16px;
}
 
/* === BLOG DESCRIPTION === */
.blog_details_inner > .mb_25 {
    padding: 0 28px 28px;
    font-size: 15.5px;
    line-height: 1.9;
    color: var(--text-medium);
}
 
.blog_details_inner > .mb_25 p {
    margin-bottom: 16px;
    line-height: 1.9;
}
 
.blog_details_inner > .mb_25 img {
    border-radius: var(--radius-md);
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}
 
.blog_details_inner > .mb_25 h1,
.blog_details_inner > .mb_25 h2,
.blog_details_inner > .mb_25 h3 {
    font-weight: 700;
    color: var(--text-dark);
    margin: 24px 0 12px;
}
 
/* === SHARE SECTION === */
.blog_details_inner > x-blog-details-share-section,
[class*="share"] {
    padding: 0 28px 28px;
}
 
/* Social share buttons (if rendered inline) */
.share_buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px 28px 28px;
}
 
.share_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
    border: none;
    cursor: pointer;
}
 
.share_btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
 
.share_btn.facebook  { background: #1877F2; color: #fff; }
.share_btn.twitter   { background: #1DA1F2; color: #fff; }
.share_btn.pinterest { background: #E60023; color: #fff; }
.share_btn.linkedin  { background: #0A66C2; color: #fff; }
 
/* === COMMENTS SECTION === */
.blog_reviews {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
}
 
.blog_reviews h3.font_30 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}
 
.blog_reviews h3.font_30::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}
 
/* === SINGLE REVIEW === */
.lms_single_reviews {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}
 
.lms_single_reviews:last-child {
    border-bottom: none;
}
 
/* Reply indentation */
.lms_single_reviews.replyBox {
    margin-right: 48px;
    background: var(--bg-sidebar);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 10px;
    border: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
 
/* Avatar initials circle */
.lms_single_reviews .thumb {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.25);
}
 
.lms_single_reviews.replyBox .thumb {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 11px;
    background: var(--primary-light);
    color: var(--primary);
}
 
/* Review content wrapper */
.review_content {
    flex: 1;
    min-width: 0;
}
 
.review_content_head {
    margin-bottom: 10px;
}
 
.review_content_head_left h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px;
}
 
.rated_customer span {
    font-size: 12px;
    color: var(--text-light);
}
 
/* Comment text */
.review_content > p {
    font-size: 14.5px;
    color: var(--text-medium);
    line-height: 1.75;
    margin: 0;
}
 
/* === REPLY & DELETE BUTTONS === */
.comment_box_text.link {
    display: flex;
    align-items: center;
    gap: 12px;
}
 
.reply_btn {
    font-size: 12.5px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition);
}
 
.reply_btn:hover {
    color: var(--primary-dark);
}
 
.reply_btn i {
    font-size: 10px;
}
 
.deleteBtn {
    color: var(--text-light);
    font-size: 12px;
    text-decoration: none;
    transition: color var(--transition);
    padding: 4px 6px;
    border-radius: var(--radius-sm);
}
 
.deleteBtn:hover {
    color: var(--primary);
    background: var(--primary-light);
}
 
/* === REPLY FORM BOX === */
.replyBox.inputForm {
    background: var(--bg-sidebar);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin: 10px 0 20px 0;
    margin-right: 48px;
}
 
/* === LEAVE A COMMENT SECTION === */
.blog_reply_box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
}
 
.blog_reply_box h3.font_30 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}
 
/* === FORM INPUTS === */
.primary_input5 {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: none;
    font-family: var(--font-ar);
    font-size: 14px;
    color: var(--text-dark);
    padding: 10px 2px;
    outline: none;
    transition: color var(--transition);
    direction: rtl;
}
 
.primary_input5::placeholder {
    color: var(--text-light);
    font-size: 13.5px;
}
 
.primary_input5:focus {
    color: var(--text-dark);
}
 
.primary_input5.bg_style1 {
    background: transparent;
}
 
/* Input border separator */
.rounded_border_bottom {
    height: 1px;
    background: var(--border-color);
    border-radius: 2px;
    transition: background var(--transition);
}
 
.primary_input5:focus + .rounded_border_bottom,
.primary_textarea5:focus + .rounded_border_bottom {
    background: var(--primary);
}
 
/* === TEXTAREA === */
.primary_textarea5 {
    width: 100%;
    background: transparent;
    border: none;
    font-family: var(--font-ar);
    font-size: 14px;
    color: var(--text-dark);
    padding: 10px 2px;
    outline: none;
    resize: vertical;
    min-height: 110px;
    direction: rtl;
    line-height: 1.8;
}
 
.primary_textarea5::placeholder {
    color: var(--text-light);
    font-size: 13.5px;
}
 
/* === SUBMIT BUTTON === */
.theme_btn.small_btn2 {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-ar);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 13px 28px;
    border-radius: 50px;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.30);
}
 
.theme_btn.small_btn2:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.40);
    color: #fff;
}
 
.theme_btn.small_btn2:active {
    transform: translateY(0);
}
 
.theme_btn.small_btn2.w-100 {
    width: 100%;
}
 
/* === SIDEBAR === */
.col-xl-3 .lms_blog_sidebar,
.col-xl-3 > * {
    position: sticky;
    top: 24px;
}
 
/* Sidebar cards wrapper */
.blog_sidebar_widget {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
 
/* Sidebar search */
.sidebar_search_wrap {
    position: relative;
    margin-bottom: 20px;
}
 
.sidebar_search_wrap input {
    width: 100%;
    padding: 11px 44px 11px 16px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-family: var(--font-ar);
    font-size: 13.5px;
    outline: none;
    background: var(--bg-sidebar);
    color: var(--text-dark);
    transition: border-color var(--transition);
    direction: rtl;
}
 
.sidebar_search_wrap input:focus {
    border-color: var(--primary);
}
 
.sidebar_search_wrap button {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 15px;
    padding: 0;
    transition: color var(--transition);
}
 
.sidebar_search_wrap button:hover {
    color: var(--primary-dark);
}
 
/* Sidebar headings */
.sidebar_widget_title,
.widget_title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}
 
.sidebar_widget_title::after,
.widget_title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}
 
/* Category checkboxes */
.blog_categories_list label,
.category_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13.5px;
    color: var(--text-medium);
    border-bottom: 1px solid var(--bg-light);
    cursor: pointer;
    transition: color var(--transition);
    gap: 8px;
}
 
.blog_categories_list label:hover,
.category_item:hover {
    color: var(--primary);
}
 
.blog_categories_list input[type="checkbox"] {
    accent-color: var(--primary);
    width: 15px;
    height: 15px;
    cursor: pointer;
    flex-shrink: 0;
}
 
/* Recent posts list */
.recent_post_item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    align-items: flex-start;
    transition: transform var(--transition);
}
 
.recent_post_item:last-child {
    border-bottom: none;
}
 
.recent_post_item:hover {
    transform: translateX(-4px);
}
 
.recent_post_item .post_info h5 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 5px;
    line-height: 1.5;
    transition: color var(--transition);
}
 
.recent_post_item:hover .post_info h5 {
    color: var(--primary);
}
 
.recent_post_item .post_info span,
.recent_post_item .post_meta {
    font-size: 11.5px;
    color: var(--text-light);
}
 
/* === DELETE COMMENT MODAL === */
#deleteComment .modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    overflow: hidden;
    direction: rtl;
}
 
#deleteComment .modal-header {
    background: var(--primary-light);
    border-bottom: 1px solid var(--border-color);
    padding: 18px 24px;
}
 
#deleteComment .modal-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
}
 
#deleteComment .btn-danger {
    background: var(--primary);
    border: none;
    border-radius: 50px;
    padding: 9px 24px;
    font-weight: 700;
    font-family: var(--font-ar);
    transition: background var(--transition);
    
}
 
#deleteComment .btn-danger:hover {
    background: var(--primary-dark);
}
 

/* ============================================================
   .blog-Details  — BLOG DETAILS PAGE (NEW)
   ============================================================ */
 
.blog-Details {
  --maroon-900: #7a0c0c;
  --maroon-700: #b62b46;
  --maroon-600: #7d0013;
  --text-dark:  #1b1c1c;
  --text-muted: #5f5e5e;
  --border-soft: #e1bebc;
  --border-light: #e4e2e2;
}
 
.blog-Details .page {
  min-height: 100vh;
}
 
/* ── Topbar ── */
.blog-Details .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 12px 32px;
  background: linear-gradient(180deg, var(--maroon-900) 0%, var(--maroon-700) 100%);
  color: #fff;
  gap: 24px;
}
 
.blog-Details .topbar__icons {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  width: 98px;
  justify-content: center;
}
 
.blog-Details .topbar__icons-stack {
  display: flex;
  align-items: flex-end;
  gap: 15px;
}
 
.blog-Details .topbar__icons-single {
  display: flex;
  align-items: flex-end;
}
 
.blog-Details .topbar__icons img {
  display: block;
}
 
.blog-Details .icon-group   { width: 27.4px; height: 33px; }
.blog-Details .icon-vector  { width: 12px;   height: 7px; margin-bottom: 2px; }
.blog-Details .icon-vector1 { width: 20px;   height: 20px; }
 
.blog-Details .topbar__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 22px;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}
 
.blog-Details .topbar__nav a { color: #fff; text-decoration: none; }
 
.blog-Details .topbar__logo {
  display: grid;
  place-items: center;
  position: relative;
  width: 68px;
  height: 46px;
}
 
.blog-Details .topbar__logo img { position: absolute; }
.blog-Details .topbar__logo .logo-base  { width: 57px;   height: 6px;    top: 37px; left: 4px; }
.blog-Details .topbar__logo .logo-mark  { width: 12.6px; height: 5.6px;  top: 2px;  right: 6px; }
.blog-Details .topbar__logo .logo-word  { width: 44.6px; height: 29.4px; top: 6px;  left: 9px; }
 
/* ── Content ── */
.blog-Details .content {
  padding: 48px 70px 120px;
}
 
/* ── Hero / Breadcrumb ── */
.blog-Details .hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
  max-width: 1200px;
  margin: 0 auto 24px;
}
 
.blog-Details .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  font-size: 14px;
  letter-spacing: 0.28px;
}
 
.blog-Details .icon-breadcrumb {
  width: 4.4px;
  height: 7px;
  display: block;
}
 
.blog-Details .breadcrumb__muted { color: var(--text-muted); }
 
.blog-Details .hero h1 {
  font-size: 40px;
  line-height: 48px;
  max-width: 824px;
  text-align: right;
  margin: 0;
}
 
/* ── Meta ── */
.blog-Details .meta {
  display: flex;
  gap: 24px;
  align-items: center;
}
 
.blog-Details .meta__item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0.28px;
}
 
.blog-Details .icon-meta { width: 14.5px; height: 22px; display: block; }
.blog-Details .meta__item:nth-child(1) span { color: var(--maroon-700); }
 
/* ── Article Grid ── */
.blog-Details .article-grid {
  display: grid;
  grid-template-columns: 346px 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 24px auto 0;
  align-items: start;
}
 
/* ── Related Sidebar ── */
.blog-Details .related {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 24px 25px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}
 
.blog-Details .related h3 {
  font-size: 24px;
  margin: 0 0 24px;
}
 
.blog-Details .related__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
 
.blog-Details .related__item {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}
 
.blog-Details .related__date {
  display: block;
  color: var(--maroon-600);
  font-size: 14px;
  margin-bottom: 8px;
}
 
.blog-Details .related__item p { margin: 0; font-size: 16px; }
 
.blog-Details .related__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  border: none;
  background: transparent;
  color: var(--maroon-600);
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
}
 
/* ── Article Card ── */
.blog-Details .article {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
 
.blog-Details .article__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}
 
/* ── Article Body ── */
.blog-Details .article-body {
  max-width: 1200px;
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: right;
}
 
.blog-Details .article-body p {
  font-size: 18px;
  line-height: 29.25px;
  margin: 0;
}
 
.blog-Details .article-body .muted {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 25.6px;
}
 
.blog-Details .article-body h2 {
  font-size: 24px;
  margin: 16px 0 0;
  background: linear-gradient(180deg, var(--maroon-900) 0%, var(--maroon-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
 
/* ── Decision Cards ── */
.blog-Details .decision-card {
  border-right: 4px solid var(--maroon-700);
  background: #fff;
  border-radius: 8px 0 0 8px;
  padding: 24px 28px 24px 24px;
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.25);
}
 
.blog-Details .decision-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
 
.blog-Details .decision-card p {
  font-size: 16px;
  line-height: 25.6px;
  color: var(--text-muted);
}

.design-course .filter-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.design-course .filter-chip span {
  display: flex;
  align-items: center;
  line-height: 1;
   transform: translateY(-10px);
}

.design-course2 .cart-btn {
    display: flex;
    align-items: center;    
    justify-content: center; 
    padding: 0;          
   
}

/* ============================================================
   .quiz-Details  — QUIZ DETAILS PAGE
   ============================================================ */

.quiz-Details .page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px 128px;
}

.quiz-Details .breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.quiz-Details .breadcrumb img {
  width: 6px;
  height: 8px;
}

.quiz-Details .breadcrumb .current {
  color: var(--brand-dark);
}

.quiz-Details .content-grid {
  display: flex;
  flex-direction: row; 
  align-items: flex-start;
  gap: 24px;
  margin-top: 24px;
  width: 100%;
  direction: rtl;
}

.quiz-Details .main-column {
  flex: 0 0 60%;
  max-width: 60%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.quiz-Details .sidebar {
 flex: 0 0 calc(40% - 24px);
}

.quiz-Details .card {
  background: #fff;
  border: 1px solid #e4e2e2;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.quiz-Details .main-card {
  padding: 48px;
  text-align: center;
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.25);
}

.quiz-Details .main-card h1 {
  margin: 0 0 24px;
  font-size: 40px;
  font-weight: 700;
}

.quiz-Details .stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.quiz-Details .stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.quiz-Details .stat .value {
  font-size: 24px;
  color: var(--text-dark);
}

.quiz-Details .primary-btn {
  border: none;
  color: #fff;
  font-size: 22px;
  padding: 12px 48px;
  border-radius: 30px;
  background: linear-gradient(180deg, var(--brand-dark), var(--brand-light));
  cursor: pointer;
}

.quiz-Details .icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.quiz-Details .icon-btn img {
  width: 20px;
  height: 20px;
}

.quiz-Details .tabs-card {
  overflow: hidden;
}

.quiz-Details .tabs {
  background: #f5f3f3;
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid #e4e2e2;
}

.quiz-Details .tab {
  background: transparent;
  border: none;
  padding: 16px 48px;
  font-size: 16px;
  color: #5f5e5e;
  cursor: pointer;
}

.quiz-Details .tab.active {
  color: var(--brand-light);
  border-bottom: 2px solid var(--brand-light);
}

.quiz-Details .tab-body {
  padding: 48px;
}

.quiz-Details .tab-body h3 {
  margin-top: 0;
  font-size: 24px;
}

.quiz-Details .tab-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.quiz-Details .divider {
  border-top: 1px solid #e4e2e2;
  margin-top: 32px;
}

.quiz-Details .side-card {
  padding: 40px;
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quiz-Details .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
}

.quiz-Details .price-value {
  font-size: 32px;
  color: var(--brand-dark);
}

.quiz-Details .ghost-btn {
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  font-size: 16px;
  color: var(--text-dark);
  cursor: pointer;
}

.quiz-Details .ghost-btn img {
  width: 20px;
  height: 18px;
}

.quiz-Details .feature {
  display: flex;
  align-items: center;
  
  flex-direction: row-reverse; 

  justify-content: flex-end;   
  gap: 12px; 
  color: var(--text-muted);
  font-size: 14px;
  text-align: right;
}

.quiz-Details .features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .quiz-Details .content-grid {
    flex-direction: column;
  }

  .quiz-Details .sidebar {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .quiz-Details .page {
    padding: 32px 16px 80px;
  }

  .quiz-Details .main-card {
    padding: 32px 20px;
  }

  .quiz-Details .tab-body {
    padding: 32px 20px;
  }

  .quiz-Details .side-card {
    padding: 32px 20px;
  }
}
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  direction: rtl;
  flex-direction: row-reverse; /* ده الحل الأقوى */
}

.tab {
  padding: 10px 20px;
  border: none;
  background: #eee;
  cursor: pointer;
  border-radius: 8px;
}

.tab.active {
  background:white;
  color: #fff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ============================================================
   .design-checkout  — CHECKOUT PAGE
   ============================================================ */

.design-checkout {
  --red-dark: #7a0c0c;
  --red-main: #b62b46;
  --text-dark: #1b1c1c;
  --text-muted: #5f5e5e;
  --border: #efeded;
  --shadow: 0 4px 2px rgba(0, 0, 0, 0.25);
}

/* Layout */
.design-checkout {
  font-family: "Tajawal", "Noto Sans Arabic", sans-serif;
  direction: rtl;
  text-align: right;
  background: #fff;
}

.design-checkout .page-main {
  max-width: 1343px;
  margin: 0 auto;
  padding: 134px 35px 120px;
}

.design-checkout .page-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "summary billing";
  column-gap: 32px;
  row-gap: 48px;
}

/* Billing */
.design-checkout .billing {
  grid-area: billing;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 48px 49px 65px;
}

.design-checkout .billing h2 {
  margin-bottom: 24px;
}

/* Form */
.design-checkout .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.design-checkout .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.design-checkout .field-input {
  border: 1px solid rgba(56, 56, 56, 0.17);
  border-radius: 4px;
  padding: 15px;
  background: #fff;
  text-align: right;
  width: 100%;
}

/* Summary */
.design-checkout .summary {
  grid-area: summary;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.design-checkout .summary-item {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 25px;
}

.design-checkout .summary-image {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  overflow: hidden;
}

.design-checkout .summary-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.design-checkout .summary-text {
  flex: 1;
  text-align: left;
}

.design-checkout .summary-price {
  color: var(--red-main);
}

/* Totals */
.design-checkout .summary-line {
  display: flex;
  justify-content: space-between;
  direction: rtl;
}

.design-checkout .summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 20px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.design-checkout .summary-total strong {
  color: var(--red-main);
}

/* Coupon */
.design-checkout .coupon {
  display: flex;
  gap: 8px;
}

.design-checkout .coupon-btn {
  background: var(--text-muted);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
}

/* Checkbox */
.design-checkout .checkbox {
  width: 20px;
  height: 20px;
  border: 1px solid #ccc;
  cursor: pointer;
}

/* Button */
.design-checkout .submit-btn {
  border: none;
  background: linear-gradient(180deg, var(--red-dark), var(--red-main));
  color: #fff;
  height: 44px;
  border-radius: 30px;
  font-size: 20px;
  cursor: pointer;
}

/* Footer */
.design-checkout .site-footer {
  background: linear-gradient(180deg, var(--red-dark), var(--red-main));
  color: #fff;
  margin-top: 80px;
}

/* Responsive */
@media (max-width: 900px) {
  .design-checkout .page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .design-checkout .form-grid {
    grid-template-columns: 1fr;
  }
}
.design-checkout {
  direction: rtl;
  text-align: right;
}
.design-checkout .summary-text {
  text-align: right;
}

.design-checkout .summary-text h3 {
  text-align: right;
}
.design-checkout .summary-terms {
  display: flex;
  align-items: center;
  gap: 10px;

  flex-direction: row; 
  justify-content: flex-start;
}


/* begin payment */
/* ============================================================
   CHECKOUT PAGE - UPDATED TO MATCH DESIGN
   ============================================================ */

.design-checkout {
  --red-main: #b62b46;
  --red-dark: #7a0c0c;
  --border-light: #efeded;
  --text-gray: #5f5e5e;
  direction: rtl;
  text-align: right;
  font-family: 'Tajawal', sans-serif;
}

.design-checkout .page-main {
  max-width: 1343px;
  margin: 0 auto;
  padding: 60px 20px;
}

.design-checkout .checkout_wrapper {
  display: grid;
  /* تقسيم المساحة: اليمين (الفاتورة) ياخد مساحة أكبر من الشمال (الطلب) */
  grid-template-columns: 1.5fr 1fr; 
  gap: 30px;
  align-items: flex-start;
}

/* --- الفاتورة (الجهة اليمنى) --- */
.design-checkout .billing_details_wrapper {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* --- ملخص الطلب (الجهة اليسرى) --- */
.design-checkout .order_wrapper {
  background: #fff;
  width: max-content;;
  border: 1px solid var(--border-light);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.design-checkout h3 {
  font-size: 22px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

/* تنسيق المنتج داخل الطلب */
.design-checkout .single_ordered_product {
  display: flex;
  justify-content: flex-start; /* لضمان ترتيب الصورة والكلام */
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.design-checkout .thumb {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  flex-shrink: 0;
  background-color: #f8f8f8;
  border: 1px solid var(--border-light);
}

.design-checkout .product_info {
  flex-grow: 1;
}

.design-checkout .product_name_text {
  font-weight: bold;
  font-size: 16px;
  display: block;
  margin-bottom: 5px;
}

.design-checkout .order_prise {
  color: var(--red-main);
  font-weight: bold;
}

/* الكوبون */
.design-checkout .coupon_wrapper {
  display: flex;
  gap: 10px;
  margin: 25px 0;
}

.design-checkout .coupon_wrapper input {
  flex: 1;
  border-radius: 10px !important;
}

.design-checkout .apply_btn {
  background: #666;
  color: #fff;
  border: none;
  padding: 0 25px;
  border-radius: 10px;
  cursor: pointer;
}

/* الإجماليات */
.design-checkout .single_lists {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: var(--text-gray);
}

.design-checkout .totalBalance {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px dashed var(--border-light);
}

.design-checkout .totalBalance span:last-child {
  color: var(--red-main);
  font-size: 24px;
  font-weight: 800;
}

/* زر تقديم الطلب */
.design-checkout .theme_btn {
  background: linear-gradient(180deg, var(--red-dark), var(--red-main));
  color: #fff;
  border: none;
  width: 100%;
  height: 55px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 25px;
}

/* Responsive */
@media (max-width: 992px) {
  .design-checkout .checkout_wrapper {
    grid-template-columns: 1fr; /* فوق بعض في الموبايل */
  }
  
  .design-checkout .order_wrapper {
    order: -1; /* الطلب يظهر قبل الفورم في الموبايل */
  }
}

.design-checkout {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
/* تأكدي من أن الفوتر يبدأ دائماً في سطر جديد ويأخذ عرض الصفحة كاملاً */
.design-home .footer, .design-about .footer {
    clear: both;
    width: 100%;
    display: block;
    position: relative;
    margin-top: 50px; /* مسافة تفصل الفوتر عن محتوى الطلب */
}
.design-checkout .thumb {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* تنسيق الوعاء الخارجي */
.design-checkout .billing_details_wrapper {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.billing_title {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #333;
    border-bottom: 2px solid #7a0c0c; /* لون الهوية الخاص بك */
    display: inline-block;
    padding-bottom: 5px;
}

/* تنسيق الجدول */
.billing_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px; /* مسافة بين الصفوف */
}

.billing_table td {
    padding: 10px;
    vertical-align: middle;
}

/* جعل العمود الأول (العناوين) بعرض محدد */
.billing_table td:first-child {
    width: 30%;
    color: #555;
}

/* تنسيق الحقول داخل الجدول */
.table_input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.table_input:focus {
    border-color: #7a0c0c;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 5px rgba(122, 12, 12, 0.1);
}

.required_mark {
    color: red;
}


/* end payment */