/* Premium Course Card Styles - Global (All Devices) */
.singel-course {
    margin-bottom: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06) !important;
    background: #ffffff !important;
    overflow: hidden !important;
    height: 100% !important; /* Ensures cards in a grid have equal height */
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.singel-course:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Make the thumbnail scale perfectly with uniform 4:3 shape */
.singel-course .thum,
.singel-course .thum .image,
.singel-course .thum .image a {
    height: auto !important;
    width: 100% !important;
    display: block !important;
    background: transparent !important;
}

.singel-course .thum img {
    width: 100% !important;
    height: auto !important; 
    aspect-ratio: 4 / 3 !important; 
    object-fit: cover !important; 
    max-height: none !important;
    display: block !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* Adjust padding and text size inside the card content */
.singel-course .cont {
    padding: 20px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; 
    flex-grow: 1 !important; /* Fill available height in grid */
}

.singel-course .cont h4 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
    margin-bottom: 10px !important; 
    min-height: auto !important; /* Fixes the large gap! */
    letter-spacing: -0.3px !important;
}

.singel-course .cont .course-desc {
    font-size: 14px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    white-space: normal !important; 
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Bottom section (Price and Button) */
.course-bottom {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: auto !important; /* Pushes to the very bottom */
    padding-top: 16px !important;
    border-top: 1px solid #e2e8f0 !important; 
    gap: 8px !important;
}

.course-price-info {
    width: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.price-top-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.current-price {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #4b5563 !important;
}

.old-price {
    font-size: 13px !important;
    color: #9ca3af !important;
    margin-top: 2px !important;
}

.discount-badge {
    font-size: 11px !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    background: #eafff0 !important;
    color: #4b6a55 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

.course-btn {
    width: auto !important;
    margin-top: 0 !important;
    flex-shrink: 0 !important;
}

.course-btn a.curriculum-btn {
    display: inline-block !important;
    text-align: center !important;
    width: auto !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 20px !important;
    background: #ffecdf !important;
    color: #ff6b00 !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.course-btn a.curriculum-btn:hover {
    background: #ffdbbf !important;
    color: #e65a00 !important;
}

/* ----------------------------------------------------
   Responsive Adjustments for Fold 5 Wide Open (576px - 720px)
   ---------------------------------------------------- */
@media (min-width: 576px) and (max-width: 720px) {
    .singel-course .cont {
        padding: 12px 10px !important;
    }
    .singel-course .cont h4 {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }
    .singel-course .cont .course-desc {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin-bottom: 12px !important;
    }
    .course-bottom {
        padding-top: 10px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .price-top-row {
        gap: 4px !important;
    }
    .current-price {
        font-size: 14px !important;
    }
    .old-price {
        font-size: 11px !important;
    }
    .discount-badge {
        font-size: 10px !important;
        padding: 2px 4px !important;
    }
    .course-btn {
        width: 100% !important;
    }
    .course-btn a.curriculum-btn {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        font-size: 12px !important;
        padding: 6px 10px !important;
    }
}
