/* ========================================
   Course Page Styles
   Extracted from course-dynamic.blade.php
   ======================================== */

/* --- Animations --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.sec-in {
    animation: fadeUp 0.6s ease-out both;
}

/* --- Base Card --- */
.crd {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.crd:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* --- Tag pill --- */
.tag {
    transition: all 0.2s;
}
.tag:hover {
    background: rgba(0, 101, 101, 0.12) !important;
}

/* --- Heading font mixin --- */
.c-heading {
    font-family: 'Montserrat', 'Cairo', sans-serif;
    font-weight: 800;
    color: #0f172a;
}
.c-heading-sm {
    font-family: 'Montserrat', 'Cairo', sans-serif;
    font-weight: 700;
    color: #0f172a;
}

/* --- Section wrapper --- */
.sec-section {
    padding: 100px 0;
    position: relative;
}

/* --- Section header badge pill --- */
.sec-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 5px 16px;
    border-radius: 100px;
    border: 1px solid rgba(169, 0, 169, 0.12);
    margin-bottom: 14px;
    background: rgba(169, 0, 169, 0.06);
}

/* --- Section title h2 --- */
.sec-title {
    font-family: 'Montserrat', 'Cairo', sans-serif;
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}
.sec-subtitle {
    font-size: 15px;
    color: #64748b;
    max-width: 540px;
    margin: 0 auto;
}

/* --- Gradient accent bar (for cards) --- */
.gradient-bar {
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #006565, var(--course-color, #a900a9));
}

/* --- Icon container sizes --- */
.icon-40 {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-44 {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-48 {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-52 {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-64 {
    width: 64px; height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Section variant backgrounds --- */
.section-white { background: #ffffff; }
.section-light { background: #f8fafc; }
.section-gradient { background: linear-gradient(135deg, #f8fafc, #f1f5f9, #f8fafc); }

/* --- White card with shadow --- */
.card-shadow {
    background: #fff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.card-shadow-sm {
    background: #fff;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.03);
}

/* --- Light card (used in detail/module) --- */
.card-light {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

/* --- Hero stats items --- */
.stat-item {
    text-align: center;
    padding: 12px 8px;
    border-radius: 12px;
}
.stat-value {
    font-family: 'Montserrat', 'Cairo', sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 900;
    line-height: 1.1;
}
.stat-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- Outline card with left accent border --- */
.card-left-accent {
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    border-left: 4px solid #006565;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* --- Hover lift helpers --- */
.hover-lift {
    transition: all 0.3s;
}
.hover-lift:hover {
    transform: translateY(-3px);
}
.hover-lift-lg:hover {
    transform: translateY(-6px);
}

/* --- Check circle (outcome list) --- */
.check-circle {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(0, 101, 101, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.check-circle i {
    font-size: 11px;
    color: #006565;
}

/* --- Timeline --- */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
}
.timeline-dot {
    width: 16px;
    height: 16px;
    margin-top: 24px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #f8fafc, 0 0 0 6px rgba(169, 0, 169, 0.25);
}

/* --- CTA trust items (style 7) --- */
.trust-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

/* --- Dot pattern background --- */
.dot-pattern {
    background-image: radial-gradient(circle at 20px 20px, #fff 1px, transparent 0);
    background-size: 30px 30px;
}

/* --- Section divider line --- */
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #006565, var(--course-color, #a900a9));
    border-radius: 2px;
    margin: 20px auto 0;
}

/* --- Outcome chip (visual grid) --- */
.outcome-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 100px;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-size: 10px;
    color: #475569;
}
.outcome-chip .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #006565;
}

/* --- Glow button (CTA style 6) --- */
.glow-btn {
    transition: all 0.3s;
}
.glow-btn:hover {
    box-shadow: 0 8px 30px rgba(169, 0, 169, 0.35) !important;
}

/* --- Result card with gradient top bar and gradient icon --- */
.result-card {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
}
.result-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.result-card .top-bar {
    height: 4px;
}
.result-card .icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.result-card .icon-box i {
    font-size: 18px;
    color: #fff;
}

/* --- Module/Detail cards with gradient top bar --- */
.mod-card {
    background: #fff;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.03);
    transition: all 0.3s;
}
.mod-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.mod-card .top-bar {
    height: 3px;
}
.mod-card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mod-card .icon-box i {
    font-size: 20px;
    color: #fff;
}

/* --- Responsive adjustments --- */
@media (max-width: 991px) {
    .sec-section {
        padding: 60px 0;
    }
    .sec-title {
        font-size: clamp(24px, 5vw, 30px);
    }
}
@media (max-width: 767px) {
    .sec-section {
        padding: 50px 0;
    }
}
