/* ============================================================
   GLOBAL COURSES STYLESHEET
   Used by all course pages under /courses/
   ============================================================ */

/* ============================================================
   HERO SECTION
   ============================================================ */
.course-hero {
    padding: 120px 20px 80px;
    text-align: center;
    background: radial-gradient(circle at center, #0f2240 0%, #070d1b 100%);
    position: relative;
    overflow: hidden;
    color: #ffffff;
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
}
.course-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 229, 255, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    opacity: 0.3;
    animation: slideBackground 25s linear infinite;
    pointer-events: none;
}
.course-hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}
.course-hero .badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 50px;
    background: rgba(0, 229, 255, 0.12);
    color: #00e5ff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 229, 255, 0.15);
}
.course-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #00e5ff 60%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 20px rgba(0, 229, 255, 0.15));
}
.course-hero .hero-sub {
    font-size: 17px;
    color: #94a3b8;
    line-height: 1.8;
    max-width: 750px;
    margin: 0 auto 30px;
}
.course-hero .hero-sub strong {
    color: #ffffff;
}
.course-hero .hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, #0099ff, #00e5ff);
    color: #00122e;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.25);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(0, 229, 255, 0.4);
    background: linear-gradient(135deg, #1aaaff, #33ebff);
}
.btn-outline {
    background: transparent;
    color: #00e5ff;
    border: 2px solid #00e5ff;
}
.btn-outline:hover {
    background: rgba(0, 229, 255, 0.1);
    transform: translateY(-3px);
}

/* ============================================================
   SECTION HEADERS (Shared)
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header .section-subtitle {
    color: #00e5ff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 8px;
}
.section-header h2 {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}
.section-header p {
    color: #94a3b8;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   COURSE INFO SECTION (NEW)
   ============================================================ */
.course-info {
    padding: 50px 20px;
    background: #070d1b;
    border-bottom: 1px solid rgba(0, 229, 255, 0.06);
}
.course-info .container {
    max-width: 1200px;
    margin: 0 auto;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.info-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 229, 255, 0.08);
    border-radius: 16px;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}
