/* ====================================================== */
/* STYLESHEET UTAMA - DESA ABALI (VERSI SEJARAH)     */
/* ====================================================== */

/* Palet Warna & Font Utama */
:root {
    --primary-color: #4A6B3A; /* Hijau Tua Daun */
    --secondary-color: #A47A5A; /* Coklat Kayu */
    --accent-color: #FDB813; /* Kuning Emas */
    --background-color: #F5F5DC; /* Krem Hangat */
    --background-ivory: #FFFFF0; /* Putih Gading */
    --text-color: #3d3d3d;
    --light-text-color: #FFFFFF;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-hover-color: rgba(0, 0, 0, 0.15);
    --font-heading: 'Merriweather', serif;
    --font-body: 'Lato', sans-serif;
}

/* Reset dan Pengaturan Dasar */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigasi */
header {
    background: var(--primary-color);
    padding: 15px 0;
    border-bottom: 5px solid var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease;
}

header.header-scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--light-text-color);
}

header .logo {
    width: 60px; /* Ukuran logo yang lebih seimbang */
    height: 60px;
    margin-right: 15px;
}

header h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin: 0 0 2px 0;
    transition: font-size 0.3s ease;
    line-height: 1.1;
}

.header-slogan {
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    font-style: italic;
}

/* Navigasi Utama */
.main-nav ul { list-style: none; display: flex; }
.main-nav ul li { margin-left: 30px; }
.main-nav ul li a { color: var(--light-text-color); text-decoration: none; padding-bottom: 5px; font-weight: bold; position: relative; transition: color 0.3s ease; }
.main-nav ul li a::after { content:''; position: absolute; width: 0; height: 2px; background: var(--accent-color); bottom: 0; left: 50%; transform: translateX(-50%); transition: width 0.3s ease; }
.main-nav ul li a:hover::after, .main-nav ul li a.active::after { width: 100%; }
.main-nav ul li a:hover, .main-nav ul li a.active { color: #fff; }

.hamburger-menu { display: none; }


/* Grid Kartu Navigasi */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; padding: 60px 0; }
.card { background-size: cover; background-position: center; color: var(--light-text-color); text-decoration: none; border-radius: 10px; overflow: hidden; height: 250px; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 15px var(--shadow-color); transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease; position: relative; text-align: center; }
.card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.45); z-index: 1; transition: background 0.3s ease; }
.card:hover { transform: translateY(-10px); box-shadow: 0 10px 25px var(--shadow-hover-color); filter: saturate(1.2); }
.card:hover::before { background: rgba(0,0,0,0.3); }
.card-content { padding: 25px; position: relative; z-index: 2; }
.card h3 { font-family: var(--font-heading); font-size: 1.8rem; margin: 0; }

/* Banner Slider */
.banner-slider { position: relative; overflow: hidden; }
.slide { position: relative; height: 550px; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: var(--light-text-color); background-color: rgba(0, 0, 0, 0.55); padding: 30px 40px; border-radius: 10px; width: 90%; max-width: 700px; }
.slide-caption h2 { font-family: var(--font-heading); font-size: 2.8rem; margin-bottom: 15px; }
.slide-caption p { font-size: 1.2rem; margin-bottom: 25px; }
.slide-caption .button { display: inline-block; background-color: var(--secondary-color); color: var(--light-text-color); padding: 12px 30px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: background-color 0.3s ease; }
.slide-caption .button:hover { background-color: var(--accent-color); color: var(--text-color); }
.slick-dots { bottom: 25px; }
.slick-dots li button:before { font-size: 12px; color: var(--light-text-color); opacity: 0.7; }
.slick-dots li.slick-active button:before { color: var(--accent-color); opacity: 1; }

/* Struktur Seksi Konten */
.content-section { padding: 60px 0; }
.bg-ivory { background-color: var(--background-ivory); }

