/* =============== GLOBAL STYLES =============== */
:root {
  --primary-dark: #122b37;
  --primary-medium: #2a546c;
  --primary-light: #88b0c4;
  --primary-very-light: #2244541f;
  --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%;
}

@media (max-width: 768px) {
    body {
        margin-top: 60px;
    }
}

a {
    text-decoration: none !important;
    color: inherit !important; /* Opsional: hilangkan warna biru default */
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* =============== HEADER STYLES =============== */
.main-header {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  /* Tambahkan backdrop filter untuk iOS */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.header-container {
  width: 93vw;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  /* justify-items: left; */
  align-items: center;
  padding: 0 2rem;
  max-width: 100%; /* Pastikan tidak melebihi viewport */
}

@media (max-width: 1024px) {
    .header-container {
        width: 100vw;
        padding: 0 1rem;
    }
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 57px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.logo-sub {
  font-size: 0.9rem;
  color: var(--primary-light);
}

/* Gaya dasar menu seperti DPRD Surabaya */
.main-menu {
    position: relative;
}

.main-menu__nav {
    padding: 0 20px;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: flex;
    align-items: center;
    padding: 15px 15px;
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    letter-spacing: 0.3mm;
}

.nav-item > a:hover {
    color: var(--primary-light);
}

.nav-item > a i {
    margin-right: 10px;
    font-size: 13px;
}

/* Dropdown styles */
.main-menu__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 240px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 5px 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-menu__nav_sub:hover .main-menu__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu__dropdown li {
    border-bottom: 1px solid #f0f0f0;
}

.main-menu__dropdown li:last-child {
    border-bottom: none;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--black) !important; 
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: var(--primary-light);
    padding-left: 25px; 
}

.dropdown-item i {
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

/* Dropdown arrow */
.dropdown-arrow {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.main-menu__nav_sub:hover .dropdown-arrow i {
    transform: rotate(180deg);
}

/* 1. Animasi garis bawah dari kiri ke kanan */
.nav-item:not(.main-menu__nav_sub) > a {
    position: relative;
}

.nav-item:not(.main-menu__nav_sub) > a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 15px;
    width: 0;
    height: 2px;
    background-color: var(--primary-light);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-item:not(.main-menu__nav_sub) > a:hover::after {
    width: calc(100% - 30px);
    left: 15px;
}

/* 2. Animasi rotasi panah dropdown */
.dropdown-arrow i {
    transition: transform 0.3s ease;
}

.main-menu__nav_sub:hover .dropdown-arrow i {
    transform: rotate(180deg);
}

/* 3. Animasi dropdown yang lebih halus */
.main-menu__dropdown {
    max-height: 0;
    overflow: hidden;
    transition: 
        opacity 0.3s ease,
        transform 0.3s ease,
        max-height 0.5s ease,
        visibility 0.3s ease;
    transform-origin: top center;
    transform: scaleY(0);
}

/* Untuk tablet landscape dan portrait */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-menu__nav {
        padding: 0 10px;
    }
    
    .nav-list {
        gap: 5px; /* Kurangi gap antara menu items */
    }
    
    .nav-item > a {
        padding: 10px 8px;
        font-size: 12px;
        letter-spacing: 0.1mm;
    }
    
    .logo-container {
        gap: 0.5rem; /* Kurangi gap antara logo */
    }
    
    .logo-img {
        height: 40px; /* Logo lebih kecil */
    }
    .footer-content {
      grid-template-columns: 1fr !important;
    }
}

/* 4. Animasi navigasi section halaman beranda */
/* Atur offset scroll */

section {
    scroll-margin-top: 100px; /* Sesuaikan nilai */
}

.fade-up {
    animation: fadeUp 0.5s ease-out;
}

.fade-down {
    animation: fadeDown 0.5s ease-out;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-menu__nav_sub:hover .main-menu__dropdown {
    max-height: 500px; /* Nilai cukup besar untuk menampung semua item */
    transform: scaleY(1);
    opacity: 1;
    visibility: visible;
}

/* Untuk mobile */
/* @media (max-width: 768px) {
    .main-menu__nav_sub.show .main-menu__dropdown {
        max-height: 500px;
        transition: max-height 0.5s ease;
    } */
    
    /* Garis bawah nonaktif di mobile */
    /* .nav-item > a::after {
        display: none;
    }
} */

/* =============== MOBILE HEADER STYLES =============== */

/* Mobile Header Styles */
.mobile-header {
    display: none;
    width: 100%;
    background: inherit;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.308);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
}

.mobile-logo-container {
    height: 35px;
    margin: 0 5px;
}

.mobile-logo-img {
    height: 100%;
    object-fit: contain;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
    padding: 5px 10px;
}

/* =================ANIMASI BUTTON MENU MOBILE============== */
/* #primary-menu-trigger {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    border-radius: 4px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

#primary-menu-trigger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.svg-trigger {
    width: 24px;
    height: 24px;
    overflow: visible;
}

.svg-trigger line {
    fill: none;
    stroke: var(--white);
    stroke-width: 3;
    stroke-linecap: round;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

#primary-menu-trigger.active .line-top {
    transform: translateY(7px) translateX(-1px) rotate(45deg);
}
#primary-menu-trigger.active .line-middle {
    opacity: 0;
}
#primary-menu-trigger.active .line-bottom {
    transform: translateY(-1px) translateX(-2px) rotate(-45deg);
} */
        
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.9s ease;
    background: #f3f3f3;
    
}

.mobile-menu.active {
    max-height: 1000px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.185);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    
}

.mobile-nav-item {
    border-bottom: 1px solid #e9e9e9;
    color: var(--black);
    font-size: 1rem;
    border-left: 0 solid var(--primary-medium);
    background-color: transparent; /* State normal */
    transition: 
        border-left-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        padding-left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        background-color 0.3s ease-out; /* Animasi terpisah untuk background */
}

.mobile-nav-item:hover {
    /* background-color: #f8f8f8; */
    border-left-width: 4px;
    padding-left: 5px;
    background-color: #f8f8f8; /* Warna hover */
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 15px 15px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    justify-content: flex-start; /* Pastikan rata kiri */
    position: relative; /* Dibutuhkan untuk positioning absolute anaknya */
}

.mobile-nav-link i {
    margin-right: 20px;
    width: 30px;
    text-align: center;
}

.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-right: 30px; /* Beri ruang untuk panah di kanan */
}

