/* ========================================================= */
/* --- 1. VARIABEL & RESET DASAR --- */
/* ========================================================= */
:root {
  --color-primary: #192a56;
  /* Biru Gelap Solid (Hampir Hitam Navy) */
  --color-secondary: #27ae60;
  /* Hijau Cerah (Untuk Highlight & Tombol Utama) */
  --color-text-dark: #333;
  --color-text-light: #f5f5f5;
  --color-background-white: #ffffff;
  --color-background-light: #f8f9fa;
  /* Latar belakang lembut */
  --color-border-subtle: #eee;
  --color-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  /* Shadow halus */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

a {
  text-decoration: none;
  color: #192a56;
}


/* ----------------------- JUDUL HALAMAN ----------------------- */
h2,
.page-title {
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.2em;
  font-weight: 700;
}

.page-title {
  padding-bottom: 10px;
  border-bottom: 3px solid #27ae60;
  display: inline-block;
}



/* ========================================================= */
/* --- 2. HEADER & NAVIGASI STYLING (Sesuai Gambar) --- */
/* ========================================================= */

.main-header {
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1000;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}

.logo img {
  margin-right: 10px;
}

/* Search Bar */
.search-box {
  display: flex;
  border: 1px solid #eee;
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  margin-left: 100px;
  background-color: #ffffff;
}

.search-box input {
  border: none;
  padding: 12px 16px;
  width: 100%;
  font-size: 14px;
  color: #333;
  outline: none;
  border-radius: 8px 0 0 8px;
}

.search-box input::placeholder {
  color: #999;
}

.search-btn {
  background-color: #192a56;
  color: #ffffff;
  padding: 0 20px;
  cursor: pointer;
  border: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 8px 8px 0;
}


.search-btn:hover {
  opacity: 0.9;
  background-color: var(--color-primary-hover, var(--color-primary));
}

.search-btn:active {
  transform: scale(0.98);
}

/* Hasil pencarian - PENTING! */
.search-results {
  position: absolute;
  top: calc(100% + 4px);
  /* Jarak dari search box */
  left: 0;
  right: 0;
  width: 100%;
  /* Full width dari parent */
  background: white;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  /* Sembunyikan secara default */
}

.search-results.active {
  display: block;
  /* Tampilkan ketika ada hasil */
}

.search-results:empty {
  display: none;
  /* Sembunyikan jika kosong */
}

.search-result-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-subtle);
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
  color: var(--color-text-primary, #333);
}

.search-result-item:hover {
  background-color: var(--color-bg-hover, #f5f5f5);
}

.search-result-item:last-child {
  border-bottom: none;
}

/* Responsive design */
@media (max-width: 768px) {
  .search-box {
    margin-left: 0;
    max-width: 100%;
  }

  .search-box input {
    padding: 10px 12px;
    font-size: 16px;
  }

  .search-btn {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .search-btn {
    padding: 0 12px;
  }

  .search-results {
    max-height: 300px;
  }
}

.right-logos img {
  height: 70px;
  margin-left: 100px;
}

/* Navigasi Utama (Latarnya harus biru gelap solid) */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  background-color: var(--color-primary);
  /* Biru gelap solid */
  padding: 0 0px;
  max-width: 100%;
  margin: 0px auto;
}

.nav-item {
  color: var(--color-text-light);
  justify-content: center;
  padding: 15px 0px;
  font-size: 1.00em;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  cursor: pointer;
  text-transform: uppercase;
}

/* Hover dan Active menggunakan warna HIJAU */
.nav-item.active,
.nav-item:hover {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
}

/* Dropdown */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  width: 100%;
  left: 0;
  background-color: var(--color-background-white);
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.dropdown-content a {
  color: var(--color-text-dark);
  padding: 12px 16px;
  display: block;
  border-left: 5px solid transparent;
}

.dropdown-content a:hover,
.dropdown-content a.active {
  background-color: var(--color-background-light);
  border-left: 5px solid var(--color-secondary);
  /* Highlight hijau */
  color: var(--color-primary);
}

.has-dropdown:hover .dropdown-content {
  display: block;
}

/* Auth Buttons */
.auth-buttons {
  justify-content: center;
  flex: 0.3;
  display: flex;
  align-items: center;
}

.btn {
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  margin-left: 10px;
}

.btn-id {
  background-color: var(--color-background-white);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  align-items: center;
}

.btn {
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  margin-left: 10px;
}

.btn-id {
  background-color: var(--color-background-white);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

/* Hamburger Menu (Tambahkan Styling Sesuai JS) */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.5em;
  padding: 10px;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 15px;
  z-index: 20;
}


/* ========================================================= */
/* --- 3. LAYOUT BERANDA & KOMPONEN --- */
/* ========================================================= */

.hero-banner {
  overflow: hidden;
  width: 100%;
  height: 450px;
  padding: 0;
  margin: 0;
}

@media (max-width: 768px) {
  .hero-banner {
    height: 250px;
    /* Reduce hero height on mobile */
  }
}

.slider {
  width: 100%;
  overflow: hidden;

}


.slides {
  display: flex;
  animation: slide 20s infinite;
}

.slide {
  width: 100%;
  display: flex;
  object-fit: contain;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
}

.slide img {
  display: block;
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: top center;
  opacity: 1;
}

@media (max-width: 768px) {
  .slide img {
    height: 250px;
    /* Match hero height */
  }
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(0);
  }

  25% {
    transform: translatex(-100%);
  }

  45% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(-200%);
  }

  70% {
    transform: translateX(-200%);
  }

  75% {
    transform: translateX(-300%);
  }

  95% {
    transform: translateX(-300%);
  }

  100% {
    transform: translateX(-400%);
  }
}

