/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #173b2a;
    background: #ffffff;
    line-height: 1.6;

    /* Mencegah halaman melebar ke samping */
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e6eee9;
    transition: 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.navbar-content {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-width: 0;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.logo-text strong {
    font-size: 18px;
    color: #075f35;
    line-height: 1.2;
}

.logo-text span {
    font-size: 11px;
    color: #777;
    margin-top: 3px;
}


/* =========================================================
   MENU
========================================================= */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
}

.nav-menu a {
    position: relative;
    padding: 29px 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: 0.3s ease;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #087943;
}

.nav-menu a.active {
    color: #087943;
}

.nav-menu a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 19px;
    height: 2px;
    background: #087943;
    border-radius: 10px;
}


/* =========================================================
   TOMBOL MOBILE
========================================================= */

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 10px;
    background: #087943;
    color: #ffffff;
    font-size: 21px;
    cursor: pointer;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    min-height: 570px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #075f35,
            #087943,
            #0a9b55
        );
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(255,255,255,0.12),
            transparent 35%
        );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 70px;
    padding: 70px 0;
    min-width: 0;
}

.hero-text {
    color: #ffffff;
    min-width: 0;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-label i {
    font-size: 15px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 500;
    margin-bottom: 22px;
}

.hero h1 strong {
    display: block;
    font-weight: 800;
}

.hero p {
    max-width: 620px;
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}


/* =========================================================
   HERO BUTTON
========================================================= */

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 21px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s ease;
}

.btn-primary {
    background: #ffffff;
    color: #087943;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-outline {
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.12);
}


/* =========================================================
   HERO IMAGE
========================================================= */

.hero-image {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0,0,0,0.2);
    min-width: 0;
}

.hero-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}


/* =========================================================
   QUICK INFO
========================================================= */

.quick-info {
    position: relative;
    z-index: 5;
    margin-top: -45px;
    padding-bottom: 50px;
}

.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e6eee9;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    min-width: 0;
}

.quick-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #e9f6ef;
    color: #087943;
    font-size: 19px;
}

.quick-info-item span {
    display: block;
    color: #777;
    font-size: 11px;
    margin-bottom: 3px;
}

.quick-info-item strong {
    display: block;
    color: #173b2a;
    font-size: 13px;
    overflow-wrap: anywhere;
}


/* =========================================================
   SECTION
========================================================= */

.section {
    padding: 90px 0;
    background: #ffffff;
}

.section-light {
    background: #f6faf7;
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-heading > span {
    display: inline-block;
    margin-bottom: 9px;
    color: #087943;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.section-heading h2 {
    margin-bottom: 13px;
    color: #173b2a;
    font-size: 34px;
    line-height: 1.2;
}

.section-heading p {
    color: #68766e;
    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   PROFIL BERANDA
========================================================= */

.profile-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    align-items: center;
    gap: 65px;
    min-width: 0;
}

.profile-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    min-width: 0;
}

.profile-image img {
    width: 100%;
    height: 410px;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 15px;
    border-radius: 9px;
    background: rgba(0, 70, 38, 0.85);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.profile-content {
    min-width: 0;
}

.profile-content .content-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #087943;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.profile-content h3 {
    margin-bottom: 18px;
    color: #173b2a;
    font-size: 29px;
    line-height: 1.3;
}

.profile-content p {
    margin-bottom: 16px;
    color: #68766e;
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}


/* =========================================================
   PROFIL FEATURES
========================================================= */

.profile-features {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 12px;
    margin: 25px 0;
}

.profile-features div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #345443;
    font-size: 13px;
}

.profile-features i {
    color: #087943;
}

.text-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #087943;
    font-size: 14px;
    font-weight: 700;
}

.text-button:hover {
    color: #005b32;
}


/* =========================================================
   POTENSI
========================================================= */

.feature-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}

.feature-card {
    padding: 30px 25px;
    background: #ffffff;
    border: 1px solid #e1ebe5;
    border-radius: 14px;
    transition: 0.3s ease;
    min-width: 0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 12px;
    background: #e8f5ee;
    color: #087943;
    font-size: 22px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: #173b2a;
    font-size: 19px;
}

.feature-card p {
    margin-bottom: 18px;
    color: #68766e;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.feature-card a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #087943;
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   BERITA
========================================================= */

.empty-box {
    max-width: 750px;
    margin: auto;
    padding: 55px 30px;
    text-align: center;
    border: 1px dashed #b9d2c3;
    border-radius: 15px;
    background: rgba(255,255,255,0.55);
}

.empty-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #e8f5ee;
    color: #087943;
    font-size: 24px;
}

.empty-box h3 {
    margin-bottom: 10px;
    color: #173b2a;
    font-size: 20px;
}

.empty-box p {
    color: #68766e;
    font-size: 14px;
}


/* =========================================================
   GALERI BERANDA
========================================================= */

.gallery-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
    width: 100%;
    min-width: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 280px;
    border-radius: 14px;
    background: #ddd;
    min-width: 0;
    max-width: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 45px 20px 18px;

    background:
        linear-gradient(
            transparent,
            rgba(0,0,0,0.75)
        );
}

.gallery-overlay span {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}


/* =========================================================
   GALERI EMPTY STATE BERANDA
========================================================= */

.gallery-grid .empty-box {
    width: 100%;
    grid-column: 1 / -1;
}


/* =========================================================
   KONTAK
========================================================= */

.contact-section {
    padding: 90px 0;
    background:
        linear-gradient(
            135deg,
            #075f35,
            #087943,
            #005b32
        );
}

.contact-heading {
    margin-bottom: 45px;
}

.contact-heading > span {
    color: rgba(255,255,255,0.85);
}

.contact-heading h2 {
    color: #ffffff;
}

.contact-heading p {
    color: rgba(255,255,255,0.78);
}

.contact-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   CONTACT CARD
========================================================= */

.contact-card {
    display: flex;
    align-items: center;
    gap: 17px;
    min-height: 105px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 13px;
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s ease;
    min-width: 0;
}

.contact-link {
    display: flex;
    width: 100%;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.contact-link:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-4px);
    background: rgba(255,255,255,0.13);
    border-color: rgba(255,255,255,0.28);
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    font-size: 20px;
    transition: 0.3s ease;
}

.contact-card span {
    display: block;
    margin-bottom: 3px;
    color: rgba(255,255,255,0.7);
    font-size: 11px;
}

.contact-card strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.contact-link:hover .contact-icon {
    background: rgba(255,255,255,0.22);
    transform: scale(1.05);
}


/* =========================================================
   ALAMAT
========================================================= */

.address-card {
    cursor: pointer;
}


/* =========================================================
   EMAIL
========================================================= */

.email-card {
    cursor: pointer;
}


/* =========================================================
   WHATSAPP
========================================================= */

.whatsapp-card {
    cursor: pointer;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding: 45px 0 20px;
    background: #043c25;
    color: #ffffff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding-bottom: 30px;
    min-width: 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.footer-brand img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    background: #ffffff;
    padding: 4px;
    border-radius: 10px;
}

.footer-brand h3 {
    margin-bottom: 3px;
    font-size: 17px;
}

.footer-brand p {
    color: rgba(255,255,255,0.65);
    font-size: 11px;
}


/* =========================================================
   FOOTER LINKS
========================================================= */

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-links a {
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}


/* =========================================================
   FOOTER BOTTOM
========================================================= */

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.55);
    font-size: 11px;
}


/* =========================================================
   HALAMAN PROFIL DESA
========================================================= */

.profile-page {
    padding: 90px 0;
    background: #f6faf7;
    min-height: 100vh;
    overflow-x: hidden;
}


/* =========================================================
   HEADING PROFIL
========================================================= */

.profile-page-heading {
    max-width: 750px;
    margin: 0 auto 55px;
    text-align: center;
    min-width: 0;
}

.profile-page-heading > span {
    display: inline-block;
    margin-bottom: 8px;
    color: #087943;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.2;
}

.profile-page-heading h1 {
    margin-bottom: 18px;
    color: #087943;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.profile-page-heading p {
    color: #68766e;
    font-size: 20px;
    line-height: 1.8;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* =========================================================
   FOTO + DATA
========================================================= */

.profile-main {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 45px;
    align-items: stretch;
    margin-bottom: 30px;
    min-width: 0;
    max-width: 100%;
}


/* =========================================================
   FOTO PROFIL
========================================================= */

.profile-photo {
    overflow: hidden;
    min-height: 400px;
    min-width: 0;
    max-width: 100%;
    border-radius: 18px;
    background: #dce9e1;
    box-shadow: 0 15px 35px rgba(0,0,0,0.10);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    max-width: 100%;
    object-fit: cover;
}


/* =========================================================
   DATA DESA
========================================================= */

.profile-info {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 15px;
    min-width: 0;
    max-width: 100%;
}

.profile-info-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e1ebe5;
    border-radius: 13px;
    box-shadow: 0 7px 20px rgba(0,0,0,0.05);

    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.profile-info-item > i {
    width: 45px;
    height: 45px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #e8f5ee;
    color: #087943;
    font-size: 18px;
}

.profile-info-item > div {
    min-width: 0;
    max-width: 100%;
}

.profile-info-item span {
    display: block;
    margin-bottom: 3px;
    color: #7a867f;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.profile-info-item strong {
    display: block;
    color: #173b2a;
    font-size: 13px;
    line-height: 1.5;

    overflow-wrap: anywhere;
    word-break: break-word;
}


/* =========================================================
   BOX ALAMAT
========================================================= */

.profile-box {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 30px;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e1ebe5;
    border-radius: 15px;
    box-shadow: 0 7px 20px rgba(0,0,0,0.05);

    min-width: 0;
    max-width: 100%;
}

.profile-box-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #e8f5ee;
    color: #087943;
    font-size: 20px;
}

.profile-box > div:last-child {
    min-width: 0;
    max-width: 100%;
}

.profile-box span {
    display: block;
    margin-bottom: 5px;
    color: #087943;
    font-size: 12px;
    font-weight: 800;
}

.profile-box p {
    color: #40574b;
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
    word-break: break-word;
}


/* =========================================================
   BOX SEJARAH / GEOGRAFIS / BATAS
========================================================= */

