.popular-programs-section {
    padding: 2rem 0;
    background: #ffffff;
}

.popular-programs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.popular-programs-title-group h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.popular-programs-subtitle {
    color: var(--text-light);
    font-size: 1rem;
}

.explore-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.explore-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.program-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.95));
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.05),
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        inset 0 -1px 2px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(14, 65, 91, 0.05);
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 2;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 45px -6px rgba(0, 0, 0, 0.18),
        inset 0 3px 6px rgba(255, 255, 255, 1),
        inset 0 -3px 6px rgba(0, 0, 0, 0.06);
}

.program-card-image {
    position: relative;
    height: 160px;
    overflow: hidden;
    z-index: 3;
}

.program-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
}

.program-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 4;
}

.program-badge.featured {
    background: var(--secondary-color);
}

.program-card-content {
    padding: 1rem 1.25rem;
}

.program-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.program-card-description {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.program-card-meta {
    color: #FF6B66;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.program-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.rating-stars {
    color: #FFB800;
    font-size: 0.85rem;
}

.rating-number {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.85rem;
}

.program-price {
    color: var(--secondary-color);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.program-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.15rem;
}

.program-info-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #5e6472;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    min-width: 0;
}

.program-info-icon {
    width: 1.8rem;
    height: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, rgba(255, 107, 102, 0.14), rgba(14, 65, 91, 0.08));
    border: 1px solid rgba(14, 65, 91, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 6px 14px rgba(14, 65, 91, 0.08);
    color: var(--primary-color);
    font-size: 0;
    position: relative;
    flex-shrink: 0;
}

.program-info-icon::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.82rem;
    line-height: 1;
    color: currentColor;
    speak: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: auto;
}

.program-info-item:first-child .program-info-icon::before {
    content: "\f518";
}

.program-info-item:last-child .program-info-icon::before {
    content: "\f0c0";
    font-size: 0.74rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .popular-programs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .popular-programs-title-group h2 {
        font-size: 2rem;
    }

    .programs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .program-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .popular-programs-section {
        padding: 3rem 0;
    }

    .popular-programs-title-group h2 {
        font-size: 1.75rem;
    }
}
