/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #f7f8f5;
    color: #18352b;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    width: 100%;
    min-height: 72px;

    background: #0b6b43;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 7%;

    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.logo-text h2 {
    color: white;
    font-family: "Playfair Display", serif;
    font-size: 19px;
    line-height: 1.1;
}

.logo-text span {
    color: #d5eadf;
    font-size: 10px;
}


/* MENU */

.menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu li a {
    color: white;
    font-size: 13px;
    font-weight: 600;

    padding: 9px 13px;

    border-radius: 8px;

    transition: .3s ease;
}

.menu li a:hover,
.menu li a.active {
    background: rgba(255, 255, 255, .14);
}


/* LOGIN */

.menu .login-btn {
    background: #ffd54f;
    color: #174d37;

    margin-left: 7px;

    padding: 10px 15px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, .12);
}

.menu .login-btn:hover {
    background: #ffe27b;
    transform: translateY(-2px);
}



/* =====================================================
   HERO PROFIL
===================================================== */

.profil-hero {
    min-height: 300px;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;

    background:
        linear-gradient(110deg,
            rgba(5, 49, 31, .97),
            rgba(11, 107, 67, .9),
            rgba(27, 137, 87, .72));
}


/* DEKORASI */

.profil-hero::before {
    content: "";

    position: absolute;

    width: 330px;
    height: 330px;

    border: 1px solid rgba(255, 255, 255, .13);

    border-radius: 50%;

    right: -100px;
    top: -130px;
}

.profil-hero::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    border: 1px solid rgba(255, 255, 255, .1);

    border-radius: 50%;

    left: -80px;
    bottom: -120px;
}


/* HERO CONTENT */

.profil-hero-content {
    width: 86%;
    max-width: 1200px;

    margin: auto;

    position: relative;
    z-index: 2;

    color: white;
}

.hero-label {
    display: inline-flex;

    align-items: center;
    gap: 7px;

    padding: 7px 12px;

    background: rgba(255, 255, 255, .12);

    border: 1px solid rgba(255, 255, 255, .17);

    border-radius: 50px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.4px;

    margin-bottom: 14px;
}

.profil-hero-content h1 {
    font-family: "Playfair Display", serif;

    font-size: clamp(34px, 5vw, 58px);

    line-height: 1.1;

    margin-bottom: 13px;
}

.profil-hero-content h1 span {
    color: #ffd54f;
}

.profil-hero-content p {
    max-width: 620px;

    color: #e5f2ec;

    font-size: 14px;

    line-height: 1.7;
}



/* =====================================================
   CONTAINER
===================================================== */

.profil-container {
    width: 86%;
    max-width: 1200px;

    margin: auto;
}



/* =====================================================
   SECTION
===================================================== */

.profil-section {
    padding: 55px 0 10px;
}


/* SECTION HEADING */

.section-heading {
    margin-bottom: 25px;
}

.section-label {
    display: inline-flex;

    align-items: center;
    gap: 7px;

    color: #0b6b43;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;

    margin-bottom: 5px;
}

.section-heading h2 {
    font-family: "Playfair Display", serif;

    color: #173d2e;

    font-size: 30px;

    line-height: 1.2;

    margin-bottom: 6px;
}

.section-heading p {
    color: #6c7d75;

    font-size: 13px;

    max-width: 650px;
}



/* =====================================================
   SEJARAH
===================================================== */

.sejarah-card {
    display: flex;

    align-items: flex-start;

    gap: 20px;

    background: white;

    border: 1px solid #e7eee9;

    border-radius: 18px;

    padding: 25px;

    box-shadow: 0 10px 30px rgba(23, 61, 46, .06);

    transition: .3s ease;
}

.sejarah-card:hover {
    transform: translateY(-3px);

    box-shadow: 0 15px 35px rgba(23, 61, 46, .1);
}

.sejarah-icon {
    min-width: 54px;
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: #e2f3e9;

    color: #0b6b43;

    font-size: 21px;
}

.sejarah-content h3 {
    font-family: "Playfair Display", serif;

    font-size: 21px;

    color: #193e30;

    margin-bottom: 7px;
}

