/* ================= style.css ================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --bg-ivory: #FCFAF2;
    --text-dark: #2C1E16; /* Cokelat gelap kayu */
    --gold-primary: #C5A059;
    --gold-light: #E8D3A2;
    --red-bali: #8B261D; /* Merah bata oriental */
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-ivory);
    color: var(--text-dark);
    /* GANTI INI DENGAN GAMBAR MOTIF BALI KALIAN NANTI */
    background-image: url('bg-pattern-bali.png'); 
    background-attachment: fixed;
    background-size: 400px;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--red-bali);
}

/* TOP BAR (Di Atas Navbar) */
.top-bar {
    background-color: var(--red-bali);
    color: var(--gold-light);
    text-align: center;
    padding: 8px 20px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-family: 'Playfair Display', serif;
    border-bottom: 2px solid var(--gold-primary);
}

/* NAVBAR MULTI-PAGE */
nav {
    background-color: rgba(252, 250, 242, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 60px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px double var(--gold-primary);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--red-bali);
}

.logo span { color: var(--gold-primary); }

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

nav a:hover, nav a.active {
    color: var(--red-bali);
    border-bottom: 2px solid var(--gold-primary);
}

/* HERO SECTION (BANNER) */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(44, 30, 22, 0.6), rgba(139, 38, 29, 0.4)), url('https://images.unsplash.com/photo-1518548419970-58e3b4079ab2?q=80&w=1920') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    border-bottom: 5px solid var(--gold-primary);
}

.hero h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    color: var(--gold-light);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* KONTEN HALAMAN (Berbingkai Oriental) */
.page-container {
    max-width: 1000px;
    margin: 40px auto;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border: 2px solid var(--gold-light);
    box-shadow: 0 10px 30px rgba(139, 38, 29, 0.1);
    position: relative;
}

/* Bingkai Sudut Oriental */
.page-container::before, .page-container::after {
    content: ''; position: absolute; width: 40px; height: 40px;
    border: 3px solid var(--gold-primary);
}
.page-container::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.page-container::after { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    border-bottom: 2px dashed var(--gold-primary);
    padding-bottom: 15px;
}

/* GRID & MEDIA */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

img, video {
    width: 100%;
    border: 4px solid #fff;
    outline: 2px solid var(--gold-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.box-oriental {
    padding: 25px;
    background: #FFFEF9;
    border-left: 5px solid var(--red-bali);
    margin-bottom: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.05);
}

footer {
    background-color: var(--text-dark);
    color: var(--gold-light);
    text-align: center;
    padding: 30px;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    border-top: 3px solid var(--gold-primary);
}
/* SUB-NAVIGATION ALGORITMA */
.sub-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--gold-light);
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.sub-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 8px 25px;
    border: 1px solid var(--gold-primary);
    border-radius: 4px;
    transition: 0.3s;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.sub-nav a:hover, .sub-nav a.active-sub {
    background-color: var(--red-bali);
    color: var(--gold-light);
    box-shadow: 0 4px 10px rgba(139, 38, 29, 0.2);
}
.img-caption {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-top: 10px;
    line-height: 1.4;
    padding: 0 10px 10px;
}

.img-caption strong {
    color: var(--red-bali);
    display: block;
}

.img-caption span {
    color: #888;
    font-style: italic;
    font-weight: normal;
}

/* PENGATURAN DROPDOWN MENU */
nav ul li {
    position: relative; /* Sangat penting agar dropdown tidak berantakan */
}

/* Menyembunyikan menu anak secara default */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff; /* Warna latar putih */
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1); /* Efek bayangan */
    z-index: 1000;
    border-top: 3px solid var(--gold-primary); /* Garis emas di atas */
    border-radius: 0 0 5px 5px;
    padding: 0;
    left: 0;
    top: 100%;
}

.dropdown-content li {
    width: 100%;
    margin: 0;
}

/* Tampilan tautan di dalam dropdown */
.dropdown-content li a {
    color: var(--text-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f1f1f1;
    font-size: 0.9rem;
}

/* Warna saat pilihan dropdown disorot mouse */
.dropdown-content li a:hover {
    background-color: #f9f9f9;
    color: var(--red-bali); /* Berubah merah saat digeser */
    padding-left: 20px; /* Sedikit animasi bergeser ke kanan */
    transition: 0.3s;
}

/* Memunculkan dropdown SAAT mouse diletakkan di atas menu Proses */
.dropdown:hover .dropdown-content {
    display: block;
}