.mobile-dropdown-arrow {
    position: absolute;
    right: 20px; /* Posisikan di pojok kanan */
    top: 50%;
    transform: translateY(-50%);
}

.mobile-dropdown-arrow i {
    transition: transform 0.3s ease;    
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 40px;
    background: #f9f9f9;
    list-style-type: none; /* Menghilangkan bullet points */
}

.mobile-dropdown.show .mobile-dropdown-menu {
    max-height: 500px;
}

.mobile-dropdown.show .mobile-dropdown-arrow i {
    transform: rotate(180deg);
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    /* border-left: 0 solid var(--primary-medium); */
    background-color: transparent; /* State normal */
    transition: 
        /* border-left-width 0.2s ease-out, */
        padding-left 0.2s ease-out,
        background-color 0.15s linear;
}

.mobile-dropdown-item:hover {
    /* border-left-width: 4px; */
    padding-left: 25px;
    background-color: #f3f3f3;
    transition: 
        /* border-left-width 0.1s ease-out, */
        padding-left 0.1s ease-out,
        background-color 0.1s linear;
}

.mobile-dropdown-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    font-size: 14px;
}

/* Tablet Breakpoints (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-container {
        width: 95vw;
        padding: 0 1rem;
    }
    
    .logo-img {
        height: 45px; /* Ukuran lebih kecil untuk tablet */
    }
    
    .nav-item > a {
        padding: 12px 10px;
        font-size: 12px;
    }
    
    .nav-item > a i {
        margin-right: 5px;
        font-size: 12px;
    }
}

