/* Filter Section */
.courses-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 30px;
    border: none;
    background-color: #e5e7eb;
    /* Light gray */
    color: #4b5563;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #d1d5db;
}

.filter-btn.active {
    background-color: #009959;
    /* Green from reference */
    color: white;
    box-shadow: 0 2px 4px rgba(0, 153, 89, 0.3);
}

/* Grid Layout */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
}

@media (max-width: 991px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Design */
.program-card {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.program-image {
    width: 38%;
    position: relative;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-image img {
    transform: scale(1.05);
}

.program-content {
    width: 62%;
    padding: 30px 25px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.program-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #009959;
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.program-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    padding-right: 90px;
    /* Make space for badge */
}

.program-meta {
    display: flex;
    gap: 15px;
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 15px;
    flex-wrap: wrap;
    font-family: 'Open Sans', sans-serif;
}

.program-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.program-meta i {
    color: #009959;
}

.program-desc {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: 'Open Sans', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.program-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #009959;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    margin-top: auto;
    transition: gap 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.program-link:hover {
    gap: 12px;
}

/* Mobile Responsiveness for Card */
@media (max-width: 576px) {
    .program-card {
        flex-direction: column;
    }

    .program-image {
        width: 100%;
        height: 200px;
    }

    .program-content {
        width: 100%;
        padding: 20px;
    }

    .program-badge {
        position: relative;
        top: 0;
        right: 0;
        align-self: flex-start;
        margin-bottom: 10px;
        display: inline-block;
    }

    .program-content h3 {
        padding-right: 0;
    }
}