/* =====================================
   DASHBOARD / BERANDA
===================================== */

/* HERO */

.hero-home {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    background: url('../images/hero-sirnamekar.jpg') center center / cover no-repeat;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(5, 47, 25, .94),
            rgba(11, 87, 47, .78),
            rgba(8, 50, 28, .30)
        );
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;

    padding: 9px 18px;
    margin-bottom: 20px;

    border-radius: 30px;
    border: 1px solid rgba(255,255,255,.30);

    background: rgba(255,255,255,.13);

    font-size: 13px;
    font-weight: 600;
}

.hero-home h1 {
    max-width: 850px;

    font-family: 'Poppins', sans-serif;
    font-size: clamp(43px, 6vw, 73px);
    font-weight: 800;
    line-height: 1.1;
}

.hero-home h1 span {
    color: #ffd06a;
}

.hero-location {
    margin-top: 20px;
    margin-bottom: 12px;

    font-size: 17px;
    font-weight: 600;
}

.hero-description {
    max-width: 700px;

    font-size: 16px;
    line-height: 1.85;

    color: rgba(255,255,255,.85);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 28px;
}

.btn-yellow {
    background: var(--accent);
    color: #173422;
}

.btn-yellow:hover {
    background: white;
    color: var(--primary-dark);
}

.btn-outline-custom {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 13px 25px;

    border: 1px solid rgba(255,255,255,.75);
    border-radius: 9px;

    color: white;

    font-weight: 600;
    text-decoration: none;

    transition: .3s;
}

.btn-outline-custom:hover {
    background: white;
    color: var(--primary-dark);
}


/* =====================================
   STATISTIK
===================================== */

.statistic-wrapper {
    position: relative;
    z-index: 5;

    margin-top: -60px;
}

.stat-card {
    height: 100%;

    display: flex;
    align-items: center;

    gap: 18px;

    padding: 26px;

    background: white;

    border-radius: 17px;
    border: 1px solid rgba(0,0,0,.03);

    box-shadow: var(--shadow);

    transition: .3s;
}

.stat-card:hover {
    transform: translateY(-8px);
}

.stat-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: var(--primary-light);
    color: var(--primary);

    font-size: 26px;
}

.stat-card h3 {
    margin: 0;

    font-family: 'Poppins', sans-serif;
    font-size: 27px;
    font-weight: 700;
}

.stat-card p {
    margin: 3px 0 0;

    color: var(--text);

    font-size: 13px;
}


/* =====================================
   PROFIL SINGKAT
===================================== */

.profile-image-wrapper {
    position: relative;
}

.profile-image {
    width: 100%;
    height: 500px;

    object-fit: cover;

    border-radius: 25px;

    box-shadow: var(--shadow);
}

.profile-small-card {
    position: absolute;

    right: -20px;
    bottom: 28px;

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 18px 22px;

    background: white;

    border-radius: 14px;

    box-shadow: var(--shadow);
}

.profile-small-card i {
    color: var(--primary);

    font-size: 25px;
}

.profile-small-card strong,
.profile-small-card small {
    display: block;
}

.profile-small-card small {
    color: var(--text);
}


/* =====================================
   SAMBUTAN KEPALA DESA
===================================== */

.welcome-card {
    padding: 50px;

    background: white;

    border-radius: 25px;

    box-shadow: var(--shadow);
}

.welcome-photo {
    width: 220px;
    height: 270px;

    margin: 0 auto 20px;

    overflow: hidden;

    border-radius: 18px;

    background: #e8edea;
}

.welcome-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.welcome-card h4 {
    margin-bottom: 3px;

    font-weight: 700;
}

.welcome-card > .row > div:first-child > span {
    color: var(--primary);

    font-weight: 600;
}


/* =====================================
   DUSUN
===================================== */

.dusun-card {
    position: relative;

    height: 100%;

    padding: 32px 27px;

    overflow: hidden;

    background: white;

    border: 1px solid var(--border);
    border-radius: 17px;

    transition: .3s;
}

.dusun-card:hover {
    transform: translateY(-8px);

    border-color: transparent;

    box-shadow: var(--shadow);
}

.dusun-number {
    position: absolute;

    top: 10px;
    right: 16px;

    color: #edf2ef;

    font-size: 48px;
    font-weight: 800;
}

.dusun-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 13px;

    background: var(--primary-light);
    color: var(--primary);

    font-size: 23px;
}

