:root {
    /* Identitas Nagari */
    --primary: #6f8840;
    --primary-dark: #4f6630;
    --secondary: #a7c96a;

    /* Pendukung */
    --dark: #38461f;
    --text: #56653d;
    --text-light: #75845b;

    /* Background */
    --bg: #f8fbf3;
    --white: #ffffff;
    --border: #e3ecd0;

    /* Efek */
    --shadow: 0 12px 30px rgba(92, 113, 52, 0.1);
}

/* HERO */

/* .hero-ppid {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 30px;

    background: linear-gradient(rgba(109, 76, 65, 0.8), rgba(109, 76, 65, 0.8)),
        url("../img/bg-utama.jpg");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
} */

.hero-ppid {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 30px;
    overflow: hidden;
}

/* Background Image */
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

/* Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(92, 113, 52, 0.55); /* warna5 dengan transparansi */
    z-index: 2;
}

/* Content */
.hero-content {
    position: relative;
    z-index: 3;
}

/* .hero-badge {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
} */

/* Badge */
.hero-badge {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 50px;

    background: rgba(255, 255, 255, 0.28); /* warna1 transparan */
    border: 1px solid rgba(255, 255, 255, 0.35); /* warna3 */
    backdrop-filter: blur(10px);

    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hero-title {
    color: var(--white);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-title span {
    color: var(--secondary);
}

.hero-subtitle {
    /* color: #eaeaea; */
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.3;
    max-width: 650px;
    margin: 25px 0 35px;
}

/* BUTTON */

.btn-main {
    display: inline-block;
    /* background: var(--secondary); */
    background: #8fb65d;
    color: var(--white);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-main:hover {
    color: var(--white);
    transform: translateY(-4px);
}

.btn-outline-custom {
    display: inline-block;
    padding: 14px 28px;
    border: 2px solid var(--white);
    color: var(--white);
    border-radius: 50px;
    text-decoration: none;
    margin-left: 10px;
}

.btn-outline-custom:hover {
    background: var(--white);
    color: var(--black);
}

/* SECTION */

.section {
    padding: 90px 0;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
}

.section-subtitle {
    color: #5f6b48;
}

/* STATISTIK */

.floating-stat {
    margin-top: -70px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 20px;
    /* box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08); */
    box-shadow: 0 15px 35px rgba(92, 113, 52, 0.08);
}

.stat-card h2 {
    color: var(--primary);
    font-weight: 800;
}

/* QUICK MENU */

.quick-card {
    background: var(--white);
    border-radius: 20px;
    text-align: center;
    padding: 35px 20px;
    display: block;
    text-decoration: none;
    color: var(--dark);
    height: 100%;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(92, 113, 52, 0.08);
}

.quick-card p {
    color: var(--text-light);
}

.quick-card:hover {
    transform: translateY(-10px);
    color: var(--text);
}

.quick-card i {
    font-size: 45px;
    color: var(--primary);
    margin-bottom: 20px;
}

/* ABOUT */

.about-box {
    padding-left: 30px;
}

.about-label {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

/* ALUR */

.step-card {
    background: var(--white);
    /* border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px var(--shadow); */

    text-align: center;
    border: 1px solid #e5edd5;
    border-radius: 22px;
    padding: 35px;
    box-shadow: 0 12px 28px rgba(92, 113, 52, 0.08);
    transition: 0.3s;
}

.step-number {
    width: 65px;
    height: 65px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto auto 20px;
    font-size: 22px;
    font-weight: 700;
}

/* CTA */

.cta {
    background: linear-gradient(135deg, #7ea24d, #6f8840);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.cta p {
    margin: 20px 0 30px;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .floating-stat {
        margin-top: 40px;
    }

    .about-box {
        padding-left: 0;
        margin-top: 30px;
    }

    .btn-outline-custom {
        margin-left: 0;
        margin-top: 10px;
    }

    .section {
        padding: 60px 0;
    }
}

.page-header {
    padding-top: 100px;
}
.page-content {
    padding: 50px 0 80px;
}

/* =========================
    IMAGE ZOOM
========================= */

.zoom-image {
    cursor: zoom-in;
    transition: 0.3s;
}

.zoom-image:hover {
    transform: scale(1.02);
}

.modal-image {
    width: 100%;
    border-radius: 20px;
}

.image-modal .modal-content {
    background: transparent;
    border: none;
}

.image-modal .btn-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--white);
    opacity: 1;
    border-radius: 50%;
    padding: 10px;
    z-index: 99;
}

/* navbar */
.navbar-ppid {
    background: #789548;
    backdrop-filter: blur(12px);
    padding: 25px 0;
    transition: all 0.4s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar-ppid.scrolled {
    padding: 10px 0;
    background: #6f8840;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

/* LOGO */

.logo-ppid {
    gap: 5px;
}

.logo-img {
    width: 60px;
    height: 60px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.logo-img img {
    width: auto;
    height: 100%;
    object-fit: cover;
}

.navbar-ppid.scrolled .logo-img {
    width: 45px;
    height: 45px;
}

.logo-text h5 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.logo-text span {
    font-size: 14px;
    color: var(--white);
}

/* MENU */

.navbar-nav {
    gap: 3px;
}

.nav-item {
    color: var(--white) !important;
}

.nav-link {
    color: var(--white) !important;
    /* font-weight: 500;
    font-size: 1rem; */
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 5px 8px !important;
    border-radius: 0 10px 0 10px;
    transition: 0.3s;
}

.nav-link:hover {
    background: var(--bg);
    color: var(--dark) !important;
}

.nav-link.active {
    background: rgba(167, 201, 106, 0.35);
    color: var(--white) !important;
}

/* =========================================
    DROPDOWN MODERN CLEAN
========================================= */

.navbar .dropdown-menu {
    border: none;
    border-radius: 0 20px 0 20px;
    padding: 12px;
    min-width: 260px;
    margin-top: 14px;
    background: var(--white);
    box-shadow: 0 10px 35px rgba(92, 113, 52, 0.12);
    overflow: hidden;
}

/* GARIS AKSEN */

.navbar .dropdown-menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
}

/* ITEM */

.navbar .dropdown-item {
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.25s ease;
}

/* HOVER */

.navbar .dropdown-item:hover {
    background: rgba(122, 148, 70, 0.12);
    color: var(--dark);
    transform: translateX(4px);
}

/* ACTIVE */

.navbar .dropdown-item:active {
    background: rgba(92, 113, 52, 0.15);
    color: var(--primary);
}

/* ICON DROPDOWN */

.navbar .dropdown-toggle::after {
    margin-left: 8px;
    transition: 0.3s ease;
}

/* ROTATE */

.navbar .dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* DESKTOP ANIMATION */

@media (min-width: 992px) {
    .navbar .dropdown-menu {
        display: block;

        opacity: 0;

        visibility: hidden;

        transform: translateY(10px);

        transition: all 0.25s ease;

        pointer-events: none;
    }

    .navbar .dropdown:hover .dropdown-menu {
        opacity: 1;

        visibility: visible;

        transform: translateY(0);

        pointer-events: auto;
    }
}

/* MOBILE */

@media (max-width: 991px) {
    .navbar .dropdown-menu {
        box-shadow: none;

        background: #f8fafc;

        margin-top: 8px;

        border-radius: 16px;
    }
}

/* MOBILE */

.navbar-toggler {
    font-size: 24px;
    color: var(--white);
}

@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 20px;
        background: var(--primary);
        padding: 20px;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(92, 113, 52, 0.1);
    }

    .navbar-nav {
        gap: 0;
    }

    .nav-link {
        margin-bottom: 8px;
    }
}

/* =========================
    FOOTER
========================= */

.footer-ppid {
    background: #38461f;
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
}

.footer-link {
    color: #d9e3c3;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: 0.3s;
}

.footer-link:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    padding-top: 20px;
    text-align: center;
    color: #b8c89c;
}

/* =========================
    CARD LAYANAN
========================= */

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-subtitle {
    color: #5f6b48;
    max-width: 700px;
    margin: auto;
}

.card-modern {
    background: var(--white);
    border-radius: 24px;
    padding: 35px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: 0.3s;
    height: 100%;
}

.card-modern:hover {
    transform: translateY(-6px);
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: #f3f8e7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.icon-box i {
    font-size: 28px;
    color: var(--primary);
}

.btn-ppid {
    background: var(--primary);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 14px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    font-weight: 500;
    border: none;
}

.btn-ppid:hover {
    background: var(--primary-dark);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-ppid-kembali {
    background: var(--primary-dark);
    color: var(--dark);
    padding: 14px 30px;
    border-radius: 14px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    font-weight: 500;
    border: none;
}

.btn-ppid-kembali:hover {
    background: var(--primary-dark);
    color: var(--primary);
    transform: translateY(-2px);
}

/* page header */
.page-header {
    position: relative;
    overflow: hidden;

    padding: 140px 0 80px;

    background: linear-gradient(135deg, var(--primary), var(--primary-dark));

    color: var(--dark);
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 18px;

    background: rgba(255, 255, 255, 0.12);

    backdrop-filter: blur(10px);

    border-radius: 50px;

    margin-bottom: 25px;
}

.page-breadcrumb a {
    color: var(--white);
    text-decoration: none;
}

.page-breadcrumb .active {
    font-weight: 600;
    color: var(--secondary);
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--white);
}

.page-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.88);
}

.page-pattern {
    position: absolute;
    inset: 0;

    background-image: radial-gradient(
        rgba(255, 255, 255, 0.08) 2px,
        transparent 2px
    );

    background-size: 30px 30px;

    opacity: 0.5;
}

/* Profil PPID terbaru  */

.page-content {
    padding: 50px 0 80px;
}

/* Khusus halaman Profil PPID */
.card-profil-ppid {
    display: flex;
    flex-direction: column;
}

.ppid-image-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.ppid-image {
    max-width: 350px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.ppid-content {
    width: 100%;
}

/* Profil PPID terbaru  */
