/* =========================================================
   PROGRAM PAGE CSS
========================================================= */


/* ================= MAIN SECTION ================= */

.programs-section {

    font-family:
        "Poppins",
        "Noto Sans Devanagari",
        sans-serif;

}


/* ================= PROGRAM CARD ================= */

.program-card {

    position: relative;

    display: flex;

    flex-direction: column;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 4px 15px rgba(15, 23, 42, 0.05);

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

}


/* ================= CARD HOVER ================= */

.program-card:hover {

    transform: translateY(-7px);

    border-color: #86efac;

    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.10);

}


/* ================= PROGRAM ICON ================= */

.program-icon {

    width: 70px;

    height: 70px;

    margin: 25px 25px 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 18px;

    background: #ecfdf5;

    border: 1px solid #d1fae5;

    font-size: 32px;

    transition:
        transform 0.3s ease,
        background 0.3s ease;

}


/* ================= ICON HOVER ================= */

.program-card:hover .program-icon {

    transform: scale(1.08);

    background: #d1fae5;

}


/* ================= CONTENT ================= */

.program-content {

    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 20px 25px 25px;

}


/* ================= PROGRAM NUMBER ================= */

.program-number {

    display: block;

    color: #059669;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.15em;

    margin-bottom: 8px;

}


/* ================= TITLE ================= */

.program-title {

    color: #1e293b;

    font-size: 21px;

    font-weight: 800;

    line-height: 1.4;

    margin-bottom: 12px;

}


/* ================= DESCRIPTION ================= */

.program-description {

    color: #64748b;

    font-size: 14px;

    line-height: 1.8;

    margin-bottom: 22px;

}


/* ================= BUTTON ================= */

.program-button {

    margin-top: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    padding: 11px 15px;

    border: 1px solid #d1fae5;

    border-radius: 10px;

    background: #f0fdf4;

    color: #047857;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        all 0.25s ease;

}


/* ================= BUTTON HOVER ================= */

.program-button:hover {

    background: #059669;

    border-color: #059669;

    color: #ffffff;

}


/* ================= CTA ================= */

.program-cta {

    margin-top: 45px;

    padding: 25px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #064e3b,
            #047857
        );

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}


/* ================= CTA BUTTON ================= */

.cta-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 12px 20px;

    border-radius: 10px;

    background: #ffffff;

    color: #047857;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;

    transition: all 0.25s ease;

}


.cta-button:hover {

    transform: translateY(-2px);

    background: #ecfdf5;

}


/* ================= MODAL ================= */

.program-modal-box {

    animation:
        programModalOpen
        0.25s
        ease-out;

}


/* ================= MODAL ANIMATION ================= */

@keyframes programModalOpen {

    from {

        opacity: 0;

        transform:
            translateY(20px)
            scale(0.96);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


/* ================= MODAL ICON ================= */

.modal-icon {

    width: 48px;

    height: 48px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: #ecfdf5;

    font-size: 23px;

}


/* ================= CLOSE BUTTON ================= */

.modal-close-button {

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    color: #ffffff;

    font-size: 28px;

    line-height: 1;

    cursor: pointer;

    transition: all 0.2s ease;

}


.modal-close-button:hover {

    background: rgba(255, 255, 255, 0.12);

    color: #a7f3d0;

}


/* ================= MODAL PRIMARY ================= */

.modal-primary-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 11px 18px;

    border-radius: 9px;

    background: #059669;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    transition: all 0.2s ease;

}


.modal-primary-button:hover {

    background: #047857;

}


/* ================= MODAL SECONDARY ================= */

.modal-secondary-button {

    padding: 11px 18px;

    border-radius: 9px;

    border: 1px solid #e2e8f0;

    background: #ffffff;

    color: #475569;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition: all 0.2s ease;

}


.modal-secondary-button:hover {

    background: #f8fafc;

    color: #1e293b;

}


/* ================= TABLET ================= */

@media (max-width: 768px) {

    .program-cta {

        flex-direction: column;

        align-items: flex-start;

    }

    .cta-button {

        width: 100%;

    }

}


/* ================= MOBILE ================= */

@media (max-width: 640px) {

    .program-icon {

        width: 60px;

        height: 60px;

        margin: 20px 20px 0;

        font-size: 27px;

    }


    .program-content {

        padding:
            18px
            20px
            20px;

    }


    .program-title {

        font-size: 19px;

    }


    .program-description {

        font-size: 13px;

    }


    .program-cta {

        padding: 20px;

    }


    .modal-icon {

        width: 42px;

        height: 42px;

        font-size: 20px;

    }

}