/* Card Grid */
.agenda-section {
  background-color: #27306d;
  padding: 70px 80px;
}

.agenda-section h2 {
  color: white;
  text-align: center;
  font-size: 42px;
  margin-bottom: 50px;
}

.agenda-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.agenda-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.agenda-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.agenda-body {
  padding: 20px;
}

.agenda-date {
  font-weight: bold;
  font-size: 18px;
  display: block;
  margin-bottom: 10px;
}

.agenda-body p {
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .agenda-grid {
    grid-template-columns: 1fr;
  }

  .agenda-section {
    padding: 30px 15px;
    /* Reduced padding */
  }

  .agenda-section h2 {
    font-size: 28px;
    /* Smaller title */
    margin-bottom: 30px;
  }
}

@media (max-width: 600px) {
  .agenda-card img {
    height: 180px;
  }
}

/* lokasi intervensi*/

.map-section {
  padding: 60px 40px;
  background: white;
}

.map-section h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 60px;
  color: #192a56;
  font-weight: 700;
}

.map-container-full {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 1600px;
  margin: 0 auto;
  justify-content: space-between;
}

.map-info-legend {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex-shrink: 0;
  z-index: 5;
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-weight: 700;
  color: #333;
  font-size: 16px;
  line-height: 1.4;
}