.profile-content-box {
    margin-bottom: 30px;
    padding: 35px;
    background: #ffffff;
    border: 1px solid #e1ebe5;
    border-radius: 15px;
    box-shadow: 0 7px 20px rgba(0,0,0,0.05);

    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.profile-content-box > span {
    display: block;
    margin-bottom: 8px;
    color: #087943;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.profile-content-box h2 {
    margin-bottom: 15px;
    color: #173b2a;
    font-size: 27px;
    overflow-wrap: anywhere;
}

.profile-content-box p {
    color: #68766e;
    font-size: 15px;
    line-height: 1.9;

    overflow-wrap: anywhere;
    word-break: break-word;
}


/* =========================================================
   VISI & MISI
========================================================= */

.vision-mission {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 20px;
    margin-bottom: 30px;
    min-width: 0;
    max-width: 100%;
}

.vision-box,
.mission-box {
    padding: 35px;
    border-radius: 15px;
    color: #ffffff;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.vision-box {
    background:
        linear-gradient(
            135deg,
            #075f35,
            #087943
        );
}

.mission-box {
    background:
        linear-gradient(
            135deg,
            #087943,
            #0a9b55
        );
}

.vm-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 11px;
    background: rgba(255,255,255,0.13);
    font-size: 20px;
}

.vision-box > span,
.mission-box > span {
    display: block;
    margin-bottom: 7px;
    color: rgba(255,255,255,0.75);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.vision-box h2,
.mission-box h2 {
    margin-bottom: 13px;
    font-size: 25px;
    overflow-wrap: anywhere;
}

.vision-box p,
.mission-box p {
    color: rgba(255,255,255,0.86);
    font-size: 14px;
    line-height: 1.8;

    overflow-wrap: anywhere;
    word-break: break-word;
}


/* =========================================================
   PERBAIKAN OVERFLOW HALAMAN PROFIL
========================================================= */

.profile-page,
.profile-page .container,
.profile-main,
.profile-info,
.profile-info-item,
.profile-content-box,
.profile-box,
.vision-mission,
.vision-box,
.mission-box {
    min-width: 0;
    max-width: 100%;
}

.profile-page .container {
    overflow: visible;
}


/* =========================================================
   HALAMAN GALERI DESA
========================================================= */

.gallery-page {
    padding: 90px 0;
    background: #f6faf7;
    min-height: 100vh;
    overflow-x: hidden;
}


/* =========================================================
   HEADING GALERI
========================================================= */

.gallery-page-heading {
    max-width: 750px;
    margin: 0 auto 55px;
    text-align: center;
    min-width: 0;
}

.gallery-page-heading > span {
    display: inline-block;
    margin-bottom: 10px;
    color: #087943;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.gallery-page-heading h1 {
    margin-bottom: 15px;
    color: #173b2a;
    font-size: 42px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.gallery-page-heading p {
    color: #68766e;
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}


/* =========================================================
   GRID GALERI HALAMAN
========================================================= */

.gallery-page-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;

    min-width: 0;
    max-width: 100%;
}


/* =========================================================
   ITEM GALERI
========================================================= */

.gallery-page-item {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e1ebe5;

    border-radius: 16px;

    box-shadow:
        0 7px 20px rgba(0,0,0,0.05);

    transition: 0.3s ease;

    min-width: 0;
    max-width: 100%;
}

.gallery-page-item:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(0,0,0,0.10);
}


/* =========================================================
   FOTO GALERI
========================================================= */

.gallery-page-image {
    position: relative;

    width: 100%;

    height: 280px;

    overflow: hidden;

    background: #dce9e1;

    min-width: 0;
    max-width: 100%;
}

.gallery-page-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    cursor: pointer;

    transition:
        transform 0.4s ease,
        filter 0.3s ease;
}

.gallery-page-item:hover
.gallery-page-image img {
    transform: scale(1.05);
}

.gallery-page-image img:hover {
    filter: brightness(0.92);
}


/* =========================================================
   TIDAK ADA FOTO
========================================================= */

.gallery-no-image {
    width: 100%;
    height: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 10px;

    color: #7a867f;

    background: #e8f5ee;
}

.gallery-no-image i {
    font-size: 42px;
    color: #087943;
}

.gallery-no-image span {
    font-size: 13px;
}


/* =========================================================
   INFORMASI GALERI
========================================================= */

.gallery-page-content {
    padding: 20px 22px 23px;

    min-width: 0;
    max-width: 100%;
}

.gallery-page-content h3 {
    margin-bottom: 9px;

    color: #173b2a;

    font-size: 18px;

    line-height: 1.4;

    overflow-wrap: anywhere;
    word-break: break-word;
}


/* =========================================================
   TANGGAL GALERI
========================================================= */

.gallery-date {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #7a867f;

    font-size: 12px;
}

.gallery-date i {
    color: #087943;
}


/* =========================================================
   GALERI KOSONG
========================================================= */

.gallery-empty {
    max-width: 750px;

    margin: 0 auto;

    padding: 55px 30px;

    text-align: center;

    border: 1px dashed #b9d2c3;

    border-radius: 15px;

    background: #ffffff;

    box-shadow:
        0 7px 20px rgba(0,0,0,0.04);
}

.gallery-empty-icon {
    width: 62px;
    height: 62px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: #e8f5ee;

    color: #087943;

    font-size: 24px;
}

.gallery-empty h3 {
    margin-bottom: 10px;

    color: #173b2a;

    font-size: 20px;
}

.gallery-empty p {
    color: #68766e;

    font-size: 14px;

    line-height: 1.8;

    overflow-wrap: anywhere;
}


/* =========================================================
   MODAL FOTO
========================================================= */

.gallery-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 30px;

    background:
        rgba(0, 0, 0, 0.88);
}

.gallery-modal img {
    display: block;

    max-width: 92vw;
    max-height: 88vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 10px;

    box-shadow:
        0 20px 60px rgba(0,0,0,0.35);
}

.gallery-modal-close {
    position: absolute;

    top: 20px;
    right: 25px;

    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 50%;

    background:
        rgba(255,255,255,0.12);

    color: #ffffff;

    font-size: 22px;

    cursor: pointer;

    transition: 0.3s ease;
}

.gallery-modal-close:hover {
    background:
        rgba(255,255,255,0.22);

    transform: scale(1.05);
}


/* =========================================================
   PERBAIKAN OVERFLOW HALAMAN GALERI
========================================================= */

.gallery-page,
.gallery-page .container,
.gallery-page-grid,
.gallery-page-item,
.gallery-page-image,
.gallery-page-content {
    min-width: 0;
    max-width: 100%;
}

.gallery-page .container {
    overflow: visible;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .nav-menu {
        gap: 18px;
    }

    .nav-menu a {
        font-size: 13px;
    }

    .hero-content {
        gap: 40px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .quick-info-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .feature-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .profile-grid {
        gap: 35px;
    }

    .navbar-content {
        gap: 20px;
    }

    .nav-menu {
        gap: 15px;
    }

    .profile-main {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        gap: 25px;
    }

    .profile-info {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);
    }

    .gallery-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }


    /* =====================================================
       GALERI HALAMAN
    ===================================================== */

    .gallery-page-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .container {
        width: 90%;
    }


    /* =====================================================
       NAVBAR
    ===================================================== */

    .navbar-content {
        min-height: 72px;
        gap: 15px;
    }

    .logo {
        min-width: 0;
    }

    .logo img {
        width: 45px;
        height: 45px;
    }

    .logo-text {
        min-width: 0;
    }

    .logo-text strong {
        font-size: 16px;
    }

    .logo-text span {
        font-size: 10px;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .nav-menu {
        position: absolute;
        top: 72px;
        left: 5%;
        right: 5%;
        width: auto;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 10px;

        background: #ffffff;
        border: 1px solid #e5eee8;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu a {
        padding: 13px 15px;
        border-radius: 7px;
        font-size: 14px;
        white-space: normal;
    }

    .nav-menu a:hover {
        background: #f0f8f3;
    }

    .nav-menu a.active::after {
        display: none;
    }

    .nav-menu a.active {
        background: #eaf6ef;
    }


    /* =====================================================
       HERO
    ===================================================== */

    .hero {
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 65px 0 80px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-image img {
        height: 280px;
    }


    /* =====================================================
       QUICK INFO
    ===================================================== */

    .quick-info {
        margin-top: -30px;
    }

    .quick-info-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);
    }


    /* =====================================================
       SECTION
    ===================================================== */

    .section {
        padding: 70px 0;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading h2 {
        font-size: 29px;
    }


    /* =====================================================
       PROFIL BERANDA
    ===================================================== */

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .profile-image img {
        height: 320px;
    }


    /* =====================================================
       POTENSI
    ===================================================== */

    .feature-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);
    }


    /* =====================================================
       GALERI BERANDA
    ===================================================== */

    .gallery-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        gap: 15px;
    }

    .gallery-item {
        height: 220px;
    }


    /* =====================================================
       KONTAK
    ===================================================== */

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        min-height: 95px;
    }


    /* =====================================================
       FOOTER
    ===================================================== */

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        justify-content: flex-start;
    }


    /* =====================================================
       HALAMAN PROFIL DESA
    ===================================================== */

    .profile-page {
        padding: 65px 0;
    }

    .profile-page-heading {
        margin-bottom: 35px;
    }

    .profile-page-heading h1 {
        font-size: 32px;
    }

    .profile-main {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .profile-photo {
        min-height: 300px;
    }

    .profile-photo img {
        min-height: 300px;
    }

    .profile-info {
        grid-template-columns: 1fr;
    }

    .vision-mission {
        grid-template-columns: 1fr;
    }

    .profile-content-box {
        padding: 25px;
    }


    /* =====================================================
       HALAMAN GALERI DESA
    ===================================================== */

    .gallery-page {
        padding: 65px 0;
    }

    .gallery-page-heading {
        margin-bottom: 35px;
    }

    .gallery-page-heading h1 {
        font-size: 32px;
    }

    .gallery-page-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-page-image {
        height: 300px;
    }

}


/* =========================================================
   HP KECIL
========================================================= */