.info-card:hover {
    background: rgba(23, 34, 59, 0.9);
    border-color: rgba(0, 229, 255, 0.25);
    transform: translateY(-4px);
}
.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 229, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #00e5ff;
    flex-shrink: 0;
}
.info-label {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.info-value {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

/* ============================================================
   INTRO SECTION
   ============================================================ */
.course-intro {
    padding: 80px 20px;
    background: #070d1b;
}
.course-intro .container {
    max-width: 1200px;
    margin: 0 auto;
}
.intro-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}
.intro-text .section-subtitle {
    color: #00e5ff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 8px;
}
.intro-text h2 {
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.intro-text p {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}
.intro-text p strong {
    color: #00e5ff;
}
.intro-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.stat-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 16px;
    padding: 25px 18px;
    text-align: center;
    transition: all 0.3s ease;
}
.stat-card:hover {
    background: rgba(23, 34, 59, 0.9);
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateY(-4px);
}
.stat-number {
    display: block;
    font-size: 34px;
    font-weight: 900;
    color: #00e5ff;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    display: block;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   WHAT YOU'LL LEARN
   ============================================================ */
.course-learn {
    padding: 80px 20px 100px;
    background: radial-gradient(circle at center, #0f2240 0%, #070d1b 100%);
}
.course-learn .container {
    max-width: 1200px;
    margin: 0 auto;
}
.learn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.learn-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 229, 255, 0.08);
    border-radius: 18px;
    padding: 30px 25px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.learn-card:hover {
    transform: translateY(-6px);
    background: rgba(23, 34, 59, 0.9);
    border-color: rgba(0, 229, 255, 0.25);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}
.learn-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(0, 229, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #00e5ff;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}
.learn-card:hover .learn-icon {
    background: rgba(0, 229, 255, 0.18);
    transform: scale(1.05);
}
.learn-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}
.learn-card p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   CURRICULUM TIMELINE
   ============================================================ */
.course-curriculum {
    padding: 80px 20px 100px;
    background: #070d1b;
}
.course-curriculum .container {
    max-width: 1000px;
    margin: 0 auto;
}
.curriculum-timeline {
    position: relative;
}
.curriculum-week {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 229, 255, 0.08);
    border-radius: 18px;
    padding: 30px;
    transition: all 0.3s ease;
}
.curriculum-week:hover {
    background: rgba(23, 34, 59, 0.9);
    border-color: rgba(0, 229, 255, 0.25);
    transform: translateX(5px);
}
.week-badge {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0099ff, #00e5ff);
    color: #00122e;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.3);
}
.week-content {
    flex: 1;
}
.week-content h3 {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
}
.week-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.week-content ul li {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.7;
    padding: 6px 0 6px 26px;
    position: relative;
}
.week-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #00e5ff;
    position: absolute;
    left: 0;
    top: 7px;
    font-size: 12px;
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.course-why {
    padding: 80px 20px 100px;
    background: radial-gradient(circle at center, #0f2240 0%, #070d1b 100%);
}
.course-why .container {
    max-width: 1200px;
    margin: 0 auto;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.why-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 229, 255, 0.08);
    border-radius: 18px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.why-card:hover {
    transform: translateY(-6px);
    background: rgba(23, 34, 59, 0.9);
    border-color: rgba(0, 229, 255, 0.25);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}
.why-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(0, 229, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #00e5ff;
    margin: 0 auto 16px;
    transition: all 0.3s ease;
}
.why-card:hover .why-icon {
    background: rgba(0, 229, 255, 0.18);
    transform: scale(1.08);
}
.why-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}
.why-card p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   RELATED COURSES
   ============================================================ */
.course-related {
    padding: 80px 20px 100px;
    background: #070d1b;
}
.course-related .container {
    max-width: 1200px;
    margin: 0 auto;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.related-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 229, 255, 0.08);
    border-radius: 18px;
    padding: 28px 22px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.related-card:hover {
    transform: translateY(-6px);
    background: rgba(23, 34, 59, 0.9);
    border-color: rgba(0, 229, 255, 0.25);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}
.related-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(0, 229, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #00e5ff;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}
.related-card:hover .related-icon {
    background: rgba(0, 229, 255, 0.18);
    transform: scale(1.08);
}
.related-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}
.related-card p {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
}
.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #00e5ff;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    margin-top: auto;
}
.related-card:hover .learn-more i {
    transform: translateX(4px);
}
.learn-more i {
    transition: transform 0.3s ease;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.course-cta {
    padding: 80px 20px;
    background: radial-gradient(circle at center, #0f2240 0%, #070d1b 100%);
    text-align: center;
    border-top: 1px solid rgba(0, 229, 255, 0.08);
}
.course-cta .container {
    max-width: 800px;
    margin: 0 auto;
}
.course-cta h2 {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.course-cta h2 span {
    color: #00e5ff;
}
.course-cta p {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.course-faq {
    padding: 80px 20px 100px;
    background: #070d1b;
}
.course-faq .container {
    max-width: 900px;
    margin: 0 auto;
}
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item.active {
    background: rgba(0, 229, 255, 0.04);
    border-color: rgba(0, 229, 255, 0.35);
}
.faq-question-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-sizing: border-box;
    transition: color 0.3s ease;
    font-family: inherit;
    gap: 15px;
}
.faq-question-btn:hover {
    color: #00e5ff;
}
.faq-icon-box {
    width: 30px;
    height: 30px;
    background: rgba(0, 229, 255, 0.12);
    color: #00e5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, color 0.3s ease;
}
.faq-item.active .faq-icon-box {
    transform: rotate(45deg);
    background: #00e5ff;
    color: #00122e;
}
.faq-answer-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
    padding: 0 24px;
    box-sizing: border-box;
}
.faq-item.active .faq-answer-panel {
    padding: 0 24px 20px 24px;
}
.faq-answer-panel p {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   ANIMATION UTILITIES
   ============================================================ */
.animate-fade-up {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.animate-fade-up.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.35s; }
.delay-3 { transition-delay: 0.55s; }
.delay-4 { transition-delay: 0.75s; }

@keyframes slideBackground {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   RESPONSIVE – TABLET
   ============================================================ */
@media (max-width: 1024px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .learn-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   RESPONSIVE – MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .course-hero {
        padding: 90px 20px 60px;
    }
    .course-hero h1 {
        font-size: 32px;
    }
    .course-hero .hero-sub {
        font-size: 15px;
    }
    .course-hero .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .course-hero .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .section-header h2 {
        font-size: 28px;
    }
    .intro-text h2 {
        font-size: 26px;
    }
    .learn-grid,
    .why-grid,
    .related-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    .curriculum-week {
        flex-direction: column;
        gap: 15px;
        padding: 25px 20px;
    }
    .week-badge {
        width: 65px;
        height: 65px;
        font-size: 12px;
    }
    .week-content h3 {
        font-size: 17px;
    }
    .week-content ul li {
        font-size: 14px;
    }
    .course-cta h2 {
        font-size: 26px;
    }
    .faq-question-btn {
        font-size: 15px;
        padding: 16px 18px;
    }
    .faq-answer-panel {
        padding: 0 18px;
    }
    .faq-item.active .faq-answer-panel {
        padding: 0 18px 16px 18px;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   RESPONSIVE – SMALL MOBILE
   ============================================================ */
@media (max-width: 480px) {
    .course-hero h1 {
        font-size: 26px;
    }
    .section-header h2 {
        font-size: 24px;
    }
    .intro-text h2 {
        font-size: 22px;
    }
    .intro-stats {
        grid-template-columns: 1fr 1fr;
    }
    .stat-number {
        font-size: 28px;
    }
    .course-cta h2 {
        font-size: 22px;
    }
}