/* =========================================================
   WEBSITE DESA MEKARSARI
   STYLE UTAMA
   Cocok dengan index.php + includes/header.php
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: #f7faf8;
    color: #18352b;
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

.container {
    position: relative;
}

/* =========================================================
   NAVBAR
========================================================= */

.site-navbar {
    width: 100%;
    background: #063d2d !important;
    padding: 12px 0;
    position: relative !important;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
}

.site-navbar .navbar-brand {
    color: #fff !important;
    font-size: 19px;
    font-weight: 700;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 9px;
    border-radius: 12px;
    background: rgba(255,255,255,.13);
    color: #fff;
    font-size: 20px;
}

.site-navbar .nav-link {
    color: rgba(255,255,255,.88) !important;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 13px !important;
    margin: 0 2px;
    border-radius: 9px;
    transition: .2s ease;
}

.site-navbar .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,.12);
}

.site-navbar .nav-link.active {
    color: #fff !important;
    background: #087f5b;
    font-weight: 700;
}

.admin-btn {
    background: #198754 !important;
    border-color: #198754 !important;
    color: #fff !important;
    border-radius: 9px !important;
    font-weight: 600;
}

.admin-btn:hover {
    background: #157347 !important;
    border-color: #157347 !important;
}

/* =========================================================
   HERO
========================================================= */

.hero-modern {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(3,48,35,.96) 0%,
            rgba(6,61,45,.90) 42%,
            rgba(8,127,91,.55) 100%
        ),
        url("https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=1800&q=85")
        center center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(255,255,255,.10),
            transparent 35%
        );
    pointer-events: none;
}

.hero-modern .container {
    z-index: 2;
}

.min-vh-75 {
    min-height: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 50px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    color: #d9f8e9;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.hero-title {
    margin: 0;
    max-width: 850px;
    color: #fff;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.hero-title span {
    display: block;
    color: #a8f0ca;
}

.hero-description {
    max-width: 690px;
    margin: 25px 0 30px;
    color: rgba(255,255,255,.88);
    font-size: 17px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-buttons .btn {
    min-height: 50px;
    padding: 12px 22px;
    border-radius: 11px;
    font-weight: 600;
}

.hero-info {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.hero-info > div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.85);
    font-size: 13px;
}

.hero-info i {
    color: #a8f0ca;
    font-size: 18px;
}

/* =========================================================
   STATISTIK
========================================================= */

.statistics-section {
    position: relative;
    margin-top: -55px;
    z-index: 5;
    padding-bottom: 25px;
}

.statistics-box {
    overflow: hidden;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0,0,0,.10);
}

.stat-modern {
    min-height: 125px;
    padding: 25px 22px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-right: 1px solid #edf2ef;
}

.col-lg-3:last-child .stat-modern {
    border-right: none;
}

.stat-modern-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #e7f7ef;
    color: #198754;
    font-size: 23px;
}

.stat-number {
    color: #063d2d;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.stat-label {
    margin-top: 4px;
    color: #748078;
    font-size: 13px;
}

/* =========================================================
   SECTION UMUM
========================================================= */

.section-modern {
    padding: 90px 0;
    background: #f7faf8;
}

.section-eyebrow {
    margin-bottom: 9px;
    color: #198754;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 800;
}

.section-title {
    margin: 0 0 18px;
    color: #14382d;
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.7px;
}

.section-title span {
    color: #198754;
}

.section-description {
    max-width: 680px;
    margin-bottom: 25px;
    color: #68766f;
    font-size: 15px;
    line-height: 1.8;
}

/* =========================================================
   TENTANG DESA
========================================================= */

.feature-list {
    margin-top: 25px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.feature-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    border-radius: 50%;
    background: #dff5e9;
    color: #198754;
}

.feature-item strong {
    display: block;
    margin-bottom: 2px;
    color: #214338;
    font-size: 15px;
}

.feature-item p {
    margin: 0;
    color: #77827c;
    font-size: 13px;
}

/* VISUAL DESA */

