/* ================================
   COURSE PAGE SHARED STYLES
   Vibrant Multi-Color Design
   ================================ */

/* ── COURSE HERO ── */
.course-hero {
    background: linear-gradient(135deg, #e8f5e9 0%, #e0f2f1 30%, #e8eaf6 60%, #fce4ec 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.course-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(22,133,118,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.course-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236,72,153,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.course-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(22,133,118,0.1);
}
.course-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--text);
}
.course-hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}
.course-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.course-stat { text-align: center; }
.course-stat .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}
.course-stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── WHO IS IT FOR — Vibrant Colored Cards ── */
.who-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}
.who-card {
    padding: 1.75rem;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.who-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    border-radius: 4px 0 0 4px;
}
.who-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.who-card h4 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}
.who-card ul { list-style: none; padding: 0; }
.who-card ul li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.35rem 0 0.35rem 1.25rem;
    position: relative;
    line-height: 1.5;
}
.who-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* Card 1 — Coral */
.who-card:nth-child(1) {
    background: linear-gradient(135deg, #fff5f5, #ffe0e6);
    border: 1px solid #fecdd3;
}
.who-card:nth-child(1)::before { background: #f43f5e; }
.who-card:nth-child(1) ul li::before { color: #f43f5e; }

/* Card 2 — Sky Blue */
.who-card:nth-child(2) {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
}
.who-card:nth-child(2)::before { background: #3b82f6; }
.who-card:nth-child(2) ul li::before { color: #3b82f6; }

/* Card 3 — Amber */
.who-card:nth-child(3) {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
}
.who-card:nth-child(3)::before { background: #f59e0b; }
.who-card:nth-child(3) ul li::before { color: #f59e0b; }

/* Card 4 — Emerald */
.who-card:nth-child(4) {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #a7f3d0;
}
.who-card:nth-child(4)::before { background: #10b981; }
.who-card:nth-child(4) ul li::before { color: #10b981; }

/* ── LEARN GRID — Colorful Icon Backgrounds ── */
.learn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.learn-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.learn-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.learn-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.learn-item:nth-child(1) .learn-icon { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.learn-item:nth-child(2) .learn-icon { background: linear-gradient(135deg, #dbeafe, #93c5fd); }
.learn-item:nth-child(3) .learn-icon { background: linear-gradient(135deg, #fce4ec, #f48fb1); }
.learn-item:nth-child(4) .learn-icon { background: linear-gradient(135deg, #d1fae5, #6ee7b7); }
.learn-item:nth-child(5) .learn-icon { background: linear-gradient(135deg, #ede9fe, #c4b5fd); }
.learn-item:nth-child(6) .learn-icon { background: linear-gradient(135deg, #ffedd5, #fdba74); }

.learn-title { font-weight: 700; margin-bottom: 0.25rem; color: var(--text); }
.learn-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ── PREMIUM EXPERIENCE — 6 Distinct Colors ── */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}
.premium-item {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.premium-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 0 0 var(--radius) var(--radius);
}
.premium-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.premium-item .p-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.premium-item h4 { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.35rem; color: var(--text); }
.premium-item p { font-size: 0.8rem; color: var(--text-muted); }

/* 6 unique premium card colors */
.premium-item:nth-child(1) { background: linear-gradient(180deg, #fff1f2, #ffe4e6); border: 1px solid #fecdd3; }
.premium-item:nth-child(1)::after { background: #f43f5e; }

.premium-item:nth-child(2) { background: linear-gradient(180deg, #eff6ff, #dbeafe); border: 1px solid #bfdbfe; }
.premium-item:nth-child(2)::after { background: #3b82f6; }

.premium-item:nth-child(3) { background: linear-gradient(180deg, #fefce8, #fef9c3); border: 1px solid #fde68a; }
.premium-item:nth-child(3)::after { background: #eab308; }

.premium-item:nth-child(4) { background: linear-gradient(180deg, #ecfdf5, #d1fae5); border: 1px solid #a7f3d0; }
.premium-item:nth-child(4)::after { background: #10b981; }

.premium-item:nth-child(5) { background: linear-gradient(180deg, #f5f3ff, #ede9fe); border: 1px solid #c4b5fd; }
.premium-item:nth-child(5)::after { background: #8b5cf6; }

.premium-item:nth-child(6) { background: linear-gradient(180deg, #fff7ed, #ffedd5); border: 1px solid #fdba74; }
.premium-item:nth-child(6)::after { background: #f97316; }

/* ── PRICING — Colored Top Borders + Tints ── */
.pricing-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.price-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
/* Silver tier */
.price-card:nth-child(1) {
    border-top: 4px solid #94a3b8;
    background: linear-gradient(180deg, #f8fafc 0%, var(--bg-card) 20%);
}
/* Gold tier (featured) */
.price-card.featured,
.price-card:nth-child(2) {
    border-top: 4px solid var(--primary);
    background: linear-gradient(180deg, #ecfdf5 0%, var(--bg-card) 20%);
    border-color: var(--primary);
}
.price-card.featured::before {
    content: "Most Popular";
    position: absolute;
    top: 14px;
    right: -28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 40px;
    transform: rotate(45deg);
}
/* Emerald tier */
.price-card:nth-child(3) {
    border-top: 4px solid #8b5cf6;
    background: linear-gradient(180deg, #f5f3ff 0%, var(--bg-card) 20%);
}
.price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.price-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.price-card .price-tag { font-size: 2.25rem; font-weight: 800; color: var(--primary); margin: 1rem 0; }
.price-card .price-tag small { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.price-card ul { list-style: none; padding: 0; margin-bottom: 1.5rem; text-align: left; }
.price-card ul li {
    font-size: 0.85rem;
    padding: 0.5rem 0 0.5rem 1.5rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
    position: relative;
}
.price-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ── FAQs ── */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover { border-color: var(--primary); }
.faq-q {
    padding: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    transition: var(--transition);
}
.faq-item.open .faq-q { color: var(--primary); background: rgba(22,133,118,0.04); }
.faq-a {
    padding: 0 1.25rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: none;
}
.faq-item.open .faq-a { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .course-hero { padding: 6rem 1rem 3rem; }
    .course-hero h1 { font-size: 1.75rem; }
    .course-stats { gap: 1.5rem; }
    .who-grid { grid-template-columns: 1fr; }
    .learn-grid { grid-template-columns: 1fr; }
    .premium-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .premium-grid { grid-template-columns: 1fr; }
    .course-stats { gap: 1rem; }
    .course-stat .stat-value { font-size: 1.4rem; }
}

/* ── DARK MODE OVERRIDES ── */
[data-theme="dark"] .who-card:nth-child(1) { background: linear-gradient(135deg, rgba(244,63,94,0.1), rgba(244,63,94,0.05)); border-color: rgba(244,63,94,0.2); }
[data-theme="dark"] .who-card:nth-child(2) { background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(59,130,246,0.05)); border-color: rgba(59,130,246,0.2); }
[data-theme="dark"] .who-card:nth-child(3) { background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(245,158,11,0.05)); border-color: rgba(245,158,11,0.2); }
[data-theme="dark"] .who-card:nth-child(4) { background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(16,185,129,0.05)); border-color: rgba(16,185,129,0.2); }
[data-theme="dark"] .premium-item { border-color: var(--border); }
[data-theme="dark"] .premium-item:nth-child(1) { background: linear-gradient(180deg, rgba(244,63,94,0.08), var(--bg-card)); }
[data-theme="dark"] .premium-item:nth-child(2) { background: linear-gradient(180deg, rgba(59,130,246,0.08), var(--bg-card)); }
[data-theme="dark"] .premium-item:nth-child(3) { background: linear-gradient(180deg, rgba(234,179,8,0.08), var(--bg-card)); }
[data-theme="dark"] .premium-item:nth-child(4) { background: linear-gradient(180deg, rgba(16,185,129,0.08), var(--bg-card)); }
[data-theme="dark"] .premium-item:nth-child(5) { background: linear-gradient(180deg, rgba(139,92,246,0.08), var(--bg-card)); }
[data-theme="dark"] .premium-item:nth-child(6) { background: linear-gradient(180deg, rgba(249,115,22,0.08), var(--bg-card)); }
[data-theme="dark"] .course-hero { background: linear-gradient(135deg, var(--bg) 0%, rgba(22,133,118,0.05) 50%, var(--bg) 100%); }
[data-theme="dark"] .price-card:nth-child(1) { background: linear-gradient(180deg, rgba(148,163,184,0.06) 0%, var(--bg-card) 20%); }
[data-theme="dark"] .price-card:nth-child(2),
[data-theme="dark"] .price-card.featured { background: linear-gradient(180deg, rgba(22,133,118,0.08) 0%, var(--bg-card) 20%); }
[data-theme="dark"] .price-card:nth-child(3) { background: linear-gradient(180deg, rgba(139,92,246,0.06) 0%, var(--bg-card) 20%); }

/* ── COURSE HERO WITH BG IMAGE ── */
.course-hero.has-bg {
    background: linear-gradient(135deg, rgba(15,23,42,0.82), rgba(22,133,118,0.7)), var(--hero-bg) center/cover no-repeat;
    color: white;
}
.course-hero.has-bg h1,
.course-hero.has-bg p,
.course-hero.has-bg .course-hero-badge,
.course-hero.has-bg .course-stat .stat-label { color: rgba(255,255,255,0.85); }
.course-hero.has-bg .course-stat .stat-value { color: #a7f3d0; }
.course-hero.has-bg .course-hero-badge {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.25);
    color: #a7f3d0;
}
.course-hero.has-bg h1 { color: white; }
.course-hero.has-bg h1 .highlight { color: #6ee7b7; }

/* ── LEARN ITEM SUB-POINTS ── */
.learn-sub { list-style: none; padding: 0.5rem 0 0 0; margin: 0; }
.learn-sub li {
    font-size: 0.8rem; color: var(--text-muted); padding: 0.2rem 0 0.2rem 1rem;
    position: relative; line-height: 1.5;
}
.learn-sub li::before { content: "–"; position: absolute; left: 0; color: var(--primary); }

/* ── COURSE MODULES ACCORDION ── */
.modules-list { max-width: 800px; margin: 0 auto; }
.module-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
}
.module-item:hover { border-color: var(--primary); }
.module-header {
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    transition: var(--transition);
    gap: 1rem;
}
.module-header .module-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white; font-size: 0.8rem; font-weight: 800;
}
.module-header .module-title { flex: 1; }
.module-header .module-toggle {
    font-size: 1.25rem; color: var(--text-muted); transition: transform 0.3s;
}
.module-item.open .module-header { color: var(--primary); background: rgba(22,133,118,0.04); }
.module-item.open .module-toggle { transform: rotate(45deg); }
.module-content {
    padding: 0 1.5rem 1.25rem;
    display: none;
}
.module-item.open .module-content { display: block; }
.module-content ul { list-style: none; padding: 0; margin: 0; }
.module-content ul li {
    font-size: 0.88rem; color: var(--text-muted); padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative; line-height: 1.6; border-bottom: 1px solid var(--border-light);
}
.module-content ul li:last-child { border-bottom: none; }
.module-content ul li::before {
    content: "▸"; position: absolute; left: 0; color: var(--primary); font-weight: 700;
}

/* ── BROCHURE / LEAD CAPTURE ── */
.brochure-section {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid #a7f3d0;
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
[data-theme="dark"] .brochure-section {
    background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(16,185,129,0.03));
    border-color: rgba(16,185,129,0.2);
}
.brochure-section h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.brochure-section p { color: var(--text-muted); margin-bottom: 1.5rem; }
.brochure-form {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
    max-width: 500px; margin: 0 auto;
}
.brochure-form input {
    padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 0.9rem; background: var(--bg-card); color: var(--text);
}
.brochure-form .btn { grid-column: span 2; }
@media (max-width: 480px) { .brochure-form { grid-template-columns: 1fr; }
    .brochure-form .btn { grid-column: span 1; } }

/* ── TOOLS GRID ── */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}
.tool-badge {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 1.5rem 1rem; border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--bg-card); transition: var(--transition); text-align: center; gap: 0.5rem;
}
.tool-badge:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); border-color: var(--primary); }
.tool-badge .tool-icon { font-size: 2rem; }
.tool-badge .tool-name { font-size: 0.8rem; font-weight: 600; color: var(--text); }

/* ── CERTIFICATES ── */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}
.cert-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}
.cert-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), #3b82f6, #8b5cf6);
}
.cert-card .cert-icon { font-size: 3rem; margin-bottom: 1rem; }
.cert-card h4 { font-weight: 700; margin-bottom: 0.5rem; }
.cert-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ── COMPACT REVIEWS ON COURSE PAGE ── */
.course-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}
.course-review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}
.course-review-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.course-review-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.course-review-avatar {
    width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--primary);
}
.course-review-name { font-weight: 700; font-size: 0.9rem; }
.course-review-role { font-size: 0.75rem; color: var(--text-muted); }
.course-review-stars { color: #f59e0b; font-size: 0.85rem; margin-bottom: 0.5rem; }
.course-review-text { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ── PATHWAY (REUSED FROM HOME) ── */
.course-pathway { max-width: 1000px; margin: 0 auto; }