/* Desktop besar */
@media (min-width: 1025px) {
  .header-container {
    width: 93vw;
    padding: 0 2rem;
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .main-header {
        padding: 0;
        position: fixed;
        width: 100%;
    }

    .desktop-header {
        display: none;
    }
    
    .mobile-header {
        display: block;
    }
}

@media (min-width: 769px) {
    .main-header {
        width: 100%;
    }

    .mobile-header {
        display: none;
    }
    
    .desktop-header {
        display: flex;
    }
}

/* Perbaikan untuk iOS */
@supports (-webkit-touch-callout: none) {
    .mobile-header {
        position: -webkit-sticky;
    }
    .mobile-menu {
        -webkit-overflow-scrolling: touch;
    }
}

/* Perbaikan hover state untuk touch devices */
@media (hover: none) {
    .mobile-nav-item:hover {
        background-color: transparent;
    }
    .mobile-nav-item:active {
        background-color: #f8f8f8;
    }
}

/* Pastikan konten utama tidak tertutup */
main {
    position: relative;
    z-index: 1;
}

/* =============== HERO SECTION =============== */
.hero-section {
  position: relative;
  height: 92vh;
  min-height: 500px;
  overflow: hidden;
}

.slideshow-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1; /* Lebih rendah dari content */
}

.slideshow-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slideshow-image.active {
  opacity: 1;
}

.hero-content-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  z-index: 2; /* Lebih tinggi dari slideshow */
}
.hero-content-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Overlay lebih gelap */
  z-index: -1; /* Di bawah teks tapi di atas gambar */
}
.hero-title-wrapper {
  text-align: center;
  max-width: 100%;
  padding: 2rem;
  margin: 0 auto; /* Tambahkan ini untuk centering horizontal */
}
/* Animasi untuk semua elemen */
.hero-title-main, .hero-divider, .hero-title-sub {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Timing animasi yang berbeda */
.hero-title-main {
    animation-delay: 0.3s;
}

.hero-divider {
    animation-delay: 0.6s;
}

.hero-title-wrapper h1:nth-child(3) { /* Elemen ketiga */
    animation-delay: 0.9s;
}

.hero-title-wrapper h1:nth-child(4) { /* Elemen keempat */
    animation-delay: 1.2s;
}

/* Keyframes animasi */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title-main {
  font-size: 2.5rem;
  margin: 0 0 1rem 0; /* Pastikan margin konsisten */
  font-weight: 600;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  /* Hapus properti flex yang tidak perlu */
}

.hero-divider {
  width: 200px;
  height: 4px;
  background: white;
  margin: 1rem auto; /* Centering otomatis */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title-sub {
  font-size: 3rem;
  font-weight: 700;
  margin: 1rem 0 0 0; /* Pastikan margin konsisten */
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  /* Hapus properti flex yang tidak perlu */
}

@media (max-width: 768px) {
  .hero-section {
    height: 60vh;
    min-height: 400px;
  }

  .hero-title-main {
    font-size: 2rem;
  }

  .hero-title-sub {
    font-size: 1.8rem;
  }
}

@media (min-width: 820px) and (max-width: 1024px) {
  .hero-section {
    height: 40vh;
    min-height: 400px;
  }

  .hero-title-main {
    font-size: 2rem;
  }

  .hero-title-sub {
    font-size: 1.8rem;
  }

  .footer-content {
    width: 900px !important;
    
  }
}

/* =============== INFO CARDS =============== */
.info-cards-section {
  padding: 4rem 2rem;
  background-color: var(--primary-very-light);
}

.section-title {
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-dark);
  font-size: 2rem;
  font-weight: 600;
}

.divider-info-card {
  width: 150px;
  height: 4px;
  background: var(--black);
  align-items: center;
  margin: auto; /* Centering otomatis */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 50px auto;
}

/* BASE CARD STYLE */
.info-card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-bottom: 4px solid var(--primary-medium);
  will-change: transform; /* Optimasi performa */
  
  /* TRANSISI DEFAULT UNTUK HOVER */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform: translateZ(0); /* Perbaiki rendering */
}

/* ANIMASI MASUK */
.card-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: 
    opacity 0.3s ease-out,
    transform 0.3s ease-out;
}

/* State akhir */
.card-animate.animated {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* HOVER EFFECT */
.info-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary-medium);
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.card-count {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 1rem 0;
}

.card-label {
  color: var(--primary-medium);
  font-size: 0.9rem;
}