@media (max-width: 500px) {

    .hero h1 {
        font-size: 31px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }


    /* =====================================================
       QUICK INFO
    ===================================================== */

    .quick-info-grid {
        grid-template-columns: 1fr;
    }


    /* =====================================================
       PROFIL BERANDA
    ===================================================== */

    .profile-features {
        grid-template-columns: 1fr;
    }


    /* =====================================================
       POTENSI
    ===================================================== */

    .feature-grid {
        grid-template-columns: 1fr;
    }


    /* =====================================================
       GALERI BERANDA
    ===================================================== */

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 250px;
    }


    /* =====================================================
       SECTION
    ===================================================== */

    .section-heading h2 {
        font-size: 26px;
    }


    /* =====================================================
       KONTAK
    ===================================================== */

    .contact-card {
        padding: 18px;
    }


    /* =====================================================
       FOOTER
    ===================================================== */

    .footer-links {
        gap: 13px;
    }


    /* =====================================================
       HALAMAN PROFIL DESA
    ===================================================== */

    .profile-page-heading h1 {
        font-size: 28px;
    }
    .profile-page-heading > span {
    font-size: 25px;
}

   .profile-page-heading p {
    font-size: 16px;
    font-weight: 700;
}

    .profile-photo {
        min-height: 250px;
    }

    .profile-photo img {
        min-height: 250px;
    }

    .profile-box {
        padding: 20px;
    }

    .profile-content-box {
        padding: 22px;
    }

    .profile-content-box h2 {
        font-size: 23px;
    }

    .vision-box,
    .mission-box {
        padding: 25px;
    }


    /* =====================================================
       HALAMAN GALERI DESA
    ===================================================== */

    .gallery-page-heading h1 {
        font-size: 28px;
    }

    .gallery-page-heading p {
        font-size: 14px;
    }

    .gallery-page-image {
        height: 250px;
    }

    .gallery-page-content {
        padding: 18px 20px 20px;
    }

    .gallery-page-content h3 {
        font-size: 17px;
    }

    .gallery-empty {
        padding: 45px 20px;
    }

    .gallery-modal {
        padding: 20px;
    }

    .gallery-modal img {
        max-width: 95vw;
        max-height: 82vh;
    }

    .gallery-modal-close {
        top: 15px;
        right: 15px;
    }

}

/* =====================================================
   TOMBOL SEMUA GALERI
===================================================== */

.gallery-more {
    text-align: center;
    margin-top: 35px;
}

.gallery-more .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* =========================================================
   TOMBOL KEMBALI KE BERANDA - HALAMAN GALERI
========================================================= */

.gallery-back {
    display: flex;
    justify-content: center;
    margin-top: 35px;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border: 1px solid #087943;
    border-radius: 9px;
    background: #ffffff;
    color: #087943;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-back-home:hover {
    background: #087943;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0, 121, 67, 0.18);
}

/* =========================================================
   TOMBOL KEMBALI KE BERANDA - PROFIL DESA
========================================================= */

.profile-back {
    display: flex;
    justify-content: center;
    margin-top: 35px;
    padding-bottom: 10px;
}

.profile-back .btn-back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border: 1px solid #087943;
    border-radius: 9px;
    background: #ffffff;
    color: #087943;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s ease;
}

.profile-back .btn-back-home:hover {
    background: #087943;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0, 121, 67, 0.18);
}

/* =========================================================
   LOGIN ADMIN - FRONTEND
========================================================= */

.nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 7px;
    background: #087943;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s ease;
}

.nav-login:hover {
    background: #065d34;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* =========================================================
   BAGAN DESA
========================================================= */

.profile-bagan {
    width: 100%;
    margin-top: 20px;
    padding: 20px;
    text-align: center;
    background: #f6faf7;
    border: 1px solid #e1ebe5;
    border-radius: 12px;
    overflow: hidden;
}

.profile-bagan img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 8px;
}


/* =========================================================
   PETA LOKASI
========================================================= */

.profile-map {
    width: 100%;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e1ebe5;
}

.profile-map iframe {
    display: block;
    width: 100%;
    min-height: 400px;
}


/* =========================================================
   DATA KOSONG PROFIL
========================================================= */

.profile-empty-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 150px;
    margin-top: 20px;
    padding: 30px;
    text-align: center;
    border: 1px dashed #b9d2c3;
    border-radius: 12px;
    background: #f6faf7;
}

.profile-empty-content i {
    color: #087943;
    font-size: 30px;
}

.profile-empty-content p {
    margin: 0;
    color: #68766e;
    font-size: 14px;
}


/* =========================================================
   BATAS WILAYAH
========================================================= */

.profile-boundaries {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.boundary-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: #f6faf7;
    border: 1px solid #e1ebe5;
    border-radius: 12px;
    transition: 0.3s ease;
}

.boundary-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}

.boundary-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #e8f5ee;
    color: #087943;
}

.boundary-item span {
    display: block;
    margin-bottom: 4px;
    color: #087943;
    font-size: 12px;
    font-weight: 800;
}

.boundary-item p {
    margin: 0;
    color: #68766e;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}


/* =========================================================
   RESPONSIVE PROFIL TAMBAHAN
========================================================= */

@media (max-width: 768px) {

    .profile-boundaries {
        grid-template-columns: 1fr;
    }

    .profile-map iframe {
        min-height: 350px;
    }

}


@media (max-width: 500px) {

    .profile-bagan {
        padding: 10px;
    }

    .profile-map iframe {
        min-height: 300px;
    }

    .boundary-item {
        padding: 15px;
    }

}

/* =========================================================
   BAGAN DESA - PEMDES & BPD
========================================================= */

.profile-bagan-section {
    margin-bottom: 30px;
    min-width: 0;
    max-width: 100%;
}

.profile-section-heading {
    margin-bottom: 25px;
}

.profile-section-heading > span {
    display: block;
    margin-bottom: 8px;
    color: #087943;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.profile-section-heading h2 {
    margin-bottom: 8px;
    color: #173b2a;
    font-size: 27px;
}

.profile-section-heading p {
    color: #68766e;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   GRID PEMDES & BPD
========================================================= */

.profile-bagan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    min-width: 0;
    max-width: 100%;
}


/* =========================================================
   CARD BAGAN
========================================================= */

.profile-bagan-card {
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e1ebe5;
    border-radius: 15px;
    box-shadow: 0 7px 20px rgba(0,0,0,0.05);
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    transition: 0.3s ease;
}

.profile-bagan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}


/* =========================================================
   JUDUL BAGAN
========================================================= */

.profile-bagan-title {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 20px;
}

.profile-bagan-title > i {
    width: 45px;
    height: 45px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #e8f5ee;
    color: #087943;
    font-size: 18px;
}

.profile-bagan-title span {
    display: block;
    margin-bottom: 4px;
    color: #087943;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.profile-bagan-title h3 {
    color: #173b2a;
    font-size: 16px;
    line-height: 1.4;
}


/* =========================================================
   GAMBAR BAGAN
========================================================= */

.profile-bagan-image {
    width: 100%;
    padding: 12px;
    background: #f6faf7;
    border: 1px solid #e1ebe5;
    border-radius: 10px;
    overflow: hidden;
}

.profile-bagan-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}


/* =========================================================
   BAGAN KOSONG
========================================================= */

.profile-bagan-empty {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    text-align: center;
    background: #f6faf7;
    border: 1px dashed #b9d2c3;
    border-radius: 10px;
}

.profile-bagan-empty i {
    color: #087943;
    font-size: 35px;
}

.profile-bagan-empty p {
    margin: 0;
    color: #68766e;
    font-size: 13px;
}


/* =========================================================
   PETA LOKASI
========================================================= */

.profile-map {
    width: 100%;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e1ebe5;
}

.profile-map iframe {
    display: block;
    width: 100%;
    min-height: 400px;
}


/* =========================================================
   DATA KOSONG PROFIL
========================================================= */

.profile-empty-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 150px;
    margin-top: 20px;
    padding: 30px;
    text-align: center;
    border: 1px dashed #b9d2c3;
    border-radius: 12px;
    background: #f6faf7;
}

.profile-empty-content i {
    color: #087943;
    font-size: 30px;
}

.profile-empty-content p {
    margin: 0;
    color: #68766e;
    font-size: 14px;
}


/* =========================================================
   BATAS WILAYAH
========================================================= */

.profile-boundaries {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.boundary-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: #f6faf7;
    border: 1px solid #e1ebe5;
    border-radius: 12px;
    transition: 0.3s ease;
}

.boundary-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}

.boundary-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #e8f5ee;
    color: #087943;
}

.boundary-item span {
    display: block;
    margin-bottom: 4px;
    color: #087943;
    font-size: 12px;
    font-weight: 800;
}

.boundary-item p {
    margin: 0;
    color: #68766e;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .profile-bagan-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .profile-boundaries {
        grid-template-columns: 1fr;
    }

    .profile-map iframe {
        min-height: 350px;
    }

}


@media (max-width: 500px) {

    .profile-bagan-card {
        padding: 18px;
    }

    .profile-bagan-title h3 {
        font-size: 15px;
    }

    .profile-map iframe {
        min-height: 300px;
    }

    .boundary-item {
        padding: 15px;
    }

}

/* =========================================================
   SEJARAH DESA - FOTO + TEKS
========================================================= */

.profile-history {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 45px;

    align-items: center;

    margin-bottom: 30px;

    min-width: 0;
    max-width: 100%;
}


/* =========================================================
   FOTO SEJARAH
========================================================= */

.profile-history-image {
    width: 100%;
    height: 400px;

    overflow: hidden;

    border-radius: 18px;

    background: #dce9e1;

    box-shadow:
        0 15px 35px rgba(0,0,0,0.10);

    min-width: 0;
    max-width: 100%;
}

.profile-history-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.4s ease;
}

.profile-history-image:hover img {
    transform: scale(1.03);
}


/* =========================================================
   FOTO KOSONG
========================================================= */

.profile-history-empty {
    width: 100%;
    height: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 10px;

    background: #e8f5ee;

    color: #68766e;

    text-align: center;
}

.profile-history-empty i {
    color: #087943;
    font-size: 45px;
}

.profile-history-empty span {
    font-size: 13px;
}


/* =========================================================
   ISI SEJARAH
========================================================= */

.profile-history-content {
    min-width: 0;
    max-width: 100%;
}

.profile-history-content > span {
    display: inline-block;

    margin-bottom: 10px;

    color: #087943;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.profile-history-content h2 {
    margin-bottom: 18px;

    color: #173b2a;

    font-size: 30px;

    line-height: 1.3;

    overflow-wrap: anywhere;
}

.profile-history-content p {
    color: #68766e;

    font-size: 15px;

    line-height: 1.9;

    overflow-wrap: anywhere;

    word-break: break-word;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .profile-history {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .profile-history-image {
        height: 320px;
    }

    .profile-history-content h2 {
        font-size: 27px;
    }

}


@media (max-width: 500px) {

    .profile-history-image {
        height: 250px;
    }

    .profile-history-content h2 {
        font-size: 24px;
    }

    .profile-history-content p {
        font-size: 14px;
    }

}

/* =========================================================
   LOKASI DESA
========================================================= */

.profile-location {
    margin-bottom: 30px;
    padding: 35px;

    background: #ffffff;

    border: 1px solid #e1ebe5;

    border-radius: 15px;

    box-shadow:
        0 7px 20px rgba(0,0,0,0.05);

    min-width: 0;
    max-width: 100%;
}


/* =========================================================
   HEADING LOKASI
========================================================= */

.profile-location-heading {
    margin-bottom: 25px;
}

.profile-location-heading span {
    display: block;

    margin-bottom: 8px;

    color: #087943;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1px;
}


.profile-location-heading h2 {
    color: #087943 !important;
    font-size: 27px;
    line-height: 1.3;
    margin: 0;
    font-weight: 800;
}



/* =========================================================
   GRID LOKASI
========================================================= */

.profile-location-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(0, 1.05fr);

    gap: 30px;

    align-items: stretch;

    min-width: 0;
}


