
/* ==========================================
   PROGRAM PENDIDIKAN - MI HUBBUL QUR'AN
========================================== */

.program-section {
    padding: 100px 20px;
    background: #F7FAF8;
}

.program-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* SECTION HEADING */

.program-heading {
    max-width: 680px;
    margin: 0 auto 50px;
    text-align: center;
}

.program-label {
    display: inline-block;
    margin-bottom: 15px;

    color: #F5AD24;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.program-heading h2 {
    margin: 0 0 18px;

    color: #009FAE;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.3;
}

.program-heading h2 span {
    color: #F5AD24;
}

.program-heading p {
    margin: 0;
    color: #6A7C7C;
    font-size: 14px;
    line-height: 1.9;
}

/* PROGRAM GRID */

.program-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

/* CARD */

.program-card {
    overflow: hidden;
    min-width: 0;

    background: #FFFFFF;
    border: 1px solid #E3ECE7;
    border-radius: 18px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(7, 87, 91, 0.12);
}

/* IMAGE */

.program-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #E5F0EB;
}

.program-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.5s ease;
}

.program-card:hover .program-image {
    transform: scale(1.07);
}

/* NUMBER BADGE */

.program-number {
    position: absolute;
    top: 15px;
    left: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    background: #FFFFFF;
    color: #009FAE;
    border-radius: 11px;

    font-size: 13px;
    font-weight: 800;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
}

/* CARD CONTENT */

.program-card-content {
    display: flex;
    flex-direction: column;

    min-height: 230px;
    padding: 24px 20px;
}

.program-card-content h3 {
    margin: 0 0 12px;

    color: #009FAE;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.program-card-content p {
    margin: 0 0 20px;

    color: #718181;
    font-size: 12px;
    line-height: 1.85;
}

/* CARD LINK */

.program-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    align-self: flex-start;

    margin-top: auto;

    color: #F5AD24;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;

    transition:
        gap 0.3s ease,
        color 0.3s ease;
}

.program-link:hover {
    gap: 15px;
    color: #009FAE;
}

/* BOTTOM BUTTON */

.program-bottom {
    display: flex;
    justify-content: center;
    margin-top: 45px;
}

.program-all-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 50px;
    padding: 13px 27px;

    border-radius: 50px;
    background: #009FAE;
    color: #FFFFFF;

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.program-all-button:hover {
    background: #043F43;
    color: #FFFFFF;
    transform: translateY(-3px);
}

/* TABLET */

@media (max-width: 992px) {

    .program-section {
        padding: 75px 20px;
    }

    .program-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .program-image-wrapper {
        height: 220px;
    }

    .program-card-content {
        min-height: 200px;
    }
}

/* MOBILE */

@media (max-width: 600px) {

    .program-section {
        padding: 65px 18px;
    }

    .program-heading {
        margin-bottom: 35px;
    }

    .program-heading h2 {
        font-size: 27px;
    }

    .program-heading p {
        font-size: 13px;
    }

    .program-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .program-image-wrapper {
        height: 230px;
    }

    .program-card-content {
        min-height: auto;
        padding: 22px;
    }

    .program-card-content p {
        margin-bottom: 22px;
    }

    .program-bottom {
        margin-top: 35px;
    }
}

/* ACCESSIBILITY */

.program-link:focus-visible,
.program-all-button:focus-visible {
    outline: 3px solid #D4AF37;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    .program-card,
    .program-image,
    .program-link,
    .program-all-button {
        transition: none;
    }

    .program-card:hover,
    .program-card:hover .program-image,
    .program-all-button:hover {
        transform: none;
    }
}