/* =============== SEARCH AND CONTROLS SECTION =============== */
/* Gaya dasar section */
.search-section {
  padding: 4rem 2rem;
  /* background-color: var(--primary-very-light); */
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: 
    opacity 0.5s ease-out, 
    transform 0.5s ease-out;
  will-change: transform, opacity;
}

/* Animasi selesai */
.search-section.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Jika perlu delay khusus */
.search-section.search-animate {
  transition-delay: 0.1s; /* Atau sesuaikan */
}
.divider-search {
  width: 150px;
  height: 4px;
  background: var(--black);
  align-items: center;
  margin: 20px auto; /* Centering otomatis */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.search-and-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
/* Style untuk info pencarian agar sejajar */
.searchResultInfo {
  flex-basis: 100%; /* Agar mengambil seluruh lebar baris baru */
  text-align: left; /* Rata kiri */
  margin-top: 10px; /* Jarak dari elemen di atasnya */
  padding-left: 10px; /* Sesuaikan padding agar lurus dengan input */
  font-size: 0.95rem;
  color: var(--black);
}

.search-box-container {
  flex: 1;
  max-width: 800px;
}

.search-form {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid var(--primary-light);
  border-radius: 30px;
  font-size: 1rem;
  transition: var(--transition);
  padding-right: 100px;
  box-sizing: border-box;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-medium);
  box-shadow: 0 0 0 3px rgba(78, 166, 116, 0.2);
}

.search-button {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  padding: 0 25px;
  background-color: var(--primary-dark);
  color: var(--white);
  border: none;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.search-button:hover {
  background-color: var(--primary-medium);
}

/* =============== PAGINATION CONTROLS =============== */
/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
  padding: 10px;
}

.page-link {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #007bff;
  background: white;
  transition: all 0.3s ease;
  font-size: 14px;
}

.page-link:hover {
  background-color: #f8f9fa;
  border-color: var(--primary-medium);
}

.page-link.active {
  background-color: var(--primary-dark);
  color: white;
  /* border-color: #007bff; */
  cursor: default;
}

.pagination-info {
  margin-left: 15px;
  color: #6c757d;
  font-size: 14px;
  font-style: italic;
}

/* Responsive design untuk pagination */
@media (max-width: 768px) {
  .pagination {
    gap: 5px;
  }
  
  .page-link {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .pagination-info {
    margin-left: 10px;
    font-size: 12px;
  }
}

.pagination-controls-container {
  flex-shrink: 0;
}

.per-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-very-light);
  padding: 8px 15px;
  border-radius: 30px;
  white-space: nowrap;
}

.per-page-form select {
  padding: 8px 12px;
  border: 1px solid var(--primary-light);
  border-radius: 5px;
  background-color: white;
  color: var(--primary-dark);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}

.per-page-form select:hover {
  border-color: var(--primary-medium);
}

.per-page-form label {
  font-size: 14px;
  color: var(--primary-dark);
}

/* =============== DOCUMENT TABLE =============== */
.document-table-container {
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: hidden;
}

.document-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.document-table th {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 1rem;
  text-align: center;
}

.document-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--primary-very-light);
}

.document-table tr:hover td {
  background-color: var(--primary-very-light);
}

