﻿/* =========================
   COURSE CARD – GLOBAL
========================= */

.course-wrapper {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

.course-card {
    display: flex;
    gap: 30px;
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* =========================
   VIDEO
========================= */

.course-video {
    flex: 0 0 auto;
}

.video-wrapper {
    position: relative;
    width: 520px;
    height: 300px;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}

    .video-wrapper video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Play Button */
.video-play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(217,31,31,.95);
    box-shadow: 0 12px 25px rgba(0,0,0,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: .2s;
}

    .video-play-btn::before {
        content: "";
        border-left: 18px solid white;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        margin-left: 4px;
    }

.video-wrapper.playing .video-play-btn {
    display: none;
}

/* =========================
   INFO
========================= */

.course-info {
    flex: 1;
}

.course-desc {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 10px;
}

.course-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.price-box {
    background: #f9fafb;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #16a34a;
}

/* =========================
   BADGE
========================= */

.pay-badge {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

    .pay-badge.paid {
        background: #dcfce7;
        color: #166534;
    }

    .pay-badge.unpaid {
        background: #fee2e2;
        color: #991b1b;
    }

/* =========================
   BUTTON
========================= */

.btn-view,
.btn-buy {
    background: linear-gradient(135deg,#ff6a00,#ee0979);
    border: none;
    padding: 12px 24px;
    color: #fff;
    font-size: 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: .3s;
}

    .btn-view:hover,
    .btn-buy:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(238,9,121,.4);
    }

/* =========================
   MOBILE
========================= */

@media(max-width:900px) {
    .course-card {
        flex-direction: column;
    }

    .video-wrapper {
        width: 100%;
        height: 220px;
    }
}
