/* =========================================================
   HOMEPAGE
   Maahad Daarul Azhar
========================================================= */

.home-page {
    --home-navy: #13294B;
    --home-blue: #1E5EFF;
    --home-blue-dark: #1748C8;
    --home-gold: #C8A650;
    --home-white: #FFFFFF;
    --home-grey: #F6F8FB;
    --home-text: #24344D;
    --home-muted: #64748B;
    --home-border: #E4EAF2;

    width: 100%;
    min-height: 100vh;

    margin: 0;
    padding: 0;

    background: var(--home-white);

    color: var(--home-text);

    font-family:
        "Plus Jakarta Sans",
        "Avenir Next",
        "Century Gothic",
        Arial,
        sans-serif;

    box-sizing: border-box;

    overflow-x: hidden;
}

.home-page *,
.home-page *::before,
.home-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   CONTAINER
========================================================= */

.home-container {
    width: min(1180px, calc(100% - 48px));

    margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.home-hero {
    position: relative;

    min-height: 680px;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(30, 94, 255, .18),
            transparent 32%
        ),
        radial-gradient(
            circle at 15% 85%,
            rgba(200, 166, 80, .10),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #0D1D35 0%,
            #13294B 48%,
            #183968 100%
        );

    overflow: hidden;
}


/* Decorative glow */

.home-hero::before {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    right: -180px;
    top: -180px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.08);

    box-shadow:
        0 0 0 70px rgba(255,255,255,.015),
        0 0 0 140px rgba(255,255,255,.01);

    pointer-events: none;
}

.home-hero::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    left: -170px;
    bottom: -170px;

    border-radius: 50%;

    border: 1px solid rgba(200,166,80,.15);

    pointer-events: none;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.home-hero-content {
    position: relative;

    z-index: 2;

    width: 680px;
    max-width: 100%;

    padding: 90px 0;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 20px;

    color: #DCCB94;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2.2px;
}

.home-eyebrow::before {
    content: "";

    width: 28px;
    height: 1px;

    background: var(--home-gold);
}


.home-hero h1 {
    margin: 0;

    color: var(--home-white);

    font-size: clamp(48px, 6vw, 76px);

    font-weight: 300;

    line-height: 1.04;

    letter-spacing: -2.8px;
}

.home-hero h1 span {
    color: #DCCB94;

    font-weight: 500;
}


.home-hero p {
    max-width: 590px;

    margin: 28px 0 0;

    color: rgba(255,255,255,.72);

    font-size: 16px;

    font-weight: 400;

    line-height: 1.8;
}




/* =========================================================
   GENERAL SECTION
========================================================= */

.home-section {
    padding: 105px 0;
}

.home-about {
    background: #fff;
}

.home-programs {
    background: var(--home-grey);
}


.home-section-heading {
    margin-bottom: 45px;
}

.home-section-heading > span {
    display: block;

    margin-bottom: 9px;

    color: var(--home-blue);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.8px;
}

.home-section-heading h2 {
    margin: 0;

    color: var(--home-navy);

    font-size: 34px;

    font-weight: 600;

    line-height: 1.2;

    letter-spacing: -.8px;
}


/* =========================================================
   ABOUT
========================================================= */

.home-about-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(320px, .75fr);

    gap: 80px;

    align-items: center;
}

.home-about-grid > div:first-child {
    max-width: 680px;
}

.home-about-grid p {
    margin: 0 0 20px;

    color: var(--home-muted);

    font-size: 14px;

    line-height: 1.9;
}

.home-about-grid p:last-child {
    margin-bottom: 0;
}


/* About card */

.home-about-card {
    position: relative;

    padding: 34px;

    background: #fff;

    border: 1px solid var(--home-border);

    border-radius: 16px;

    box-shadow:
        0 16px 40px rgba(19,41,75,.07);

    overflow: hidden;
}

.home-about-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 4px;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            var(--home-blue),
            var(--home-gold)
        );
}

.home-about-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    margin-bottom: 22px;

    border-radius: 13px;

    background: #F0F5FF;

    color: var(--home-navy);

    font-size: 18px;

    font-weight: 700;
}

.home-about-card h3 {
    margin: 0 0 12px;

    color: var(--home-navy);

    font-size: 17px;

    font-weight: 700;

    line-height: 1.4;
}

