* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7f5;
    color: #333;
}


/* ================= HEADER ================= */

.header {
    width: 100%;
    min-height: 145px;
    padding: 22px 8%;
    background: linear-gradient(135deg, #14532D, #1f7041);
    color: white;

    display: flex;
    align-items: center;
    gap: 22px;
}

.header .logo {
    width: 90px;
    height: 90px;
    min-width: 90px;

    background: white;
    border-radius: 16px;
    padding: 6px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.header .logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    border-radius: 10px;
}

.header-info {
    flex: 1;
}

.header-info h1 {
    margin: 0 0 7px;
    font-size: 27px;
    letter-spacing: 1px;
}

.header-info .subtitle {
    margin: 0 0 8px;
    font-size: 15px;
    opacity: 0.9;
}

.header-info .address {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.85;
}


/* ================= NAVBAR ================= */

.nav {
    width: 100%;
    min-height: 58px;

    background: white;
    padding: 0 8%;

    display: flex;
    align-items: center;
    gap: 5px;

    box-shadow: 0 3px 12px rgba(0,0,0,0.06);

    position: relative;
    z-index: 10;
}

.nav a {
    color: #333;
    text-decoration: none;

    padding: 11px 15px;
    border-radius: 9px;

    font-size: 14px;
    font-weight: bold;

    transition: 0.2s;
}

.nav a:hover {
    background: #e8f5ec;
    color: #14532D;
    transform: translateY(-1px);
}


/* ================= HERO ================= */

.hero {
    width: 84%;
    min-height: 350px;

    margin: 38px auto;

    padding: 55px 65px;

    background:
        radial-gradient(circle at 85% 30%, rgba(255,255,255,0.12), transparent 25%),
        linear-gradient(135deg, #14532D, #267a47);

    border-radius: 25px;

    color: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

    overflow: hidden;

    box-shadow: 0 15px 35px rgba(20,83,45,0.18);

    position: relative;
}

.hero-content {
    max-width: 680px;
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-block;

    font-size: 12px;
    font-weight: bold;

    letter-spacing: 2px;

    opacity: 0.85;

    background: rgba(255,255,255,0.12);

    padding: 8px 13px;

    border-radius: 20px;
}

.hero h2 {
    margin: 18px 0 14px;

    font-size: 42px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 620px;
}

.hero-buttons {
    margin-top: 27px;

    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-block;

    padding: 13px 22px;

    border-radius: 10px;

    text-decoration: none;
    font-weight: bold;

    transition: 0.2s;
}

.btn-primary {
    background: white;
    color: #14532D;

    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-secondary {
    border: 1px solid rgba(255,255,255,0.7);
    color: white;
    background: rgba(255,255,255,0.04);
}

.btn-primary:hover {
    background: #e8f5ec;
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}


/* ================= HERO ICON ================= */

.hero-icon {
    width: 190px;
    height: 190px;

    border-radius: 50%;

    background: rgba(255,255,255,0.08);

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 20px;

    flex-shrink: 0;
}

.hero-book {
    font-size: 105px;

    opacity: 0.85;

    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.15));
}


/* ================= CONTAINER ================= */

.container {
    width: 84%;
    max-width: 1250px;

    margin: 65px auto;
}


/* ================= SECTION TITLE ================= */

.section-title {
    text-align: center;
    margin-bottom: 32px;
}

.section-title span {
    display: inline-block;

    color: #1f7041;

    font-size: 12px;
    font-weight: bold;

    letter-spacing: 2px;

    margin-bottom: 3px;
}

.section-title h2 {
    margin: 10px 0;

    font-size: 30px;

    color: #14532D;
}

.section-title p {
    color: #777;

    line-height: 1.6;

    max-width: 700px;

    margin: 0 auto;
}


/* ================= STATISTIK ================= */

.stats {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.stat-card {
    background: white;

    padding: 25px;

    border-radius: 16px;

    display: flex;
    align-items: center;

    gap: 18px;

    box-shadow: 0 5px 20px rgba(0,0,0,0.06);

    border: 1px solid #edf1ee;

    transition: 0.25s;
}

.stat-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 10px 25px rgba(0,0,0,0.09);
}

.stat-icon {
    width: 55px;
    height: 55px;

    border-radius: 14px;

    background: #e8f5ec;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;

    flex-shrink: 0;
}

.stat-card h3 {
    margin: 0 0 6px;

    color: #14532D;

    font-size: 17px;
}

.stat-card p {
    margin: 0;

    color: #777;

    font-size: 14px;

    line-height: 1.5;
}


/* ================= MENU UTAMA ================= */

/* Dua layanan dibuat di tengah */
.menu {
    display: grid;

    grid-template-columns: repeat(2, minmax(280px, 380px));

    justify-content: center;

    gap: 25px;
}

.menu-title {
    margin-top: 80px;
}


/* Kalau ada 3 layanan saat user sudah login,
   card Riwayat berada di tengah */
.menu .card:nth-child(3):last-child {
    grid-column: 1 / -1;

    width: 380px;

    justify-self: center;
}


/* CARD */

.card {
    background: white;

    padding: 30px;

    border-radius: 18px;

    box-shadow: 0 5px 20px rgba(0,0,0,0.06);

    border: 1px solid #edf1ee;

    transition: 0.25s;

    position: relative;

    overflow: hidden;
}

.card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: #1f7041;
}

