* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

body {
    min-height: 100vh;
    overflow-x: hidden;   /* hanya sembunyikan scroll horizontal */
    overflow-y: auto;     /* izinkan scroll ke bawah */
}

.hero {
    width: 100%;
    min-height: 100vh; 

    background: linear-gradient(
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.45)
    ),
    url("../assets/img/static/bg-desa.jpg") center/cover no-repeat;

    background-attachment: fixed; /* agar background ikut scroll */

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

    color: #fff;
    text-align: center;
    padding: 40px 20px; /* agar tidak mepet */
}

/* LOGO */
.logo img {
    width: 250px;
    margin-bottom: 15px;
}

.title {
    font-size: 30px;
    font-weight: 700;
}

.subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
}

/* MARQUEE */
.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 30px;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
    font-size: 14px;
    font-weight: 500;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* MENU */
.menu {
    width: 90%;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.menu-item {
    background: #ffffff;
    color: #333;
    text-decoration: none;
    padding: 20px 10px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.menu-item:hover {
    transform: translateY(-5px);
    background: #f2f2f2;
}

.menu-item img {
    width: 65px;
    height:65px;
    margin-bottom: 10px;
}

.menu-item span {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .title {
        font-size: 18px;
    }
}

/* PROFILE CSS */

/* FOTO BALAI DESA DI PROFILE */
.profile-photo {
    width: 100%;
    margin-bottom: 25px;
    text-align: center;
}

.profile-photo img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.photo-caption {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #555;
    font-style: italic;
} 

/* CONTENT BOX */
.content-box {
    background: rgba(255,255,255,0.95);
    color: #333;
    width: 90%;
    max-width: 800px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    text-align: left;
}

.content-box h2 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #1f6b3f;
}

.content-box p,
.content-box li {
    font-size: 14px;
    line-height: 1.7;
}

.content-box ul {
    margin-left: 20px;
}

/* BUTTON BACK */
.btn-back {
    display: inline-block;
    margin-top: 25px;
    text-decoration: none;
    background: #1f6b3f;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s;
}

.btn-back:hover {
    background: #145a32;
}

/* Unit-USAHA*\

/* UNIT USAHA */
.unit-container {
    width: 90%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.unit-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.unit-card:hover {
    transform: translateY(-5px);
}

.unit-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.unit-content {
    padding: 15px;
    color: #333;
}

.unit-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.unit-desc {
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.unit-phone {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.btn-wa {
    display: inline-block;
    text-decoration: none;
    background: #25D366;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    transition: 0.3s;
}

.btn-wa:hover {
    background: #1da851;
}

/* BERITA */

/* LIST BERITA */
.berita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 30px auto;
}

.berita-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    text-decoration: none;
    color: inherit;
    transition: transform .3s ease;
}

.berita-card:hover {
    transform: translateY(-6px);
}

.berita-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.berita-body {
    padding: 18px;
}

.berita-body h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1f2937;
}

.berita-meta {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.berita-body p {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 12px;
}

.read-more {
    font-size: 14px;
    color: #2563eb;
    font-weight: 600;
}

/* DETAIL BERITA */

/* DETAIL ARTIKEL */
.article-detail {
    text-align: left;
}

.article-cover img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 20px;
}

.article-title {
    font-size: 26px;
    margin-bottom: 10px;
    color: #1f2937;
}

.article-meta {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.article-content p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #374151;
}

/* GALERI FOTO DALAM BERITA */
.article-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 25px 0;
}

.article-gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* KONTAK */

.profile-image {
    text-align: center;
    margin-bottom: 20px;
}

.profile-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-list {
    margin-top: 20px;
}

.contact-item {
    background: rgba(255,255,255,0.85);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.contact-item a {
    color: #0a7cff;
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Lokasi */
.map-box {
    width: 100%;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.map-box iframe {
    width: 100%;
    height: 350px;
    border: 0;
}

.map-note {
    margin-top: 10px;
    font-size: 14px;
    color: #444;
    text-align: center;
}

