/* ========================================
   COURSES PAGE ALIGNMENT FIX
   Properly aligns course icon, name, and code
   ======================================== */

/* Fix course card header alignment */
.card-premium .d-flex.align-items-start {
    align-items: center !important;
    /* Center align instead of start */
}

/* Ensure icon is properly sized and aligned */
.card-premium .card-icon {
    flex-shrink: 0;
    /* Prevent icon from shrinking */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* Ensure text container takes remaining space */
.card-premium .d-flex.align-items-start>div:last-child {
    flex: 1;
    min-width: 0;
    /* Allow text to wrap properly */
}

/* Course name styling */
.card-premium h5 {
    line-height: 1.3;
    margin-bottom: 0.25rem !important;
    word-wrap: break-word;
}

/* Course code styling */
.card-premium h5+p {
    line-height: 1.4;
    margin-bottom: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-premium .card-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.3rem !important;
        margin-right: 0.75rem !important;
    }

    .card-premium h5 {
        font-size: 1rem !important;
    }

    .card-premium h5+p {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 576px) {
    .card-premium .card-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
        margin-right: 0.5rem !important;
    }

    .card-premium h5 {
        font-size: 0.95rem !important;
    }
}

/* Ensure consistent card heights */
.card-premium {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Make sure content fills the card */
.card-premium>div:first-child {
    flex: 1;
}

/* Ensure button stays at bottom */
.card-premium .btn-card {
    margin-top: auto;
}