﻿
p {
    text-align: justify;
}

.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    position: relative;
}

/* ===== Top Nav ===== */
.top-nav {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 10px 18px;
    border: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    -webkit-user-select: none;
    user-select: none;
    cursor: grab;
    width: 100%;
    -webkit-touch-callout: none;
    flex-shrink: 0;
    position: relative;
    z-index: 99999 !important;
}

    .top-nav:active {
        cursor: grabbing;
    }

    .top-nav::-webkit-scrollbar {
        height: 3px;
    }

    .top-nav::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 8px;
    }

    .top-nav a {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 6px 14px;
        border-radius: 30px;
        font-size: 0.85rem;
        font-weight: 500;
        color: #475569;
        text-decoration: none;
        transition: 0.15s;
        flex-shrink: 0;
        background: transparent;
        border: 1px solid transparent;
    }

        .top-nav a i {
            color: #6c5ce7;
            font-size: 0.9rem;
        }

        .top-nav a:hover {
            background: #f1f5fe;
            color: #0b1e33;
            border-color: #d0dbf5;
        }

        .top-nav a.active {
            background: #6c5ce7;
            color: #fff;
            border-color: #6c5ce7;
        }

            .top-nav a.active i {
                color: #fff;
            }

.content-wrapper {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

.main-content {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.page-container {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0, 20, 50, 0.08);
    padding: 24px 24px 40px;
    width: 100%;
    overflow: hidden;
}

.right-sidebar {
    position: sticky;
    top: 80px;
    width: 270px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-self: flex-start;
}

    .right-sidebar .card {
        background: #ffffff;
        border-radius: 22px;
        border: 1px solid #eef2f6;
        padding: 18px 20px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.04);
        width: 100%;
    }

        .right-sidebar .card .card-label {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            color: #64748b;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

    .right-sidebar .price-block {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

        .right-sidebar .price-block .price {
            font-size: 1.8rem;
            font-weight: 700;
            color: #0b1e33;
        }

            .right-sidebar .price-block .price small {
                font-size: 0.9rem;
                font-weight: 400;
                color: #64748b;
            }

        .right-sidebar .price-block .original-price {
            text-decoration: line-through;
            color: #94a3b8;
            font-size: 1rem;
        }

        .right-sidebar .price-block .discount-badge {
            background: #fee2e2;
            color: #b91c1c;
            padding: 2px 12px;
            border-radius: 30px;
            font-size: 0.8rem;
            font-weight: 600;
            display: inline-block;
            width: fit-content;
        }

    .right-sidebar .btn-primary {
        background: #6c5ce7;
        border: none;
        color: #fff;
        font-size: 0.95rem;
        font-weight: 600;
        padding: 12px 16px;
        border-radius: 60px;
        cursor: pointer;
        transition: 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        box-shadow: 0 8px 20px rgba(108, 92, 231, 0.25);
        margin-top: 6px;
    }

        .right-sidebar .btn-primary:hover {
            background: #5b4bcf;
            transform: scale(1.02);
        }

    .right-sidebar .media-placeholder {
        background: #1e293b;
        border-radius: 14px;
        padding: 14px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: #f1f5f9;
        border: 1px solid #334155;
        min-height: 60px;
        cursor: pointer;
        transition: 0.2s;
        width: 100%;
    }

        .right-sidebar .media-placeholder i {
            font-size: 1.8rem;
            color: #a78bfa;
        }

        .right-sidebar .media-placeholder:hover {
            background: #0f172a;
        }

.poster-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    background: #eef2f6;
    aspect-ratio: 16/7;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .poster-container .poster-placeholder {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        color: #94a3b8;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #eef2ff, #dbeafe);
    }

        .poster-container .poster-placeholder img {
            width: 100%;
            object-fit: cover;
        }

        .poster-container .poster-placeholder i {
            font-size: 4rem;
            color: #6c5ce7;
            opacity: 0.5;
        }

        .poster-container .poster-placeholder span {
            font-size: 1.1rem;
            font-weight: 500;
            color: #475569;
        }

.mobile-video-section {
    display: none;
    margin-top: 20px;
}

    .mobile-video-section .card {
        background: #ffffff;
        border-radius: 18px;
        border: 1px solid #eef2f6;
        padding: 16px 18px;
        width: 100%;
    }

        .mobile-video-section .card .card-label {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            color: #64748b;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

    .mobile-video-section .media-placeholder {
        background: #1e293b;
        border-radius: 14px;
        padding: 14px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: #f1f5f9;
        border: 1px solid #334155;
        min-height: 60px;
        cursor: pointer;
        transition: 0.2s;
        width: 100%;
    }

        .mobile-video-section .media-placeholder i {
            font-size: 1.8rem;
            color: #a78bfa;
        }

        .mobile-video-section .media-placeholder:hover {
            background: #0f172a;
        }

h1 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
    color: #0b1e33;
    font-weight: 700;
    word-break: break-word;
}

.subtitle {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

    .subtitle i {
        color: #6c5ce7;
    }

.section-title {
    font-size: 1.25rem;
    margin: 1.8rem 0 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0b1e33;
    border-bottom: 2px solid #eef2f6;
    padding-bottom: 0.5rem;
    scroll-margin-top: 20px;
    flex-wrap: wrap;
}

    .section-title i {
        font-size: 1.2rem;
    }

.badge {
    padding: 3px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

.badge-purple {
    background: #eef2ff;
    color: #4338ca;
}

.badge-blue {
    background: #dbeafe;
    color: #1e3a8a;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
}

.badge-yellow {
    background: #fef9c3;
    color: #854d0e;
}

.badge-red {
    background: #fee2e2;
    color: #991b1b;
}

.badge-orange {
    background: #ffedd5;
    color: #9a3412;
}

.badge-cyan {
    background: #cffafe;
    color: #0e7490;
}

.badge-pink {
    background: #fce7f3;
    color: #9d174d;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.card {
    background: #fafcff;
    border-radius: 18px;
    padding: 16px 18px;
    border: 1px solid #e9edf4;
    transition: 0.2s ease;
    width: 100%;
    overflow: hidden;
    scroll-margin-top: 50px;
}

    .card:hover {
        border-color: #cbd5e1;
        box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    }

.card-full {
    grid-column: 1 / -1;
}

.card-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.card-value {
    font-size: 1rem;
    font-weight: 500;
    color: #0b1e33;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
}

    .card-value i {
        width: 18px;
        text-align: center;
        margin-left: 7px;
    }

.status-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px 14px 4px 10px;
    border-radius: 40px;
    font-size: 0.85rem;
}

.online {
    color: #0b8b5e;
}

.offline {
    color: #b45309;
}

.inperson {
    color: #2563eb;
}

.chapter-list {
    list-style: none;
    padding: 0;
    width: 100%;
}

.chapter-item {
    border-bottom: 1px solid #eef2f6;
    padding: 10px 0;
    width: 100%;
}

    .chapter-item:last-child {
        border-bottom: none;
    }

.chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: #0b1e33;
    user-select: none;
    padding: 4px 0;
    gap: 10px;
}

    .chapter-header i {
        transition: 0.3s;
        color: #6c5ce7;
        flex-shrink: 0;
    }

.chapter-item.active .chapter-header i {
    transform: rotate(180deg);
}

.sub-chapter-list {
    max-height: 0;
    overflow: hidden;
    transition: 0.4s ease;
    padding-right: 16px;
    list-style: none;
    width: 100%;
}

.chapter-item.active .sub-chapter-list {
    max-height: 600px;
    padding-top: 8px;
}

.sub-chapter-list li {
    padding: 5px 0 5px 8px;
    position: relative;
    color: #475569;
    font-size: 0.9rem;
    border-right: 2px solid #e9edf4;
    margin-bottom: 2px;
    word-break: break-word;
}

    .sub-chapter-list li::before {
        content: "•";
        color: #6c5ce7;
        font-weight: bold;
        margin-left: 6px;
    }

    .sub-chapter-list li i {
        color: #6c5ce7;
        margin-left: 5px;
        width: 16px;
    }

    .sub-chapter-list li.has_content:hover {
        cursor: pointer;
        background-color: #6c5ce7;
        color: #FFF;
    }

        .sub-chapter-list li.has_content:hover i {
            color: #FFF;
        }

/* ===== Instructor (Full) ===== */
.instructor-full {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

    .instructor-full .avatar-large {
        width: 120px;
        height: 120px;
        background: linear-gradient(135deg, #6c5ce7, #a78bfa);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 3rem;
        font-weight: 600;
        flex-shrink: 0;
    }

        .instructor-full .avatar-large img {
            border-radius: 50%;
            width: 90px;
            height: 90px;
            object-fit: cover;
        }

    .instructor-full .info h3 {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }

    .instructor-full .info .title {
        color: #6c5ce7;
        font-weight: 600;
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .instructor-full .info p {
        color: #475569;
        line-height: 1.8;
        margin-bottom: 6px;
        font-size: 0.95rem;
    }

    .instructor-full .info .badge-container {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px;
    }

.faq-item {
    border-bottom: 1px solid #e9edf4;
    padding: 10px 0;
    width: 100%;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    user-select: none;
    gap: 10px;
    font-size: 0.95rem;
}

    .faq-question i {
        transition: 0.3s;
        color: #6c5ce7;
        flex-shrink: 0;
    }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease;
    color: #475569;
    padding-top: 0;
    font-size: 0.9rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-top: 8px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* ===== Reviews ===== */
.review-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid #eef2f6;
    width: 100%;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.review-stars {
    color: #fbbf24;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.review-date {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* ===== Suggestions ===== */
.course-suggestion {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.suggestion-item {
    background: #f8fafc;
    padding: 8px 16px;
    border-radius: 40px;
    border: 1px solid #e9edf4;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* ===== Resources ===== */
.resources {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 6px;
}

    .resources span {
        background: #eef2ff;
        padding: 3px 14px 3px 10px;
        border-radius: 30px;
        font-size: 0.85rem;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
    }

/* ===== Registration Steps ===== */
.steps-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .steps-list li {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        padding: 12px 16px;
        background: #f8fafc;
        border-radius: 14px;
        border-right: 4px solid #6c5ce7;
    }

        .steps-list li .step-num {
            width: 32px;
            height: 32px;
            background: #6c5ce7;
            color: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.9rem;
            flex-shrink: 0;
        }

        .steps-list li .step-content {
            flex: 1;
        }

            .steps-list li .step-content strong {
                display: block;
                font-size: 0.95rem;
                color: #0b1e33;
            }

            .steps-list li .step-content span {
                font-size: 0.9rem;
                color: #475569;
            }

/* ===== Mobile Bottom Bar ===== */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 15px 16px;
    box-shadow: 0 -6px 30px rgba(0,0,0,0.08);
    border-top: 1px solid #eef2f6;
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

    .mobile-bottom-bar .price-block {
        display: flex;
        align-items: baseline;
        gap: 4px;
        flex-wrap: wrap;
        padding-right:50px;
    }

        .mobile-bottom-bar .price-block .price {
            font-size: 1.3rem;
            font-weight: 700;
        }

            .mobile-bottom-bar .price-block .price small {
                font-size: 0.8rem;
                font-weight: 400;
                color: #64748b;
            }

        .mobile-bottom-bar .price-block .original-price {
            font-size: 0.9rem;
            text-decoration: line-through;
            color: #94a3b8;
        }

        .mobile-bottom-bar .price-block .discount-badge {
            background: #fee2e2;
            color: #b91c1c;
            padding: 2px 10px;
            border-radius: 30px;
            font-size: 0.7rem;
            font-weight: 600;
        }

    .mobile-bottom-bar .btn-primary {
        background: #6c5ce7;
        border: none;
        color: #fff;
        font-size: 0.9rem;
        font-weight: 600;
        padding: 10px 18px;
        border-radius: 60px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        justify-content: center;
        min-width: 120px;
        box-shadow: 0 8px 20px rgba(108, 92, 231, 0.25);
    }

        .mobile-bottom-bar .btn-primary:hover {
            background: #5b4bcf;
        }

/* ===== Utilities ===== */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tick-yes {
    color: #16a34a;
}

.tick-no {
    color: #dc2626;
}

.divider {
    height: 1px;
    background: #e9edf4;
    margin: 20px 0;
}

.inline-icon {
    margin-left: 4px;
    color: #6c5ce7;
}

.section-scroll {
    scroll-margin-top: 20px;
}

.text-break {
    word-break: break-word;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .right-sidebar {
        width: 230px;
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
        gap: 16px;
    }

    .right-sidebar {
        display: none;
    }

    .mobile-bottom-bar {
        display: flex;
    }

    .mobile-video-section {
        display: block;
    }

    .page-container {
        padding: 16px 16px 70px;
        border-radius: 20px;
    }

    .poster-container {
        aspect-ratio: 16/9;
        min-height: 140px;
    }

    .instructor-full .avatar-large {
        width: 90px;
        height: 90px;
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 8px;
    }

    .page-container {
        padding: 14px 14px 70px;
        border-radius: 18px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card {
        padding: 14px 16px;
        border-radius: 16px;
    }

    .card-value {
        font-size: 0.95rem;
        gap: 4px 10px;
    }

    .section-title {
        font-size: 1.1rem;
        margin: 1.5rem 0 0.6rem;
        scroll-margin-top: 10px;
    }

        .section-title i {
            font-size: 1rem;
        }

    .chapter-header {
        font-size: 0.95rem;
    }

    .sub-chapter-list li {
        font-size: 0.85rem;
        padding: 4px 0 4px 6px;
    }

    .resources span {
        font-size: 0.8rem;
        padding: 2px 12px 2px 8px;
    }

    .suggestion-item {
        font-size: 0.85rem;
        padding: 6px 14px;
    }

    .review-card {
        padding: 12px 14px;
    }

    .mobile-bottom-bar {
        padding: 15px 14px;
    }

        .mobile-bottom-bar .price-block .price {
            font-size: 1.2rem;
        }

        .mobile-bottom-bar .btn-primary {
            font-size: 0.85rem;
            padding: 8px 14px;
            min-width: 100px;
        }

    .top-nav {
        padding: 6px 12px;
        gap: 3px;
    }

        .top-nav a {
            padding: 4px 10px;
            font-size: 0.75rem;
        }

            .top-nav a i {
                font-size: 0.75rem;
            }

    .poster-container {
        aspect-ratio: 16/10;
        min-height: 120px;
    }

        .poster-container .poster-placeholder i {
            font-size: 3rem;
        }

        .poster-container .poster-placeholder span {
            font-size: 0.95rem;
        }

    .instructor-full {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

        .instructor-full .avatar-large {
            width: 100px;
            height: 100px;
            font-size: 2.5rem;
        }

        .instructor-full .info .badge-container {
            justify-content: center;
        }

    .steps-list li {
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 4px;
    }

    .page-container {
        padding: 10px 10px 65px;
        border-radius: 14px;
    }

    h1 {
        font-size: 1.25rem;
    }

    .subtitle {
        font-size: 0.8rem;
        gap: 4px;
    }

    .badge {
        font-size: 0.65rem;
        padding: 2px 8px;
    }

    .card {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .card-label {
        font-size: 0.7rem;
    }

    .card-value {
        font-size: 0.85rem;
        gap: 3px 8px;
    }

        .card-value i {
            width: 16px;
            font-size: 0.8rem;
        }

    .status-icon {
        font-size: 0.75rem;
        padding: 3px 10px 3px 8px;
    }

    .top-nav {
        padding: 4px 10px;
        gap: 3px;
    }

        .top-nav a {
            padding: 3px 8px;
            font-size: 0.65rem;
        }

            .top-nav a i {
                font-size: 0.65rem;
            }

    .section-title {
        font-size: 1rem;
        margin: 1.2rem 0 0.4rem;
        scroll-margin-top: 10px;
    }

        .section-title i {
            font-size: 0.9rem;
        }

    .chapter-header {
        font-size: 0.85rem;
    }

    .sub-chapter-list {
        padding-right: 10px;
    }

        .sub-chapter-list li {
            font-size: 0.8rem;
            padding: 3px 0 3px 4px;
        }

            .sub-chapter-list li i {
                width: 14px;
                font-size: 0.75rem;
            }

    .resources span {
        font-size: 0.7rem;
        padding: 2px 10px 2px 6px;
    }

    .suggestion-item {
        font-size: 0.75rem;
        padding: 4px 10px;
        gap: 4px;
    }

    .review-card {
        padding: 10px 12px;
    }

    .review-stars {
        font-size: 0.75rem;
    }

    .review-date {
        font-size: 0.65rem;
    }

    .mobile-bottom-bar {
        padding: 15px 10px;
    }

        .mobile-bottom-bar .price-block .price {
            font-size: 1rem;
        }

            .mobile-bottom-bar .price-block .price small {
                font-size: 0.7rem;
            }

        .mobile-bottom-bar .price-block .original-price {
            font-size: 0.75rem;
        }

        .mobile-bottom-bar .price-block .discount-badge {
            font-size: 0.6rem;
            padding: 1px 8px;
        }

        .mobile-bottom-bar .btn-primary {
            font-size: 0.75rem;
            padding: 6px 12px;
            min-width: 80px;
            gap: 4px;
        }

            .mobile-bottom-bar .btn-primary i {
                font-size: 0.8rem;
            }

    .poster-container {
        aspect-ratio: 16/11;
        min-height: 100px;
    }

        .poster-container .poster-placeholder i {
            font-size: 2.5rem;
        }

        .poster-container .poster-placeholder span {
            font-size: 0.85rem;
        }

    .section-scroll {
        scroll-margin-top: 10px;
    }

    .instructor-full .avatar-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .steps-list li .step-num {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .steps-list li .step-content strong {
        font-size: 0.85rem;
    }

    .steps-list li .step-content span {
        font-size: 0.8rem;
    }
}

@media (max-width: 380px) {
    .top-nav a {
        padding: 2px 6px;
        font-size: 0.6rem;
    }

        .top-nav a i {
            font-size: 0.6rem;
        }

    .mobile-bottom-bar .btn-primary {
        font-size: 0.65rem;
        padding: 5px 8px;
        min-width: 60px;
    }

    .mobile-bottom-bar .price-block .price {
        font-size: 0.9rem;
    }

    .poster-container {
        aspect-ratio: 16/12;
        min-height: 80px;
    }
}





.course-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    max-width: 1300px;
    margin: 30px auto;
}

.course-card {
    width: 280px;
    height: 440px;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

    .course-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 30px 50px -12px rgba(99, 102, 241, 0.3);
        border-color: #c7d2fe;
    }

.course-image {
    width: 100%;
    height: 160px;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

    .course-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.5s ease;
    }

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-type-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

    .course-type-badge i {
        font-size: 0.75rem;
    }

.discount-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(145deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
    letter-spacing: 0.5px;
    backdrop-filter: blur(2px);
}

.course-card:not(.has-discount) .discount-badge {
    display: none;
}

.course-content {
    padding: 1.2rem 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.course-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 32px;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 60px;
}

.price-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.6rem;
    background: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    min-height: 58px;
}

.old-price {
    font-size: 0.85rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-color: #ef4444;
    text-decoration-thickness: 2px;
}

.new-price {
    font-size: 1rem;
    font-weight: 800;
    color: #4f46e5;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

    .new-price .currency {
        font-size: 0.7rem;
        font-weight: 600;
        color: #818cf8;
    }

.course-card:not(.has-discount) .old-price {
    display: none;
}

.course-card:not(.has-discount) .new-price {
    font-size: 1.3rem;
    color: #0f172a;
}

    .course-card:not(.has-discount) .new-price .currency {
        color: #64748b;
    }

.course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.add-to-cart {
    background: #4f46e5;
    color: #fff;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    flex-shrink: 0;
}

    .add-to-cart:hover {
        background: #4338ca;
        transform: scale(1.05);
        box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
    }

    .add-to-cart i {
        font-size: 0.9rem;
    }

.type-online .course-type-badge {
    background: rgba(16, 185, 129, 0.85);
}

.type-offline .course-type-badge {
    background: rgba(245, 158, 11, 0.85);
}

.type-inperson .course-type-badge {
    background: rgba(239, 68, 68, 0.85);
}

.type-package .course-type-badge {
    background: rgba(139, 92, 246, 0.9);
}

.course-card.has-discount .new-price {
    color: #dc2626;
}

    .course-card.has-discount .new-price .currency {
        color: #ef4444;
    }

.course-card.has-discount .add-to-cart {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

    .course-card.has-discount .add-to-cart:hover {
        background: #b91c1c;
    }

@media (max-width: 650px) {
    .course-card {
        max-width: 320px;
        height: 480px;
    }

    .course-grid {
        gap: 1.5rem;
    }

    .shop_section#first .course-card {
        width: 100%;
    }
}


.shop_section#first .course-card {
    margin: 25px auto;
}


.owl-carousel .owl-stage-outer {
    padding: 20px 10px;
}


.showvideo {
    display: none;
}

    .showvideo .overlay {
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.46);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9999999 !important;
    }

    .showvideo .vid-show {
        width: 100%;
        height: auto;
        max-width: 93%;
        background: #FFF;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        overflow: hidden;
        z-index: 9999999 !important;
        border-radius: 18px;
        padding: 50px 30px 30px 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        .showvideo .vid-show video {
            width: 100%;
            max-height: 70vh;
            border-radius: 14px;
            object-fit: cover;
        }

.video_title {
    padding: 5px 15px;
    margin: 20px 0px 20px 0px;
    display: inline-block;
    background-color: #F0F8F9;
    border-radius: 10px;
    color: #117C5D;
    border: 1px solid #E4E4E4;
}

.vid-show img {
    height: 100%;
}

.showvideo .close {
    z-index: 99999;
    padding: 7px;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 35px;
    height: 35px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
}

    .showvideo .close:hover {
        cursor: pointer;
        background-color: rgba(80, 80, 80, 0.5);
    }


@media (min-width: 768px) {
    .showvideo .vid-show {
        width: auto;
    }
}