/* =========================================================
   INFORMASI LOKASI
========================================================= */

.profile-location-info {
    padding: 25px;

    background: #f6faf7;

    border: 1px solid #e1ebe5;

    border-radius: 13px;

    min-width: 0;
}

.profile-location-info h3 {
    margin-bottom: 18px;

    color: #173b2a;

    font-size: 16px;
}


/* =========================================================
   BATAS DESA
========================================================= */

.location-boundaries {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 18px 25px;
}

.location-boundary {
    min-width: 0;
}

.location-boundary span {
    display: block;

    margin-bottom: 3px;

    color: #68766e;

    font-size: 12px;
}

.location-boundary strong {
    display: block;

    color: #40574b;

    font-size: 13px;

    line-height: 1.5;

    overflow-wrap: anywhere;
}


/* =========================================================
   PEMISAH
========================================================= */

.location-divider {
    height: 1px;

    margin: 22px 0;

    background: #dfe9e3;
}


/* =========================================================
   LUAS & PENDUDUK
========================================================= */

.location-data {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 15px;

    padding: 12px 0;

    border-bottom: 1px solid #e1ebe5;
}

.location-data:last-child {
    border-bottom: none;
}

.location-data span {
    color: #40574b;

    font-size: 13px;

    font-weight: 600;
}

.location-data strong {
    color: #173b2a;

    font-size: 13px;

    text-align: right;

    overflow-wrap: anywhere;
}


/* =========================================================
   PETA
========================================================= */

.profile-location-map {
    width: 100%;

    min-height: 400px;

    overflow: hidden;

    border-radius: 13px;

    border: 1px solid #e1ebe5;

    background: #eef5f0;

    min-width: 0;
}

.profile-location-map iframe {
    display: block;

    width: 100%;

    height: 100%;

    min-height: 400px;

    border: none;
}


/* =========================================================
   PETA KOSONG
========================================================= */

.profile-location-map-empty {
    width: 100%;

    min-height: 400px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 10px;

    text-align: center;

    color: #68766e;
}

.profile-location-map-empty i {
    color: #087943;

    font-size: 38px;
}

.profile-location-map-empty p {
    margin: 0;

    font-size: 13px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .profile-location {
        padding: 25px;
    }

    .profile-location-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .profile-location-map,
    .profile-location-map-empty {
        min-height: 350px;
    }

    .profile-location-map iframe {
        min-height: 350px;
    }

}


@media (max-width: 500px) {

    .profile-location {
        padding: 20px;
    }

    .location-boundaries {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .location-data {
        grid-template-columns: 1fr;

        gap: 4px;
    }

    .location-data strong {
        text-align: left;
    }

    .profile-location-map,
    .profile-location-map-empty {
        min-height: 300px;
    }

    .profile-location-map iframe {
        min-height: 300px;
    }

}


/* =====================================================
   REDESAIN KARTU INFORMASI DESA
===================================================== */

.profile-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

/* KARTU INFORMASI */
.profile-info-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;

    min-height: 125px;
    padding: 24px;

    background: linear-gradient(135deg, #ffffff 65%, #f0faf4);
    border: 1px solid #e0eee6;
    border-left: 5px solid #15945b;
    border-radius: 18px;

    box-shadow: 0 8px 22px rgba(20, 80, 50, 0.07);

    overflow: hidden;
    transition: transform 0.25s ease,
                box-shadow 0.25s ease,
                border-color 0.25s ease;
}

/* EFEK SAAT KURSOR DIARAHKAN */
.profile-info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(20, 80, 50, 0.13);
    border-color: #b9dfc9;
}

/* IKON */
.profile-info-item > i {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 17px;
    background: #15945b;
    color: #ffffff;

    font-size: 27px;
    box-shadow: 0 6px 14px rgba(21, 148, 91, 0.18);
}

