/* =============================================================
   course.css — Course Pages Styles
   Shia Online Quran Academy | Emerald & Gold
   ============================================================= */

/* ── HERO SECTION ────────────────────────────────────────── */
.course-hero{background:linear-gradient(160deg,#0a3d38 0%,#0F766E 55%,#0d9488 100%);padding:4rem 1rem;position:relative;overflow:hidden}
@media(max-width:767px){
  .course-hero{padding:5rem 1rem 4rem}
}
@media(min-width:768px){
  .course-hero{padding:4.5rem 1rem 6rem}
}
.course-hero::before{content:'';position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E")}
.course-hero::after{content:'';position:absolute;bottom:-2px;left:0;right:0;height:40px;background:#fff;clip-path:ellipse(60% 100% at 50% 100%)}

.course-hero-grid{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center;position:relative;z-index:2;max-width:1200px;margin:0 auto}


/* Breadcrumb */
.breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;font-size:.85rem;font-weight:600;margin-bottom:1.5rem;color:rgba(255,255,255,.6)}
.breadcrumb a{color:rgba(255,255,255,.9);transition:color .2s}
.breadcrumb a:hover{color:#D4AF37}
.breadcrumb .separator{font-size:.8rem;opacity:.5}
.breadcrumb .current{color:#D4AF37}

/* Typography */
.course-hero h1{font-family:var(--font-heading);font-weight:800;color:#fff;line-height:1.15;margin-bottom:1.25rem;letter-spacing:-.02em}
.course-hero h1 span{display:block;color:#D4AF37;font-weight:700;margin-top:.25rem}
.course-hero p{color:rgba(255,255,255,.92);max-width:540px;margin-bottom:2rem;line-height:1.75;}

/* Meta Tags */
.hero-tags{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:2.5rem}
.hero-tag{display:inline-flex;align-items:center;gap:.4rem;background:rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.3);color:#fff;font-size:.78rem;font-weight:700;padding:.4rem 1rem;border-radius:999px;letter-spacing:.05em}
.hero-tag svg{width:14px;height:14px;color:#D4AF37}

/* Hero Image */
.hero-visual{position:relative;border-radius:1.5rem;overflow:hidden;box-shadow:0 24px 60px rgba(10,61,56,.4);border:2px solid rgba(255,255,255,.15);aspect-ratio:4/3}
.hero-visual img{width:100%;height:100%;object-fit:cover}


/* ── MAIN LAYOUT ─────────────────────────────────────────── */
.course-body{padding:4rem 1rem 6rem;background:#fff}
.course-layout{display:grid;grid-template-columns:1fr 380px;gap:4rem;max-width:1200px;margin:0 auto;align-items:start}

/* Left Content Areas */
.course-section-title{font-family:var(--font-heading);font-weight:800;color:#111827;line-height:1.2;margin-bottom:1.5rem}
.course-section-title span{color:#0F766E}

.course-content-block{margin-bottom:4.5rem}
.course-content-block p{line-height:1.8;color:#4B5563;margin-bottom:1.25rem}

/* Who is this for */
.audience-box{background:#f0fdfa;border:1px solid #ccfbf1;border-radius:1.5rem;padding:2.5rem;margin:3rem 0}
.audience-box h3{font-family:var(--font-heading);font-weight:700;color:#111827;margin-bottom:1.5rem}
.audience-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}
.audience-item{display:flex;align-items:flex-start;gap:.75rem}
.audience-item svg{width:20px;height:20px;color:#0F766E;margin-top:3px;flex-shrink:0}
.audience-item span{font-weight:600;color:#374151;line-height:1.5}

/* Curriculum Roadmap */
.modules-list{display:flex;flex-direction:column;gap:1.5rem}
.module-card{display:flex;align-items:flex-start;gap:1.5rem;background:#fff;border:1px solid #e5e7eb;padding:1.5rem;border-radius:1rem;transition:all .2s ease}
.module-card:hover{border-color:#a7f3d0;box-shadow:0 8px 32px rgba(15,118,110,.08)}
.module-num{width:48px;height:48px;background:#f0fdfa;border:2px solid #ccfbf1;color:#0F766E;font-family:var(--font-heading);font-weight:800;display:flex;align-items:center;justify-content:center;border-radius:12px;flex-shrink:0}
.module-content h3{font-weight:700;color:#111827;margin-bottom:.5rem}
.module-content p{color:#4B5563;line-height:1.6;margin:0}

/* FAQ Override */
.course-faq{margin-top:3rem}
.course-faq details{background:#fff;border:1px solid #e5e7eb;border-radius:1rem;padding:1.2rem 1.5rem;margin-bottom:.75rem;transition:background .2s}
.course-faq details[open]{background:#f0fdfa;border-color:#ccfbf1}
.course-faq summary{font-weight:700;color:#111827;cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;}
.course-faq summary::after{content:'+';font-size:1.4rem;color:#0F766E;font-weight:400;transition:.3s}
.course-faq details[open] summary::after{content:'−';color:#0F766E}
.course-faq p{margin:1rem 0 0 0;line-height:1.6;color:#4B5563}

/* ── SIDEBAR (STICKY CARD) ───────────────────────────────── */
.sidebar{position:sticky;top:calc(var(--header-height) + 2rem)}
.enroll-card{background:#fff;border-radius:1.5rem;padding:2.5rem 2rem;border:1px solid #e5e7eb;box-shadow:0 20px 60px rgba(17,24,39,.08);text-align:center}
.enroll-icon{width:64px;height:64px;background:#f0fdfa;color:#0F766E;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 1.25rem}
.enroll-icon svg{width:28px;height:28px}
.enroll-card h3{font-family:var(--font-heading);font-weight:800;color:#111827;margin-bottom:.25rem}
.enroll-subtitle{color:#6B7280;font-weight:500;margin-bottom:1.5rem}

.enroll-features{display:flex;flex-direction:column;gap:.75rem;margin-bottom:2rem;text-align:left}
.enroll-features li{display:flex;align-items:center;gap:.6rem;font-weight:600;color:#374151}
.enroll-features li svg{width:16px;height:16px;color:#0F766E;flex-shrink:0}

.btn-sidebar-primary{width:100%;background:#D4AF37;color:#0a3d38;font-weight:800;padding:.9rem;border-radius:999px;display:inline-flex;justify-content:center;align-items:center;border:none;box-shadow:0 8px 24px rgba(212,175,55,.3);transition:all .2s;margin-bottom:1rem}
.btn-sidebar-primary:hover{background:#c9a030;transform:translateY(-2px);color:#0a3d38;box-shadow:0 12px 32px rgba(212,175,55,.4)}

.btn-sidebar-secondary{width:100%;background:transparent;color:#0F766E;font-weight:700;padding:.85rem;border-radius:999px;font-size:\.95rem;display:inline-flex;justify-content:center;align-items:center;gap:.4rem;border:2px solid #0F766E;transition:all .2s}
.btn-sidebar-secondary:hover{background:#f0fdfa;transform:translateY(-2px)}

.enroll-disclaimer{font-size:.8rem;color:#9CA3AF;margin-top:1.25rem;line-height:1.5}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media(max-width:1023px){
  .course-hero-grid{grid-template-columns:1fr;gap:3rem;text-align:center}
  .breadcrumb{justify-content:center}
  .hero-tags{justify-content:center}
  .course-hero p{margin-left:auto;margin-right:auto}
  
  .course-layout{grid-template-columns:1fr;gap:3rem}
  .sidebar{position:static;margin-top:2rem}
}
@media(max-width:639px){
  .audience-grid{grid-template-columns:1fr}
  .audience-box{padding:1.5rem}
  .course-hero{padding-top:calc(var(--header-height) + 2rem)}
}
