.cifl-hero {
    background: linear-gradient(135deg, #190028 0%, #4f0071 60%, #0d233a 100%) !important;
    padding: 18px 15px !important;
    min-height: 0 !important;
    height: auto !important;
    color: #ffffff !important;
    text-align: center !important;
    border-bottom: 3px solid #ffc107 !important;
}
.cifl-hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(168,85,247,0.25) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}
.cifl-search-wrapper {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 6px 8px 6px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.cifl-search-input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    width: 100%;
    outline: none;
}
.cifl-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.cifl-search-btn {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #ffffff;
    border: none;
    border-radius: 40px;
    padding: 10px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.cifl-search-btn:hover {
    background: linear-gradient(135deg, #9333ea, #6d28d9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

/* Filter Card Styling */
.filter-card-v2 {
    background: #ffffff;
    border: 1px solid #eee2f7;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(79, 0, 113, 0.05);
    transition: all 0.3s ease;
}
.filter-section-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #4f0071;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-option-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
}
.filter-option-label:hover {
    background: #f5edfc;
    color: #4f0071;
}
.filter-option-label input[type="checkbox"],
.filter-option-label input[type="radio"] {
    accent-color: #7c3aed;
    width: 17px;
    height: 17px;
    cursor: pointer;
}

/* Controls Bar above Grid */
.controls-bar {
    background: #ffffff;
    border: 1px solid #f1e6fa;
    border-radius: 16px;
    padding: 14px 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.sort-select-custom {
    border: 1px solid #e0c2f0;
    border-radius: 12px;
    padding: 8px 36px 8px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #4f0071;
    background: #fcf8ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%237c3aed' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.course-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
}
.course-card-v2 {
    background: #ffffff;
    border: 1px solid #f1e6fa;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(79, 0, 113, 0.04);
    position: relative;
}
.course-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(79, 0, 113, 0.12);
    border-color: #d8b4fe;
}
.course-card-header {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #4f0071, #7c3aed);
    overflow: hidden;
}
.course-card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}
.course-card-v2:hover .course-card-header img {
    transform: scale(1.05);
}
.course-flag-badge {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border-radius: 8px;
    padding: 4px 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.course-flag-badge img {
    width: 36px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}
.course-floating-badges {
    position: absolute;
    top: 12px; left: 12px; right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
    z-index: 2;
}
.tag-badge {
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.tag-badge-online { background: rgba(22, 163, 74, 0.9); color: #ffffff; }
.tag-badge-offline { background: rgba(217, 119, 6, 0.9); color: #ffffff; }
.tag-badge-level { background: rgba(15, 23, 42, 0.75); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.2); }

.course-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.course-title-v2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 10px;
}
.course-desc-v2 {
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 18px;
    flex-grow: 1;
}
.course-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}
.btn-course-enroll {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #ffffff !important;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}
.btn-course-enroll:hover {
    background: linear-gradient(135deg, #6d28d9, #5b21b6);
    transform: translateX(2px);
}

/* ── CIFL Overview & Collaboration Section ── */
.cifl-about-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px rgba(79, 0, 113, 0.04);
}

.cifl-lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fdfbfd;
    border: 1.5px solid #f1e6fa;
    border-radius: 50px;
    padding: 8px 18px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #3b0764;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(79,0,113,0.03);
}

.cifl-lang-pill:hover {
    background: #7c3aed;
    color: #ffffff;
    border-color: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.25);
}

.cifl-collab-box {
    background: linear-gradient(135deg, #190028 0%, #3b0764 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 30px;
    border-bottom: 4px solid #ffc107;
}

.cifl-dept-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 14px 18px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    height: 100%;
    transition: all 0.25s ease;
}

.cifl-dept-card:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #ffc107;
    transform: translateY(-2px);
}

.cifl-why-card {
    background: #ffffff;
    border: 1px solid #f1e6fa;
    border-radius: 18px;
    padding: 28px 22px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(79, 0, 113, 0.03);
}

.cifl-why-card:hover {
    transform: translateY(-5px);
    border-color: #c084fc;
    box-shadow: 0 12px 28px rgba(79, 0, 113, 0.1);
}

.cifl-why-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #f3e8ff;
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