/* LABEL: NAMA DESA, KECAMATAN, DLL. */
.profile-info-item span {
    display: block;
    margin-bottom: 8px;

    color: #667568;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

/* NILAI INFORMASI */
.profile-info-item strong {
    display: block;

    color: #123f2e;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.4;

    overflow-wrap: anywhere;
}

/* WARNA BERBEDA UNTUK SETIAP KARTU */
.profile-info-item:nth-child(2) {
    background: linear-gradient(135deg, #ffffff 65%, #fff7eb);
    border-left-color: #f59e0b;
}

.profile-info-item:nth-child(2) > i {
    background: #f59e0b;
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.2);
}

.profile-info-item:nth-child(3) {
    background: linear-gradient(135deg, #ffffff 65%, #eef6ff);
    border-left-color: #1684ee;
}

.profile-info-item:nth-child(3) > i {
    background: #1684ee;
    box-shadow: 0 6px 14px rgba(22, 132, 238, 0.2);
}

.profile-info-item:nth-child(4) {
    background: linear-gradient(135deg, #ffffff 65%, #f5f0ff);
    border-left-color: #7950ed;
}

.profile-info-item:nth-child(4) > i {
    background: #7950ed;
    box-shadow: 0 6px 14px rgba(121, 80, 237, 0.2);
}

.profile-info-item:nth-child(5) {
    background: linear-gradient(135deg, #ffffff 65%, #fff0f2);
    border-left-color: #f43f5e;
}

.profile-info-item:nth-child(5) > i {
    background: #f43f5e;
    box-shadow: 0 6px 14px rgba(244, 63, 94, 0.2);
}

.profile-info-item:nth-child(6) {
    background: linear-gradient(135deg, #ffffff 65%, #effbf4);
    border-left-color: #16a765;
}

.profile-info-item:nth-child(6) > i {
    background: #16a765;
    box-shadow: 0 6px 14px rgba(22, 167, 101, 0.2);
}

/* JUMLAH PENDUDUK MEMENUHI DUA KOLOM */
.profile-info-item:nth-child(7) {
    grid-column: 1 / -1;

    background: linear-gradient(135deg, #ffffff 55%, #fff7df);
    border-left-color: #f5ad00;
}

.profile-info-item:nth-child(7) > i {
    background: #f5ad00;
    box-shadow: 0 6px 14px rgba(245, 173, 0, 0.22);
}

/* =====================================================
   RESPONSIVE TABLET
===================================================== */
@media (max-width: 992px) {
    .profile-info {
        gap: 14px;
    }

    .profile-info-item {
        min-height: 110px;
        padding: 18px;
        gap: 13px;
    }

    .profile-info-item > i {
        flex-basis: 54px;
        width: 54px;
        height: 54px;
        font-size: 23px;
    }

    .profile-info-item strong {
        font-size: 20px;
    }

    .profile-info-item span {
        font-size: 14px;
    }
}

/* =====================================================
   RESPONSIVE HP
===================================================== */
@media (max-width: 600px) {
    .profile-info {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .profile-info-item {
        grid-column: auto;
        min-height: 100px;
        padding: 18px;
        border-radius: 15px;
    }

    .profile-info-item > i {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
        font-size: 22px;
        border-radius: 14px;
    }

    .profile-info-item span {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .profile-info-item strong {
        font-size: 19px;
    }
}


/* =====================================================
   KARTU ALAMAT DESA
===================================================== */

.profile-box {
    display: flex;
    align-items: flex-start;
    gap: 24px;

    margin: 30px 0;
    padding: 30px 34px;

    background: linear-gradient(120deg, #ffffff, #f0faf4);
    border: 1px solid #dcece2;
    border-left: 6px solid #07834b;
    border-radius: 20px;

    box-shadow: 0 10px 30px rgba(20, 80, 50, 0.08);

    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.profile-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(20, 80, 50, 0.13);
}

.profile-box-icon {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    background: linear-gradient(135deg, #07834b, #16a765);
    border-radius: 18px;

    font-size: 26px;
    box-shadow: 0 8px 18px rgba(7, 131, 75, 0.2);
}

.profile-box > div:last-child {
    flex: 1;
    min-width: 0;
}

.profile-box span {
    display: block;
    margin-bottom: 12px;

    color: #087943;
    font-size: 21px;
    font-weight: 800;
}

.profile-box p {
    margin: 0;

    color: #42574b;
    font-size: 18px;
    line-height: 2;
    font-weight: 500;

    overflow-wrap: anywhere;
}


/* =====================================================
   KARTU VISI DAN MISI
===================================================== */

.vision-mission {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 35px 0;
}

.vision-box,
.mission-box {
    position: relative;
    padding: 38px;

    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;

    box-shadow: 0 15px 35px rgba(0, 80, 45, 0.18);

    overflow: hidden;
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

/* Hiasan lingkaran di latar */
.vision-box::after,
.mission-box::after {
    content: "";
    position: absolute;

    width: 210px;
    height: 210px;
    right: -75px;
    bottom: -100px;

    border: 35px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;

    pointer-events: none;
}

.vision-box:hover,
.mission-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 45px rgba(0, 80, 45, 0.24);
}

.vision-box {
    background: linear-gradient(135deg, #075f35, #087943);
}

.mission-box {
    background: linear-gradient(135deg, #087943, #0b9e58);
}

/* Ikon visi dan misi */
.vm-icon {
    position: relative;
    z-index: 1;

    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 25px;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;

    font-size: 27px;
}

/* Label VISI dan MISI */
.vision-box > span,
.mission-box > span {
    position: relative;
    z-index: 1;

    display: block;
    margin-bottom: 10px;

    color: #c7f4d9;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2px;
}

/* Judul */
.vision-box h2,
.mission-box h2 {
    position: relative;
    z-index: 1;

    margin: 0 0 20px;

    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
}

/* Isi visi dan misi */
.vision-box p,
.mission-box p {
    position: relative;
    z-index: 1;

    margin: 0;

    color: #f0fff5;
    font-size: 19px;
    font-weight: 500;
    line-height: 2;

    overflow-wrap: anywhere;
}

/* =====================================================
   RESPONSIVE TABLET
===================================================== */

@media (max-width: 992px) {
    .vision-box,
    .mission-box {
        padding: 28px;
    }

    .vision-box h2,
    .mission-box h2 {
        font-size: 28px;
    }

    .vision-box p,
    .mission-box p {
        font-size: 17px;
    }

    .profile-box p {
        font-size: 17px;
    }
}

/* =====================================================
   RESPONSIVE HP
===================================================== */

@media (max-width: 768px) {
    .profile-box {
        gap: 16px;
        padding: 22px;
        border-radius: 16px;
    }

    .profile-box-icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 21px;
    }

    .profile-box span {
        font-size: 18px;
    }

    .profile-box p {
        font-size: 16px;
        line-height: 1.9;
    }

    .vision-mission {
        grid-template-columns: 1fr;
        gap: 18px;
        margin: 25px 0;
    }

    .vision-box,
    .mission-box {
        padding: 25px;
        border-radius: 19px;
    }

    .vm-icon {
        width: 52px;
        height: 52px;
        font-size: 23px;
        margin-bottom: 20px;
    }

    .vision-box h2,
    .mission-box h2 {
        font-size: 26px;
        margin-bottom: 14px;
    }

    .vision-box p,
    .mission-box p {
        font-size: 16px;
        line-height: 1.9;
    }

    .vision-box > span,
    .mission-box > span {
        font-size: 13px;
    }
}


/* =====================================================
   VISI & MISI INTERAKTIF - DESA AIR DUREN
===================================================== */

.vm-panel {
    margin: 35px 0;
    color: #fff;
}

.vm-panel-heading {
    margin-bottom: 25px;
    text-align: center;
}

.vm-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #075f35;
    font-size: 25px;
    font-weight: 800;
}

.vm-brand i {
    font-size: 28px;
}

.vm-panel-heading > p {
    max-width: 850px;
    margin: auto;
    color: #52685d;
    font-size: 18px;
    line-height: 1.8;
}

/* PANEL GRADASI */

.vm-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 28px 35px 22px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 22px;

    background:
        radial-gradient(
            circle at 75% 60%,
            rgba(20, 190, 100, 0.20),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #075f35,
            #087943,
            #0a9b55
        );

    box-shadow: 0 18px 45px rgba(4, 56, 43, .2);
}
    

/* LINGKARAN DEKORATIF */
.vm-card::before,
.vm-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 50%;
    pointer-events: none;
}

.vm-card::before {
    width: 240px;
    height: 240px;
    top: 90px;
    right: 8%;
}

.vm-card::after {
    width: 100px;
    height: 100px;
    top: 35px;
    right: 20%;
    box-shadow: -150px 220px 0 10px rgba(255,255,255,.025);
}

/* TAB VISI DAN MISI */
.vm-tabs {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,.2);
}

.vm-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 4px 16px;
    margin-bottom: -1px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: rgba(255,255,255,.72);
    font-family: inherit;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: .25s ease;
}

.vm-tab:hover,
.vm-tab.active {
    color: #fff;
}

.vm-tab.active {
    border-bottom-color: #5ce4d2;
    font-weight: 800;
}

.vm-tab i {
    font-size: 20px;
}

/* ISI PANEL */
.vm-content {
    position: relative;
    min-height: 260px;
    padding: 8px 10px 35px;
    animation: vmFadeIn .3s ease;
}

.vm-content[hidden] {
    display: none !important;
}

.vm-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #8ceadd;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
}

.vm-content h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(32px, 3vw, 44px);
    font-weight: 800;
    line-height: 1.3;
}

.vm-content h3 {
    margin: 0 0 25px;
    color: #58dfd2;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
}

.vm-description {
    position: relative;
    z-index: 1;
    max-width: 850px;
    color: rgba(255,255,255,.95);
    font-size: 19px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

/* IKON DEKORASI */

.vm-decoration {
    position: absolute;
    top: 50%;
    right: 8%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 145px;
    height: 145px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    color: rgba(255,255,255,.18);
    font-size: 65px;
    transform: translateY(-25%);
    pointer-events: none;
}
    

/* BAGIAN BAWAH */
.vm-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-top: 17px;
    border-top: 1px solid rgba(255,255,255,.17);
    color: rgba(255,255,255,.75);
    font-size: 14px;
}

.vm-footer > span:first-child {
    font-weight: 700;
}

.vm-footer i {
    margin-right: 7px;
    color: #8ceadd;
}

.vm-footer-hint {
    text-align: right;
}

@keyframes vmFadeIn {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TABLET DAN HP */
@media (max-width: 768px) {
    .vm-panel {
        margin: 25px 0;
    }

    .vm-brand {
        font-size: 21px;
    }

    .vm-brand i {
        font-size: 23px;
    }

    .vm-panel-heading > p {
        font-size: 16px;
    }

    .vm-card {
        padding: 20px 18px 16px;
        border-radius: 17px;
    }

    .vm-tabs {
        gap: 25px;
        margin-bottom: 22px;
    }

    .vm-tab {
        font-size: 17px;
    }

    .vm-content {
        min-height: 230px;
        padding: 5px 2px 25px;
    }

    .vm-eyebrow {
        font-size: 11px;
        letter-spacing: 1.3px;
    }

    .vm-content h2 {
        font-size: 29px;
    }

    .vm-content h3 {
        font-size: 19px;
        margin-bottom: 20px;
    }

    .vm-description {
        font-size: 16px;
        line-height: 1.85;
    }

    .vm-decoration {
        width: 75px;
        height: 75px;
        right: 0;
        font-size: 32px;
        opacity: .6;
    }

    .vm-footer {
        flex-direction: column;
        align-items: flex-start;
        font-size: 12px;
    }

    .vm-footer-hint {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vm-content {
        animation: none;
    }
}


/* =========================================
   REDESAIN BAGIAN BAGAN DESA
========================================= */

.profile-bagan-section {
    margin-top: 45px;
    padding: 38px;
    background: linear-gradient(135deg, #f4faf6, #ffffff);
    border: 1px solid #e0eee5;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(7, 95, 53, 0.07);
}

/* Judul bagian */
.profile-bagan-section .profile-section-heading {
    margin-bottom: 28px;
}

.profile-bagan-section .profile-section-heading span {
    display: inline-block;
    margin-bottom: 8px;
    color: #087943;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.profile-bagan-section .profile-section-heading h2 {
    margin-bottom: 12px;
    color: #123e2b;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
}

.profile-bagan-section .profile-section-heading p {
    max-width: 850px;
    color: #52685b;
    font-size: 17px;
    line-height: 1.8;
}

/* Susunan dua kartu */
.profile-bagan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

/* Kartu organisasi */
.profile-bagan-card {
    min-width: 0;
    padding: 26px;
    background: #ffffff;
    border: 1px solid #dcebe1;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(16, 74, 43, 0.07);
    transition: transform 0.25s ease,
                box-shadow 0.25s ease,
                border-color 0.25s ease;
}

.profile-bagan-card:hover {
    transform: translateY(-5px);
    border-color: #a6d8ba;
    box-shadow: 0 16px 35px rgba(16, 74, 43, 0.12);
}

/* Judul kartu dan ikon */
.profile-bagan-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.profile-bagan-title > i {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: #087943;
    background: #e6f5ec;
    border: 1px solid #d4ecde;
    border-radius: 15px;
    font-size: 25px;
}

.profile-bagan-title span {
    display: block;
    margin-bottom: 5px;
    color: #087943;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.profile-bagan-title h3 {
    margin: 0;
    color: #173b2a;
    font-size: 21px;
    font-weight: 750;
    line-height: 1.45;
}

/* Bingkai gambar struktur */
.profile-bagan-image {
    overflow: hidden;
    padding: 12px;
    background: #f5faf6;
    border: 1px solid #dcebe1;
    border-radius: 15px;
}

.profile-bagan-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.profile-bagan-card:hover .profile-bagan-image img {
    transform: scale(1.015);
}

/* Jika gambar belum tersedia */
.profile-bagan-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    padding: 30px;
    color: #527461;
    background: #f5faf6;
    border: 1px dashed #b9d8c4;
    border-radius: 15px;
    text-align: center;
}

.profile-bagan-empty i {
    margin-bottom: 15px;
    color: #087943;
    font-size: 42px;
}

.profile-bagan-empty p {
    font-size: 16px;
    line-height: 1.7;
}

/* =========================================
   RESPONSIVE TABLET
========================================= */

@media (max-width: 1000px) {
    .profile-bagan-section {
        padding: 28px;
    }

    .profile-bagan-grid {
        gap: 20px;
    }

    .profile-bagan-card {
        padding: 20px;
    }

    .profile-bagan-title h3 {
        font-size: 19px;
    }
}

/* =========================================
   RESPONSIVE HP
========================================= */

@media (max-width: 700px) {
    .profile-bagan-section {
        margin-top: 30px;
        padding: 20px 15px;
        border-radius: 18px;
    }

    .profile-bagan-section .profile-section-heading h2 {
        font-size: 29px;
    }

    .profile-bagan-section .profile-section-heading p {
        font-size: 16px;
        line-height: 1.7;
    }

    .profile-bagan-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .profile-bagan-card {
        padding: 17px;
        border-radius: 16px;
    }

    .profile-bagan-title {
        gap: 12px;
        margin-bottom: 18px;
    }

    .profile-bagan-title > i {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        font-size: 21px;
    }

    .profile-bagan-title h3 {
        font-size: 18px;
    }

    .profile-bagan-title span {
        font-size: 11px;
    }

    .profile-bagan-image {
        padding: 7px;
    }

    .profile-bagan-empty {
        min-height: 180px;
    }
}

/* =========================================
   PENYESUAIAN UKURAN BAGAN DESA
========================================= */

.profile-bagan-section {
    padding: 32px;
    margin-top: 35px;
    border-radius: 22px;
}

/* Label STRUKTUR DESA */
.profile-bagan-section .profile-section-heading > span {
    font-size: 13px;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
}

/* Judul Bagan Desa */
.profile-bagan-section .profile-section-heading h2 {
    font-size: 32px;
    line-height: 1.3;
    margin: 4px 0 10px;
}

/* Deskripsi */
.profile-bagan-section .profile-section-heading p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Jarak antara kedua kartu */
.profile-bagan-grid {
    gap: 22px;
}

/* Ukuran kartu */
.profile-bagan-card {
    padding: 22px;
    border-radius: 18px;
}

/* Ikon kartu */
.profile-bagan-title > i {
    width: 52px;
    height: 52px;
    font-size: 22px;
    border-radius: 13px;
}

/* Judul kecil di atas nama struktur */
.profile-bagan-title span {
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

/* Nama struktur organisasi */
.profile-bagan-title h3 {
    font-size: 19px;
    line-height: 1.4;
}

/* Jarak gambar dari judul */
.profile-bagan-title {
    gap: 14px;
    margin-bottom: 20px;
}

/* Bingkai gambar */
.profile-bagan-image {
    padding: 8px;
    border-radius: 13px;
}

/* Tampilan HP */
@media (max-width: 700px) {
    .profile-bagan-section {
        padding: 20px 15px;
    }

    .profile-bagan-section .profile-section-heading h2 {
        font-size: 27px;
    }

    .profile-bagan-section .profile-section-heading p {
        font-size: 15px;
    }

    .profile-bagan-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .profile-bagan-card {
        padding: 16px;
    }

    .profile-bagan-title > i {
        width: 45px;
        height: 45px;
        font-size: 19px;
    }

    .profile-bagan-title h3 {
        font-size: 17px;
    }
}

.profile-history-heading h2 {
    color: #087943;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 20px;
}


/* JUDUL SEJARAH DESA */
.profile-history-heading {
    width: 100%;
    margin-bottom: 24px;
}

.profile-history-heading h2 {
    color: #087943;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

/* FOTO DAN ISI SEJARAH */
.profile-history-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 36px;
}

/* FOTO SEJARAH */
.profile-history-image img {
    display: block;
    width: 100%;
    height: 390px;
    object-fit: cover;
    border-radius: 16px;
}

/* ISI SEJARAH */
.profile-history-content p {
    color: #52665d;
    font-size: 16px;
    line-height: 1.9;
    margin: 0;
}

/* TAMPILAN HP */
@media (max-width: 768px) {
    .profile-history-heading {
        margin-bottom: 18px;
    }

    .profile-history-heading h2 {
        font-size: 24px;
    }

    .profile-history-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .profile-history-image img {
        height: 260px;
    }

    .profile-history-content p {
        font-size: 15px;
    }
}


/* =====================================
   SEJARAH DESA
===================================== */

.profile-history {
    width: 100%;
    margin: 40px 0;
}

.profile-history-heading {
    margin-bottom: 30px;
}

.profile-history-heading h2 {
    margin: 0;
    color: #087943;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.25;
}

/* Layout foto dan teks */
.profile-history-body {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: start;
    gap: 24px;
}

/* Foto sebelah kiri */
.profile-history-image {
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
}

.profile-history-image img {
    display: block;
    width: 100%;
    height: 470px;
    object-fit: cover;
    border-radius: 18px;
}

/* Teks sebelah kanan */
.profile-history-content {
    width: 100%;
    padding: 0;
}

.profile-history-content p {
    margin: 0;
    color: #263d32;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.8;
    text-align: justify;
}

/* Tampilan tablet dan HP */
@media (max-width: 768px) {

    .profile-history {
        margin: 28px 0;
    }

    .profile-history-heading {
        margin-bottom: 18px;
    }

    .profile-history-heading h2 {
        font-size: 29px;
    }

    .profile-history-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .profile-history-image img {
        height: 280px;
    }

    .profile-history-content p {
        font-size: 16px;
        line-height: 1.8;
        text-align: left;
    }
}


/* =========================================================
   PERBAIKAN FINAL SEJARAH DESA
   Judul berada di atas; foto kiri dan teks kanan.
   Aturan ini sengaja diletakkan paling bawah agar
   mengalahkan aturan .profile-history lama yang duplikat.
========================================================= */

.profile-page .profile-history {
    display: block !important;
    width: 100%;
    margin: 40px 0;
    min-width: 0;
    max-width: 100%;
}

.profile-page .profile-history-heading {
    display: block;
    width: 100%;
    margin: 0 0 24px;
}

.profile-page .profile-history-heading h2 {
    margin: 0;
    color: #087943;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    text-align: left;
}

.profile-page .profile-history-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 30px;
    width: 100%;
    min-width: 0;
}

.profile-page .profile-history-image {
    width: 100%;
    height: 400px;
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #dce9e1;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.profile-page .profile-history-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    transition: transform 0.35s ease;
}

.profile-page .profile-history-image:hover img {
    transform: scale(1.02);
}

.profile-page .profile-history-content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0;
}

.profile-page .profile-history-content > span {
    display: none;
}

.profile-page .profile-history-content h2 {
    margin: 0 0 16px;
    color: #087943;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.profile-page .profile-history-content p {
    margin: 0;
    color: #263d32;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.8;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Tablet dan HP */
@media (max-width: 768px) {
    .profile-page .profile-history {
        margin: 28px 0;
    }

    .profile-page .profile-history-heading {
        margin-bottom: 18px;
    }

    .profile-page .profile-history-heading h2 {
        font-size: 29px;
    }

    .profile-page .profile-history-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .profile-page .profile-history-image {
        height: 300px;
    }

    .profile-page .profile-history-content h2 {
        font-size: 25px;
    }

    .profile-page .profile-history-content p {
        font-size: 16px;
        line-height: 1.8;
    }
}

@media (max-width: 480px) {
    .profile-page .profile-history-heading h2 {
        font-size: 25px;
    }

    .profile-page .profile-history-image {
        height: 240px;
    }

    .profile-page .profile-history-content h2 {
        font-size: 22px;
    }

    .profile-page .profile-history-content p {
        font-size: 15px;
    }
}



/* Memperjelas teks sejarah desa */
.profile-history p,
.sejarah-content p,
.sejarah-text {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.9;
    color: #173b2a;
    text-align: left;
}

/* Tampilan teks sejarah di HP */
@media (max-width: 768px) {
    .profile-history p,
    .sejarah-content p,
    .sejarah-text {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.8;
    }
}


/* Mempertegas isi Sejarah Desa Air Duren */
.profile-content-box p {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.9 !important;
    color: #173b2a !important;
    text-align: left !important;
}

/* Penyesuaian untuk layar HP */
@media screen and (max-width: 768px) {
    .profile-content-box p {
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1.8 !important;
    }
}


/* =========================================
   TEKS SEJARAH DESA AIR DUREN
========================================= */

.profile-history-content p {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.8 !important;
    color: #173b2a !important;
    text-align: left !important;
}

/* Tampilan HP */
@media screen and (max-width: 768px) {
    .profile-history-content p {
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1.8 !important;
    }
}


/* Judul Peta Lokasi Desa */
.map-section-heading h2 {
    color: #087943;
}


/* =========================================
   INFORMASI BATAS DAN DATA DESA
   ========================================= */

.profile-location-info {
    padding: 30px !important;
    background: #ffffff !important;
    border: 1px solid #e1ebe5;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

/* Judul Batas Desa */
.profile-location-info h3 {
    color: #173b2a !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    margin-bottom: 24px !important;
}

/* Susunan Utara, Timur, Selatan, Barat */
.location-boundaries {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 30px !important;
}

/* Label arah */
.location-boundary span {
    color: #52675c !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
}

/* Nama batas wilayah */
.location-boundary strong {
    color: #173b2a !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
    overflow-wrap: anywhere;
}

/* Garis pemisah */
.location-divider {
    height: 2px !important;
    margin: 26px 0 !important;
    background: #d5e2da !important;
}

/* Baris luas desa dan jumlah penduduk */
.location-data {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 17px 0 !important;
    border-bottom: 1px solid #d5e2da !important;
}

.location-data:last-child {
    border-bottom: none !important;
}

.location-data span {
    color: #173b2a !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

.location-data strong {
    color: #087943 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    text-align: right;
    overflow-wrap: anywhere;
}

/* Penyesuaian tampilan HP */
@media (max-width: 500px) {
    .profile-location-info {
        padding: 20px !important;
    }

    .profile-location-info h3 {
        font-size: 20px !important;
    }

    .location-boundaries {
        gap: 20px 16px !important;
    }

    .location-boundary span {
        font-size: 14px !important;
    }

    .location-boundary strong {
        font-size: 15px !important;
    }

    .location-data span {
        font-size: 15px !important;
    }

    .location-data strong {
        font-size: 16px !important;
    }
}





/* Memperbaiki warna judul Visi dan Misi */
.vision-content h2,
.vision-panel h2,
.vision-title {
    color: #ffffff !important;
}


/* Warna judul Visi dan Misi */
.vision-box h2,
.mission-box h2 {
    color: #ffffff !important;
}


/* FIX WARNA JUDUL VISI DAN MISI */
#panel-visi h2,
#panel-misi h2 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* PERBAIKAN FOOTER HALAMAN PROFIL DESA */
.profile-page {
    min-height: auto;
    padding-bottom: 45px;
}

.profile-page + .footer {
    display: block;
    position: relative;
    width: 100%;
    margin-top: 0;
    clear: both;
    background: #043c25;
    color: #ffffff;
    padding: 45px 0 20px;
}

/* BERITA DESA */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.news-card {
    background: #fff;
    border: 1px solid #e5eee8;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}

.news-image {
    height: 210px;
    overflow: hidden;
    background: #eef4ef;
}

.news-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.news-content {
    padding: 22px;
}

.news-date {
    color: #087943;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 12px;
}

.news-date i {
    margin-right: 5px;
}

.news-content h3 {
    color: #173b29;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

.news-content p {
    color: #68756d;
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.news-more {
    display: flex;
    justify-content: center;
    margin-top: 35px;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .news-image {
        height: 170px;
    }

    .news-content {
        padding: 16px;
    }

    .news-content h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-image {
        height: 220px;
    }
}

/* =========================================================
   BERITA BERANDA - DESAIN SEPERTI GALERI
========================================================= */

.news-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    min-width: 0;
}

.news-gallery-item {
    position: relative;
    height: 280px;
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #dce8df;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
}

.news-gallery-item > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-gallery-item:hover > img {
    transform: scale(1.05);
}

/* Gradasi dan judul berita */

.news-gallery-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 45px 16px 18px;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.82)
    );
}

.news-gallery-date {
    display: block;
    margin-bottom: 7px;
    color: #e1f4e7;
    font-size: 11px;
}

.news-gallery-date i {
    margin-right: 5px;
}

.news-gallery-overlay h3 {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Berita tanpa foto */

.news-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #087943;
    font-size: 42px;
    background: #e8f5ee;
}

/* Jika berita belum tersedia */

.news-gallery-empty {
    grid-column: 1 / -1;
    width: 100%;
    padding: 45px 20px;
    text-align: center;
    border: 1px dashed #b9d2c3;
    border-radius: 14px;
    background: #ffffff;
}

.news-gallery-empty > i {
    margin-bottom: 12px;
    color: #087943;
    font-size: 32px;
}

.news-gallery-empty h3 {
    margin-bottom: 8px;
    color: #173b2a;
}

.news-gallery-empty p {
    color: #68766e;
    font-size: 14px;
}

/* Tablet */

@media (max-width: 768px) {
    .news-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .news-gallery-item {
        height: 230px;
    }

    .news-gallery-overlay {
        padding: 35px 12px 14px;
    }

    .news-gallery-overlay h3 {
        font-size: 14px;
    }
}

/* HP */

@media (max-width: 480px) {
    .news-gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .news-gallery-item {
        height: 240px;
    }
}

/* =========================================================
   TOMBOL LIHAT SEMUA BERITA
========================================================= */

.news-gallery-more {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 22px;
    width: 100%;
}

.news-gallery-more .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-gallery-more .btn:hover {
    transform: translateY(-2px);
}

/* TANGGAL DAN PENULIS BERITA */

.berita-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 12px;
}

.berita-meta .berita-tanggal,
.berita-meta .berita-penulis {
    color: #078447;
    font-size: 12px;
}

.berita-meta i {
    margin-right: 5px;
}
/* =========================================================
   INFORMASI JUDUL, TANGGAL, DAN PENULIS BERITA
   Khusus halaman daftar berita agar tidak mengubah komponen lain
========================================================= */

.berita-page .berita-body .berita-judul {
    margin: 0 0 8px;
    color: #123e2c;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.berita-page .berita-body .berita-tanggal {
    display: block;
    margin: 0 0 5px;
    color: #666666;
    font-size: 13px;
}

.berita-page .berita-body .berita-penulis {
    display: block;
    margin: 0 0 15px;
    color: #333333;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.berita-page .berita-body .berita-penulis strong {
    font-weight: 700;
}


/* ==========================================
   NAVBAR HIJAU - DESAIN TEBAL
========================================== */

.navbar {
    background: #087943 !important;
    border-bottom: 3px solid #35b878 !important;
    box-shadow: 0 4px 15px rgba(0, 50, 25, 0.18);
}

.navbar-content {
    min-height: 86px;
    gap: 24px;
}

/* Logo dan nama desa */
.logo-text strong {
    color: #ffffff !important;
    font-size: 20px;
    font-weight: 800 !important;
}

.logo-text span {
    color: #e0f5e8 !important;
    font-size: 12px;
    font-weight: 600;
}

/* Menu navbar */
.nav-menu > a {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 800 !important;
    padding: 12px 10px;
    border-radius: 0;
    transition: all 0.25s ease;
}

/* Hover menu */
.nav-menu > a:hover {
    color: #d0ffe3 !important;
    background: rgba(255, 255, 255, 0.10);
    transform: translateY(-1px);
}

/* Menu aktif */
.nav-menu > a.active {
    color: #ffffff !important;
    background: transparent;
    box-shadow: inset 0 -3px 0 #b5ffd1;
    border-radius: 0;
}

/* Tombol Login Admin */
.nav-menu > a.nav-login {
    color: #075f35 !important;
    background: #ffffff !important;
    font-size: 15px;
    font-weight: 800 !important;
    padding: 15px 18px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Hover tombol Login Admin */
.nav-menu > a.nav-login:hover {
    color: #ffffff !important;
    background: #04552f !important;
    border-color: #b5ffd1;
    transform: translateY(-2px);
}

/* Responsif */
@media (max-width: 768px) {
    .navbar-content {
        min-height: 72px;
    }

    .nav-menu > a {
        font-size: 14px;
        font-weight: 800 !important;
    }

    .nav-menu > a.nav-login {
        padding: 11px 14px;
    }
}


/* ==========================================
   SAMBUTAN KEPALA DESA AIR DUREN
========================================== */

.sambutan-kades {
    width: 100%;
    padding: 80px 24px;
    background: #f5f5f5;
    box-sizing: border-box;
}

.sambutan-kades-container {
    max-width: 1450px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 440px minmax(0, 1fr);
    align-items: center;
    gap: 58px;
}

/* Foto kepala desa */
.sambutan-kades-foto {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 50%;
    background: #e5e7eb;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.sambutan-kades-foto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Bagian teks */
.sambutan-kades-teks {
    min-width: 0;
}

.sambutan-kades-teks h1 {
    margin: 0 0 8px;
    color: #2675ff;
    font-size: clamp(30px, 3.1vw, 52px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
}

.sambutan-kades-teks h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 800;
}

.sambutan-kades-teks h3 {
    margin: 0 0 20px;
    color: #111827;
    font-size: 19px;
    font-weight: 800;
}

.sambutan-kades-teks p {
    margin: 0;
    color: #171717;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.8;
    text-align: left;
}

/* Tablet */
@media (max-width: 992px) {
    .sambutan-kades {
        padding: 60px 24px;
    }

    .sambutan-kades-container {
        grid-template-columns: 320px minmax(0, 1fr);
        gap: 32px;
    }

    .sambutan-kades-teks h1 {
        font-size: 34px;
    }

    .sambutan-kades-teks h2 {
        font-size: 24px;
    }

    .sambutan-kades-teks p {
        font-size: 16px;
        line-height: 1.7;
    }
}

/* HP */
@media (max-width: 650px) {
    .sambutan-kades {
        padding: 40px 20px;
    }

    .sambutan-kades-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sambutan-kades-foto {
        width: 260px;
        max-width: 100%;
    }

    .sambutan-kades-teks {
        text-align: center;
    }

    .sambutan-kades-teks h1 {
        font-size: 32px;
        letter-spacing: -0.5px;
    }

    .sambutan-kades-teks h2 {
        font-size: 24px;
    }

    .sambutan-kades-teks h3 {
        font-size: 17px;
    }

    .sambutan-kades-teks p {
        font-size: 15px;
        line-height: 1.8;
        text-align: left;
    }
}


/* Perbaikan teks navbar terpotong */
.navbar {
    height: auto !important;
    min-height: 100px;
    overflow: visible !important;
}

.navbar-content {
    min-height: 96px;
    height: auto !important;
    align-items: center;
    overflow: visible !important;
}

.nav-menu {
    display: flex;
    align-items: center;
    height: auto !important;
    overflow: visible !important;
}

.nav-menu > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 54px;
    height: auto !important;
    padding: 12px 14px;
    line-height: 1.5;
    overflow: visible !important;
}

.nav-menu > a.active {
    box-shadow: inset 0 -3px 0 #b5ffd1;
    padding-bottom: 12px;
}

.nav-menu > a.nav-login {
    min-height: 64px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .navbar-content {
        flex-wrap: wrap;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .nav-menu {
        flex-wrap: wrap;
    }
}


/* Hilangkan garis bawah pada tombol Login Admin */
.nav-menu > a.nav-login,
.nav-menu > a.nav-login:hover,
.nav-menu > a.nav-login:focus,
.nav-menu > a.nav-login:active {
    box-shadow: none !important;
    border-bottom: none !important;
    text-decoration: none !important;
    background-image: none !important;
}

/* Pastikan garis aktif hanya pada menu navigasi biasa */
.nav-menu > a.nav-login.active {
    box-shadow: none !important;
    border-bottom: none !important;
}


/* ==========================================
   PERBAIKAN NAVBAR MOBILE
========================================== */

@media (max-width: 768px) {

    .navbar {
        position: relative;
        z-index: 1000;
        min-height: 0;
        height: auto;
        overflow: visible !important;
    }

    .navbar-content {
        position: relative;
        display: flex;
        min-height: 64px;
        height: auto;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 10px 16px;
        gap: 10px;
        overflow: visible !important;
    }

    /* Menu mobile: tersembunyi secara default */
    .nav-menu {
        display: none;
        width: 100%;
        height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin-top: 8px;
        padding: 12px;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        overflow: visible !important;
    }

    /* Tampilkan saat menu dibuka */
    .nav-menu.active {
        display: flex;
    }

    .nav-menu > a {
        display: flex;
        width: 100%;
        min-height: 44px;
        height: auto;
        align-items: center;
        justify-content: flex-start;
        box-sizing: border-box;
        padding: 12px 14px;
        color: #075f35 !important;
        background: transparent;
        border-radius: 8px;
        box-shadow: none;
        text-decoration: none;
        line-height: 1.4;
    }

    .nav-menu > a.active {
        color: #087943 !important;
        background: #e7f7ee;
        box-shadow: none;
    }

    .nav-menu > a.nav-login {
        justify-content: center;
        margin-top: 6px;
        color: #ffffff !important;
        background: #087943 !important;
        border: none;
        border-radius: 8px;
        box-shadow: none !important;
    }

    .nav-menu > a.nav-login:hover,
    .nav-menu > a.nav-login:focus,
    .nav-menu > a.nav-login:active {
        color: #ffffff !important;
        background: #056b38 !important;
        box-shadow: none !important;
        text-decoration: none !important;
    }
}


/* ==========================================
   NAVBAR TETAP SAAT SCROLL
========================================== */

.navbar {
    position: sticky !important;
    top: 0;
    z-index: 9999;
    width: 100%;
    box-sizing: border-box;
}

/* Pastikan isi navbar tetap rapi */
.navbar-content {
    position: relative;
    z-index: 10000;
}

/* Navbar pada perangkat HP */
@media (max-width: 768px) {
    .navbar {
        position: sticky !important;
        top: 0;
        z-index: 9999;
    }

    .navbar-content {
        position: relative;
    }

    /* Menu terbuka tampil di bawah navbar */
    .nav-menu.active {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;
        z-index: 9998;
    }
}


/* =====================================================
   NAVBAR KEDUA INFOGRAFIS
===================================================== */

.infografis-subnav {
    display: none;
    position: relative;
    z-index: 999;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #dce9e0;
    box-shadow: 0 5px 15px rgba(0, 70, 35, 0.07);
}

.infografis-subnav.subnav-open {
    display: block;
}

.infografis-subnav-inner {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.infografis-subnav-inner a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 145px;
    padding: 12px 22px;
    border-radius: 9px;
    color: #075b35;
    background: #f0f7f2;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.infografis-subnav-inner a i {
    font-size: 17px;
}

.infografis-subnav-inner a:hover,
.infografis-subnav-inner a:focus-visible {
    color: #ffffff;
    background: #087943;
}

/* Tampilan HP */
@media (max-width: 768px) {
    .infografis-subnav-inner {
        width: 92%;
        gap: 10px;
    }

    .infografis-subnav-inner a {
        flex: 1;
        min-width: 0;
        padding: 12px 8px;
        font-size: 13px;
    }
}


/* =====================================================
   INFOGRAFIS PADA HALAMAN BERANDA
===================================================== */

.infografis-home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 35px;
}

.infografis-home-card {
    position: relative;
    overflow: hidden;
    padding: 35px;
    background: #ffffff;
    border: 1px solid #e0ebe4;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 75, 40, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.infografis-home-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 38px rgba(0, 75, 40, 0.13);
}

.infografis-home-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    margin-bottom: 22px;
    border-radius: 17px;
    background: #e4f5eb;
    color: #087943;
    font-size: 27px;
}

.apbdes-card .infografis-home-icon {
    background: #fff1d9;
    color: #b87912;
}

.infografis-home-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #087943;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.apbdes-card .infografis-home-label {
    color: #a56a0b;
}

.infografis-home-card h3 {
    margin: 0 0 14px;
    color: #123d2b;
    font-size: 24px;
    font-weight: 800;
}

.infografis-home-card p {
    margin: 0 0 25px;
    color: #637268;
    font-size: 15px;
    line-height: 1.8;
}

.infografis-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 20px;
    border-radius: 9px;
    background: #087943;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
}

.infografis-home-button:hover {
    background: #045b32;
    color: #ffffff;
}

.apbdes-card .infografis-home-button {
    background: #b87912;
}

.apbdes-card .infografis-home-button:hover {
    background: #8f5d0d;
}

/* Tampilan HP dan tablet */
@media (max-width: 768px) {
    .infografis-home-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .infografis-home-card {
        padding: 25px;
    }

    .infografis-home-card h3 {
        font-size: 21px;
    }
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}


/* =========================================
   INFOGRAFIS HOME - DESAIN MODERN
========================================= */

#infografis {
    padding: 80px 0 90px;
    background: linear-gradient(180deg, #f2faf6 0%, #e5f5ed 100%);
    position: relative;
    overflow: hidden;
    scroll-margin-top: 120px;
}

.infografis-heading {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 48px;
}

.infografis-heading > span {
    display: inline-block;
    color: #07804a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 14px;
}

.infografis-heading h2 {
    color: #073e2c;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.2;
    font-weight: 800;
    margin: 0 0 15px;
}

.infografis-heading p {
    color: #60766b;
    font-size: 17px;
    line-height: 1.8;
    margin: 0;
}

.infografis-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 22px;
    color: #07804a;
    font-size: 22px;
}

.infografis-divider span {
    width: 48px;
    height: 2px;
    background: #a9d9c0;
}

.infografis-home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.infografis-home-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    min-width: 0;
    overflow: hidden;
    padding: 38px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dceee4;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(0, 75, 40, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.infografis-home-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 75, 40, 0.12);
}

.infografis-home-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    border-radius: 28px;
    background: #e1f8ed;
    color: #07804a;
    font-size: 42px;
}

.infografis-home-content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.infografis-home-label {
    display: inline-block;
    padding: 9px 15px;
    margin-bottom: 15px;
    border-radius: 30px;
    background: #e3f8ed;
    color: #087943;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.infografis-home-card h3 {
    color: #073e2c;
    font-size: clamp(22px, 2.1vw, 31px);
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 15px;
}

.infografis-home-card p {
    color: #617064;
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 24px;
}

.infografis-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 15px 23px;
    border-radius: 12px;
    background: #07804a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 5px 12px rgba(7, 128, 74, 0.15);
    transition: background 0.2s ease, transform 0.2s ease;
}