.legend-color {
  width: 45px;
  height: 45px;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.legend-color.green {
  background: #27ae60;
}

.legend-color.red {
  background: #d62828;
}

/* Large Map Slider */
.map-slider-large-wrapper {
  flex: 1;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  max-height: 500px;
}

.map-slider-large-container {
  display: flex;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
  margin: 0;
  padding: 0;
}

.map-image-large {
  width: 100%;
  height: 500px;
  min-width: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: contrast(1.1) brightness(1.05);
}

/* Large Arrows */
.map-arrow-large {
  background: #1a1a1a;
  color: white;
  border: none;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  font-size: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.map-arrow-large:hover {
  background: #27ae60;
  transform: scale(1.1);
}

.map-arrow-large:active {
  transform: scale(0.95);
}

@media (max-width: 1200px) {
  .map-container-full {
    gap: 20px;
  }

  .map-arrow-large {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  .map-image-large {
    height: 400px;
  }

  .legend-item {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .map-section {
    padding: 30px 15px;
    /* Reduced padding */
  }

  .map-section h2 {
    margin-bottom: 30px;
    font-size: 24px;
    /* Smaller title */
  }

  .map-container-full {
    flex-direction: column;
    gap: 20px;
  }

  .map-info-legend {
    width: 100%;
  }

  .map-arrow-large {
    width: 40px;
    /* Smaller arrows */
    height: 40px;
    font-size: 20px;
  }

  .map-image-large {
    height: 250px;
    /* Smaller map height */
  }

  .legend-item {
    font-size: 14px;
  }
}





/* Testimoni Section */
.section-testimoni {
  background: #27306d;
  padding: 40px 0;
}

.section-testimoni h2 {
  margin-left: 20px;
  padding-bottom: 20px;
  color: #27306d;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}

/* Container slider */
.slider-testi {
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* Track bergerak */
.slider-track-testi {
  display: flex;
  width: calc(300px * 6);
  /* jumlah card * lebar card */
  animation: scroll 15s linear infinite;
}

/* Animasi bergerak */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-300px * 3 - 20px * 3));
    /* geser separuh track */
  }
}

/* Card */
.card-testi {
  padding: 20px;
  width: 300px;
  min-height: 250px;
  background: #27306d;
  color: white;
  margin-right: 20px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimoni-content {
  margin-top: 10px;
  font-style: italic;
  font-size: 14px;
  color: #555;
  width: 100%;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 8px;
}

.rating {
  margin: 5px 0;
  color: #f1c40f;
}

.profile-testi {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.card-testi h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}


/* Capaian Map */
.section-capaian {
  padding: 20px;
}

.map-placeholder {
  width: 100%;
  height: 400px;
  background-color: #e3f2fd;
  margin: 0 auto;
  border: 1px solid #bbdefb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--color-primary);
  border-radius: 8px;
}

.map-container img {
  width: 480px;
  height: auto;
  margin-right: 40px;
}

/* ========================================================= */
/* --- 4. LAYOUT DAFTAR (Berita/Materi) --- */
/* ========================================================= */

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  margin-bottom: 30px;
  background-color: var(--color-background-light);
  border-radius: 8px;
  flex-wrap: wrap;
}

.filter-group select {
  padding: 8px 12px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 4px;
  background-color: var(--color-background-white);
  color: var(--color-primary);
  font-size: 0.9em;
  cursor: pointer;
  margin-left: 5px;
}

.berita-item,
.materi-item {
  display: flex;
  background-color: var(--color-background-white);
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 5px;
  box-shadow: var(--color-box-shadow);
  transition: background-color 0.2s;
}

.berita-item:hover {
  background-color: #f2f7ff;
}

.berita-image {
  min-width: 180px;
  height: 120px;
  background-color: var(--color-background-light);
  margin-right: 20px;
  border-radius: 4px;
  background-image: url('https://via.placeholder.com/180x120/dcdcdc/000000?text=Berita');
  background-size: cover;
}

.berita-content h3 {
  font-size: 1.25em;
  margin-bottom: 5px;
  color: var(--color-primary);
  text-align: left;
}

.berita-layout {
  max-width: 1200px;
  margin: auto;
  padding: 40px 40px;
  /* ⬅️ padding kanan kiri */
}

.berita-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* ITEM */
.berita-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
}

.berita-img {
  flex: 4;
  /* 50% */
}

.berita-content {
  flex: 6;
  /* 50% */
}

/* GAMBAR */
.berita-img img {
  width: 380px;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
}

/* KONTEN */
.berita-content h3 {
  color: #c62828;
  font-size: 20px;
  margin-bottom: 10px;
}

.berita-content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* BUTTON */
.btn {
  display: inline-block;
  background: #c62828;
  color: #fff;
  padding: 8px 15px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .berita-item {
    flex-direction: column;
  }

  .berita-img img {
    width: 100%;
    height: auto;
  }

  .filter-bar {
    flex-direction: column;
  }
}

.berita-content .ringkasan {
  color: #666;
  font-size: 0.9em;
}

/* ========================================================= */
/* --- Materi --- */
/* ========================================================= */

.materi-video {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0px 100px;
  /* ⬅️ padding kanan kiri desktop */
  aspect-ratio: 16/9;
}

.materi-video iframe {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.materi-section {
  background-color: #ffffff;
  padding: 70px 80px;
}

.materi-section h2 {
  color: #27306d;
  text-align: left;
  font-size: 42px;
  margin-bottom: 50px;
}

.materi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  column-gap: 40px;
  row-gap: 60px;
}

.materi-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;

}