.action-btn {
  padding: 0.5rem 1rem;
  background-color: var(--primary-dark);
  color: var(--white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.action-btn:hover {
  background-color: var(--primary-medium);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .search-and-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 0 10px;
    }
    
    .search-box-container {
        max-width: 100%;
    }
    
    .pagination-controls-container {
        width: 100%;
    }
    
    .per-page-form {
        justify-content: center;
        padding: 8px;
    }
    
    .document-table-container.mobile {
        padding: 0 5px;
    }
    
    .document-table.mobile th, 
    .document-table.mobile td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .document-table.mobile th:nth-child(2),
    .document-table.mobile td:nth-child(2) {
        max-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .action-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    /* Hide desktop-only columns */
    .document-table:not(.mobile) th:nth-child(2),
    .document-table:not(.mobile) td:nth-child(2),
    .document-table:not(.mobile) th:nth-child(3),
    .document-table:not(.mobile) td:nth-child(3),
    .document-table:not(.mobile) th:nth-child(4),
    .document-table:not(.mobile) td:nth-child(4) {
        display: none;
    }
    
    /* Show mobile columns */
    .document-table.mobile th:nth-child(1),
    .document-table.mobile td:nth-child(1),
    .document-table.mobile th:nth-child(5),
    .document-table.mobile td:nth-child(5),
    .document-table.mobile th:nth-child(6),
    .document-table.mobile td:nth-child(6) {
        display: table-cell;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .search-input {
        padding: 10px 15px;
        padding-right: 80px;
    }
    
    .search-button {
        padding: 0 15px;
    }
    
    .document-table.mobile th, 
    .document-table.mobile td {
        padding: 0.3rem;
        font-size: 0.8rem;
    }
    
    .action-btn {
        padding: 0.5rem 0.8rem;
    }
}

/* =============== SITES INFO CARDS =============== */
/* .sites-cards-section {
  padding: 2rem;
  background-color: var(--primary-very-light);
}

.sites-section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-dark);
  font-size: 2rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

.sites-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.sites-info-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.062);
  transition: var(--transition);
  border-bottom: 4px solid var(--primary-medium);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out, 
              box-shadow 0.3s ease, transform 0.3s ease;
  will-change: transform, opacity;
}

.sites-section-title.animated,
.sites-info-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.sites-info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.sites-logo-container {
    height: 80%;
    width: auto;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.site-logo {
    max-width: 85%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sites-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
} */

/* =============== PORTAL CAROUSEL =============== */
.portal-section {
  padding: 4rem 2rem;
  background-color: var(--primary-very-light);
  margin-bottom: 2rem;
}
.portal-section-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-dark);
  font-size: 2rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.portal-card {
    display: block;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    height: 280px;
    text-decoration: none;
    color: #333;
    width: 200px;
    margin: 0 auto;
    transform: translateY(30px);
    will-change: transform, opacity;
    border-bottom: 4px solid var(--primary-medium);
}

.portal-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out !important;
    background-color: #f9f9f9;
}

/* Gunakan class spesifik untuk menghindari konflik */
.portal .btn-prev, 
.portal .btn-next {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    z-index: 100;
}

.portal .btn-prev:hover, 
.portal .btn-next:hover {
    background: #e9ecef;
}

.img-portal-container {
    padding: 15px;
    text-align: center;
    height: 190px; /* Tinggi tetap untuk area gambar */
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.portal-info {
    padding: 10px;
    text-align: center;
    
    border-top: 1px solid #eee;
}

.portal-name {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
}

@media (min-width: 992px) {
    .portal .owl-carousel {
        max-width: 1080px; /* Sesuaikan dengan lebar 4 card + margin */
        margin: 0 auto;
    }
    
    .portal-card {
      width: calc(100% - 10px); /* 2 items dengan gap konsisten */
    }
    .img-portal-container {
      height: 150px;
    }

    .portal-info {
    padding: 20px;
    }

}

/* =============== PORTAL CAROUSEL MOBILE ADJUSTMENTS =============== */

/* Tablet and Smaller Screens */
@media (max-width: 768px) {
    .portal-section {
        padding: 2rem 0.5rem;
    }
    
    /* Portal Carousel Container */
    .portal .owl-carousel-container {
        padding: 0 30px;
        margin: 0 -5px; /* Kompensasi padding item */
    }
    
    /* Portal Cards */
    .portal-card {
        width: calc(100% - 10px); /* 2 items dengan gap konsisten */
        height: 220px;
        margin: 0 auto;
    }
    
    .portal-card:hover {
    transform: none !important;
    }

    .img-portal-container {
        height: 140px;
        padding: 10px;
    }
    
    .portal-info {
        padding: 10px;
    }
    
    .portal-name {
        font-size: 13px;
    }
    
    /* Navigation Buttons - Specific to portal */
    .portal-section .owl-carousel__prev.portal {
        left: 15px;
    }
    
    .portal-section .owl-carousel__next.portal {
        right: 15px;
    }
    
    .portal-section .btn-prev.portal,
    .portal-section .btn-next.portal {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.8);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
}

/* Mobile Phones */
@media (max-width: 576px) {
    .portal-section-title {
        font-size: 1.5rem;
    }
    
    /* Portal Carousel Container */
    .portal .owl-carousel-container {
        padding: 0 20px;
    }
    
    /* Portal Cards */
    .portal-card {
        width: calc(100% - 20px) !important; /* Full width dengan sedikit margin */
        margin: 0 auto; /* Pusatkan card */
    }
    
    .portal-card:hover {
    transform: none !important;
    }

    .img-portal-container {
        height: 130px;
    }
    
    .portal-name {
        font-size: 13px;
    }
    
    /* Navigation Buttons - More compact */
    .portal-section .btn-prev.portal,
    .portal-section .btn-next.portal {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    /* Adjust carousel item spacing */
    .portal .owl-carousel .item {
        padding: 20px;
    }
}

/* Very Small Phones */
@media (max-width: 400px) {
    .portal-card {
        max-width: 200px;
        height: 180px;
    }
    
    .portal-card:hover {
    transform: none !important;
    }

    .img-portal-container {
        height: 110px;
    }
    
    .portal-section .owl-carousel-container {
        padding: 0 15px;
    }
    
    .portal-section .btn-prev.portal {
        left: -8px;
    }
    
    .portal-section .btn-next.portal {
        right: -8px;
    }
}

/* =============== SITES CAROUSEL =============== */
.sites-section {
  padding: 4rem 2rem;
  /* background-color: var(--primary-very-light); */
  margin-bottom: 2rem;
}

.sites-section-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-dark);
  font-size: 2rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Owl Carousel Container */
.owl-carousel-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 auto; /* Memberi ruang untuk tombol navigasi */
    position: relative;
}

/* Navigation Arrows */
.owl-carousel__prev {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.owl-carousel__next {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.btn-prev, .btn-next {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    z-index: 1000;
}

.btn-prev:hover, .btn-next:hover {
    background: #e9ecef;
}

/* Card Styling */
.site-card {
    display: block;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    height: 220px;
    text-decoration: none;
    color: #333;
    width: 190px; /* Lebar tetap untuk card */
    margin: 0 auto; /* Pusatkan card */
    transform: translateY(30px);
    will-change: transform, opacity;
    border-bottom: 4px solid var(--primary-medium);
}

.site-card:hover {
    transform: translateY(-8px) !important; /* Important untuk mengatasi override JS */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out !important;
    background-color: #f9f9f9;
}

.img-container {
    padding: 15px;
    text-align: center;
    height: 120px; /* Tinggi tetap untuk area gambar */
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.site-info {
    padding: 15px;
    text-align: center;
    
    border-top: 1px solid #eee;
}

.site-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
}

/* Owl Carousel Overrides */
.owl-carousel {
    width: calc(100% - 50px - 50px); /* Sesuaikan dengan tombol navigasi */
    margin: 0 auto;
}

.owl-carousel .item {
    padding: 0 10px;
}

.owl-carousel .owl-stage {
    display: flex;
    align-items: stretch;
    margin: 2rem 0;
}
/* .owl-carousel .owl-stage-outer {
  position:relative;
  overflow:hidden;
  -webkit-transform: translate3d(0,0,0);
  width: 100%;
} */

.owl-carousel .owl-item {
    height: auto;
}

.owl-theme .owl-dots {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.owl-theme .owl-dots .owl-dot span {
    background: #ccc;
    width: 10px;
    height: 10px;
    margin: 5px;
    border-radius: 50%;
}

.owl-theme .owl-dots .owl-dot.active span {
    background: #333;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .owl-carousel-container {
        padding: 0 40px;
    }
    
    .site-card {
      width: calc(100% - 10px); /* 2 items dengan gap konsisten */
      height: 200px;
      margin: 0 auto;
    }
    .site-name {
      font-weight: 600;
      font-size: 12px;
      line-height: 1.3;
    }
    .site-card:hover {
    transform: none !important;
    }

    .img-container {
        height: 100px;
    }
}

@media (max-width: 576px) {
    .owl-carousel-container {
        padding: 0 30px;
    }
    
    .site-card {
        width: 160px;
        height: 190px;
    }
   
    .site-name {
    font-size: 12px;
    }

    .site-card:hover {
    transform: none !important;
    }

    .btn-prev, .btn-next {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 400px) {
    .owl-carousel {
      width: calc(100% - 10px - 10px);
      margin: 0 auto;
    }
    .owl-carousel .item {
      padding: 0;
    }
    
    .owl-carousel-container {
        padding: 0 30px;
    }
    
    .site-card {
        width: 160px;
        height: 190px;
    }
   
    .site-name {
    font-size: 12px;
    }

    .site-card:hover {
    transform: none !important;
    }

    .btn-prev, .btn-next {
        width: 30px;
        height: 30px;
    }
}
/* =============== FOOTER STYLES =============== */
.main-footer {
  margin-top: 3rem;
  background-color: var(--primary-dark);
  color: var(--white);
  padding-top: 3rem;
  font-size: 0.9em;
}

.footer-content {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 400px repeat(3, minmax(0, 1fr)); /* 400px untuk kolom 1, sisanya dibagi 3 */
  gap: 2.2rem;
  padding: 0 2rem;
}

.footer-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-medium);
}

.footer-text {
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-medium);
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.contact-info {
  margin-top: 1rem;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* =============== MODAL STYLES =============== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.747);
  /* backdrop-filter: blur(5px); */
}

.modal-content {
  /* background-color: var(--white); */
  margin: 7% auto;
  padding: 0;
  border-radius: 10px;
  width: 80%;
  max-width: 900px;
  height: 80vh;
  position: relative;
  box-shadow: rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.3s ease-out;
}

@media (max-width: 992px) {
  .modal-content {  
  margin: 14% auto;
  }
}

@media (max-width: 768px) {
  .modal-content {  
  margin: 16% auto;
  }
}

@media (max-width: 576px) {
  .modal-content {  
  margin: 25% auto;
  height: 80vh;
  }
}
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close-button {
  position: absolute;
  top: 15px;
  left: 20px;
  color: var(--primary-dark);
  font-size: 1.5rem;
  font-weight: bold;
  z-index: 10;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-button:hover {
  color: var(--primary-medium);
}

.modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

/* --- MULAI KODE YANG DITAMBAHKAN --- */
/* Definisi animasi 'slideUpFadeOut' untuk penutupan modal */
@keyframes slideUpFadeOut {
  from {
    transform: translateY(0); /* Mulai dari posisi normal */
    opacity: 1; /* Mulai dengan terlihat penuh */
  }
  to {
    transform: translateY(-50px); /* Berakhir di posisi 50px di atas */
    opacity: 0; /* Berakhir dengan transparan penuh */
  }
}

/* Aturan untuk memicu animasi keluar saat kelas 'is-closing' ditambahkan oleh JavaScript */
.modal.is-closing .modal-content {
  animation: slideUpFadeOut 0.2s ease-in forwards; /* Durasi 0.4s sesuai setTimeout di modal.js */
}

/* =============== RESPONSIVE STYLES =============== */
@media (max-width: 992px) {
  .hero-title-main {
    font-size: 2rem;
  }

  .hero-title-sub {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    padding: 1rem;
  }

  .hero-section {
    height: 60vh;
  }

  .hero-title-main {
    font-size: 1.8rem;
  }

  .hero-title-sub {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 50vh;
  }

  .hero-title-main {
    font-size: 1.5rem;
  }

  .hero-title-sub {
    font-size: 1.8rem;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 2fr));
  }

  .card-icon {
    font-size: 1.8rem;
    color: var(--primary-medium);
    margin-bottom: 0.5rem;
  }

  .card-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
  }

  .card-count {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 1rem 0;
  }

  .card-label {
    color: var(--primary-medium);
    font-size: 0.9rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-section {
    height: 50vh;
  }

  .hero-title-main {
    font-size: 1.5rem;
  }

  .hero-title-sub {
    font-size: 1.3rem;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 2fr)) !important;
  }
  
  .info-card {
    padding: 1rem;
  }
  .card-icon {
    font-size: 1.8rem;
    color: var(--primary-medium);
    margin-bottom: 0.5rem;
  }

  .card-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
  }

  .card-count {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 1rem 0;
  }

  .card-label {
    color: var(--primary-medium);
    font-size: 0.9rem;
  }
  
  .main-footer {
    align-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
  .footer-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-medium);
}