.village-showcase {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            #063d2d,
            #087f5b
        );

    box-shadow: 0 25px 60px rgba(0,70,50,.18);
}

.showcase-pattern {
    position: absolute;
    inset: 0;
    opacity: .15;

    background-image:
        radial-gradient(
            circle at 20% 20%,
            #fff 1px,
            transparent 1px
        );

    background-size: 24px 24px;
}

.showcase-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.showcase-icon {
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    border-radius: 25px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    font-size: 43px;
}

.showcase-title {
    margin-bottom: 17px;
    font-size: 30px;
    font-weight: 800;
}

.showcase-location {
    margin: 8px 0;
    color: rgba(255,255,255,.85);
    font-size: 14px;
}

.showcase-location i {
    margin-right: 5px;
    color: #a8f0ca;
}

.showcase-floating {
    position: absolute;
    left: 25px;
    bottom: 25px;
    z-index: 3;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 11px 16px;

    background: #fff;
    color: #155b43;
    border-radius: 12px;

    box-shadow: 0 10px 25px rgba(0,0,0,.15);

    font-size: 13px;
    font-weight: 700;
}

/* =========================================================
   LAYANAN
========================================================= */

.services-modern {
    padding: 90px 0;
    background: #eef8f3;
}

.section-heading {
    max-width: 750px;
    margin: 0 auto;
}

.service-modern {
    height: 100%;
    padding: 27px;
    background: #fff;
    border: 1px solid #e6eee9;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,.045);
    transition: .25s ease;
}

.service-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,.09);
    border-color: #cfe9dc;
}

.service-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.service-icon-modern {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #e7f7ef;
    color: #198754;
    font-size: 25px;
}

.service-arrow {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f2f7f4;
    color: #198754;
}

.service-modern h5 {
    margin-bottom: 10px;
    color: #17392e;
    font-size: 18px;
    font-weight: 700;
}

.service-modern p {
    min-height: 58px;
    margin-bottom: 18px;
    color: #78837d;
    font-size: 13px;
    line-height: 1.7;
}

.service-link {
    color: #198754;
    font-size: 13px;
    font-weight: 700;
}

.service-link i {
    margin-left: 5px;
    transition: .2s;
}

.service-link:hover i {
    margin-left: 9px;
}

/* =========================================================
   BERITA
========================================================= */

.section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.news-modern {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8eee9;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,.045);
    transition: .25s ease;
}

.news-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,.09);
}

.news-modern-image {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #dff3e8;
}

.news-modern-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s ease;
}

.news-modern:hover .news-modern-image img {
    transform: scale(1.05);
}

.news-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #198754;
    font-size: 58px;
}

.news-category {
    position: absolute;
    left: 15px;
    bottom: 15px;
    padding: 6px 11px;
    border-radius: 7px;
    background: #198754;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.news-modern-body {
    padding: 23px;
}

.news-date {
    margin-bottom: 9px;
    color: #198754;
    font-size: 12px;
    font-weight: 600;
}

.news-date i {
    margin-right: 5px;
}

.news-modern-body h5 {
    margin-bottom: 10px;
    color: #183b2f;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}

.news-modern-body p {
    min-height: 50px;
    margin-bottom: 17px;
    color: #78837d;
    font-size: 13px;
    line-height: 1.7;
}

.news-link {
    color: #198754;
    font-size: 13px;
    font-weight: 700;
}

.news-link i {
    margin-left: 5px;
}

/* =========================================================
   AGENDA
========================================================= */

.agenda-modern {
    padding: 90px 0;
    background: #eef8f3;
}

.agenda-modern-card {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e4eee8;
    box-shadow: 0 8px 25px rgba(0,0,0,.04);
    transition: .25s ease;
}

.agenda-modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
}

.agenda-calendar {
    flex: 0 0 65px;
    width: 65px;
    height: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #e7f7ef;
    color: #198754;
}

.agenda-calendar strong {
    font-size: 25px;
    line-height: 1;
}