.materi-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.materi-body {
  padding: 20px;
}

.materi-date {
  font-weight: bold;
  font-size: 18px;
  display: block;
  margin-bottom: 10px;
}

.materi-body p {
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .materi-grid {
    grid-template-columns: 1fr;
  }

  .materi-section {
    padding: 40px 20px;
  }

  .materi-video {
    max-width: 100%;
    margin: 30px 0;
    padding: 0 10px;
    aspect-ratio: 16/9;
  }

  .materi-video iframe {
    width: 100%;
    height: 100%;
    border-radius: 6px;
  }
}

/* ========================================================= */
/* --- 5. DETAIL GALERI (Slider) --- */
/* ========================================================= */

.galeri-section {
  background-color: #ffffff;
  padding: 70px 80px;
}

.galeri-section h2 {
  color: #27306d;
  text-align: left;
  font-size: 42px;
  margin-bottom: 50px;
}

.galeri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  column-gap: 40px;
  row-gap: 60px;
}

.galeri-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;

}

.galeri-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.galeri-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 150px;
}

.galeri-date {
  font-weight: bold;
  font-size: 18px;
  display: block;
  margin-bottom: 10px;
  flex-grow: 0;
}

.galeri-body p {
  font-size: 16px;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 15px;
}

.galeri-body .btn {
  align-self: flex-start;
  padding: 8px 16px;
  font-size: 14px;
  background-color: var(--color-secondary);
  color: white;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.galeri-body .btn:hover {
  background-color: #1e9b4f;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .galeri-grid {
    grid-template-columns: 1fr;
  }

  .galeri-section {
    padding: 40px 20px;
  }
}

@media (max-width: 600px) {
  .galeri-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }
}

.galeri-video {
  width: 100%;
  max-width: 100%;
  margin: 20px 0;
}

.galeri-video iframe {
  width: 100%;
  height: 100%;
}

.galeri-image img {
  width: 100%;
  max-width: 100%;
  margin: 20px 0;
}

/* ========================================================= */
/* --- 6. FOOTER --- */
/* ========================================================= */