.sejarah-content p {
    color: #687a72;

    font-size: 13px;

    line-height: 1.75;
}

.read-more {
    display: inline-flex;

    align-items: center;
    gap: 7px;

    margin-top: 10px;

    color: #0b6b43;

    font-size: 12px;
    font-weight: 800;

    transition: .3s ease;
}

.read-more:hover {
    color: #075334;
    gap: 10px;
}

.empty-data {
    color: #8a9992 !important;
}



/* =====================================================
   VISI MISI
===================================================== */

.visi-misi-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.visi-card,
.misi-card {
    display: flex;

    align-items: flex-start;

    gap: 18px;

    background: white;

    border-radius: 18px;

    padding: 23px;

    border: 1px solid #e8eee9;

    box-shadow: 0 10px 30px rgba(23, 61, 46, .06);

    transition: .3s ease;
}

.visi-card:hover,
.misi-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 16px 35px rgba(23, 61, 46, .1);
}


/* VISI */

.visi-icon {
    min-width: 50px;
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #e2f3e9;

    color: #0b6b43;

    font-size: 20px;
}


/* MISI */

.misi-icon {
    min-width: 50px;
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #fff5d6;

    color: #c28a00;

    font-size: 20px;
}

.card-label {
    color: #8a9992;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.4px;
}

.visi-card h3,
.misi-card h3 {
    font-family: "Playfair Display", serif;

    font-size: 20px;

    color: #193e30;

    margin: 2px 0 6px;
}

.visi-card p,
.misi-card p {
    color: #687a72;

    font-size: 13px;

    line-height: 1.7;
}

/* =====================================================
   STRUKTUR PEMERINTAHAN
===================================================== */

.struktur-card {
    width: fit-content;
    max-width: 100%;

    margin: 0 auto;

    padding: 10px;

    background: #ffffff;

    border: 1px solid #e8eee9;

    border-radius: 14px;

    text-align: center;

    box-shadow: 0 8px 25px rgba(23, 61, 46, .06);

    overflow: hidden;
}


/* GAMBAR STRUKTUR */

.struktur-card img {
    display: block;

    width: auto;
    height: auto;

    max-width: 750px;
    max-height: 430px;

    margin: 0 auto;

    object-fit: contain;

    border-radius: 9px;

    transition: .3s ease;
}


.struktur-card img:hover {
    transform: scale(1.01);

    box-shadow: 0 6px 18px rgba(0, 0, 0, .10);
}


/* KETERANGAN */

.struktur-note {
    margin-top: 8px;

    color: #8a9992;

    font-size: 10px;
}

.struktur-note i {
    color: #0b6b43;

    margin-right: 4px;
}


/* JIKA DATA KOSONG */

.empty-structure {
    padding: 25px;

    color: #8a9992;
}

.empty-structure i {
    font-size: 26px;

    margin-bottom: 7px;

    color: #b5c2bc;
}

.empty-structure p {
    font-size: 12px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 950px) {

    .struktur-card {
        width: fit-content;
        max-width: 100%;
        padding: 9px;
    }

    .struktur-card img {
        max-width: 680px;
        max-height: 400px;
    }

}


/* =====================================================
   HP
===================================================== */

@media (max-width: 650px) {

    .struktur-card {
        width: 100%;
        padding: 7px;
        border-radius: 12px;
    }

    .struktur-card img {
        width: 100%;
        max-width: 100%;
        max-height: 350px;

        border-radius: 8px;
    }

}

/* =====================================================
   STATISTIK PENDUDUK
===================================================== */

.statistik-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;
}

.stat-card {
    display: flex;

    align-items: center;

    gap: 13px;

    background: white;

    border: 1px solid #e8eee9;

    border-radius: 16px;

    padding: 18px;

    box-shadow: 0 8px 25px rgba(23, 61, 46, .05);

    transition: .3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 14px 30px rgba(23, 61, 46, .1);
}

.stat-icon {
    min-width: 45px;
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #e2f3e9;

    color: #0b6b43;

    border-radius: 13px;

    font-size: 18px;
}

.stat-card strong {
    display: block;

    color: #173d2e;

    font-size: 23px;

    line-height: 1.1;

    font-weight: 800;
}

