/* ======================
   VARIABLES & RESET
====================== */
:root {
    /* Warna utama untuk section selain Hero (tema terang) */
    --sapphire-blue: #0a2b5c;
    --gold-pure: #c89c3d;
    --pearl-white: #f8f9fa;
    --alabaster-white: #F0EDE5; /* Background section terang */
    --gray-light: #e9ecef;
    --gray-medium: #adb5bd;
    --gray-dark: #495057;   /* Teks utama di section terang */
    --shadow-soft: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);

    /* Variabel khusus untuk Hero Navy Theme */
    --hero-navy-dark: #0a192f;  /* Navy Blue dari referensi gambar */
    --hero-navy-overlay-start: rgba(10, 25, 47, 0.85);
    --hero-navy-overlay-end: rgba(10, 25, 47, 0.95);
    --hero-text-primary: #e6f1ff; /* Putih untuk teks utama di hero */
    --hero-text-accent: #d8f9f1;  /* Aksen teal/mint terang untuk subtitle di hero */
    --hero-text-secondary: #ccd6f6; /* Abu-abu terang untuk deskripsi di hero */
}

body {
    font-family: 'Lora', serif;
    background-color: var(--alabaster-white); /* Background body utama tetap terang */
    color: var(--gray-dark);                  /* Teks body utama tetap gelap */
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.7;
}

h1, h2, h3, h4, h5 {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.03em;
    /* Warna heading akan di-set per section */
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    color: var(--sapphire-blue); /* Judul section (Timeline, Gallery) tetap biru sapphire */
    margin-bottom: 3.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--gold-pure); /* Garis bawah tetap gold */
    border-radius: 2px;
}


/* ==========================
   HERO SECTION (NAVY THEME APPLIED HERE)
========================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../images/hero-bg.jpg") no-repeat center center/cover; /* Ganti path jika perlu */
    text-align: center;
    padding: 3rem 1rem;
    color: var(--hero-text-primary); /* Default teks di hero jadi putih */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--hero-navy-overlay-start), var(--hero-navy-overlay-end));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero-title {
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    margin-bottom: 1rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    color: var(--hero-text-primary); /* Eksplisit */
}

