/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Montserrat:wght@400;600&display=swap');

/* Palet Warna Baru Jawa Klasik */
:root {
    --primary-color: #2C5E3E; /* Hijau Giok Tua */
    --secondary-color: #A95C44; /* Cokelat Terakota */
    --accent-color: #D4AF37; /* Emas Kuno */
    --text-color: #333333;
    --bg-color: #FDFDFD; /* Putih Gading */
    --footer-bg: #1e3c28; /* Hijau Sangat Tua */
    --font-heading: 'Merriweather', serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
}

/* --- Header & Navigasi Umum --- */
.header-container {
    background-color: #ffffff;
    padding: 15px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid var(--primary-color);
}

.logo img {
    height: 60px; /* Disesuaikan agar lebih proporsional */
    width: auto;
}

.navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.navigation ul li {
    display: inline-block;
    margin-left: 35px;
}

.navigation a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1em;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s;
}

.navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    transition: width 0.4s ease;
}

.navigation a:hover,
.navigation a.active {
    color: var(--secondary-color);
}

.navigation a:hover::after,
.navigation a.active::after {
    width: 100%;
}

/* --- Konten Khusus Halaman Sejarah --- */
.content-sejarah {
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-sejarah {
    height: 50vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/img/hero-sejarah.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 3.5em;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

.hero-text p {
    font-size: 1.4em;
    font-weight: 400;
}

.page-content-sejarah {
    max-width: 900px;
    margin: -50px auto 50px auto; /* Konten menjorok ke hero image */
    background-color: var(--bg-color);
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

/* Card Info Asal-usul */
.info-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: #F8F5F1;
    padding: 50px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    margin-bottom: 50px;
}
.info-card-icon img {
    opacity: 0.7;
}
.info-card-content h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);

}

/* Section Tokoh */
.tokoh-section {
    text-align: center;
    margin-bottom: 60px;
}
.tokoh-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5em;
    color: var(--secondary-color);
}
.tokoh-content {
    display: flex;
    align-items: center;
    gap: 30px;
    text-align: left;
}
.tokoh-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent-color);
}

/* Container Timeline */
.timeline-container {
    text-align: center;
    margin-bottom: 50px;
}
.timeline-container h2 {
    font-family: var(--font-heading);
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    z-index: -1;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: -77px;
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}
.timeline-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid var(--bg-color);
    box-shadow: 0 0 0 3px var(--secondary-color);
}
.timeline-item:nth-child(odd) .timeline-icon {
    right: -30px;
}
.timeline-item:nth-child(even) .timeline-icon {
    left: -30px;
}
.timeline-content {
    padding: 20px 30px;
    background-color: #F8F5F1;
    position: relative;
    border-radius: 6px;
}
.timeline-content h3 {
    margin-top: 0;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

/* Section Visi */
.vision-section {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background-color: #F8F5F1;
    border-top: 4px solid var(--accent-color);
    border-radius: 0 0 8px 8px;
}
.vision-section h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}


/* --- Footer --- */
.footer-container {
    background-color: var(--footer-bg);
    color: #ffffff;
    text-align: center;
    padding: 25px;
    margin-top: 40px;
}
.footer-container a {
    text-decoration: none;
}

/* ================================================== */
/* === GAYA HALAMAN POTENSI DESA (TAMBAHKAN INI) ==== */
/* ================================================== */

.content-potensi {
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-potensi {
    height: 50vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/img/nasi-liwet-banner.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.page-content-potensi {
    max-width: 1200px;
    margin: -20px auto 50px auto;
    background-color: var(--bg-color);
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

/* Showcase Utama Nasi Liwet */
.masterpiece-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.masterpiece-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.masterpiece-description h2 {
    font-family: var(--font-heading);
    font-size: 2.8em;
    color: var(--secondary-color);
    margin-top: 0;
    line-height: 1.2;
}

.masterpiece-description h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-top: 30px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
    display: inline-block;
}

.secrets-list {
    list-style: none;
    padding-left: 0;
}

.secrets-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
}

.secrets-list li::before {
    content: '';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.mini-gallery {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.mini-gallery img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.mini-gallery img:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Kartu Potensi Lainnya */
.potensi-lain {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.potensi-lain h2 {
    font-family: var(--font-heading);
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.potensi-card {
    background-color: #F8F5F1;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border-bottom: 5px solid transparent;
    transition: transform 0.3s, border-color 0.3s;
}

.potensi-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--accent-color);
}

.card-icon {
    margin-bottom: 20px;
    color: var(--primary-color); /* Memberi warna pada ikon */
}

.card-svg-icon {
    stroke-width: 1.5; /* Mengatur ketebalan garis ikon */
}

.potensi-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.5em;
}

/* Call to Action Section */
.cta-section {
    background: var(--primary-color);
    color: white;
    padding: 60px 30px;
    text-align: center;
    margin-top: 50px;
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5em;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.cta-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-body);
    transition: transform 0.3s, background-color 0.3s;
}
.cta-button:hover {
    transform: translateY(-5px);
}
.cta-button.primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}
.cta-button.primary:hover {
    background-color: #ffdd40;
}