.footer-text {
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-medium);
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.contact-info {
  margin-top: 1rem;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}
}

@media (max-width: 400px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 2fr));
  } 
  .info-card {
    padding: 1rem;
  }

  .card-icon {
    font-size: 1.8rem;
    color: var(--primary-medium);
    margin-bottom: 0.5rem;
  }

  .card-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
  }

  .card-count {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 1rem 0;
  }

  .card-label {
    color: var(--primary-medium);
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 2fr));
  } 
  .info-card {
    padding: 1rem;
  }

  .card-icon {
    font-size: 1.8rem;
    color: var(--primary-medium);
    margin-bottom: 0.5rem;
  }

  .card-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
  }

  .card-count {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 1rem 0;
  }

  .card-label {
    color: var(--primary-medium);
    font-size: 0.9rem;
  }
  .main-footer {
    align-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* =================================
   STYLE UNTUK HALAMAN DETAIL PUBLIK
   ================================= */
.detail-page-wrapper {
  /* Kontainer pembungkus untuk halaman detail, bukan lagi di body */
  max-width: 900px;
  margin: 0; /* Memberi jarak dari atas dan bawah, serta memusatkan */
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); */
}

.detail-title {
  margin-top: 0;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-light);
  font-size: 2em;
  color: var(--primary-dark);
  text-align: center;
  font-weight: 600;
}