.home-about-card p {
    margin: 0;

    color: var(--home-muted);

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   PROGRAM GRID
========================================================= */

.home-program-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.home-program-card {
    position: relative;

    min-height: 255px;

    padding: 30px;

    background: #fff;

    border: 1px solid var(--home-border);

    border-radius: 15px;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.home-program-card:hover {
    transform: translateY(-5px);

    border-color: rgba(30,94,255,.25);

    box-shadow:
        0 18px 40px rgba(19,41,75,.08);
}


.home-program-number {
    margin-bottom: 45px;

    color: var(--home-gold);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1px;
}

.home-program-card h3 {
    margin: 0 0 12px;

    color: var(--home-navy);

    font-size: 17px;

    font-weight: 700;
}

.home-program-card p {
    margin: 0;

    color: var(--home-muted);

    font-size: 13px;

    line-height: 1.75;
}


/* =========================================================
   STAFF PORTAL
========================================================= */

.home-staff {
    padding: 85px 0;

    background: #fff;
}

.home-staff-card {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    padding: 48px 52px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(30,94,255,.22),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #13294B,
            #183968
        );

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 20px 45px rgba(19,41,75,.16);
}

.home-staff-card::before {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    right: -100px;
    bottom: -110px;

    border-radius: 50%;

    border: 1px solid rgba(200,166,80,.20);
}

.home-staff-card > div {
    position: relative;

    z-index: 1;
}

.home-staff-card span {
    display: block;

    margin-bottom: 8px;

    color: #DCCB94;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.6px;
}

.home-staff-card h2 {
    margin: 0 0 9px;

    color: #fff;

    font-size: 29px;

    font-weight: 600;

    letter-spacing: -.5px;
}

.home-staff-card p {
    max-width: 560px;

    margin: 0;

    color: rgba(255,255,255,.66);

    font-size: 13px;

    line-height: 1.7;
}




/* =========================================================
   FOOTER
========================================================= */

.home-footer {
    padding: 26px 0;

    background: #0D1D35;

    border-top: 1px solid rgba(255,255,255,.06);
}

.home-footer p {
    margin: 0;

    color: rgba(255,255,255,.48);

    font-size: 11px;

    line-height: 1.5;
}
/* =========================================================
   HOMEPAGE — BOLD LIGHT BUTTON SYSTEM
========================================================= */

.home-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 42px;
    flex-wrap: wrap;
}


/* ---------------------------------------------------------
   BASE
--------------------------------------------------------- */

.home-button {
    height: 58px;
    min-width: 190px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 28px;
    box-sizing: border-box;

    border-radius: 12px;

    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;

    line-height: 1;
    white-space: nowrap;
    text-decoration: none;

    /* SOLID LIGHT */
    background: #F8FAFC;

    color: #13294B;

    border: 1px solid #E2E8F0;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.12);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


/* ---------------------------------------------------------
   SEMUA BUTTON — SAMA
--------------------------------------------------------- */

.home-button-primary,
.home-button-registration,
.home-button-parent,
.home-button-secondary {

    background: #F8FAFC;

    color: #13294B;

    border-color: #E2E8F0;
}


/* ---------------------------------------------------------
   HOVER
--------------------------------------------------------- */

.home-button:hover {

    background: #FFFFFF;

    border-color: #CBD5E1;

    color: #13294B;

    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.16);
}


/* ---------------------------------------------------------
   ACTIVE
--------------------------------------------------------- */

.home-button:active {

    transform: translateY(0);

    background: #F1F5F9;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.10);
}


/* ---------------------------------------------------------
   STAFF BUTTON — SECTION BAWAH
--------------------------------------------------------- */

.home-button-staff {

    background: #F8FAFC;

    color: #13294B;

    border: 1px solid #E2E8F0;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.12);
}


.home-button-staff:hover {

    background: #FFFFFF;

    border-color: #CBD5E1;

    color: #13294B;

    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.16);
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 960px) {

    .home-hero {
        min-height: 600px;
    }

    .home-about-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .home-about-grid > div:first-child {
        max-width: 100%;
    }

    .home-program-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */




/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .home-container {
        width: calc(100% - 28px);
    }

    .home-hero {
        min-height: 580px;
    }

    .home-hero h1 {
        font-size: 40px;

        letter-spacing: -1.5px;
    }

    .home-hero p {
        font-size: 12px;
    }

    .home-section {
        padding: 62px 0;
    }

    .home-section-heading h2 {
        font-size: 25px;
    }

    .home-about-card {
        padding: 23px;
    }

    .home-about-card h3 {
        font-size: 16px;
    }

    .home-program-card {
        padding: 23px;
    }

    .home-staff-card {
        padding: 28px 22px;
    }

    .home-button-staff {
        width: 100%;
    }

}/* =========================================================
   LOGIN ALERT
========================================================= */

.login-alert {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(10, 20, 35, 0.48);
    backdrop-filter: blur(4px);
}

