/* ==============================================================
   eProstuti Modern Course Card Styles
   ============================================================== */

.compact-course-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: visible;
    border: 1px solid #dbe7ff !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}

.compact-course-card:hover {
    transform: translateY(-5px);
    border-color: #93c5fd !important;
    box-shadow: 0 16px 32px rgba(0, 43, 111, 0.12) !important;
}

.compact-course-badge {
    position: absolute;
    top: -10px;
    left: 16px;
    z-index: 5;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #e0077d 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(224, 7, 125, 0.35);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.compact-course-media {
    position: relative;
    overflow: hidden;
    border-radius: 19px 19px 0 0;
    background: #f1f5f9;
    aspect-ratio: 16 / 10;
}

.compact-course-media a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.compact-course-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.course-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(220, 38, 38, 0.92);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease;
    z-index: 3;
    pointer-events: none;
}

.course-play-overlay i {
    margin-left: 2px;
}

.compact-course-card:hover .compact-course-media img {
    transform: scale(1.05);
}

.compact-course-card:hover .course-play-overlay {
    transform: translate(-50%, -50%) scale(1.15);
    background: #ef4444;
}

.compact-course-body {
    padding: 16px !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.compact-course-title-wrap {
    margin-bottom: 10px;
}

.compact-course-title {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.compact-course-title a {
    color: #0b1f66 !important;
    text-decoration: none;
    transition: color 0.18s ease;
}

.compact-course-title a:hover {
    color: #e0077d !important;
}

.compact-course-category {
    margin: 0;
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
}

.compact-course-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.compact-course-price-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.compact-course-price {
    font-size: 18px;
    font-weight: 800;
    color: #002b6f;
    line-height: 1;
}

.compact-course-price.free {
    color: #16a34a;
}

.compact-course-old-price {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
    line-height: 1;
}

.compact-course-offer-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 50px;
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.compact-course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding: 7px 10px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.compact-course-rating ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 3px;
}

.compact-course-rating i {
    font-size: 11px;
    color: #d1d5db;
}

.compact-course-rating .chked i {
    color: #f59e0b;
}

.compact-course-sales {
    font-size: 12px;
    color: #475569;
    white-space: nowrap;
    font-weight: 600;
}

.compact-course-action-row {
    margin-bottom: 10px;
}

.compact-course-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 18px !important;
    border-radius: 50px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap;
    border: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.compact-course-btn.details {
    background: linear-gradient(135deg, #002b6f 0%, #1e40af 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 43, 111, 0.25);
}

.compact-course-btn.details:hover {
    background: linear-gradient(135deg, #001f52 0%, #1d4ed8 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 43, 111, 0.35);
    color: #ffffff !important;
}

.compact-course-btn.enrolled {
    background: linear-gradient(135deg, #16a34a 0%, #10b981 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}

.compact-course-btn.enrolled:hover {
    background: linear-gradient(135deg, #15803d 0%, #059669 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
    color: #ffffff !important;
}

.compact-course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.compact-course-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

/* Mobile responsive adjustments */
@media (max-width: 767.98px) {
    .compact-course-title {
        font-size: 15px;
        min-height: 40px;
    }
    
    .compact-course-btn {
        padding: 11px 16px !important;
        font-size: 13px !important;
    }
}

/* Dark mode support */
.active-dark .compact-course-card {
    background: #18191a !important;
    border-color: #334155 !important;
}

.active-dark .compact-course-title a {
    color: #f1f5f9 !important;
}

.active-dark .compact-course-category {
    color: #94a3b8;
}

.active-dark .compact-course-price {
    color: #38bdf8;
}

.active-dark .compact-course-meta {
    background: #242526;
    border-color: #334155;
}

.active-dark .compact-course-sales {
    color: #cbd5e1;
}