.dusun-card h4 {
    font-size: 18px;
    font-weight: 700;
}

.dusun-card p {
    margin: 0;

    color: var(--text);

    font-size: 14px;
    line-height: 1.7;
}


/* =====================================
   POTENSI DESA
===================================== */

.potential-card {
    height: 100%;

    padding: 31px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 18px;

    transition: .3s;
}

.potential-card:hover {
    transform: translateY(-7px);

    border-color: transparent;

    box-shadow: var(--shadow);
}

.potential-card.featured {
    background:
        linear-gradient(
            145deg,
            var(--primary),
            var(--primary-dark)
        );

    color: white;
}

.potential-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 14px;

    background: var(--primary-light);
    color: var(--primary);

    font-size: 24px;
}

.featured .potential-icon {
    background: rgba(255,255,255,.15);
    color: white;
}

.potential-card h4 {
    font-size: 18px;
    font-weight: 700;
}

.potential-card p {
    margin: 0;

    color: var(--text);

    font-size: 14px;
    line-height: 1.7;
}

.featured p {
    color: rgba(255,255,255,.78);
}


/* =====================================
   PRODUK GULA KELAPA
===================================== */

.product-card {
    padding: 30px;

    overflow: hidden;

    background: white;

    border: 1px solid var(--border);
    border-radius: 25px;

    box-shadow: var(--shadow);
}

.product-card img {
    width: 100%;
    height: 360px;

    object-fit: cover;

    border-radius: 18px;
}

.product-badge {
    display: inline-block;

    margin-bottom: 15px;
    padding: 7px 14px;

    border-radius: 20px;

    background: var(--primary-light);
    color: var(--primary);

    font-size: 12px;
    font-weight: 700;
}

.product-card h3 {
    margin-bottom: 15px;

    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.product-card p {
    color: var(--text);

    line-height: 1.8;
}


/* =====================================
   GIS
===================================== */

.gis-section {
    background: white;
}

.gis-box {
    padding: 58px;

    overflow: hidden;

    border: 1px solid #d6e9de;
    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            #eef9f2,
            #dcefe4
        );
}

.gis-box p {
    max-width: 650px;

    color: var(--text);

    line-height: 1.8;
}

.gis-features {
    display: flex;
    flex-wrap: wrap;

    gap: 15px;

    margin: 20px 0;
}

.gis-features span {
    display: flex;
    align-items: center;

    gap: 8px;

    color: var(--primary-dark);

    font-size: 14px;
    font-weight: 600;
}

.gis-features i {
    color: var(--primary);
}

.gis-decoration {
    width: 260px;
    height: 260px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: white;

    font-size: 100px;

    box-shadow:
        0 30px 60px rgba(23,107,58,.25);
}


/* =====================================
   PEMERINTAHAN PREVIEW
===================================== */

.government-section {
    background:
        linear-gradient(
            135deg,
            #094323,
            #177640
        );
}

.official-card {
    height: 100%;

    padding: 18px;

    background: white;

    border-radius: 18px;

    text-align: center;

    transition: .3s;
}

.official-card:hover {
    transform: translateY(-8px);
}

.official-photo {
    height: 290px;

    margin-bottom: 20px;

    overflow: hidden;

    border-radius: 13px;

    background: #e6ece8;
}

.official-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.official-card span {
    color: var(--primary);

    font-size: 13px;
    font-weight: 700;
}

.official-card h4 {
    margin-top: 7px;

    font-size: 20px;
    font-weight: 700;
}


/* =====================================
   BERITA
===================================== */

.section-header-flex {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 20px;
}

.news-card {
    height: 100%;

    overflow: hidden;

    background: white;

    border: 1px solid var(--border);
    border-radius: 18px;

    transition: .3s;
}

.news-card:hover {
    transform: translateY(-7px);

    box-shadow: var(--shadow);
}

.news-image {
    position: relative;

    height: 230px;

    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: .5s;
}

.news-card:hover .news-image img {
    transform: scale(1.06);
}

.news-image span {
    position: absolute;

    left: 15px;
    bottom: 15px;

    padding: 6px 12px;

    border-radius: 20px;

    background: var(--primary);
    color: white;

    font-size: 11px;
    font-weight: 700;
}

.news-content {
    padding: 24px;
}

.news-content small {
    color: #879189;
}