.agenda-calendar span {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.agenda-info h5 {
    margin-bottom: 8px;
    color: #183b2f;
    font-size: 16px;
    font-weight: 700;
}

.agenda-info > div {
    margin-top: 4px;
    color: #78837d;
    font-size: 12px;
}

.agenda-info i {
    width: 18px;
    color: #198754;
}

/* =========================================================
   EMPTY STATE
========================================================= */

.empty-modern {
    padding: 55px 25px;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    border: 1px dashed #cfded5;
}

.empty-modern > i {
    display: block;
    margin-bottom: 15px;
    color: #198754;
    font-size: 42px;
}

.empty-modern h5 {
    color: #254338;
    font-weight: 700;
}

.empty-modern p {
    margin: 0;
    color: #78837d;
}

/* =========================================================
   CTA
========================================================= */

.cta-modern {
    padding: 75px 0;
    background: #f7faf8;
}

.cta-modern-box {
    position: relative;
    overflow: hidden;
    padding: 50px;
    border-radius: 25px;
    color: #fff;

    background:
        linear-gradient(
            135deg,
            #063d2d,
            #087f5b
        );

    box-shadow: 0 20px 50px rgba(0,70,50,.18);
}

.cta-modern-box::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -100px;
    top: -100px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}

.cta-modern-box .row {
    position: relative;
    z-index: 2;
}

.cta-label {
    margin-bottom: 10px;
    color: #b8f3d5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.cta-modern-box h2 {
    margin-bottom: 12px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;
    font-weight: 800;
}

.cta-modern-box p {
    max-width: 680px;
    margin: 0;
    color: rgba(255,255,255,.82);
}

.cta-modern-box .btn-light {
    color: #07543d;
    border: none;
    border-radius: 11px;
    font-weight: 700;
}

/* =========================================================
   BOOTSTRAP BUTTON
========================================================= */

.btn {
    border-radius: 10px;
    font-weight: 600;
}

.btn-success {
    background: #198754 !important;
    border-color: #198754 !important;
}

.btn-success:hover {
    background: #157347 !important;
    border-color: #157347 !important;
}

.btn-outline-success {
    color: #198754 !important;
    border-color: #198754 !important;
}

.btn-outline-success:hover {
    color: #fff !important;
    background: #198754 !important;
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
    margin-top: 0 !important;
    padding: 55px 0;
    background: #063d2d;
    color: #fff;
}

.footer a {
    color: #ccefe0;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .site-navbar .navbar-collapse {
        margin-top: 12px;
        padding: 12px;
        background: #052f24;
        border-radius: 14px;
    }

    .site-navbar .nav-link {
        margin: 3px 0;
    }

    .admin-btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }

    .hero-modern {
        min-height: 610px;
    }

    .min-vh-75 {
        min-height: 610px;
    }

    .statistics-section {
        margin-top: 30px;
    }

    .stat-modern {
        border-bottom: 1px solid #edf2ef;
    }

    .col-lg-3:nth-child(2) .stat-modern {
        border-right: none;
    }

    .village-showcase {
        min-height: 400px;
    }
}

@media (max-width: 767px) {

    .hero-modern {
        min-height: 650px;
        padding: 60px 0;
    }

    .min-vh-75 {
        min-height: auto;
    }

    .hero-title {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-info {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .statistics-section {
        padding: 20px 12px 0;
    }

    .statistics-box {
        border-radius: 16px;
    }

    .stat-modern {
        border-right: none !important;
        min-height: 105px;
        padding: 20px;
    }

    .section-modern,
    .services-modern,
    .agenda-modern {
        padding: 65px 0;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-heading-row .btn {
        width: 100%;
    }

    .village-showcase {
        min-height: 360px;
    }

    .showcase-title {
        font-size: 25px;
    }

    .cta-modern {
        padding: 55px 0;
    }

    .cta-modern-box {
        padding: 32px 25px;
        border-radius: 20px;
    }

    .cta-modern-box .btn {
        width: 100%;
        margin-top: 10px;
    }

    .agenda-modern-card {
        align-items: flex-start;
    }
}