/* =====================================
   SCHOOL ACHIEVEMENTS SECTION
===================================== */

.achievement-section {
    position: relative;
    width: 100%;
    min-height: 370px;
    padding: 65px 20px 50px;

    overflow: hidden;
    isolation: isolate;

    color: var(--white, #ffffff);
    font-family: "Roboto", Arial, sans-serif;
}

/* BACKGROUND IMAGE */

.achievement-bg {
    position: absolute;
    inset: 0;
    z-index: -2;

    background-image: url("/images/school-building.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    transform: scale(1.04);
    transition: transform 8s ease;
}

.achievement-section:hover .achievement-bg {
    transform: scale(1.09);
}

/* GREEN + NAVY OVERLAY */

.achievement-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;

    background: linear-gradient(120deg,
            rgba(7, 91, 53, 0.96),
            rgba(37, 33, 91, 0.88),
            rgba(7, 91, 53, 0.94));
}

/* CONTAINER */

.achievement-container {
    width: min(1128px, 100%);
    margin: 0 auto;
}

/* HEADING */

.achievement-heading {
    text-align: center;
    margin-bottom: 38px;
}

.achievement-heading span {
    display: inline-block;
    margin-bottom: 8px;

    color: var(--yellow, #F5D51B);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.achievement-heading h2 {
    margin: 0;

    color: var(--white, #ffffff);
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.25;
}

/* STATISTICS GRID */

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* EACH ITEM */

.achievement-item {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 10px 15px 20px;
    text-align: center;

    transition: transform 0.35s ease;
}

.achievement-item:hover {
    transform: translateY(-8px);
}

/* ICON */

.achievement-icon {
    width: 65px;
    height: 65px;
    margin-bottom: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--yellow, #F5D51B);
}

.achievement-icon svg {
    width: 55px;
    height: 55px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform 0.35s ease;
}

.achievement-item:hover .achievement-icon svg {
    transform: scale(1.12) rotate(-4deg);
}

/* NUMBER */

.achievement-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    margin-bottom: 8px;

    color: var(--white, #ffffff);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
}

.achievement-plus {
    color: var(--yellow, #F5D51B);
    font-size: 30px;
    font-weight: 800;
}

/* LABEL */

.achievement-item p {
    margin: 0;

    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

/* FOOTER */

.achievement-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    margin-top: 28px;
    text-align: center;
}

.achievement-footer p {
    margin: 0;

    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.8;
}

.achievement-footer strong {
    color: var(--yellow, #F5D51B);
    font-weight: 700;
}

.achievement-line {
    width: 45px;
    height: 1px;

    background: rgba(245, 213, 27, 0.65);
}

/* =====================================
   TABLET
===================================== */

@media (max-width: 768px) {

    .achievement-section {
        padding: 55px 20px 40px;
    }

    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 10px;
    }

    .achievement-item {
        padding: 15px 10px;
    }

    .achievement-number {
        font-size: 30px;
    }

    .achievement-footer {
        margin-top: 25px;
    }
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 480px) {

    .achievement-section {
        padding: 45px 15px 35px;
    }

    .achievement-heading {
        margin-bottom: 25px;
    }

    .achievement-heading h2 {
        font-size: 26px;
    }

    .achievement-grid {
        gap: 12px 5px;
    }

    .achievement-icon {
        width: 52px;
        height: 52px;
    }

    .achievement-icon svg {
        width: 45px;
        height: 45px;
    }

    .achievement-number {
        font-size: 28px;
    }

    .achievement-plus {
        font-size: 25px;
    }

    .achievement-item p {
        font-size: 13px;
    }

    .achievement-footer {
        gap: 10px;
    }

    .achievement-line {
        width: 20px;
        flex-shrink: 0;
    }

    .achievement-footer p {
        font-size: 12px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .achievement-bg,
    .achievement-item,
    .achievement-icon svg {
        transition: none;
    }
}