/* === RESET & BASE === */
* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f0f2f5;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* === HEADER & FOOTER === */
header, footer {
  width: 100%;
  background: #003366;
  color: white;
  padding: 20px 40px;
}
header img, footer img {
  vertical-align: middle;
  height: 38px;
  margin-right: 10px;
}
.site-title {
  font-size: 1.6em;
  font-weight: bold;
  color: white;
  margin: 0;
  display: flex;
  align-items: center;
}

/* === MAIN WRAPPER === */
main.article-wrapper {
  flex: 1;
  padding: 20px 0;
  width: 100%;
}
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 15px;
}

/* === NEWS HEADER & SEARCH === */
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.news-header h1 {
  font-size: 1.8em;
  color: #003366;
  flex: 1;
}
.search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}
.search-form input[type="text"] {
  padding: 8px 12px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.search-form button {
  padding: 8px 16px;
  background-color: #003366;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.search-form button:hover {
  background-color: #00509e;
}

/* === NEWS GRID === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

/* === NEWS CARD === */
.news-card {
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.news-card:hover {
  transform: translateY(-3px);
}
.news-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.news-card h3 {
  font-size: 1.05em;
  margin: 15px 15px 5px;
  line-height: 1.3em;
}
.news-card h3 a {
  color: #003366;
  text-decoration: none;
}
.news-card h3 a:hover {
  text-decoration: underline;
}
.news-card small {
  margin: 0 15px;
  color: #777;
  font-size: 0.85em;
}
.news-card p {
  margin: 10px 15px;
  font-size: 0.95em;
  color: #444;
  flex-grow: 1;
}
.news-card .button-link {
  margin: 10px 15px 15px;
  padding: 8px 14px;
  background: #003366;
  color: white;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
}
.news-card .button-link:hover {
  background: #00509e;
}

/* === THUMBNAIL / VIDEO STYLE === */
.thumb-wrapper {
  position: relative;
  display: block;
}
.thumb-wrapper img,
.thumb-wrapper video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.thumb-wrapper .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  color: white;
  background-color: rgba(0,0,0,0.5);
  padding: 10px 12px;
  border-radius: 50%;
  pointer-events: none;
}

/* === PAGINATION === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
}
.pagination a {
  padding: 6px 12px;
  background: #eee;
  color: #333;
  border-radius: 4px;
  text-decoration: none;
}
.pagination a.active {
  background: #003366;
  color: white;
  font-weight: bold;
}

/* === FOOTER === */
.footer-custom {
  background: #003366;
  color: white;
  padding: 30px 15px;
  margin-top: auto;
}
.footer-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}
.footer-col {
  flex: 1 1 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-col h2 {
  font-size: 1.1em;
  margin-bottom: 8px;
}
.footer-col hr {
  width: 40px;
  height: 2px;
  background-color: white;
  border: none;
  margin-bottom: 12px;
}
.footer-col p {
  margin: 6px 0;
  font-size: 0.95em;
}
.footer-title {
  font-size: 1em;
  font-weight: bold;
  line-height: 1.4em;
  margin: 0;
}
.logo-footer {
  height: 90px;
  margin-bottom: 10px;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
.social-icons a img {
  width: 32px;
  height: 32px;
  background: white;
  padding: 6px;
  border-radius: 4px;
  transition: transform 0.3s ease;
}
.social-icons a img:hover {
  transform: scale(1.1);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .search-form {
    width: 100%;
    flex-direction: column;
    margin-top: 10px;
  }
  .search-form input,
  .search-form button {
    width: 100%;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .container {
    width: 95%;
    padding: 0 2px;
  }
  .site-title {
    font-size: 1.3em;
  }
  header img, footer img {
    height: 30px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 2px 0;
  }

  .footer-col {
    padding: 1px 0;
  }

  .footer-col h2 {
    margin: 1px 0;
  }

  .footer-title {
    font-size: 1em;
    margin-top: 1px;
  }

  .logo-footer {
    height: 70px;
    margin-bottom: 5px;
  }
}
/* === BROSUR SLIDER === */
.brosur-slider-container {
  position: relative;
  width: 100vw;
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto 30px;
  background: transparent;
}

.brosur-slider {
  display: flex;
  transition: transform 1s ease-in-out;
  width: 100%;
}

.brosur-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: none;
}

.brosur-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  margin: 0 auto;
}

/* Caption */
.brosur-caption {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  width: 100%;
  text-align: center;
  padding: 10px;
  font-size: 1em;
  font-weight: bold;
}

/* Tombol Navigasi */
.slider-prev,
.slider-next {
  opacity: 0; /* Tetap tersembunyi */
  pointer-events: auto; /* Bisa diklik */
  width: 20%; /* HANYA area 20% di kiri/kanan gambar */
  height: 100%;
  position: absolute;
  top: 0;
  z-index: 20;
  background: transparent;
}

.slider-prev {
  left: 0;
}

.slider-next {
  right: 0;
}

.slider-prev:hover,
.slider-next:hover {
  background: rgba(0, 0, 0, 0.05); /* transparan halus saat hover */
}
@media (max-width: 900px) {
  body {
    margin: 0;
    padding: 0;
  }

  .brosur-slider-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .brosur-slide img {
    height: auto;
    max-height: 800px;
    object-fit: contain;
    margin-top: 0;
  }

  .brosur-caption {
    font-size: 0.9em;
    padding: 6px;
  }

  .slider-prev,
  .slider-next {
    font-size: 28px;
    padding: 6px;
  }

  /* Jika ada header atau nav tetap muncul, bisa disembunyikan */
  header,
  nav {
    margin: 0 !important;
    padding: 0 !important;
  }
}


  .brosur-slide img {
    height: auto;
    max-height: 800px;
    object-fit: contain;
    margin-top: 0;
  }

  .brosur-caption {
    font-size: 0.9em;
    padding: 6px;
  }

  .slider-prev,
  .slider-next {
    font-size: 28px;
    padding: 6px;
  }

  /* Jika ada header atau nav tetap muncul, bisa disembunyikan */
  header,
  nav {
    margin: 0 !important;
    padding: 0 !important;
  }
}
