﻿:root {
    --accent-color: #c02080;
    --theme-dark: #361A33;
}

.online-hero {
    background: linear-gradient(135deg,#361A33,#c02080);
    color: #fff;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    /*width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;*/
    border-radius: 0;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-left {
    flex: 1;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,.2));
}

.hero-badge {
    background: rgba(255,255,255,.15);
    padding: 8px 16px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 15px;
}

.online-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
    color: #fff;
}

.online-hero p {
    font-size: 18px;
    line-height: 1.8;
}

.hero-buttons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn {
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
}

    .hero-btn.primary {
        background: #fff;
        color: #361A33;
    }

    .hero-btn.secondary {
        border: 1px solid #fff;
        background: transparent;
        color: #fff;
    }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-box {
    background: rgba(255,255,255,.08);
    text-align: center;
    padding: 20px;
    border-radius: 10px;
}

    .stat-box h3 {
        font-size: 28px;
        margin-bottom: 5px;
        color: #fff;
    }

.self-paced-section {
    padding: 30px;
    background: #ccc;
    overflow: hidden;
}

.self-paced-grid,
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
}

.self-card,
.feature-item {
    background: #fff;
    border: 1px solid #c02080;
    padding: 25px;
    border-radius: 12px;
    transition: .3s;
}

    .self-card:hover,
    .feature-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,.08);
    }

.online-cta {
    background: #fff;
    color: #361A33;
    text-align: center;
    padding: 30px;
}

    .online-cta button {
        margin-top: 25px;
        padding: 12px 30px;
        border: none;
        border-radius: 8px;
        background: #c02080;
        color: #fff;
        font-weight: 600;
    }

.course-wrapper {
    padding: 0;
    background: #fff;
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.course-header {
    text-align: center;
    margin-bottom: 30px;
}

.course-grid {
    padding: 0 25px;
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 20px;
}

.course-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
}

.course-img {
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f8f8;
}

    .course-img img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.course-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-fee {
    color: #d10000;
    font-weight: 700;
}

.course-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-view,
.btn-enroll {
    flex: 1;
    padding: 8px;
}

.btn-view {
    background: #fff;
    border: 1px solid #361A33;
}

.btn-enroll {
    background: #361A33;
    color: #fff;
    border: none;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 9999;
}

.course-tab-content {
    display: none;
}

    .course-tab-content.active {
        display: block;
    }

.course-tab.active {
    font-weight: bold;
}

.modal-content {
    background: #fff;
    width: 60%;
    max-height: 85vh;
    overflow-y: auto;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    position: relative;
}

#enrollModal .modal-content {
    width: 420px;
    max-width: 90%;
    max-height: none;
    overflow: visible;
}

.modal-xl {
    width: 80%;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    font-size: 22px;
}

.course-detail-top {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.detail-image {
    width: 320px;
    flex-shrink: 0;
}

    .detail-image img {
        width: 100%;
        border-radius: 10px;
    }

.detail-info {
    flex: 1;
}

.detail-fee {
    font-size: 24px;
    font-weight: 700;
    color: #c40000;
}

.detail-content {
    border-top: 1px solid #eee;
    padding-top: 20px;
    line-height: 1.9;
}

.course-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.course-tab {
    border: 1px solid #ddd;
    background: #fff;
    padding: 10px 16px;
    border-radius: 6px;
}

    .course-tab.active {
        background: #361A33;
        color: #fff;
    }

@keyframes float {
    0% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-12px)
    }

    100% {
        transform: translateY(0)
    }
}

@media(max-width:1200px) {
    .course-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

@media(max-width:768px) {
    .online-hero {
        padding: 30px 20px;
        border-radius: 0;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .hero-img {
        max-width: 280px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .self-paced-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: repeat(4,1fr);
        gap: 8px;
    }

    .stat-box {
        padding: 10px 5px;
    }

        .stat-box h3 {
            font-size: 18px;
        }

        .stat-box p {
            font-size: 11px;
        }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .modal-content,
    .modal-xl {
        width: 95%;
        margin: 10% auto;
    }

    .course-detail-top {
        flex-direction: column;
        text-align: center;
    }

    .detail-image {
        width: 100%;
        max-width: 280px;
        margin: auto;
    }

    .close {
        top: 5px;
        right: 8px;
        background: #361A33;
        color: white;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }

    .modal-content {
        padding-top: 50px;
    }
}