.infografis-home-button:hover {
    background: #045d36;
    color: #ffffff;
    transform: translateY(-2px);
}

.card-decoration {
    position: absolute;
    right: 20px;
    bottom: 0;
    color: rgba(7, 128, 74, 0.08);
    font-size: 100px;
    pointer-events: none;
}

.apbdes-card .infografis-home-icon {
    background: #fff5d8;
    color: #bd8000;
}

.apbdes-card .infografis-home-label {
    background: #fff5d8;
    color: #a66c00;
}

.apbdes-card .infografis-home-button {
    background: #bd8000;
    box-shadow: 0 5px 12px rgba(189, 128, 0, 0.15);
}

.apbdes-card .infografis-home-button:hover {
    background: #946200;
}

.apbdes-card .card-decoration {
    color: rgba(189, 128, 0, 0.09);
}

/* Tablet */
@media (max-width: 1000px) {
    .infografis-home-grid {
        gap: 18px;
    }

    .infografis-home-card {
        padding: 26px;
        gap: 18px;
    }

    .infografis-home-icon {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
        border-radius: 20px;
        font-size: 30px;
    }
}

/* HP */
@media (max-width: 700px) {
    #infografis {
        padding: 55px 0 60px;
    }

    .infografis-heading {
        margin-bottom: 30px;
        padding: 0 8px;
    }

    .infografis-heading > span {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .infografis-heading p {
        font-size: 15px;
    }

    .infografis-home-grid {
        grid-template-columns: 1fr;
    }

    .infografis-home-card {
        flex-direction: column;
        padding: 25px;
        border-radius: 18px;
    }

    .infografis-home-icon {
        flex: 0 0 70px;
        width: 70px;
        height: 70px;
    }

    .infografis-home-card h3 {
        font-size: 23px;
    }

    .infografis-home-card p {
        font-size: 14px;
    }

    .infografis-home-button {
        width: 100%;
        box-sizing: border-box;
        padding: 14px 12px;
        font-size: 14px;
    }

    .card-decoration {
        font-size: 75px;
    }
}