.card:hover {
    transform: translateY(-6px);

    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.card-icon {
    width: 60px;
    height: 60px;

    border-radius: 15px;

    background: #e8f5ec;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;

    margin-bottom: 18px;
}

.card h3 {
    color: #14532D;

    margin: 0 0 10px;

    font-size: 19px;
}

.card p {
    color: #777;

    line-height: 1.6;

    min-height: 70px;
}

.card a {
    color: #1f7041;

    font-weight: bold;

    text-decoration: none;

    display: inline-block;

    margin-top: 8px;

    transition: 0.2s;
}

.card a:hover {
    color: #14532D;

    transform: translateX(3px);
}


/* ================= INFORMASI ================= */

.info-section {
    margin-top: 75px;

    padding: 35px;

    background: white;

    border-radius: 20px;

    border: 1px solid #edf1ee;

    box-shadow: 0 5px 20px rgba(0,0,0,0.05);

    display: flex;

    align-items: center;

    gap: 25px;
}

.info-icon {
    width: 65px;
    height: 65px;

    border-radius: 16px;

    background: #e8f5ec;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 32px;

    flex-shrink: 0;
}

.info-section span {
    color: #1f7041;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2px;
}

.info-section h2 {
    color: #14532D;

    margin: 8px 0;

    font-size: 24px;
}

.info-section p {
    color: #777;

    line-height: 1.7;

    margin: 0;
}


/* ================= FOOTER ================= */

.footer {
    margin-top: 80px;

    background: #123d25;

    color: white;

    text-align: center;

    padding: 40px 20px;
}

.footer h3 {
    margin: 0 0 10px;

    font-size: 18px;
}

.footer p {
    color: #c9ddd0;

    font-size: 14px;

    margin: 7px 0;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {

    .header {
        padding: 20px 5%;
    }

    .header .logo {
        width: 75px;
        height: 75px;
        min-width: 75px;
    }

    .header-info h1 {
        font-size: 22px;
    }

    .hero {
        width: 90%;
        padding: 45px 40px;
    }

    .hero h2 {
        font-size: 35px;
    }

    .hero-icon {
        width: 145px;
        height: 145px;
    }

    .hero-book {
        font-size: 75px;
    }

    .container {
        width: 90%;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .menu {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
    }

    .menu .card:nth-child(3):last-child {
        width: auto;
    }

}


@media (max-width: 600px) {

    /* HEADER */

    .header {
        min-height: auto;

        padding: 18px 20px;

        gap: 14px;
    }

    .header .logo {
        width: 65px;
        height: 65px;
        min-width: 65px;

        border-radius: 12px;
    }

    .header-info h1 {
        font-size: 17px;
        letter-spacing: 0.5px;
    }

    .header-info .subtitle {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .header-info .address {
        font-size: 10px;
        line-height: 1.4;
    }


    /* NAVBAR */

    .nav {
        padding: 8px 15px;

        flex-wrap: wrap;

        gap: 3px;
    }

    .nav a {
        font-size: 12px;

        padding: 8px 10px;
    }


    /* HERO */

    .hero {
        width: 92%;

        min-height: auto;

        margin: 25px auto;

        padding: 35px 25px;

        border-radius: 20px;
    }

    .hero h2 {
        font-size: 29px;

        margin: 15px 0 12px;
    }

    .hero p {
        font-size: 14px;

        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        text-align: center;
    }

    .hero-icon {
        display: none;
    }


    /* CONTAINER */

    .container {
        width: 92%;

        margin: 45px auto;
    }


    /* SECTION */

    .section-title h2 {
        font-size: 24px;
    }


    /* STAT */

    .stat-card {
        padding: 20px;
    }


    /* MENU */

    .menu-title {
        margin-top: 60px;
    }

    .menu {
        grid-template-columns: 1fr;
    }

    .menu .card:nth-child(3):last-child {
        grid-column: auto;

        width: auto;

        justify-self: stretch;
    }

    .card {
        padding: 25px;
    }


    /* INFORMASI */

    .info-section {
        margin-top: 55px;

        padding: 25px;

        align-items: flex-start;
    }

    .info-icon {
        width: 50px;
        height: 50px;

        font-size: 25px;
    }

    .info-section h2 {
        font-size: 20px;
    }


    /* FOOTER */

    .footer {
        margin-top: 60px;

        padding: 30px 20px;
    }

}