.cta-button.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid var(--accent-color);
}
.cta-button.secondary:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}


/* Responsif untuk layar kecil */
@media (max-width: 992px) {
    .masterpiece-showcase {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-content-potensi {
        padding: 30px 20px;
        margin: -60px auto 30px auto;
    }
    .masterpiece-description h2 {
        font-size: 2.2em;
    }
}

/* ================================================== */
/* ==== GAYA HALAMAN WISATA (TAMBAHKAN INI) ==== */
/* ================================================== */

.content-wisata {
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-wisata {
    height: 50vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/img/hero-wisata.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.page-content-wisata {
    max-width: 1100px;
    margin: -20px auto 50px auto;
    position: relative;
    z-index: 10;
}

.attraction-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 50px;
}
.attraction-showcase.reverse {
    grid-template-columns: repeat(2, 1fr); /* Tetap 2 kolom */
}
.attraction-showcase.reverse .attraction-description {
    order: 2; /* Tukar posisi deskripsi */
}
.attraction-showcase.reverse .attraction-gallery {
    order: 1; /* Tukar posisi galeri */
}


.attraction-description h2 {
    font-family: var(--font-heading);
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-top: 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.feature-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
}

.feature-icon {
    font-size: 1.5em;
    margin-right: 15px;
}

.attraction-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
}

.gallery-main {
    grid-column: 1 / 3;
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

/* Info Praktis */
.practical-info {
    background-color: #F8F5F1;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.practical-info h2 {
    font-family: var(--font-heading);
    font-size: 2.5em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 40px;
}

.info-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.info-card-item {
    background: var(--bg-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.info-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.info-card-item h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 10px;
}
.info-card-item p {
    line-height: 1.5;
    font-size: 0.9em;
}

.info-card-item a {
    color: var(--primary-color);
    font-weight: 600;
}


/* Responsif untuk Halaman Wisata */
@media (max-width: 900px) {
    .attraction-showcase, .attraction-showcase.reverse {
        grid-template-columns: 1fr;
    }
    .attraction-showcase.reverse .attraction-description {
        order: initial; /* Kembalikan urutan di layar kecil */
    }
    .attraction-showcase.reverse .attraction-gallery {
        order: initial; /* Kembalikan urutan di layar kecil */
    }
}

/* ================================================== */
/* ===== GAYA HALAMAN BUDAYA (TAMBAHKAN INI) ====== */
/* ================================================== */

.content-budaya {
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-budaya {
    height: 50vh;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.4)), url('/img/hero-budaya.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.page-content-budaya {
    max-width: 950px;
    margin: 40px auto;
    padding: 0 20px;
}

.intro-budaya {
    text-align: center;
    margin-bottom: 60px;
}

.intro-budaya h2 {
    font-family: var(--font-heading);
    font-size: 2.5em;
    color: var(--secondary-color);
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 40px;
}

/* Deep Dive Section */
.deep-dive-section {
    margin-bottom: 60px;
}
.event-part {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}
.event-part.reverse .event-image {
    order: 2;
}
.event-part.reverse .event-description {
    order: 1;
}

.event-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.event-description h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 1.8em;
    margin-top: 0;
}

/* Core Value Section */
.core-value-section {
    background-color: #F8F5F1;
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 60px;
    border-top: 5px solid var(--accent-color);
}
.core-value-section h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-top: 0;
}
.core-value-section blockquote {
    border: none;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2em;
    margin-top: 20px;
}
.core-value-section cite {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    font-style: normal;
    color: var(--secondary-color);
}

/* Preserved Arts Section */
.preserved-arts-section {
    margin-bottom: 60px;
}

.arts-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.art-card {
    text-align: center;
}
.art-icon {
    color: var(--primary-color);
    margin-bottom: 15px;
}
.art-card h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 1.4em;
    margin-bottom: 5px;
}

/* Calendar CTA Section */
.calendar-cta-section {
    background-color: var(--footer-bg);
    color: #e0e0e0;
    padding: 50px 30px;
    text-align: center;
}
.calendar-cta-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5em;
    color: var(--accent-color);
    margin-top: 0;
}
.calendar-cta-section ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px 0;
    display: inline-block;
    text-align: left;
}
.calendar-cta-section li {
    margin-bottom: 10px;
}
.calendar-cta-section li::before {
    content: '🗓️';
    margin-right: 10px;
}
.calendar-cta-section .cta-button {
    margin-top: 20px;
}

/* Responsif untuk Halaman Budaya */
@media (max-width: 768px) {
    .event-part, .event-part.reverse {
        grid-template-columns: 1fr;
    }
    .event-part.reverse .event-image {
        order: initial;
    }
    .event-part.reverse .event-description {
        order: initial;
    }
    .page-content-budaya {
        margin-top: 20px;
    }
}