.footer {
  background: #d9d9d9;
  padding: 20px 80px;
  width: 100%;
  box-sizing: border-box;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.footer-left h2,
.footer-right h2 {
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 0px;
}

.footer-left p {
  font-size: 15px;
}

.footer-right .subtitle {
  font-size: 15px;
  margin-bottom: 5px;
}

.contact-item {
  gap: 16px;
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  font-size: 14px;
}

.contact-item .icon {
  margin-right: 15px;
  font-size: 25px;
}

.social-icons a {
  text-decoration: none;
  gap: 30px;
  font-size: 20px;
  margin-right: 15px;
}

.social-icons a img {
  padding: 0px 30px;
  height: 25px;
}

.logo-row {
  border-top: 2px solid black;
  padding-top: 10px;

  display: flex;
  justify-content: left;
  gap: 7px;
}

.logo-row img {
  height: 30px;
  object-fit: contain;
}



/* ========================================================= */
/* --- 7. MEDIA QUERIES (RESPONSIVE) --- */
/* ========================================================= */

@media (max-width: 1000px) {
  .footer {
    padding: 40px 20px;
    height: auto;
    max-height: none;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    text-align: left;
  }

  .footer-left h2,
  .footer-right h2 {
    text-align: left;
  }

  .contact-item {
    justify-content: flex-start;
  }

  .logo-row {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .logo-row img {
    height: 25px;
    margin-bottom: 5px;
  }
}

@media (max-width: 1000px) {

  /* Header & Navigasi Mobile */
  .top-bar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo {
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .search-box,
  .right-logos {
    display: none;
  }

  .hamburger-menu {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    background-color: var(--color-primary);
    position: absolute;
    width: 100%;
    top: 100%;
    /* Push it to the bottom of the header */
    left: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    z-index: 100;
  }

  .main-nav.menu-open {
    max-height: 100vh;
    /* Allow it to grow */
    border-bottom: 2px solid var(--color-secondary);
  }

  .nav-item {
    width: 100%;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    /* Ensure clickable area */
  }

  .has-dropdown:hover .dropdown-content {
    position: static;
    box-shadow: none;
    background-color: rgba(0, 0, 0, 0.1);
  }

  .auth-buttons {
    flex-direction: column;
    padding: 15px;
  }

  .btn {
    margin: 5px 0;
    width: 100%;
  }
}

@media (max-width: 768px) {

  /* Komponen */
  .hero-content h2 {
    font-size: 2em;
  }

  .card-grid,
  .testimoni-grid {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .card-testimoni {
    flex-basis: 100%;
    max-width: 400px;
  }

  /* Berita */
  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .berita-item {
    flex-direction: column;
  }

  .berita-image {
    min-width: 100%;
    height: 200px;
    margin: 0 0 15px 0;
  }

  .berita-content h3 {
    text-align: center;
  }

  /* Galeri */
  .galeri-viewer {
    height: 300px;
  }
}

html {
  scroll-behavior: smooth;
}

/* ========================================================= */
/* --- GALERI DETAIL STYLING --- */
/* ========================================================= */

.galeri-detail-layout {
  padding: 40px 20px;
}

.galeri-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #192a56;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.galeri-detail-container {
  max-width: 1000px;
  margin: 0 auto;
}

.galeri-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.galeri-label {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.galeri-counter-badge {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.galeri-viewer-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.galeri-arrow {
  background: #1a1a1a;
  color: white;
  border: none;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.galeri-arrow:hover {
  background: #27ae60;
  transform: scale(1.1);
}

.galeri-arrow:active {
  transform: scale(0.95);
}

.galeri-image-wrapper {
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
}

.galeri-image-slider {
  display: flex;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.galeri-image-item {
  width: 100%;
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
}

.galeri-image-item img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 600px;
  object-fit: contain;
}

.galeri-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.unduh-btn {
  background: #192a56;
  color: white;
  padding: 12px 40px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
}

.unduh-btn:hover {
  background: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

@media (max-width: 768px) {
  .galeri-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .galeri-header {
    flex-direction: column;
    gap: 15px;
  }

  .galeri-arrow {
    width: 55px;
    height: 55px;
    font-size: 24px;
  }

  .galeri-image-item img {
    max-height: 400px;
  }
}

/*profile*/
.profile-section {
  padding: 20px 20px;
  margin: 0 auto;
}

.profile-section h2 {
  text-align: center;
  font-size: 30px;
  margin-bottom: 25px;
  color: #0a2a6a;
  animation: slideInDown 0.8s ease-out;
}

.profile-section p {
  animation: fadeInUp 1s ease-out 0.2s both;
}


.profile-section p {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

.profile-section img {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/*profile TENTANG*/
.about-hero {
  position: relative;
  width: 100%;
  height: 300px;
  /* bisa ubah sesuai selera */

  padding: 0;
  overflow: hidden;
}

.about-hero img {
  width: 100%;
  /* 100% di layar*/
  max-width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  object-position: center;
  filter: brightness(60%);
  /* agar foto sedikit gelap */
}

.about-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 20, 90, 0.3);
  /* Layer biru transparan */
}

.about-hero .text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
}

.about-hero .text h1 {
  font-size: 30px;
  font-weight: bold;
  margin: 0;
  background: #0a2a6a;
  /* biru navy */
  padding: 12px 40px;
  border-radius: 25px;
}

.about-scroll {
  color: white;
  font-size: 48px;
  /* sama seperti H1 kamu */
  font-weight: bold;
  text-decoration: none;
}

.about-scroll:hover {
  opacity: 0.8;
}


/*profile TENTANG-dikdasmen*/
.logo-box {
  max-width: 800px;
  background: #0c2c68;
  color: white;
  padding: 25px 30px;
  width: 80%;
  margin: 0 auto;
  border-radius: 25px;
  animation: fadeInUp 1s ease-out;
}

.logo-box p {
  text-align: justify;
  font-size: 20px;
  line-height: 1.6;
  color: #ffffff;
  animation: fadeInUp 1.2s ease-out 0.2s both;
}

/*profile TENTANG-KREASI*/
.kreasi {
  max-width: 800px;
  height: 350px;
  display: flex;
  align-items: center;
  gap: 100px;
  padding: 20px;
  animation: fadeInUp 1s ease-out;
}

.left {
  flex-direction: column;
  align-items: center;
  width: 350px;
}

.right {
  max-width: 350px;
  line-height: 1.6;
  text-align: justify;
}


/*TUJUAN*/
.tujuan-box {
  background-color: red;
  padding: 35px 30px;
  /* jarak atas-bawah dan kiri-kanan */
}

.tujuan-box h2 {
  color: black;
  /* warna teks */
  margin-bottom: 0px;
  /* jarak antara judul dan card */
  text-align: center;
  /* biar judul di tengah */
  font-size: 40px;
  animation: slideInDown 0.8s ease-out;
}

.tujuan-box p {
  padding: 20px 120px;
  text-align: justify;
  font-size: 20px;
  line-height: 1.6;
  color: #ffffff;
  animation: fadeInUp 1s ease-out 0.3s both;
}

/* split profile-section kreasi*/
.split-kreasi {
  display: flex;
  align-items: stretch;
  /* bila ingin full width */
  width: 100%;
  /* spasi atas-bawah, bisa diubah */
  padding: 0px 0;
}

.split-left,
.split-right {
  flex: 1;
  /* dua bagian sama besar */
}

/* Untuk gambar + overlay teks */
.image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 2/1;
  overflow: hidden;
}

.image-container img {
  position: absolute;
  opacity: 65%;
  top: 0;
  left: 0;
  max-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* supaya gambar menyesuaikan, tidak terdistorsi */
}

/* Overlay teks di atas gambar */
.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 0 10px;
  animation: zoomIn 1s ease-out;
}

.overlay-text h2 {
  color: black;
  font-style: bold;
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0;
  font-size: 55px;
}

/* styling split-right */
.split-right {
  padding: 0 00px;
}

/* Responsif — di layar kecil, kolom jadi 1 (gambarnya dulu, teks di bawah) */
@media (max-width: 768px) {
  .split-kreasi {
    flex-direction: column;
  }

  .split-left,
  .split-right {
    width: 100%;
    flex: none;
  }

  .split-right {
    padding: 0;
  }

  .image-container {
    aspect-ratio: 16/9;
  }

  .overlay-text h2 {
    font-size: 32px;
  }

  /* --- PROFILE PAGE MOBILE FIXES --- */

  /* About Hero */
  .about-hero {
    height: 200px;
  }

  .about-hero img {
    height: 200px;
  }

  .about-scroll {
    font-size: 28px;
  }

  /* Logo Box (Dikdasmen) */
  .logo-box {
    width: 95%;
    padding: 15px 20px;
  }

  .logo-box p {
    font-size: 14px;
  }

  /* Kreasi Section */
  .kreasi {
    flex-direction: column;
    height: auto;
    gap: 20px;
    text-align: center;
  }

  .kreasi .left {
    width: 100%;
  }

  .kreasi .left img {
    max-width: 200px;
    margin: 0 auto;
  }

  .kreasi .right {
    max-width: 100%;
    padding: 0 15px;
  }

  .kreasi .right p {
    font-size: 14px;
  }

  /* Tujuan Box */
  .tujuan-box {
    padding: 20px 15px;
  }

  .tujuan-box h2 {
    font-size: 24px;
  }

  .tujuan-box p {
    padding: 15px 10px;
    font-size: 14px;
  }

  /* Split Box */
  .split-box {
    padding: 20px;
    min-height: auto;
    flex-direction: column;
  }

  .split-box p {
    font-size: 15px;
    padding: 0;
    margin: 0;
    line-height: 1.6;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  /* Goals Kreasi */
  .goals-kreasi {
    padding: 20px 10px;
  }

  .goals-kreasi h2 {
    font-size: 24px;
  }

  .goals-kreasi p {
    font-size: 14px;
    padding: 0 10px;
  }

  /* Flip Cards */
  .flip-card {
    max-width: 100%;
    height: auto;
    min-height: 110px;
    margin: 15px 10px;
    padding: 0 10px;
  }

  .flip-inner {
    width: 100%;
    height: 100%;
  }

  .flip-front,
  .flip-back {
    padding: 20px 15px;
    min-height: 110px;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .flip-front h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
  }

  .flip-back p {
    font-size: 13px;
    line-height: 1.5;
  }

  /* Static Cards */
  .static-card {
    margin: 15px 10px;
    padding: 20px 15px;
  }

  .static-card h3 {
    font-size: 16px;
  }

  /* Struktur Organisasi */
  .struktur-btn-container {
    gap: 10px;
    margin: 20px 0;
  }

  .struktur-btn-card {
    padding: 20px 15px;
    max-width: 100%;
  }

  .struktur-btn-card h3 {
    font-size: 16px;
  }

  .struktur-container {
    padding: 15px;
    gap: 20px;
  }

  .card-struktur {
    width: 100%;
    max-width: 250px;
  }

  .card-struktur img {
    width: 180px;
    height: 230px;
  }

  .nama {
    font-size: 18px;
  }

  .jabatan {
    font-size: 12px;
  }

  /* Profile Section General */
  .profile-section h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .profile-section p {
    font-size: 14px;
  }
}

#program {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  /* trik agar rata benar */
  margin-right: calc(50% - 50vw);
}

/*split box right*/
.split-box {
  background-color: #0c2c68;
  align-items: center;
  height: 100%;
  display: flex;
  padding: 20px 30px;
  /* jarak atas-bawah dan kiri-kanan */
  animation: slideInRight 1s ease-out;
}

.split-box p {
  text-align: justify;
  font-size: 20px;
  line-height: 1.6;
  color: #ffffff;
  padding: 0px 60px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  animation: fadeInUp 1.2s ease-out 0.3s both;
}


/*GOALS KREASI*/
.goals-kreasi {
  padding: 15px;
}

.goals-kreasi h2 {
  font-size: 40px;
  color: black;
  animation: slideInDown 0.8s ease-out;
}

.goals-kreasi p {
  font-size: 20px;
  text-align: center;
}

.red-goals {
  color: red;
}

.flip-card {
  width: 100%;
  max-width: 700px;
  /* bisa diubah */
  height: 120px;
  /* tinggi card */
  margin: 25px auto;
  perspective: 1000px;
  /* penting untuk efek 3D */
  animation: fadeInUp 0.8s ease-out;
}

.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.7s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

/* DEPAN */
.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  /* penting */
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 15px;
  text-align: center;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
}

/* Warna depan (biru) */
.flip-front {
  background: var(--color-primary);
  color: #fff;
}

.flip-front h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

/* Belakang (hijau), diputar agar muncul saat flip */
.flip-back {
  background: #43d596;
  color: var(--color-primary);
  transform: rotateY(180deg);
}

.flip-back p {
  font-size: 14px;
  line-height: 1.5;
}

.static-card {
  width: 100%;
  max-width: 700px;
  margin: 20px auto;
  padding: 35px 20px;
  background: red;
  /* warna merah */
  color: white;
  /* teks putih biar kontras */
  border-radius: 10px;
  text-align: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.static-card h3 {
  margin-bottom: 10px;
  align-items: center;
  font-size: 22px;
  font-weight: bold;
}


/*STRUKTUR*/

.struktur-btn-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.struktur-btn-wrapper {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.struktur-btn-card {
  width: auto;
  max-width: 350px;
  padding: 40px 20px;
  border: none;
  border-radius: 10px;
  background: #ddd;
  color: #333;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.struktur-btn-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
}

.struktur-btn-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.struktur-btn-card.active {
  background: red;
  color: white;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* hide & show struktur */
.struktur {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.struktur.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.jabatan {
  margin-top: 2px;
  font-size: 16px;
}

/* --- TESTIMONIAL MARQUEE ANIMATION --- */
.section-testimoni {
  padding: 50px 0;
  text-align: center;
  background-color: #f9f9f9;
  overflow: hidden;
}

.section-testimoni h2 {
  margin-bottom: 40px;
  font-size: 2rem;
  color: #333;
  letter-spacing: 2px;
  padding: 0 15px;
  /* Add padding for mobile */
}

.slider-testi {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.slider-track-testi {
  display: flex;
  width: max-content;
  gap: 30px;
  animation: scroll-left 40s linear infinite;
  /* Slower for better readability */
}

.slider-track-testi:hover {
  animation-play-state: paused;
}

.card-testi {
  flex-shrink: 0;
  width: 350px;
  background: #27306d;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s;
}

.card-testi:hover {
  transform: translateY(-5px);
}

.profile-testi {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 15px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.card-testi h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: white;
}

.card-testi p {
  color: #ffc107;
  margin-bottom: 15px;
  font-size: 14px;
}

.card-testi span {
  font-size: 0.95rem;
  color: white;
  line-height: 1.6;
  display: block;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Responsive Testimoni */
@media (max-width: 600px) {
  .card-testi {
    width: 280px;
    /* Resize card for mobile */
    padding: 20px;
  }

  .slider-track-testi {
    gap: 20px;
  }

  .section-testimoni h2 {
    font-size: 1.6rem;
  }
}

/* Animation untuk text muncul */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.struktur-container {
  padding: 35px;
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  /* biar responsive */
}

.struktur {
  padding-bottom: 30px;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.card-struktur {
  width: 250px;
  text-align: center;
}

.card-struktur img {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 220px;
  height: 280px;
  border-radius: 12px;
  object-fit: cover;
  /* biar fotonya proporsional */
}

.nama {
  margin: 10px 0 0;
  font-weight: bold;
  font-size: 26px;
}

.jabatan {
  margin-top: 2px;
  font-size: 15px;
}

.img-pop-tim {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-pop-tim:hover {
  transform: scale(1.05);
  /* pop up kecil */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* buletin */
.buletin-section {
  background-color: #ffffff;
  padding: 70px 80px;
}

.buletin-section h2 {
  color: #27306d;
  text-align: left;
  font-size: 42px;
  margin-bottom: 50px;
}

.buletin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  column-gap: 40px;
  row-gap: 60px;
}

.buletin-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;

}

.buletin-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.buletin-body {
  padding: 20px;
}

.buletin-date {
  font-weight: bold;
  font-size: 18px;
  display: block;
  margin-bottom: 10px;
}

.buletin-body p {
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .buletin-grid {
    grid-template-columns: 1fr;
  }

  .buletin-section {
    padding: 40px 20px;
  }
}

.buletin-video {
  width: 100%;
  max-width: 100%;
  margin: 20px 0;
  aspect-ratio: 16/9;
}

.buletin-video iframe {
  width: 100%;
  height: 100%;
}

/* capaian */
.capaian-section {
  background-color: #ffffff;
  padding: 70px 80px;
}

.capaian-section h2 {
  color: #27306d;
  text-align: left;
  font-size: 42px;
  margin-bottom: 50px;
}

.capaian-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  column-gap: 40px;
  row-gap: 60px;
}

.capaian-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;

}

.capaian-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.capaian-body {
  padding: 20px;
}

.capaian-date {
  font-weight: bold;
  font-size: 18px;
  display: block;
  margin-bottom: 10px;
}

.capaian-body p {
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 900px) {

  .materi-grid,
  .buletin-grid,
  .capaian-grid {
    grid-template-columns: 1fr;
  }

  .materi-section,
  .buletin-section,
  .capaian-section {
    padding: 30px 15px;
    /* Reduced padding */
  }

  .materi-section h2,
  .buletin-section h2,
  .capaian-section h2 {
    font-size: 28px;
    /* Smaller title */
    margin-bottom: 30px;
  }
}

.capaian-video {
  width: 100%;
  max-width: 100%;
  margin: 20px 0;
  aspect-ratio: 16/9;
}

.capaian-video iframe {
  width: 100%;
  height: 100%;
}