/* Dasar Hukum Page Styles */
:root {
  --primary-dark: #2F4F4F;
  --primary-medium: #4ea674;
  --primary-light: #c0e6b9;
  --primary-very-light: #e9f8e7;
  --white: #ffffff;
  --black: #333333;
  --gray: #f5f5f5;
  --transition: all 0.3s ease;
}

body {
  font-family: "Segoe-ui", sans-serif;
  color: var(--black);
  background-color: var(--white);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  width: 100%;
}

.sejarah-jdihn-container {
    padding: 1rem 0;
    max-width: 95vw;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Hero Styles untuk Judul Dokumen dengan Gambar */
.judul-dokumen-hero {
    position: relative;
    padding: 20px 0;
    margin: 0 auto;
    overflow: hidden;
    min-height: 150px;
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.judul-dokumen-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.judul-dokumen-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.judul-dokumen-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.837); /* Putih transparan */
    z-index: 2;
}

.judul-dokumen-hero-content {
    position: relative;
    z-index: 3;
    max-width: 85vw;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.judul-dokumen-hero-text h3 {
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    font-weight: 550;
    color: var(--primary-dark);
    text-align: center;
}

.judul-dokumen-hero-text h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-dark);
    text-align: center;    
}

/* Responsive Design untuk Hero dengan Gambar */
@media (max-width: 992px) {
    .judul-dokumen-hero {
        min-height: 220px;
    }
    
    .judul-dokumen-hero-text h1 {
        font-size: 1.9rem;
    }
    
    .judul-dokumen-hero-text h3 {
        font-size: 1.1rem;
    }
    
}

@media (max-width: 768px) {
    .judul-dokumen-hero {
        padding: 40px 0;
        min-height: 100px;
        margin-bottom: 1rem;
    }
    
    .judul-dokumen-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 0 20px;
    }
    
    .judul-dokumen-hero-text h1 {
        font-size: 2rem;
    }
    
    .judul-dokumen-hero-text h3 {
        font-size: 1rem;
    }
    
}

@media (max-width: 576px) {
    .judul-dokumen-hero {
        padding: 30px 0;
        min-height: 75px;
        margin-bottom: 1rem;
    }
    
    .judul-dokumen-hero-text h1 {
        font-size: 1.8rem;
    }
    
    .judul-dokumen-hero-text h3 {
        font-size: 0.95rem;
    }
    
}

.container h1 {
    margin: 0;
    font-size: 2.5rem;
    letter-spacing: 0.5;
    color: var(--black);
}

/* Breadcrumb Container */
.custom-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    background-color: #f5f5f5; /* Warna default light */
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #333; /* Warna teks default */
}

/* Breadcrumb Items */
.custom-breadcrumb span:not(.divider) {
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Link Normal */
.custom-breadcrumb a {
    color: #e0e0e0; /* Abu-abu muda */
    text-decoration: none;
    font-weight: 500;
}

/* Link Hover */
/* .custom-breadcrumb a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.589);
    text-decoration: none;
    
} */

/* Divider - Pastikan Terlihat */
.custom-breadcrumb .divider {
    color: #666; 
    font-weight: bold;
    display: inline-block; 
}

/* Active Item */
/* .custom-breadcrumb .active {
    color: #1d1d1d;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: 600;
} */

/* Dark Mode */
/* @media (prefers-color-scheme: dark) {
    .custom-breadcrumb {
        background-color: #2a2a2a;
    }
    .custom-breadcrumb .divider {
        color: #ccc;
    } 
} */

/* Layout Improvements */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -20px;
}

.col-lg-8, .col-lg-4 {
    padding: 0 20px;
    box-sizing: border-box;
}

.col-lg-8 {
    flex: 0 0 80%;
    max-width: 80%;
    height: fit-content;
}

.col-lg-4 {
    flex: 0 0 20%;
    max-width: 20%;
}

@media (max-width: 1024px) {
    /* Layout Improvements */
    .row {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -20px;
    }

    .col-lg-8, .col-lg-4 {
        padding: 0 20px;
        box-sizing: border-box;
    }

    .col-lg-8 {
        flex: 0 0 75%;
        max-width: 75%;
        height: fit-content;
    }

    .col-lg-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 992px) {
    .col-lg-8, .col-lg-4 {
        flex: 0 0 100%;
        margin: auto;
        max-width: 95%;
    }
}

/* =============== KONTEN SEJARAH JDIHN SECTION =============== */
.sejarah-jdihn-content-section {
    /* padding: 10px 0; */
    flex: 1;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 28px;
}

