/* ============================================================
   CRAS Course Card — Apple-grade interactive component
   ============================================================ */

/* ---- Card Shell ------------------------------------------ */
.cras-course-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.cras-course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.13), 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* ---- Image Area ------------------------------------------ */
.ccc-img-wrap {
    position: relative;
    overflow: hidden;
    height: 220px;
    flex-shrink: 0;
    background: #f0f0f0;
}

.ccc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cras-course-card:hover .ccc-img {
    transform: scale(1.07);
}

/* Gradient overlay at bottom of image */
.ccc-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 55%);
    pointer-events: none;
}

/* ---- Fee Badge (top-right on image) ---------------------- */
.ccc-fee-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    letter-spacing: -0.01em;
    line-height: 1.6;
    white-space: nowrap;
}

/* ---- Date Badge (bottom-left on image) ------------------- */
.ccc-date-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 30px;
    letter-spacing: 0.01em;
    line-height: 1.6;
}

.ccc-date-badge i,
.ccc-date-badge svg {
    font-size: 10px;
    opacity: 0.85;
    color: #ffffff !important;
}

/* ---- Card Body ------------------------------------------- */
.ccc-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ---- Title ----------------------------------------------- */
.ccc-title {
    font-family: 'Inter', sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    color: #111111;
    line-height: 1.4;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
}

/* ---- Description ----------------------------------------- */
.ccc-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Footer / CTA ---------------------------------------- */
.ccc-footer {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ccc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
    padding: 10px 14px;
    background: #8b1a1a;
    color: #fff !important;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    letter-spacing: 0.01em;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.ccc-btn:hover {
    background: #6e1517;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 26, 26, 0.32);
    color: #fff !important;
    text-decoration: none !important;
}

.ccc-btn .ccc-arrow {
    transition: transform 0.2s ease;
    display: inline-block;
}

.ccc-btn:hover .ccc-arrow {
    transform: translateX(3px);
}

/* ---- Placeholder if no image ----------------------------- */
.ccc-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ec 100%);
    color: #bbb;
    font-size: 40px;
}

/* ---- Swiper context: equal-height slides ----------------- */
.swiper-slide .cras-course-card {
    height: 100%;
}

/* ---- Responsive ------------------------------------------ */
@media (max-width: 575px) {
    .ccc-img-wrap {
        height: 200px;
    }
}
