/* HERO pengenalan KTAC pada halaman utama — imej WebP responsif */
.section.about {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #101a43;
}

.index-about-hero__media,
.index-about-hero__media img,
.index-about-hero__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.index-about-hero__media {
    z-index: -2;
}

.index-about-hero__media img {
    object-fit: cover;
    object-position: 68% center;
}

.index-about-hero__shade {
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(8, 17, 48, .12) 0%, rgba(8, 17, 48, .22) 50%, rgba(8, 17, 48, .52) 100%),
        linear-gradient(90deg, rgba(8, 17, 48, .42), rgba(8, 17, 48, .06));
}

.section.about .about-copy,
.section.about .benefits {
    position: relative;
    z-index: 1;
}

.section.about .about-copy {
    padding: 26px 22px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 24px;
    background: rgba(8, 17, 48, .68);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .2);
}

.section.about .benefits {
    display: grid;
    gap: 12px;
}

.section.about .benefits article {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 17px;
    background: rgba(8, 17, 48, .64);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .14);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .section.about .about-copy {
        background: rgba(8, 17, 48, .4);
        -webkit-backdrop-filter: blur(13px) saturate(1.08);
        backdrop-filter: blur(13px) saturate(1.08);
    }

    .section.about .benefits article {
        background: rgba(8, 17, 48, .38);
        -webkit-backdrop-filter: blur(11px) saturate(1.08);
        backdrop-filter: blur(11px) saturate(1.08);
    }
}

@media (min-width: 900px) {
    .index-about-hero__media img {
        object-position: center;
    }

    .index-about-hero__shade {
        background:
            linear-gradient(90deg, rgba(11, 22, 56, .38) 0%, rgba(11, 22, 56, .14) 55%, rgba(11, 22, 56, .22) 100%),
            linear-gradient(0deg, rgba(8, 17, 48, .4), transparent 62%);
    }

    .section.about .about-copy {
        padding: 34px;
    }

    .section.about .benefits article {
        padding: 21px 22px;
    }
}

/* =====================================================
   FIX HERO UTAMA - DESKTOP / TV BESAR
   ===================================================== */

@media (min-width: 961px) {

    .hero {
        height: auto !important;
        min-height: calc(100vh - 82px) !important;
        max-height: none !important;

        display: flex;
        align-items: center;

        padding-top: clamp(50px, 6vh, 90px) !important;
        padding-bottom: clamp(50px, 6vh, 90px) !important;

        box-sizing: border-box;
    }

    .hero-content {
        width: min(1050px, 72%) !important;
        max-width: 1050px !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .hero-kicker {
        white-space: nowrap;
    }

    .hero-content > p:not(.hero-kicker) {
        width: 100%;
        max-width: 760px !important;
        font-size: clamp(1rem, 1.15vw, 1.25rem) !important;
        line-height: 1.55 !important;
        margin: 1.4rem 0 1.8rem !important;
    }

    .hero-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 1.5rem;
    }
}

/* =====================================================
   HOMEPAGE - PENGENALAN TVET PENGURUSAN
   ===================================================== */