.stat-card span {
    display: block;

    color: #75847d;

    font-size: 10px;

    margin-top: 3px;
}



/* =====================================================
   PELAYANAN SURAT
===================================================== */

.pelayanan-section {
    padding-bottom: 70px;
}

.surat-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 13px;
}

.surat-card {
    display: flex;

    align-items: center;

    gap: 12px;

    background: white;

    border: 1px solid #e8eee9;

    border-radius: 14px;

    padding: 14px;

    box-shadow: 0 7px 22px rgba(23, 61, 46, .05);

    transition: .3s ease;
}

.surat-card:hover {
    transform: translateY(-3px);

    border-color: #cfe1d7;

    box-shadow: 0 13px 28px rgba(23, 61, 46, .09);
}

.surat-icon {
    min-width: 39px;
    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e2f3e9;

    color: #0b6b43;

    border-radius: 11px;

    font-size: 15px;
}

.surat-card h4 {
    color: #193e30;

    font-size: 12px;

    margin-bottom: 1px;
}

.surat-card span {
    color: #89958f;

    font-size: 9px;
}

.surat-card .arrow {
    margin-left: auto;

    color: #9aaba2;

    font-size: 11px;

    transition: .3s ease;
}

.surat-card:hover .arrow {
    color: #0b6b43;

    transform: translateX(3px);
}

.status-card .surat-icon {
    background: #fff5d6;

    color: #c28a00;
}

/* =====================================================
   FOOTER
===================================================== */

footer {
    background: #123c2d;

    color: white;
}

.footer-container {
    width: 86%;

    max-width: 1200px;

    margin: auto;

    padding: 40px 0 30px;

    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    gap: 35px;
}

.footer-column h3 {
    font-family: "Playfair Display", serif;

    font-size: 16px;

    margin-bottom: 12px;
}

.footer-column ul {
    display: flex;

    flex-direction: column;

    gap: 6px;
}

.footer-column ul li a {
    color: #c5d9d0;

    font-size: 10px;

    transition: .3s ease;
}

.footer-column ul li a:hover {
    color: #ffd54f;

    padding-left: 3px;
}

.footer-column p {
    color: #c5d9d0;

    font-size: 10px;

    margin-bottom: 6px;
}

.footer-column p i {
    width: 16px;

    color: #ffd54f;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);

    text-align: center;

    padding: 13px;
}

.footer-bottom p {
    color: #9fb9ad;

    font-size: 9px;
}

footer span {

    color: #FFD54F;

    font-weight: 600;
}

/* =====================================================
   RESPONSIVE TABLET
===================================================== */

@media (max-width: 950px) {

    .navbar {
        padding: 0 4%;
    }

    .menu {
        gap: 2px;
    }

    .menu li a {
        padding: 8px 8px;

        font-size: 11px;
    }

    .profil-container,
    .profil-hero-content,
    .footer-container {
        width: 90%;
    }

    .statistik-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .surat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

}



/* =====================================================
   RESPONSIVE HP
===================================================== */

