/* ================= ROOT COLOR ================= */
:root {
    --navy: #101B4B;
    --soft-navy: #545E85;
    --yellow: #F6D673;
    --gray-light: #E7E7E7;
    --white: #ffffff;
}

/* ================= GLOBAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}



body {
    font-family: 'Segoe UI', sans-serif;
    background: #f5f6f8;
    color: var(--navy);
}

/* ================= GLOBAL BACKGROUND IMAGE ================= */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("bg-login.jpg") center center / cover no-repeat;
    opacity: 0.15; /* 15% */
    z-index: -1;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================= NAVBAR ================= */

.navbar {
    background: var(--navy);
    padding: 18px 8%;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo span {
    font-weight: 600;
    font-size: 18px;
    color: var(--white);
}

/* DESKTOP MENU */
.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: 0.3s ease;
}

.nav-menu a:hover {
    color: var(--yellow);
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--white);
    transition: 0.3s;
}

/* ================= MOBILE MENU ================= */

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 998;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -75%;
    width: 75%;
    height: 100vh;
    background: var(--navy);
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: 0.4s ease;
    z-index: 999;
}

.mobile-menu a {
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
}

.mobile-menu a:hover {
    color: var(--yellow);
}

.mobile-menu.active {
    right: 0;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ================= HEADER SECTION ================= */

.header-section {
    flex: 1; /* isi ruang tengah */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 8%;
}

/* LEFT SIDE */
.header-left {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.brand {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.brand-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--soft-navy);
}

.header-left h1 {
    font-size: clamp(32px, 4vw, 58px);
    line-height: 1.2;
}

/* RIGHT SIDE */
.header-right {
    width: 55%;
    display: flex;
    gap: 25px;
    align-items: stretch;
}

/* CARD */
.benefit-card {
    flex: 1;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    display: flex;

    height: clamp(380px, 65vh, 600px);
}

.benefit-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.benefit-card:hover {
    transform: scale(1.03);
}

/* OVERLAY */
.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(
        to top,
        rgba(16,27,75,0.95),
        rgba(16,27,75,0.4),
        transparent
    );
    color: white;
}

.overlay h3 {
    margin-bottom: 10px;
}

.overlay button {
    padding: 8px 18px;
    border-radius: 30px;
    border: none;
    background: var(--yellow);
    color: var(--navy);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.overlay button:hover {
    background: white;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {

    html, body {
        overflow: hidden;
        height: 100vh;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .header-section {
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        padding: 20px;
        text-align: center;
    }

    .header-left {
        width: 100%;
        text-align: center;
    }

    .brand {
        justify-content: center;
    }

    .header-right {
        width: 100%;
        height: 45vh;
        gap: 12px;
    }

    .benefit-card {
        height: 100%;
    }

}

@media (max-width: 768px) {

    .footer-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

}

@media (max-width: 768px) {

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

}

/* LINK WRAPPER */
.benefit-link {
    flex: 1;
    text-decoration: none;
    display: flex;
}

.benefit-card:active {
    transform: scale(0.97);
}

/* ================= MOBILE CARD CENTER ================= */
@media (max-width: 768px) {

    .overlay {
        top: 0;
        bottom: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;   /* center vertical */
        align-items: center;       /* center horizontal */
        text-align: center;
        background: linear-gradient(
            rgba(16,27,75,0.75),
            rgba(16,27,75,0.75)
        );
    }

    .overlay h3 {
        margin-bottom: 15px;
    }

}

/* ================= FOOTER STABLE ================= */

.footer {
    background: #101B4B;
    padding: 18px 8%;
    margin-top: auto; /* ini kuncinya */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    text-decoration: none;
    color: white;
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: #F6D673;
}