.detail-row {
  display: flex; /* Menggunakan flexbox untuk baris detail */
  align-items: baseline; /* Menjaga teks sejajar di bagian bawah jika ada wrapping */
  padding: 12px 0;
  border-bottom: 1px solid var(--gray); /* Garis pemisah antar baris */
  font-size: 1rem;
}

.detail-row:last-of-type {
  /* Selektor untuk baris terakhir, menghapus border bawah */
  border-bottom: none;
}

.detail-label {
  flex-basis: 250px; /* Lebar tetap untuk label, sesuaikan jika perlu */
  flex-shrink: 0; /* Mencegah label menyusut */
  font-weight: 600;
  color: var(--primary-dark);
  text-align: left; /* Pastikan teks label rata kiri */
  margin-right: 20px; /* Jarak antara label dan titik dua */
}

.detail-separator {
  /* Style untuk titik dua */
  flex-shrink: 0;
  margin-right: 15px; /* Jarak setelah titik dua */
  color: var(--black);
}

.detail-value {
  flex-grow: 1; /* Membiarkan nilai mengisi sisa ruang */
  color: var(--black);
  text-align: justify; /* Teks nilai rata kiri-kanan */
  word-wrap: break-word; /* Memastikan teks panjang tidak keluar batas */
}

/* Style khusus untuk link di dalam detail view */
.detail-value a {
  color: var(--primary-medium); /* Menggunakan warna primary-medium */
  text-decoration: underline;
  font-weight: normal;
  transition: var(--transition);
}
.detail-value a:hover {
  color: var(--primary-dark);
}