/* =====================================================
   REDESAIN INFOGRAFIS DESA AIR DUREN
===================================================== */

#infografis.section {
    position: relative;
    overflow: hidden;
    padding: 80px 0 90px;
    background:
        radial-gradient(ellipse at 10% 10%, rgba(12, 153, 100, .09), transparent 35%),
        radial-gradient(ellipse at 95% 90%, rgba(15, 160, 107, .10), transparent 35%),
        #f2faf6;
}

#infografis .infografis-heading {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 48px;
}

#infografis .infografis-heading > span {
    color: #078447;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 4px;
}

#infografis .infografis-heading h2 {
    margin: 10px 0;
    color: #073f2d;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.2;
}

#infografis .infografis-heading p {
    color: #64756e;
    font-size: 16px;
    line-height: 1.8;
}

#infografis .infografis-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 22px;
    color: #078447;
}

#infografis .infografis-divider span {
    width: 45px;
    height: 2px;
    background: #a8d9c2;
}

#infografis .infografis-home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

#infografis .infografis-home-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    min-width: 0;
    padding: 38px;
    overflow: hidden;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #e0eee7;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(16, 77, 49, .07);
    transition: transform .25s ease, box-shadow .25s ease;
}

#infografis .infografis-home-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(16, 77, 49, .12);
}