.login-alert__box {
    width: min(420px, 100%);

    display: flex;
    align-items: center;
    gap: 15px;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #e5eaf1;
    border-radius: 16px;

    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.18);

    animation: loginAlertIn .2s ease-out;
}

.login-alert__icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff3f3;
    color: #dc2626;

    font-size: 20px;
    font-weight: 800;
}

.login-alert__content {
    flex: 1;
    min-width: 0;
}

.login-alert__title {
    margin-bottom: 4px;

    color: #13294B;

    font-size: 15px;
    font-weight: 700;
}

.login-alert__message {
    color: #64748B;

    font-size: 13px;
    line-height: 1.5;
}

.login-alert__close {
    min-width: 58px;
    height: 36px;

    padding: 0 14px;

    border: 0;
    border-radius: 8px;

    background: #1E5EFF;
    color: #ffffff;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .18s ease,
        transform .18s ease;
}

.login-alert__close:hover {
    background: #1748C8;
}

.login-alert__close:active {
    transform: scale(.97);
}

@keyframes loginAlertIn {

    from {
        opacity: 0;
        transform: translateY(-8px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}
/* =========================================================
   MOBILE — MAX WIDTH 768PX
========================================================= */

@media (max-width: 768px) {

    /* -----------------------------------------------------
       CONTAINER
    ----------------------------------------------------- */

    .home-container {
        width: min(
            100% - 32px,
            680px
        );
    }


    /* -----------------------------------------------------
       HERO
    ----------------------------------------------------- */

    .home-hero {
        min-height: 610px;
        align-items: center;
    }

    .home-hero-content {
        padding: 75px 0;
    }

    .home-eyebrow {
        margin-bottom: 16px;
        font-size: 9px;
        letter-spacing: 1.7px;
    }

    .home-eyebrow::before {
        width: 22px;
    }

    .home-hero h1 {
        font-size: 46px;
        line-height: 1.06;
        letter-spacing: -1.8px;
    }

    .home-hero p {
        margin-top: 21px;
        font-size: 13px;
        line-height: 1.75;
    }


    /* -----------------------------------------------------
       HERO BUTTONS
    ----------------------------------------------------- */

    .home-hero-actions {
        width: 100%;

        flex-direction: column;
        align-items: stretch;

        gap: 9px;

        margin-top: 27px;
    }

    
    /* -----------------------------------------------------
       SECTIONS
    ----------------------------------------------------- */

    .home-section {
        padding: 72px 0;
    }

    .home-section-heading {
        margin-bottom: 30px;
    }

    .home-section-heading > span {
        font-size: 9px;
    }

    .home-section-heading h2 {
        font-size: 27px;
    }


    /* -----------------------------------------------------
       ABOUT
    ----------------------------------------------------- */

    .home-about-grid {
        gap: 30px;
    }

    .home-about-grid p {
        font-size: 13px;
        line-height: 1.8;
    }

    .home-about-card {
        padding: 26px;
    }


    /* -----------------------------------------------------
       PROGRAM
    ----------------------------------------------------- */

    .home-program-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .home-program-card {
        min-height: auto;
        padding: 25px;
    }

    .home-program-number {
        margin-bottom: 30px;
    }


    /* -----------------------------------------------------
       STAFF
    ----------------------------------------------------- */

    .home-staff {
        padding: 60px 0;
    }

    .home-staff-card {
        flex-direction: column;
        align-items: flex-start;

        gap: 28px;

        padding: 32px 27px;

        border-radius: 15px;
    }

    .home-staff-card h2 {
        font-size: 26px;
    }

    .home-staff-card p {
        font-size: 12px;
    }

   


    /* -----------------------------------------------------
       LOGIN ALERT
    ----------------------------------------------------- */

    .login-alert {
        padding: 16px;
    }

    .login-alert__box {
        padding: 17px;

        border-radius: 14px;

        gap: 12px;
    }

    .login-alert__icon {
        width: 38px;
        height: 38px;

        flex-basis: 38px;

        font-size: 18px;
    }

    .login-alert__title {
        font-size: 14px;
    }

    .login-alert__message {
        font-size: 12px;
    }
    
        .home-page .home-button {
        background: #F8FAFC;
        color: #13294B !important;

        border: 1px solid #D8E0EA;

        box-shadow:
            0 4px 12px rgba(15, 35, 65, 0.10);
    }

    .home-page .home-button:hover {
        background: #FFFFFF;
        color: #13294B !important;
    }



    /* -----------------------------------------------------
       FOOTER
    ----------------------------------------------------- */

    .home-footer {
        padding: 22px 0;
    }

    .home-footer p {
        font-size: 10px;
    }


}