.hero-program-trigger {
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.home-tvet {
    padding: clamp(1.15rem, 3vw, 2.4rem) var(--pad)
        clamp(4.8rem, 8vw, 7.5rem);
    background: #f1f3f7;
}

.home-tvet__inner {
    width: min(1320px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.home-tvet__kicker {
    margin: 0 0 .45rem;
    color: var(--red);
    font-size: .63rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.home-tvet__kicker--light {
    color: var(--yellow);
}

.home-tvet__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    border-radius: 50%;
    background: var(--navy-dark);
    color: var(--yellow);
}

.home-tvet__icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Kelayakan asas */
.home-eligibility {
    padding: 1.35rem 1rem 1rem;
    border: 1px solid rgba(17, 26, 61, .08);
    border-radius: 1.4rem;
    background: #fff;
    box-shadow: 0 14px 38px rgba(17, 26, 61, .08);
}

.home-eligibility__heading {
    margin-bottom: 1.15rem;
    text-align: center;
}

.home-eligibility__heading h2,
.home-tvet-explain h2,
.home-tvet-management h2 {
    font-size: clamp(1.7rem, 7vw, 2.55rem);
    letter-spacing: -.045em;
    line-height: 1.05;
}

.home-eligibility__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-eligibility__grid article {
    min-width: 0;
    padding: 0 .45rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    border-right: 1px solid var(--line);
    text-align: center;
}

.home-eligibility__grid article:last-child {
    border-right: 0;
}

.home-eligibility__grid strong {
    font-size: clamp(.68rem, 2.8vw, .9rem);
    line-height: 1.3;
}

.home-eligibility__footer {
    margin-top: 1.15rem;
    display: grid;
    gap: .75rem;
}

.home-eligibility__footer p {
    margin: 0;
    color: var(--muted);
    font-size: .72rem;
    text-align: center;
}

.home-tvet__button {
    min-height: 48px;
    padding: .85rem 1.2rem;
    border: 0;
    border-radius: .85rem;
    background: var(--yellow);
    color: var(--navy-dark);
    font-size: .82rem;
    font-weight: 900;
    cursor: pointer;
}

.home-tvet__button:hover {
    filter: brightness(.97);
}

.home-tvet__button:focus-visible,
.hero-program-trigger:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

/* Mesej utama TVET Pengurusan */
.home-tvet-statement {
    overflow: hidden;
    border-radius: 1.45rem;
    background: var(--navy-dark);
    color: #fff;
    box-shadow: 0 18px 44px rgba(17, 26, 61, .18);
}

.home-tvet-statement__media {
    min-height: 150px;
    padding: .65rem .65rem 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .28rem;
}

.home-tvet-statement__media picture {
    min-width: 0;
    overflow: hidden;
    border-radius: .8rem .8rem .25rem .25rem;
}

.home-tvet-statement__media img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
}

.home-tvet-statement__media picture:nth-child(1) img {
    object-position: 52% center;
}

.home-tvet-statement__media picture:nth-child(2) img {
    object-position: 58% center;
}

.home-tvet-statement__media picture:nth-child(3) img {
    object-position: 50% center;
}

.home-tvet-statement__media picture:nth-child(4) img {
    object-position: 54% center;
}

.home-tvet-statement__copy {
    padding: 1.35rem 1.15rem 1.5rem;
    text-align: center;
}

.home-tvet-statement__copy h2 {
    font-size: clamp(1.65rem, 7.2vw, 3.7rem);
    letter-spacing: -.052em;
    line-height: 1.06;
}

.home-tvet-statement__copy h2 em {
    display: inline-block;
    margin-top: .3rem;
    color: var(--yellow);
    font-style: normal;
}

.home-tvet-statement__copy > p:last-child {
    max-width: 710px;
    margin: 1rem auto 0;
    color: rgba(255, 255, 255, .7);
    font-size: .86rem;
    line-height: 1.55;
}

/* Maksud TVET dan fokus pengurusan */
.home-tvet__details {
    display: grid;
    gap: 1rem;
}

.home-tvet-explain,
.home-tvet-management {
    padding: 1.4rem 1rem;
    border: 1px solid rgba(17, 26, 61, .08);
    border-radius: 1.4rem;
}

.home-tvet-explain {
    background: #fff;
}

.home-tvet-management {
    background: #e8ebf1;
}

.home-tvet-explain > header,
.home-tvet-management > header {
    text-align: center;
}

.home-tvet-explain > header > p:last-child {
    max-width: 620px;
    margin: .65rem auto 1.2rem;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.5;
}

.home-tvet-explain__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-tvet-explain__grid article {
    min-width: 0;
    padding: 0 .4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    border-right: 1px solid var(--line);
    text-align: center;
}

.home-tvet-explain__grid article:last-child {
    border-right: 0;
}

.home-tvet-explain__grid .home-tvet__icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    background: #eef1f6;
    color: var(--navy-dark);
}

.home-tvet-explain__grid strong {
    font-size: clamp(.64rem, 2.6vw, .82rem);
    line-height: 1.35;
}

.home-tvet-management__grid {
    margin-top: 1.15rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.home-tvet-management__grid article {
    min-height: 82px;
    padding: .8rem;
    display: grid;
    align-content: center;
    gap: .35rem;
    border: 1px solid rgba(17, 26, 61, .08);
    border-radius: 1rem;
    background: #fff;
    text-align: center;
    box-shadow: 0 8px 20px rgba(17, 26, 61, .06);
}

.home-tvet-management__grid span {
    color: var(--red);
    font-size: .58rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.home-tvet-management__grid strong {
    font-size: .8rem;
}

@media (min-width: 700px) {
    .home-tvet__inner {
        gap: 1.25rem;
    }

    .home-eligibility {
        padding: 2rem;
    }

    .home-eligibility__footer {
        grid-template-columns: 1fr auto;
        align-items: center;
        margin-top: 1.5rem;
    }

    .home-eligibility__footer p {
        text-align: left;
    }

    .home-tvet__button {
        min-width: 190px;
    }

    .home-tvet-statement__media {
        min-height: 260px;
        padding: 1rem 1rem 0;
        gap: .55rem;
    }

    .home-tvet-statement__media img {
        min-height: 260px;
    }

    .home-tvet-statement__copy {
        padding: 2.2rem 2rem 2.5rem;
    }

    .home-tvet-explain,
    .home-tvet-management {
        padding: 2rem;
    }

    .home-tvet-management__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1000px) {
    .home-tvet {
        padding-top: 2.5rem;
    }

    .home-eligibility__grid article {
        flex-direction: row;
        justify-content: center;
        text-align: left;
    }

    .home-tvet__details {
        grid-template-columns: 1.15fr .85fr;
    }

    .home-tvet-explain,
    .home-tvet-management {
        min-height: 270px;
    }

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

@media (max-width: 380px) {
    .home-tvet-statement__copy h2 {
        font-size: 1.48rem;
    }

    .home-tvet__icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .home-tvet__icon svg {
        width: 20px;
        height: 20px;
    }
}