#infografis .infografis-home-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 112px;
    width: 112px;
    height: 112px;
    border-radius: 25px;
    font-size: 43px;
}

#infografis .penduduk-card .infografis-home-icon {
    color: #078447;
    background: #e0f8ed;
}

#infografis .apbdes-card .infografis-home-icon {
    color: #b77a00;
    background: #fff5d5;
}

#infografis .infografis-home-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

#infografis .infografis-home-label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
}

#infografis .penduduk-card .infografis-home-label {
    color: #087744;
    background: #e1f8ed;
}

#infografis .apbdes-card .infografis-home-label {
    color: #9c6900;
    background: #fff4d1;
}

#infografis .infografis-home-card h3 {
    margin: 0 0 12px;
    color: #083e2d;
    font-size: clamp(23px, 2.3vw, 30px);
    line-height: 1.3;
}

#infografis .infografis-home-card p {
    margin: 0 0 23px;
    color: #68756f;
    font-size: 15px;
    line-height: 1.85;
}

#infografis .infografis-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: filter .2s ease, transform .2s ease;
}

#infografis .penduduk-card .infografis-home-button {
    background: linear-gradient(135deg, #079b60, #057345);
    box-shadow: 0 5px 12px rgba(7, 132, 71, .15);
}

#infografis .apbdes-card .infografis-home-button {
    background: linear-gradient(135deg, #d99a12, #a96d00);
    box-shadow: 0 5px 12px rgba(169, 109, 0, .15);
}

#infografis .infografis-home-button:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    #infografis .infografis-home-grid {
        grid-template-columns: 1fr;
    }

    #infografis .infografis-home-card {
        padding: 30px;
    }
}

@media (max-width: 560px) {
    #infografis.section {
        padding: 55px 0;
    }

    #infografis .infografis-heading {
        margin-bottom: 30px;
    }

    #infografis .infografis-heading > span {
        letter-spacing: 2px;
    }

    #infografis .infografis-home-card {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
        border-radius: 18px;
    }

    #infografis .infografis-home-icon {
        flex-basis: 82px;
        width: 82px;
        height: 82px;
        border-radius: 20px;
        font-size: 34px;
    }

    #infografis .infografis-home-card h3 {
        font-size: 25px;
    }

    #infografis .infografis-home-card p {
        font-size: 14px;
    }

    #infografis .infografis-home-button {
        width: 100%;
        padding: 13px 16px;
    }
}

.nav-menu a.active::after {
    width: 100%;
}


/* ========================================
   PERBAIKAN LAYOUT POTENSI DESA
======================================== */

.potensi-section {
    padding: 55px 0 65px;
    width: 100%;
}

.potensi-section .container {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
}

.potensi-section .section-heading {
    text-align: center;
    margin: 0 auto 38px;
}

.potensi-section .potensi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    align-items: stretch;
}

.potensi-section .potensi-card {
    width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.potensi-section .potensi-card a {
    margin-top: auto;
    align-self: flex-start;
}

/* Tampilan tablet */
@media (max-width: 768px) {
    .potensi-section .potensi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Tampilan HP */
@media (max-width: 520px) {
    .potensi-section {
        padding: 40px 0 45px;
    }

    .potensi-section .potensi-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}


/* =========================================
   PERBAIKAN POSISI KARTU POTENSI DESA
========================================= */

#potensi .container {
    width: 90%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

#potensi .section-heading {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

#potensi .feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    align-items: stretch;
}

#potensi .feature-card {
    width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

#potensi .feature-card p {
    flex-grow: 1;
}

#potensi .feature-card a {
    align-self: flex-start;
    margin-top: 18px;
}

/* Tablet */
@media (max-width: 768px) {
    #potensi .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

/* HP */
@media (max-width: 520px) {
    #potensi .feature-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* Tombol Lihat Semua Potensi */
.potensi-more {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 24px auto 0;
    padding: 0;
    clear: both;
}

.potensi-more a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    margin: 0 auto;
    color: #078447;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.potensi-more a:hover {
    color: #005b32;
}

.potensi-more a i {
    transition: transform 0.3s ease;
}

.potensi-more a:hover i {
    transform: translateX(4px);
}