.sejarah-jdihn-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    padding: 10px 20px 40px;
    background: #fbfbfb; /* Warna default light */
}

/* .sejarah-jdihn-card .card-header {
    background-color: var(--primary-dark);
    color: white;
    border-radius: 8px 8px 0 0 !important;
    padding: 15px 20px;
} */

/* .sejarah-jdihn-card .card-header h2 {
    margin: 0;
    font-size: 1.3rem;
} */

 /* MENU TAB */
/* Style Tab Switcher */
.view-switcher {
  display: flex;
  border-bottom: 3px solid #e0e0e0;
  margin-bottom: 20px;
}

.tab-button {
  background: none;
  border: none;
  padding: 18px 24px;
  cursor: pointer;
  font-size: 1em;
  color: #666;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.tab-button.active {
  color: var(--primary-dark);
  /* font-weight: bold; */
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-dark);
}

.tab-button:hover:not(.active) {
  color: var(--primary-dark);
  background: #2f4f4f0f;
}

/* Style Tampilan timeline versi Teks */
/* Pastikan ini ada di CSS Anda */
.text-view {
  display: none;
  padding: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.text-view.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.text-content {
  /* background: rgb(251, 251, 251); */
  /* border-radius: 12px; */
  padding: 20px;
  /* box-shadow: 0 5px 20px rgba(0, 91, 150, 0.1); */
}

.text-item {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.text-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.text-item h3 {
  color: var(--primary-dark);
  font-size: 1.3em;
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-item .desc {
  color: #555;
  line-height: 1.8;
  font-size: 1em;
}

.timeline-view {
    display: none;
    padding: 40px 50px;
}

.timeline-view.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Gaya khusus untuk tampilan ringkasan */
.summary-title {
  color: var(--primary-dark);
  border-bottom: 2px solid var(--primary-dark);
  padding-bottom: 10px;
  margin: 20px 0 30px;
}

.highlight-box {
  background: #c0e6b91f;
  border-left: 4px solid var(--primary-dark);
  padding: 15px;
  margin: 15px 0;
  border-radius: 0 4px 4px 0;
}

.timeline-events {
  list-style: none;
  padding-left: 0;
}

.timeline-events li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 70px;
}

.timeline-events .year {
  font-weight: bold;
  color: var(--primary-dark);
  position: absolute;
  left: 0;
  width: 60px;
}

/* Gaya khusus untuk tampilan referensi */
.references-view {
    display: none;
}

.references-view.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.references {
    background: #f8f9fa;
    padding: 20px;
    /* max-width: 800px; */
    margin: 0 auto;
}

.references h2 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.references ul {
    padding-left: 30px;
}

.references li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Animasi */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =============== TIMELINE SEJARAH JDIHN =============== */
/* Timeline */
.timeline-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
}

/* Garis Timeline */
.timeline-line {
    height: 5px;
    background: var(--primary-dark);
    box-shadow: 0 0 0 2px rgba(0, 58, 21, 0.304);
    position: relative;
    margin: 50px auto 70px;
    max-width: 920px;
}
/* Bulatan Tahun */
.timeline-year-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-dark);
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}
/* Efek Hover pada Bulatan */
.timeline-year-marker:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 0 6px rgba(4, 67, 10, 0.49);
}
/* Label Tahun */
.year-label {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    color: #666;
    white-space: nowrap;
    transition: all 0.3s ease;
}
/* Bulatan Aktif */
.timeline-year-marker.active {
    background: var(--primary-dark);
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 0 6px rgba(2, 60, 8, 0.49);
}

/* Konten Deskripsi */
.timeline-detail {
  background: rgb(251, 251, 251);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 91, 150, 0.1);
  max-width: 1100px;
  margin: 0 auto;
  border-left: 4px solid var(--primary-dark);
  animation: fadeIn 0.5s ease;
  height: max-content;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.year-badge {
  background: var(--primary-dark);
  color: white;
  display: inline-block;
  padding: 6px 15px;
  border-radius: 20px;
  font-weight: bold;
  margin-bottom: 15px;
}

.title {
  color: var(--primary-dark);
  font-size: 1.3em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.title i {
  color: var(--primary-dark);
}

.desc {
  color: #555;
  line-height: 2;
  font-size: 1em;
}

/* .nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
} */

/* .nav-btn {
  background: #f5f7fa;
  border: none;
  padding: 10px 25px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.nav-btn:hover {
  background: #005b96;
  color: white;
  transform: translateY(-2px);
} */

@media (max-width: 768px) {
  .title {
    font-size: 1.4em;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-buttons {
    flex-direction: column;
    gap: 10px;
  }
}
