/* ===================================================== */
/* PROGRAMS */
/* ===================================================== */

.programs-section {
    padding: 80px 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.programs-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Section Header */

.programs-header {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.programs-label {
    margin: 0;
    color: #67794F;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.programs-header h2 {
    margin: 12px 0 0;
    color: #67794F;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;
}

.programs-description {
    margin: 16px 0 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}


/* Programs Grid */

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 48px;
}


/* Program Card */

.program-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;

    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);

    opacity: 0;
    transform: translateY(24px);

    animation: programFadeUp 0.6s ease forwards;
    animation-delay: var(--animation-delay);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    border-color: #bbf7d0;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}


/* Logo */

.program-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 190px;
    padding: 8px;

    background: #f8fafc;
}

.program-logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.program-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;

    border-radius: 16px;

    background: #67794F;
    color: #ffffff;

    font-size: 28px;
    font-weight: 700;
}


/* Content */

.program-content {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 24px;
}

.program-content h3 {
    margin: 0;

    color: #67794F;

    font-size: 21px;
    line-height: 1.4;
    font-weight: 700;
}

.program-content p {
    display: -webkit-box;
    overflow: hidden;

    margin: 10px 0 0;

    color: #64748b;

    font-size: 14px;
    line-height: 1.7;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}


/* Button */

.program-action {
    margin-top: auto;
    padding-top: 24px;
}

.program-action a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    padding: 11px 18px;

    border-radius: 9px;

    background: #67794F;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.program-action a:hover {
    background: #67794F;
}

.program-action a:active {
    transform: scale(0.98);
}


/* Empty */

.programs-empty {
    grid-column: 1 / -1;

    padding: 40px;

    background: #ffffff;

    border: 1px dashed #cbd5e1;
    border-radius: 16px;

    text-align: center;
}

.programs-empty p {
    margin: 0;

    color: #64748b;
    font-size: 15px;
}


/* Fade Up Animation */

@keyframes programFadeUp {

    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* ===================================================== */
/* RESPONSIVE */
/* ===================================================== */

@media (max-width: 900px) {

    .programs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 640px) {

    .programs-section {
        padding: 64px 0;
    }

    .programs-container {
        padding: 0 16px;
    }

    .programs-header h2 {
        font-size: 30px;
    }

    .programs-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 36px;
    }

    .program-logo {
        height: 170px;
    }

}