.hero-subtitle {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    color: var(--hero-text-accent);
    margin-bottom: 2rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-desc {
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    line-height: 1.85;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    color: var(--hero-text-secondary);
}

.hero-btn {
    display: inline-block;
    padding: 0.9rem 3rem;
    margin-top: 1rem;
    background: var(--hero-text-accent);
    color: var(--hero-navy-dark);
    font-size: 1.15rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.hero-btn:hover {
    background-color: #52d9c8;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

/* ==========================
   HISTORY TIMELINE (TEMA TERANG - V2 dengan gambar di luar)
========================== */
.history-section {
    padding: 5rem 1rem;
    background-color: var(--alabaster-white); /* Background section terang */
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--gold-pure); /* Garis timeline gold */
    transform: translateX(-50%);
    border-radius: 2px;
    opacity: 0.7;
}

.timeline-item-v2 {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 4rem;
    clear: both;
}

.timeline-panel-v2 {
    width: calc(50% - 45px);
    position: relative;
}

.timeline-icon-v2 {
    width: 60px;
    height: 60px;
    background: var(--sapphire-blue); /* Icon sapphire */
    color: var(--gold-pure);          /* Simbol gold */
    border: 3px solid var(--alabaster-white); /* Border kontras dengan background section */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.timeline-text-panel .timeline-content-v2 {
    padding: 1.8rem;
    background: #ffffff; /* Konten timeline putih */
    border-radius: 12px;
    box-shadow: 0 6px 25px var(--shadow-soft);
    color: var(--gray-dark); /* Teks konten gelap */
}

.timeline-image-panel {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.timeline-image-panel img {
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-soft);
    max-width: 100%;
    height: auto;
}
.img-placeholder-v2 {
    width: 100%;
    height: 200px;
    border: 2px dashed var(--gray-medium);
    background-color: var(--gray-light);
}
.img-placeholder-v2 i {
    color: var(--gray-medium);
}

.timeline-item-v2:nth-child(odd) .timeline-image-panel { order: 1; }
.timeline-item-v2:nth-child(odd) .timeline-icon-v2    { order: 2; }
.timeline-item-v2:nth-child(odd) .timeline-text-panel { order: 3; text-align: left; }

.timeline-item-v2:nth-child(even) .timeline-text-panel { order: 1; text-align: right; }
.timeline-item-v2:nth-child(even) .timeline-icon-v2    { order: 2; }
.timeline-item-v2:nth-child(even) .timeline-image-panel { order: 3; }

.timeline-year {
    font-size: clamp(1.6rem, 2.8vw, 2rem);
    font-weight: 700;
    color: var(--gold-pure); /* Tahun gold */
    margin-bottom: 0.4rem;
}

.timeline-title {
    font-size: clamp(1.3rem, 2.2vw, 1.6rem);
    font-weight: 700;
    font-family: 'Lora', serif;
    color: var(--sapphire-blue); /* Judul timeline sapphire */
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.timeline-content-v2 p {
    font-size: clamp(0.9rem, 1.7vw, 1.05rem);
    line-height: 1.75;
    color: var(--gray-dark); /* Paragraf abu tua */
    margin-bottom: 0;
}

/* ==========================
   GALLERY SECTION (TEMA TERANG - Jika Diaktifkan)
========================== */
.gallery-section {
    background: var(--alabaster-white);
    padding: 5rem 1rem;
}
.gallery-item-v2 {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    display: block;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}
.gallery-item-v2 img {
    transition: transform 0.4s ease;
    width: 100%;
}
.gallery-item-v2:hover img {
    transform: scale(1.08);
}
.gallery-item-v2-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 43, 92, 0.75); /* Overlay sapphire */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    color: var(--pearl-white); /* Teks overlay putih */
    text-align: center;
    padding: 1rem;
}
.gallery-item-v2:hover .gallery-item-v2-overlay {
    opacity: 1;
}
.gallery-item-v2-overlay i { font-size: 2.5rem; margin-bottom: 0.5rem; }
.gallery-item-v2-overlay p { font-family: 'Lora', serif; font-size: 1rem; margin-bottom: 0; }

/* ==========================
   FOOTER (TEMA TERANG/ASLI)
========================== */
.footer {
    background-color: var(--sapphire-blue);
    color: var(--pearl-white);
    text-align: center;
    padding: 2.5rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    margin-top: 3rem;
    box-shadow: inset 0 1px 15px rgba(255, 255, 255, 0.15);
}
.footer a {
    color: var(--gold-pure);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}
.footer a:hover {
    text-decoration: underline;
    color: #ffd33d;
}

/* ==========================
   RESPONSIVE DESIGN (Timeline V2 - Disesuaikan)
========================== */
@media (max-width: 767.98px) { /* Mobile */
    .hero-title { font-size: 2.8rem !important; }
    .hero-subtitle { font-size: 1.8rem !important; }
    .hero-desc { font-size: 1rem !important; }
    .section-title { font-size: 2.3rem !important; }

    .timeline::before {
        left: 30px;
        transform: translateX(0);
    }

    .timeline-item-v2,
    .timeline-item-v2:nth-child(odd),
    .timeline-item-v2:nth-child(even) {
        flex-direction: column;
        align-items: flex-start; /* Atau center jika mau icon di tengah */
        padding-left: 0; /* Atau sesuaikan dengan posisi garis baru */
    }

    .timeline-icon-v2 {
        position: relative;
        left: 0; /* Jika garis di kiri, icon bisa di kiri juga */
        transform: translateX(calc(30px - 50%)); /* Pusatkan icon pada garis kiri */
        margin-bottom: 1rem;
        align-self: flex-start; /* Atau center */
        /* top: auto;  Reset top */
    }

    .timeline-panel-v2,
    .timeline-item-v2:nth-child(odd) .timeline-image-panel,
    .timeline-item-v2:nth-child(odd) .timeline-text-panel,
    .timeline-item-v2:nth-child(even) .timeline-text-panel,
    .timeline-item-v2:nth-child(even) .timeline-image-panel {
        width: 100%;
        order: 0 !important; /* Reset order */
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

    /* Gambar di atas teks di mobile untuk semua item */
    .timeline-item-v2 .timeline-image-panel {
        order: 1 !important; /* Gambar selalu di atas */
        margin-bottom: 1rem;
    }
    .timeline-item-v2 .timeline-text-panel {
        order: 2 !important; /* Teks selalu di bawah gambar */
    }
}

@media (max-width: 575.98px) { /* Extra Small Mobile */
    .hero-title { font-size: 2.3rem !important; }
    .hero-subtitle { font-size: 1.6rem !important; }
    .hero-btn { padding: 0.7rem 2rem !important; font-size: 1rem !important; }

    .history-section, .gallery-section { padding: 3rem 0.75rem; }
    .section-title { font-size: 2rem !important; }
    .timeline-content-v2 { padding: 1.2rem; } /* Konten di dalam panel teks */
    .timeline-year { font-size: 1.5rem; }
    .timeline-title { font-size: 1.3rem; }
    .timeline-content-v2 p { font-size: 0.95rem; }

    .timeline-icon-v2 {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        transform: translateX(calc(30px - 50%)); /* Sesuaikan dengan lebar icon baru */
    }
}