/* ========================================
   RESET & VARIABLES - FULL LAYAR
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    background: #f4f7fc;
    color: #1e2a3e;
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    background: linear-gradient(135deg, #5e0b40 40%, #1de6e3 100%);
    color: white;
    padding: 20px 0;
    border-bottom: 5px solid #ffc107;
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo-img {
    width: 50px;
    height: 60px;
    
    
    
}

.logo-img img {
    width: 100%;
    height: 100%;
   
}

.desa-title h1 {
    font-size: 1.8rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.desa-title p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========================================
   NAVBAR - OVERFLOW AMAN
   ======================================== */
.navbar {
    background: #1e3a2f;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    overflow-x: auto;
}

.nav-menu {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    justify-content: flex-start;
    min-width: max-content;
    padding: 0 20px;
    gap: 5px;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s;
    white-space: nowrap;
}

.nav-menu li a:hover {
    background: #ffc107;
    color: #1e3a2f;
    border-radius: 6px;
}

.dropdown-content {
    position: absolute;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    border-radius: 8px;
    top: 45px;
}

.dropdown-content a {
    color: #1e3a2f;
    padding: 10px 16px;
    font-weight: 500;
    display: block;
    white-space: nowrap;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   MAIN GRID (KIRI - TENGAH - KANAN) RAPI
   ======================================== */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 25px;
    margin: 35px 0;
    width: 100%;
}

.left-col,
.center-col,
.right-col {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    border-left: 5px solid #ffc107;
    padding-left: 15px;
    margin-bottom: 20px;
    color: #1e3a2f;
}

/* ========================================
   SLIDER HERO (TENGAH)
   ======================================== */
.slider-container {
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 10px;
}

.slider-photos {
    display: flex;
    animation: slideShow 15s infinite;
}

.slider-photos img {
    width: 100%;
    object-fit: cover;
    height: 260px;
    flex-shrink: 0;
}

@keyframes slideShow {
    0%, 30% { transform: translateX(0); }
    33%, 63% { transform: translateX(-100%); }
    66%, 100% { transform: translateX(-200%); }
}

.walking-text {
    background: #eef2f3;
    padding: 12px;
    border-radius: 40px;
    margin: 15px 0;
    overflow: hidden;
    white-space: nowrap;
}

.walking-text p {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-weight: 600;
    color: #0b5e2e;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.hero-text h3 {
    color: #1e3a2f;
    margin-top: 10px;
}

/* ========================================
   SLIDESHOW APARATUR (KIRI - 1 FOTO BERJALAN)
   ======================================== */
.slideshow-card {
    background: #f9f9f9;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slideshow-container {
    position: relative;
    width: 100%;
    margin: auto;
    overflow: hidden;
    border-radius: 16px;
    background: #1e3a2f;
    min-height: 320px;
}

.slide {
    display: none;
    text-align: center;
    animation: fadeEffect 0.8s ease-in-out;
}

.slide img {
    width: 90%;
    max-width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    margin: 20px auto 10px;
    border: 3px solid #ffc107;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.slide-caption {
    background: rgba(30, 58, 47, 0.85);
    color: white;
    padding: 10px;
    border-radius: 12px;
    margin: 10px 15px 15px;
}

.slide-caption h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
}

.slide-caption p {
    font-size: 0.85rem;
    opacity: 0.95;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 45%;
    width: auto;
    padding: 10px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s ease;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
}

.prev { left: 5px; }
.next { right: 5px; }

.prev:hover, .next:hover {
    background-color: #ffc107;
    color: #1e3a2f;
}

@keyframes fadeEffect {
    from { opacity: 0.4; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.dot-container {
    text-align: center;
    padding: 10px 0 5px;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: #ffc107;
}

.slide-info {
    text-align: center;
    font-size: 0.7rem;
    color: #0b5e2e;
    font-weight: 600;
    margin-top: 5px;
}

/* ========================================
   BOX LAYANAN & ADMIN (KANAN)
   ======================================== */
.admin-box,
.layanan-box {
    background: #eef5ea;
    border-radius: 18px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.btn-admin {
    background: #ffc107;
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-admin:hover {
    background: #e6a800;
    transform: scale(1.02);
}

.peta-box iframe {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    border: 0;
}

/* ========================================
   BAGIAN BAWAH (BERITA, GALERI, WISATA, KEUANGAN)
   RATA KIRI KANAN
   ======================================== */
.section-block {
    background: white;
    border-radius: 20px;
    margin-bottom: 30px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
}

/* Berita - Grid Rapi */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.news-card {
    background: #fafbfc;
    border-radius: 16px;
    padding: 15px;
    border-left: 4px solid #ffc107;
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Galeri - Rata Kiri */
.gallery-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.gallery-item {
    width: calc(20% - 12px);
    min-width: 100px;
    height: 120px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000;
    transition: 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* Wisata */
.wisata-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.wisata-card {
    background: #f0f7ea;
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    flex: 1;
    min-width: 160px;
    transition: 0.3s;
}

.wisata-card:hover {
    transform: translateY(-5px);
    background: #e0f0d8;
}

/* Keuangan */
.keuangan-table {
    overflow-x: auto;
    width: 100%;
}

table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

th {
    background: #1e3a2f;
    color: white;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: #510b4b;
    color: #cdddd0;
    padding: 30px 0 20px;
    margin-top: 40px;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-copyright {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #7c088e;
    padding-top: 16px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ========================================
   RESPONSIVE DESIGN - FULL LAYAR
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 20px;
    }
    
    .gallery-item {
        width: calc(33.33% - 10px);
    }
}

/* Mobile Landscape */
@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        background: #2a5a44;
        opacity: 1;
        visibility: visible;
        display: none;
        width: 100%;
    }
    
    .dropdown-content a {
        color: white;
        padding-left: 40px;
    }
    
    .dropdown:hover .dropdown-content {
        display: block;
    }
    
    .gallery-item {
        width: calc(50% - 10px);
    }
    
    .wisata-card {
        min-width: 100%;
    }
}

/* Mobile Portrait */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .slide img {
        max-width: 180px;
        height: 180px;
    }
    
    .prev, .next {
        padding: 6px;
        font-size: 14px;
    }
    
    .slider-photos img {
        height: 180px;
    }
    
    .desa-title h1 {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .gallery-item {
        height: 100px;
    }
}

/* HP Kecil */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .gallery-item {
        width: calc(100% - 10px);
        height: 150px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .slide img {
        max-width: 150px;
        height: 150px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   DATE & TIME BOX - ELEGAN DI HEADER
   ======================================== */
.date-time-box {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.date-time-box:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.date-box, .time-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.date-box i, .time-box i {
    font-size: 1rem;
    color: #ffc107;
    opacity: 0.9;
}

.date-box span, .time-box span {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: white;
}

/* Pemisah antara tanggal dan jam (opsional) */
.date-time-box::before {
    content: "|";
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    margin-right: 5px;
}

/* Responsive untuk HP */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .date-time-box {
        margin-left: 0;
        justify-content: center;
        width: 100%;
        padding: 6px 15px;
        gap: 15px;
    }
    
    .date-box span, .time-box span {
        font-size: 0.7rem;
    }
    
    .date-box i, .time-box i {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .date-time-box {
        flex-direction: column;
        gap: 5px;
        border-radius: 20px;
    }
    
    .date-time-box::before {
        display: none;
    }
}