.news-content h4 {
    margin-top: 12px;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.news-content p {
    color: var(--text);

    font-size: 14px;
    line-height: 1.7;
}

.news-content a {
    color: var(--primary);

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;
}


/* =====================================
   AGENDA
===================================== */

.agenda-card {
    display: flex;
    align-items: center;

    gap: 20px;

    padding: 22px;
    margin-bottom: 18px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 15px;

    transition: .3s;
}

.agenda-card:hover {
    box-shadow: var(--shadow);
}

.agenda-date {
    width: 72px;
    min-width: 72px;

    padding: 12px 5px;

    background: var(--primary);
    color: white;

    border-radius: 11px;

    text-align: center;
}

.agenda-date strong {
    display: block;

    font-size: 22px;
}

.agenda-date span {
    font-size: 11px;
}

.agenda-card h5 {
    margin-bottom: 5px;

    font-weight: 700;
}

.agenda-card p {
    margin: 0;

    color: var(--text);

    font-size: 14px;
}


/* =====================================
   PENGUMUMAN
===================================== */

.announcement-card {
    display: flex;
    align-items: flex-start;

    gap: 18px;

    padding: 24px;
    margin-bottom: 18px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 15px;
}

.announcement-card > i {
    width: 50px;
    height: 50px;
    min-width: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: var(--primary-light);
    color: var(--primary);

    font-size: 22px;
}

.announcement-card h5 {
    font-weight: 700;
}

.announcement-card p {
    margin: 0;

    color: var(--text);

    font-size: 14px;
    line-height: 1.7;
}


/* =====================================
   GALERI
===================================== */

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}

.gallery-item {
    position: relative;

    height: 250px;

    overflow: hidden;

    border-radius: 16px;
}

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: .5s;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;

    background: rgba(9,74,38,.60);
    color: white;

    font-size: 35px;

    transition: .3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}


/* =====================================
   KONTAK CTA
===================================== */

.contact-section {
    padding: 30px 0 90px;
}

.contact-box {
    padding: 55px;

    border-radius: 25px;

    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );

    color: white;
}

.contact-box h2 {
    font-family: 'Poppins', sans-serif;

    font-size: 38px;
    font-weight: 700;
}

.contact-box p {
    max-width: 650px;

    color: rgba(255,255,255,.78);
}

.contact-actions {
    display: flex;
    flex-direction: column;

    gap: 13px;
}

.btn-contact-light,
.btn-contact-outline {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 14px 20px;

    border-radius: 9px;

    font-weight: 700;
    text-decoration: none;

    transition: .3s;
}

.btn-contact-light {
    background: white;
    color: var(--primary-dark);
}

.btn-contact-outline {
    border: 1px solid rgba(255,255,255,.7);

    color: white;
}

.btn-contact-outline:hover {
    background: white;
    color: var(--primary-dark);
}


/* =====================================
   RESPONSIVE DASHBOARD
===================================== */

@media (max-width: 991px) {

    .hero-home {
        min-height: 620px;
    }

    .statistic-wrapper {
        margin-top: -35px;
    }

    .profile-small-card {
        right: 15px;
    }

    .gallery-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .section-header-flex {
        align-items: flex-start;
        flex-direction: column;
    }

}


@media (max-width: 576px) {

    .hero-home {
        min-height: 650px;
    }

    .hero-home h1 {
        font-size: 39px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons a {
        width: 100%;
    }

    .stat-card {
        display: block;

        padding: 18px;

        text-align: center;
    }

    .stat-icon {
        margin: 0 auto 12px;
    }

    .stat-card h3 {
        font-size: 21px;
    }

    .profile-image {
        height: 350px;
    }

    .profile-small-card {
        position: relative;

        right: auto;
        bottom: auto;

        margin: -35px 18px 0;
    }

    .welcome-card {
        padding: 30px 22px;
    }

    .product-card {
        padding: 18px;
    }

    .product-card img {
        height: 270px;
    }

    .gis-box {
        padding: 30px 22px;
    }

    .gis-decoration {
        width: 180px;
        height: 180px;

        margin-top: 35px;

        font-size: 70px;
    }

    .gallery-grid {
        grid-template-columns:
            1fr;
    }

    .gallery-item {
        height: 230px;
    }

    .contact-box {
        padding: 35px 25px;
    }

    .contact-box h2 {
        font-size: 29px;
    }

}