@media (max-width: 650px) {

    .navbar {
        min-height: 72px;

        padding: 10px 5%;

        flex-direction: column;

        gap: 10px;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    .logo-text h2 {
        font-size: 17px;
    }

    .logo-text span {
        font-size: 9px;
    }

    .menu {
        flex-wrap: wrap;

        justify-content: center;
    }

    .menu li a {
        font-size: 10px;

        padding: 6px 7px;
    }

    .menu .login-btn {
        margin-left: 0;
    }


    /* HERO */

    .profil-hero {
        min-height: 270px;
    }

    .profil-hero-content h1 {
        font-size: 37px;
    }

    .profil-hero-content p {
        font-size: 12px;
    }


    /* SECTION */

    .profil-section {
        padding-top: 45px;
    }

    .section-heading h2 {
        font-size: 27px;
    }


    /* SEJARAH */

    .sejarah-card {
        flex-direction: column;

        padding: 20px;
    }


    /* VISI MISI */

    .visi-misi-grid {
        grid-template-columns: 1fr;
    }


    /* STRUKTUR */

    .struktur-card {
        padding: 14px;
    }

    .struktur-card img {
        max-width: 100%;

        max-height: 400px;
    }


    /* STATISTIK */

    .statistik-grid {
        grid-template-columns: 1fr 1fr;

        gap: 10px;
    }

    .stat-card {
        padding: 14px;

        gap: 9px;
    }

    .stat-icon {
        min-width: 38px;

        width: 38px;
        height: 38px;

        font-size: 15px;
    }

    .stat-card strong {
        font-size: 19px;
    }


    /* SURAT */

    .surat-grid {
        grid-template-columns: 1fr;
    }


    /* FOOTER */

    .footer-container {
        grid-template-columns: 1fr;

        gap: 22px;

        padding: 35px 0 25px;
    }

    .footer-column h3 {
        font-size: 15px;
    }

    .footer-column ul li a,
    .footer-column p {
        font-size: 9px;
    }

}

/* =====================================================
   NAVBAR RESPONSIVE MOBILE
===================================================== */

/* Tombol menu tidak terlihat di desktop */
.menu-toggle {
    display: none;

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 8px;

    background: transparent;
    color: #087443;

    font-size: 21px;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: 0.2s ease;
}

.menu-toggle:hover {
    background: #e8f5ec;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .navbar {
        position: relative;

        min-height: 70px;

        padding: 10px 18px;

        display: flex;
        align-items: center;

        z-index: 9999;
    }


    /* LOGO */

    .navbar .logo {
        display: flex;
        align-items: center;

        gap: 9px;
    }


    .navbar .logo img {
        width: 42px;
        height: 42px;

        object-fit: contain;
    }


    .navbar .logo-text h2 {
        font-size: 16px;

        margin: 0;
    }


    .navbar .logo-text span {
        font-size: 8px;
    }


    /* TOMBOL HAMBURGER */

    .menu-toggle {
        display: flex;

        margin-left: auto;

        flex-shrink: 0;
    }


    /* NAVIGASI */

    .navbar nav {
        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        background: #ffffff;

        box-shadow:
            0 8px 20px rgba(0, 0, 0, 0.10);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }


    /* MENU TERBUKA */

    .navbar nav.active {
        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }


    /* UL */

    .navbar nav .menu {
        display: flex;

        flex-direction: column;

        width: 100%;

        padding: 7px 0;

        margin: 0;

        gap: 0;
    }


    /* LI */

    .navbar nav .menu li {
        width: 100%;

        list-style: none;
    }


    /* LINK */

    .navbar nav .menu li a {
        display: flex;

        align-items: center;

        width: 100%;

        min-height: 44px;

        padding: 10px 20px;

        box-sizing: border-box;

        color: #123c2d;

        font-size: 12px;

        font-weight: 600;

        text-decoration: none;

        transition: 0.2s ease;
    }


    .navbar nav .menu li a:hover,
    .navbar nav .menu li a.active {
        background: #e8f5ec;

        color: #087443;
    }


    /* LOGIN ADMIN */

    .navbar nav .menu li .login-btn {

        width: calc(100% - 36px);

        min-height: 40px;

        margin: 8px 18px;

        justify-content: center;

        background: #ffd54f;

        color: #123c2d;

        border-radius: 8px;
    }


    .navbar nav .menu li .login-btn:hover {
        background: #f5c933;

        color: #123c2d;
    }


    .navbar nav .menu li .login-btn i {
        margin-right: 7px;
    }

}


/* =====================================================
   HP KECIL
===================================================== */

@media (max-width: 480px) {

    .navbar {
        min-height: 65px;

        padding: 8px 14px;
    }


    .navbar .logo img {
        width: 39px;
        height: 39px;
    }


    .navbar .logo-text h2 {
        font-size: 15px;
    }


    .navbar .logo-text span {
        font-size: 7px;
    }


    .menu-toggle {
        width: 38px;
        height: 38px;

        font-size: 20px;
    }


    .navbar nav {
        top: 65px;
    }


    .navbar nav .menu li a {
        min-height: 42px;

        padding: 9px 17px;

        font-size: 12px;
    }

}