.course-wrapper {
    padding: 40px 20px;
    margin-top: 10vh;
}

.course-detail {
    max-width: 1200px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* TOP CARD */
.product-header-card {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 30px;
}

.product-header-card img {
    width: 300px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-info h1 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.product-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 0px;
}

.product-actions .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #0d203b;
    margin-bottom: 10px;
}

.price {
    margin-top: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #0d203b;
}

.buy-btn {
    background-color: #ff6600;
    color: #fff;
    border: none;
    padding: 10px 22px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-btn:hover {
    background-color: #cc5200;
}

/* Description Box */
.product-description {
    margin-top: 20px;
    padding: 20px;
    background-color: #fdfdfd;
    border-radius: 10px;
    border: 1px solid #eee;
}

.product-description h2 {
    font-size: 1.5rem;
    color: #0d203b;
    margin-bottom: 10px;
}

.product-description p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    text-align: justify;
}

/* Playlist Videos */
.course-detail h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
}

.course-detail h2 i {
    color: #0066cc;
    margin-right: 6px;
}

.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    width: 100%;
}


.playlist-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.playlist-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
}

.playlist-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
    text-decoration: none;
}

.playlist-card h3 {
    font-size: 1rem;
    color: #0a0a23;
    margin: 0;
}

.locked-warning {
    color: red;
    font-weight: bold;
    margin-top: 20px;
}

.video-card-btn {
    all: unset;
    cursor: pointer;
    display: block;
    width: 100%;
    text-decoration: none;
}

.video-card-btn .playlist-card {
    transition: transform 0.3s ease;
}

.video-card-btn:hover .playlist-card {
    transform: translateY(-4px);
}

/* STAR RATING */
.user-star-rating {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.user-star-rating .fa-star {
    font-size: 26px;
    cursor: pointer;
    color: #ccc;
    transition: transform 0.2s, color 0.2s;
}

.user-star-rating .fa-star.fas {
    color: gold;
}

.user-star-rating .fa-star:hover {
    transform: scale(1.2);
}

/* RESPONSIVE (MOBILE) */
@media screen and (max-width: 768px) {
    .course-wrapper {
        margin-top: 10vh;
        padding: 20px 10px;
    }

    .product-header-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-header-card img {
        width: 100%;
        height: auto;
    }

      .playlist-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .playlist-card img {
        height: auto;
    }

    .playlist-card {
        padding: 12px;
    }

    .buy-btn {
        width: 100%;
        text-align: center;
    }

    .user-star-rating {
        gap: 3px;
        justify-content: center;
        margin-top: 10px;
    }

    .user-star-rating .fa-star {
        font-size: 20px;
    }
}

/* Thumbnail container with share button */
.thumbnail-container {
    position: relative;
    display: inline-block;
}

.thumbnail-container img {
    display: block;
    width: 300px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Share button top-right */
.share-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.3s ease;
}

.share-btn:hover {
    background: rgba(0,0,0,0.8);
}

.price-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-wrapper .mrp {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.price-wrapper .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #0d203b;
}