/* .back-button {
  display: inline-block;
  margin-top: 30px;
  padding: 10px 20px;
  background-color: var(--primary-medium);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: var(--transition);
} */

/* .back-button:hover {
  background-color: var(--primary-dark);
} */

.pdf-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #e74c3c;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pdf-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.pdf-button i {
    margin-right: 8px;
    font-size: 1.1em;
}

.no-file {
    color: #999;
    font-style: italic;
}

/* Media Queries for Detail Page Responsiveness */
@media (max-width: 768px) {
  .detail-page-wrapper {
    margin: 20px;
    padding: 20px;
  }
  .detail-title {
    font-size: 1.8em;
  }
  .detail-row {
    flex-direction: column; /* Label dan nilai bertumpuk di mobile */
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .detail-label {
    flex-basis: auto; /* Otomatis */
    margin-right: 0;
    margin-bottom: 5px; /* Jarak antara label dan nilai di mobile */
  }
  .detail-separator {
    display: none; /* Sembunyikan titik dua di mobile agar rapi */
  }
  .detail-value {
    padding-left: 0;
    text-align: left; /* Rata kiri di mobile */
  }
}

@media (max-width: 480px) {
  .detail-title {
    font-size: 1.5em;
  }
  .detail-page-wrapper {
    padding: 15px;
  }
}