/* Judul Seksi */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title span { color: var(--secondary-color); font-weight: bold; display: block; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.section-title h2 { font-family: var(--font-heading); color: var(--primary-color); font-size: 2.2rem; margin-top: 5px; position: relative; display: inline-block; padding-bottom: 10px; }
.section-title h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background-color: var(--accent-color); border-radius: 2px; }

/* Seksi Sambutan */
.welcome-section { display: flex; align-items: center; gap: 50px; }
.welcome-image { flex-basis: 35%; }
.welcome-image img { width: 100%; border-radius: 50%; border: 10px solid #fff; box-shadow: 0 5px 25px var(--shadow-color); }
.welcome-text { flex-basis: 65%; }
.welcome-text h3 { font-family: var(--font-heading); color: var(--primary-color); font-size: 1.5rem; margin-bottom: 15px; }
.welcome-text p { margin-bottom: 15px; }
.welcome-text .signature { margin-top: 20px; font-style: italic; color: var(--secondary-color); }

/* Seksi Potensi */
.potentials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.potential-item { background-color: #fff; padding: 30px; text-align: center; border-radius: 10px; box-shadow: 0 5px 20px var(--shadow-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.potential-item:hover { transform: translateY(-10px); box-shadow: 0 10px 30px var(--shadow-hover-color); }
.potential-icon { width: 80px; height: 80px; margin: 0 auto 20px auto; background-color: var(--accent-color); border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.potential-icon svg { width: 45px; height: 45px; color: var(--primary-color); transition: transform 0.3s ease; }
.potential-item:hover .potential-icon svg { transform: scale(1.2) rotate(-10deg); }
.potential-item h3 { font-family: var(--font-heading); color: var(--primary-color); font-size: 1.3rem; margin-bottom: 10px; }

/* Seksi Timeline */
.timeline-container { position: relative; max-width: 800px; margin: 0 auto; padding: 40px 0; }
.timeline-container::after { content: ''; position: absolute; width: 3px; background-color: var(--accent-color); top: 0; bottom: 0; left: 50%; margin-left: -1.5px; border-radius: 3px; }
.timeline-item { padding: 10px 40px; position: relative; width: 50%; }
.timeline-dot { content: ''; position: absolute; width: 20px; height: 20px; background-color: white; border: 5px solid var(--primary-color); border-radius: 50%; top: 30px; z-index: 1; }
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item:nth-child(odd) .timeline-dot { right: -10px; }
.timeline-item:nth-child(even) .timeline-dot { left: -10px; }
.timeline-content { padding: 20px 30px; background-color: white; position: relative; border-radius: 8px; box-shadow: 0 3px 15px var(--shadow-color); border-left: 5px solid var(--primary-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.timeline-item:nth-child(even) .timeline-content { border-left: none; border-right: 5px solid var(--primary-color); }
.timeline-content:hover { transform: translateY(-5px); box-shadow: 0 5px 20px var(--shadow-hover-color); }
.timeline-date { background-color: var(--secondary-color); color: var(--light-text-color); padding: 4px 12px; border-radius: 20px; font-size: 0.9rem; font-weight: bold; display: inline-block; margin-bottom: 10px; }
.timeline-content h3 { font-family: var(--font-heading); color: var(--primary-color); margin-top: 5px; font-size: 1.25rem; }

/* Footer */
footer { background: var(--text-color); color: var(--light-text-color); text-align: center; padding: 20px 0; margin-top: 40px; font-size: 0.9rem; }

/* Animasi On-Scroll */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* Tombol Kembali ke Atas */
.back-to-top { position: fixed; bottom: 30px; right: 30px; background-color: var(--primary-color); color: var(--light-text-color); width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; text-decoration: none; box-shadow: 0 4px 10px var(--shadow-color); z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease; }
.back-to-top svg { width: 24px; height: 24px; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background-color: var(--accent-color); }

/* ====================================================== */
/* KONTEN KHUSUS HALAMAN SEJARAH                     */
/* ====================================================== */

/* Hero Section Statis */
.hero-section {
    height: 60vh;
    background-image: url('/img/bg-sejarah-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text-color);
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}
.hero-content p {
    font-size: 1.3rem;
    font-style: italic;
    opacity: 0.9;
}
.animate-on-load {
    animation: fadeInDown 1s ease-out both;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Intro Section */
.intro-section {
    padding-top: 60px;
    padding-bottom: 30px;
}
.intro-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
}


/* Timeline */
.timeline-container { position: relative; max-width: 800px; margin: 0 auto; padding: 40px 0; }
.timeline-container::after { content: ''; position: absolute; width: 3px; background-color: var(--accent-color); top: 0; bottom: 0; left: 50%; margin-left: -1.5px; border-radius: 3px; }
.timeline-item { padding: 10px 40px; position: relative; width: 50%; }
.timeline-dot { content: ''; position: absolute; width: 20px; height: 20px; background-color: white; border: 5px solid var(--primary-color); border-radius: 50%; top: 30px; z-index: 1; }
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item:nth-child(odd) .timeline-dot { right: -10px; }
.timeline-item:nth-child(even) .timeline-dot { left: -10px; }
.timeline-content { padding: 20px 30px; background-color: white; position: relative; border-radius: 8px; box-shadow: 0 3px 15px var(--shadow-color); border-left: 5px solid var(--primary-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.timeline-item:nth-child(even) .timeline-content { border-left: none; border-right: 5px solid var(--primary-color); }
.timeline-content:hover { transform: translateY(-5px); box-shadow: 0 5px 20px var(--shadow-hover-color); }
.timeline-date { background-color: var(--secondary-color); color: var(--light-text-color); padding: 4px 12px; border-radius: 20px; font-size: 0.9rem; font-weight: bold; display: inline-block; margin-bottom: 10px; }
.timeline-content h3 { font-family: var(--font-heading); color: var(--primary-color); margin-top: 5px; font-size: 1.25rem; }

/* Asal-Usul Nama */
.origin-section { display: flex; align-items: center; gap: 50px; }
.origin-image { flex-basis: 40%; }
.origin-image img { width: 100%; border-radius: 10px; box-shadow: 0 5px 25px var(--shadow-color); }
.origin-text { flex-basis: 60%; }
.origin-text h3 { font-family: var(--font-heading); color: var(--primary-color); font-size: 1.5rem; margin-bottom: 15px; }

/* Tokoh Pendiri */
.founders-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.founder-card { background-color: #fff; padding: 25px; text-align: center; border-radius: 10px; box-shadow: 0 5px 20px var(--shadow-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.founder-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px var(--shadow-hover-color); }
.founder-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 5px solid var(--background-color); }
.founder-card h4 { font-family: var(--font-heading); color: var(--primary-color); font-size: 1.3rem; margin-bottom: 5px; }
.founder-card span { color: var(--secondary-color); font-style: italic; display: block; margin-bottom: 10px; }

/* Footer */
footer { background: var(--text-color); color: rgba(255, 255, 255, 0.8); text-align: center; padding: 20px 0; margin-top: 40px; font-size: 0.9rem; }

/* Animasi & Tombol Kembali ke Atas */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.back-to-top { position: fixed; bottom: 30px; right: 30px; background-color: var(--primary-color); color: var(--light-text-color); width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; text-decoration: none; box-shadow: 0 4px 10px var(--shadow-color); z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease; }
.back-to-top svg { width: 24px; height: 24px; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background-color: var(--accent-color); }

/* --- Media Queries untuk Responsif --- */
@media (max-width: 850px) {
    .main-nav { position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--primary-color); flex-direction: column; max-height: 0; overflow: hidden; transition: max-height 0.5s ease-in-out; }
    .main-nav.is-open { max-height: 500px; }
    .main-nav ul { flex-direction: column; padding: 20px; }
    .main-nav ul li { margin: 10px 0; text-align: center; }
    .hamburger-menu { display: flex; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 10; }
    .hamburger-menu .line { width: 30px; height: 3px; background-color: white; border-radius: 5px; transition: all 0.3s linear; }
    .hamburger-menu.is-active .line:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .hamburger-menu.is-active .line:nth-child(2) { opacity: 0; }
    .hamburger-menu.is-active .line:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
    .header-slogan { display: none; }
    .origin-section { flex-direction: column; }
    .timeline-container::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 15px; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { left: 0; }
    .timeline-dot { left: 10px; }
    .timeline-item:nth-child(even) .timeline-content { border-right: none; border-left: 5px solid var(--primary-color); }
}

/* ====================================================== */
/* PENYEMPURNAAN & SENTUHAN AKHIR CSS                     */
/* ====================================================== */

/* 1. Kustomisasi Scrollbar Browser */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--background-ivory); }
::-webkit-scrollbar-thumb { background-color: var(--secondary-color); border-radius: 20px; border: 3px solid var(--background-ivory); }
::-webkit-scrollbar-thumb:hover { background-color: var(--primary-color); }

/* 2. Kustomisasi Warna Sorotan Teks */
::selection { background-color: var(--accent-color); color: var(--primary-color); }

/* 3. Style Khusus untuk Versi Cetak (Print) */
@media print {
  header, footer, .hamburger-menu, .back-to-top, .timeline-dot { display: none !important; }
  body { background-color: #fff !important; color: #000 !important; font-size: 12pt; }
  .hero-section, .content-section, .founder-card, .timeline-content, header.header-scrolled { background: transparent !important; box-shadow: none !important; border: none !important; padding-top: 20px; padding-bottom: 20px; }
  .hero-content { color: #000 !important; text-shadow: none !important; padding-bottom: 30px; }
  .hero-content h1 { font-size: 24pt !important; }
  .timeline-container::after { display: none; }
  .timeline-item, .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { width: 100%; padding: 0; left: 0; margin-bottom: 20px; }
  .timeline-content { border: 1px solid #ccc !important; }
  img { max-width: 100% !important; }
  a[href^="http"]:after { content: " (" attr(href) ")"; }
}

/* ======================================= */
/* TAMBAHAN KECIL UNTUK TOMBOL CTA        */
/* ======================================= */

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* === BAGIAN KONTEN BARU UNTUK HALAMAN SEJARAH === */

/* 1. Hero Section Statis */
.hero-section {
    height: 60vh;
    background-image: url('images/bg-sejarah-hero.jpg'); /* Ganti dengan gambar Anda */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efek parallax sederhana */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text-color);
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}
.hero-content p {
    font-size: 1.3rem;
    font-style: italic;
    opacity: 0.9;
}
.animate-on-load {
    animation: fadeInDown 1s ease-out both;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 2. Intro Section */
.intro-section {
    padding-top: 60px;
    padding-bottom: 30px;
}
.intro-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
}

/* 3. Timeline (Sama seperti sebelumnya, tidak perlu diubah) */
.timeline-container { position: relative; max-width: 800px; margin: 0 auto; padding: 40px 0; }
.timeline-container::after { content: ''; position: absolute; width: 3px; background-color: var(--accent-color); top: 0; bottom: 0; left: 50%; margin-left: -1.5px; border-radius: 3px; }
.timeline-item { padding: 10px 40px; position: relative; width: 50%; }
.timeline-dot { content: ''; position: absolute; width: 20px; height: 20px; background-color: white; border: 5px solid var(--primary-color); border-radius: 50%; top: 30px; z-index: 1; }
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item:nth-child(odd) .timeline-dot { right: -10px; }
.timeline-item:nth-child(even) .timeline-dot { left: -10px; }
.timeline-content { padding: 20px 30px; background-color: white; position: relative; border-radius: 8px; box-shadow: 0 3px 15px var(--shadow-color); border-left: 5px solid var(--primary-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.timeline-item:nth-child(even) .timeline-content { border-left: none; border-right: 5px solid var(--primary-color); }
.timeline-content:hover { transform: translateY(-5px); box-shadow: 0 5px 20px var(--shadow-hover-color); }
.timeline-date { background-color: var(--secondary-color); color: var(--light-text-color); padding: 4px 12px; border-radius: 20px; font-size: 0.9rem; font-weight: bold; display: inline-block; margin-bottom: 10px; }
.timeline-content h3 { font-family: var(--font-heading); color: var(--primary-color); margin-top: 5px; font-size: 1.25rem; }

/* 4. Asal-Usul Nama */
.origin-section { display: flex; align-items: center; gap: 50px; }
.origin-image { flex-basis: 40%; }
.origin-image img { width: 100%; border-radius: 10px; box-shadow: 0 5px 25px var(--shadow-color); }
.origin-text { flex-basis: 60%; }
.origin-text h3 { font-family: var(--font-heading); color: var(--primary-color); font-size: 1.5rem; margin-bottom: 15px; }

/* 5. Tokoh Pendiri */
.founders-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.founder-card { background-color: #fff; padding: 25px; text-align: center; border-radius: 10px; box-shadow: 0 5px 20px var(--shadow-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.founder-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px var(--shadow-hover-color); }
.founder-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 5px solid var(--background-color); }
.founder-card h4 { font-family: var(--font-heading); color: var(--primary-color); font-size: 1.3rem; margin-bottom: 5px; }
.founder-card span { color: var(--secondary-color); font-style: italic; display: block; margin-bottom: 10px; }


/* Footer, Animasi, Tombol Back to Top (Sama seperti sebelumnya) */
footer { background: var(--text-color); color: rgba(255, 255, 255, 0.8); text-align: center; padding: 20px 0; margin-top: 40px; font-size: 0.9rem; }
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.back-to-top { position: fixed; bottom: 30px; right: 30px; background-color: var(--primary-color); color: var(--light-text-color); width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; text-decoration: none; box-shadow: 0 4px 10px var(--shadow-color); z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background-color: var(--accent-color); }

/* Media Queries (penyesuaian untuk hamburger & konten baru) */
@media (max-width: 850px) {
    .main-nav { position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--primary-color); flex-direction: column; max-height: 0; overflow: hidden; transition: max-height 0.5s ease-in-out; }
    .main-nav.is-open { max-height: 500px; }
    .main-nav ul { flex-direction: column; padding: 20px; }
    .main-nav ul li { margin: 10px 0; text-align: center; }
    .hamburger-menu { display: flex; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 10; }
    .hamburger-menu .line { width: 30px; height: 3px; background-color: white; border-radius: 5px; transition: all 0.3s linear; }
    .hamburger-menu.is-active .line:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .hamburger-menu.is-active .line:nth-child(2) { opacity: 0; }
    .hamburger-menu.is-active .line:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
    .header-slogan { display: none; }
    .origin-section { flex-direction: column; }
    .timeline-container::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 15px; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { left: 0; }
    .timeline-dot { left: 10px; }
    .timeline-item:nth-child(even) .timeline-content { border-right: none; border-left: 5px solid var(--primary-color); }
}

/* ====================================================== */
/* KONTEN KHUSUS HALAMAN BUDAYA                         */
/* ====================================================== */

/* Hero Section */
.hero-section {
    height: 70vh;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3)), url('/img/bg-budaya-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text-color);
}
.hero-content h1 { font-family: var(--font-heading); font-size: 3.5rem; text-shadow: 2px 2px 8px rgba(0,0,0,0.6); }
.hero-content p { font-size: 1.3rem; margin-top: 10px; opacity: 0.9; font-style: italic; }
.animate-on-load { animation: fadeInDown 1s ease-out 0.2s both; }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* Falsafah Hidup */
.philosophy-section { display: flex; align-items: center; gap: 50px; }
.philosophy-image { flex-basis: 35%; text-align: center; }
.philosophy-image img { max-width: 250px; filter: drop-shadow(0 4px 15px rgba(0,0,0,0.2)); }
.philosophy-text { flex-basis: 65%; }
.philosophy-text h3 { font-family: var(--font-heading); color: var(--primary-color); font-size: 1.8rem; margin-bottom: 15px; }

/* Tradisi & Upacara */
.tradition-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.tradition-card { background-color: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 20px var(--shadow-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.tradition-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px var(--shadow-hover-color); }
.tradition-card img { width: 100%; height: 200px; object-fit: cover; }
.tradition-card h4 { font-family: var(--font-heading); color: var(--primary-color); font-size: 1.3rem; padding: 20px 20px 5px 20px; }
.tradition-card p { padding: 0 20px 20px 20px; }

/* Kesenian Khas */
.arts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.art-item { text-align: center; }
.art-item img { width: 100%; height: 220px; object-fit: cover; border-radius: 10px; margin-bottom: 20px; box-shadow: 0 5px 20px var(--shadow-color); }
.art-item h3 { font-family: var(--font-heading); color: var(--primary-color); font-size: 1.4rem; margin-bottom: 10px; }

/* Kalender Budaya (Timeline) - Style sama seperti sebelumnya, tidak perlu diubah */
.timeline-container { position: relative; max-width: 800px; margin: 0 auto; padding: 40px 0; }
.timeline-container::after { content: ''; position: absolute; width: 3px; background-color: var(--accent-color); top: 0; bottom: 0; left: 50%; margin-left: -1.5px; border-radius: 3px; }
.timeline-item { padding: 10px 40px; position: relative; width: 50%; }
.timeline-dot { content: ''; position: absolute; width: 20px; height: 20px; background-color: white; border: 5px solid var(--primary-color); border-radius: 50%; top: 30px; z-index: 1; }
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item:nth-child(odd) .timeline-dot { right: -10px; }
.timeline-item:nth-child(even) .timeline-dot { left: -10px; }
.timeline-content { padding: 20px 30px; background-color: white; position: relative; border-radius: 8px; box-shadow: 0 3px 15px var(--shadow-color); border-left: 5px solid var(--primary-color); }
.timeline-item:nth-child(even) .timeline-content { border-left: none; border-right: 5px solid var(--primary-color); }
.timeline-date { background-color: var(--secondary-color); color: var(--light-text-color); padding: 4px 12px; border-radius: 20px; font-size: 0.9rem; font-weight: bold; display: inline-block; margin-bottom: 10px; }
.timeline-content h3 { font-family: var(--font-heading); color: var(--primary-color); margin-top: 5px; font-size: 1.25rem; }

/* CTA Section */
.cta-section { padding: 60px 0; background-color: var(--primary-color); color: var(--light-text-color); text-align: center; }
.cta-section h2 { font-family: var(--font-heading); font-size: 2.5rem; }
.cta-section p { max-width: 600px; margin: 15px auto 30px auto; opacity: 0.9; }
.hero-button { display: inline-block; padding: 15px 35px; background-color: var(--accent-color); color: var(--primary-color); font-weight: bold; text-decoration: none; border-radius: 50px; transition: all 0.3s ease; }
.hero-button:hover { background-color: var(--light-text-color); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }



/* Media Queries */
@media (max-width: 850px) {
    .main-nav, .hamburger-menu { /* Aturan sama */ }
    .main-nav { position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--primary-color); flex-direction: column; max-height: 0; overflow: hidden; transition: max-height 0.5s ease-in-out; }
    .main-nav.is-open { max-height: 500px; }
    .main-nav ul { flex-direction: column; padding: 20px; }
    .main-nav ul li { margin: 10px 0; text-align: center; }
    .hamburger-menu { display: flex; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 10; }
    .hamburger-menu .line { width: 30px; height: 3px; background-color: white; border-radius: 5px; transition: all 0.3s linear; }
    .hamburger-menu.is-active .line:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .hamburger-menu.is-active .line:nth-child(2) { opacity: 0; }
    .hamburger-menu.is-active .line:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .header-slogan { display: none; }
    .philosophy-section { flex-direction: column; }
    .timeline-container::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 15px; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { left: 0; }
    .timeline-dot { left: 10px; }
}

/* ====================================================== */
/* KONTEN KHUSUS HALAMAN KONTAK                         */
/* ====================================================== */

/* Hero Section */
.hero-section {
    height: 50vh;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3)), url('/img/bg-sejarah-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text-color);
}
.hero-content h1 { font-family: var(--font-heading); font-size: 3.5rem; text-shadow: 2px 2px 8px rgba(0,0,0,0.6); }
.hero-content p { font-size: 1.3rem; margin-top: 10px; opacity: 0.9; font-style: italic; }
.animate-on-load { animation: fadeInUp 1s ease-out 0.2s both; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Grid Info Kontak */
.contact-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.info-box { background: var(--background-ivory); text-align: center; padding: 30px; border-radius: 10px; }
.info-icon { margin-bottom: 15px; }
.info-icon svg { width: 45px; height: 45px; color: var(--primary-color); }
.info-box h3 { font-family: var(--font-heading); color: var(--primary-color); font-size: 1.3rem; margin-bottom: 10px; }
.info-box p { line-height: 1.6; font-size: 1rem; }

/* Layout Utama Kontak (Form & Tim) */
.contact-main-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }
.section-title { text-align: center; margin-bottom: 30px; }
.section-title span { font-size: 0.9rem; }
.section-title h2 { font-size: 2rem; }

/* Formulir Kontak */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-family: var(--font-body); font-size: 1rem; transition: border-color 0.3s, box-shadow 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(74, 107, 58, 0.2); }
.submit-button { display: inline-block; width: 100%; padding: 15px; background-color: var(--primary-color); color: var(--light-text-color); font-weight: bold; font-size: 1.1rem; text-decoration: none; border-radius: 5px; border: none; cursor: pointer; transition: all 0.3s ease; }
.submit-button:hover { background-color: var(--accent-color); color: var(--primary-color); }

/* Tim Kami */
.team-card { display: flex; align-items: center; gap: 15px; background: #fff; padding: 15px; border-radius: 8px; margin-bottom: 15px; box-shadow: 0 2px 10px var(--shadow-color); }
.team-card img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; }
.team-card h4 { font-family: var(--font-heading); margin: 0; font-size: 1.1rem; }
.team-card span { font-size: 0.9rem; color: var(--secondary-color); }

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #eee; }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 20px 0; font-family: var(--font-heading); font-size: 1.2rem; color: var(--primary-color); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 1.5rem; font-weight: bold; color: var(--secondary-color); transition: transform 0.3s ease; }
.faq-question.active::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; }
.faq-answer p { padding: 0 10px 20px 10px; }

/* Elemen Lain (Footer, Animasi, Tombol Back to Top) */
.content-section { padding: 80px 0; }
.bg-ivory { background-color: var(--background-ivory); }
footer { background: var(--text-color); color: rgba(255, 255, 255, 0.8); text-align: center; padding: 20px 0; font-size: 0.9rem; }
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.back-to-top { /* Style sama seperti sebelumnya */ }
.back-to-top { position: fixed; bottom: 30px; right: 30px; background-color: var(--primary-color); color: var(--light-text-color); width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; text-decoration: none; box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s ease; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background-color: var(--accent-color); }

/* Media Queries */
@media (max-width: 850px) {
    .main-nav { position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--primary-color); flex-direction: column; max-height: 0; overflow: hidden; transition: max-height 0.5s ease-in-out; }
    .main-nav.is-open { max-height: 500px; }
    .main-nav ul { flex-direction: column; padding: 20px; }
    .main-nav ul li { margin: 10px 0; text-align: center; }
    .hamburger-menu { display: flex; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 10; }
    .hamburger-menu .line { width: 30px; height: 3px; background-color: white; border-radius: 5px; transition: all 0.3s linear; }
    .hamburger-menu.is-active .line:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .hamburger-menu.is-active .line:nth-child(2) { opacity: 0; }
    .hamburger-menu.is-active .line:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
}

@media (max-width: 768px) {
    .header-slogan { display: none; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
}