@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

/* Regular 400 */
@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

/* Medium 500 */
@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

/* Semibold 600 */
@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}

/* Bold 700 */
@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}


/*==================
=INI BAGIAN ABOUT===
====================*/
#click-hint {
  position: absolute;
  z-index: 9999;
  background: rgba(255,255,255,0.85);
  padding: 6px 14px;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: #333;
  pointer-events: none;
  transition: opacity .5s ease;
  animation: hintPulse 1.8s infinite ease-in-out;
}

@keyframes hintPulse {
  0% { transform: translate(-50%, -100%) scale(1); }
  50% { transform: translate(-50%, -100%) scale(1.07); }
  100% { transform: translate(-50%, -100%) scale(1); }
}

/* ===== DEFAULT (DESKTOP) ===== */
.hero-map-section {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

#map {
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:1;
}

/* Hint bawaan */
#click-hint {
  position: absolute;
  background: rgba(255,255,255,0.85);
  padding: 6px 14px;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: #333;
  pointer-events: none;
  z-index: 9999;
  transition: opacity .4s ease;
  animation: hintPulse 1.8s infinite ease-in-out;
}

@keyframes hintPulse {
  0% { transform: translate(-50%, -100%) scale(1); }
  50% { transform: translate(-50%, -100%) scale(1.08); }
  100% { transform: translate(-50%, -100%) scale(1); }
}

/* About Box Desktop */
.about-us-box {
  position: absolute;
  bottom: 0; 
  left: 10%; 
  width: 25%; 
  height: 78%; 
  background-color: #fff; 
  border-radius: 30px 10px 30px 10px; 
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  color: #333;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  z-index: 2;
  opacity: 0;
  transform: translateY(40px);
  pointer-events: none;
  transition: all .6s ease;
}

.about-us-box h2 {
  font-size:20px; 
  margin-bottom:1rem; 
  color:#4f46e5; 
  font-weight:700; 
  border-bottom: 3px solid #4f46e5; 
  display: inline-block; 
  padding-bottom: 0.2rem;
  }


/* ====================== RESPONSIVE ====================== */
@media (max-width: 1024px) {
  /* Tablet: sedikit lebih lebar dan rendah boxnya */
  .about-us-box {
    width: 35%;
    left: 5%;
    height: 70%;
  }
}

/* ------ MOBILE MODE ------ */
@media (max-width: 768px) {

  .hero-map-section {
    height: 90vh !important;
  }

  #map {
    height: 90vh !important;
  }

  /* BOX PINDAH KE BAWAH, CENTER */
  .about-us-box {
    bottom: 5% !important;
    transform: translateX(-50%) translateY(40px);
    width: 100% !important;
    height: auto !important;
    padding: 1.5rem !important;
    border-radius: 20px;
    overflow-y: auto;
    max-height: 45vh;
    font-size: 14px;
    max-width: 90%; /* Biar tetap muat & tidak overflow */
  }

  .about-us-box h2 {
    font-size:18px; 
}

  .hero-map-section a[href*="#"] {
    bottom: 3% !important;
    right: 35% !important;
    transform: translateX(50%);
  }

}


/*===================================
============ AREA FOTO =============
=====================================*/
.galeri-foto {
  display: flex;
  width: 1200px;
  height: 80vh;
  margin: 0 auto;
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 0;
  gap: 15px;
}

.kolom {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.kiri { flex: 0 0 30%; }

.kiri .foto-atas {
  flex: 0 0 60%;
  width: 100%;
}
.kiri .foto-atas img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kiri .teks-atas {
  color: black;
  flex: 0 0 40%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.kiri .teks-atas h3 {
  font-family: SF Pro Rounded, sans-serif; 
  font-size: 28px;   /* silakan sesuaikan */
  font-weight: 600;
}


.btn-selengkapnya {
  font-family: SF Pro Rounded, sans-serif; 
  font-weight: 500;
  margin-top: 12px;
  padding: 8px 18px;
  color: black;
  font-size: 14px;
  border-radius: 4px;
  text-decoration: none;
  transition: .3s;
}
.btn-selengkapnya:hover {
  opacity: .8;
}

.tengah { flex: 0 0 45%; }
.tengah .foto-tengah {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kanan {
  flex: 0 0 25%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.kanan .foto-kanan {
  flex: 1 1 50%;
}
.kanan .foto-kanan img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide mobile galeri by default, show only on mobile */
.galeri-mobile {
  display: none;
}

@media (max-width: 900px) {
.galeri-foto {
  display: none;
}
  .galeri-mobile { display: block; width: 100vw; padding: 0 30px; }

  .header { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; }
  .header h3 { 
  font-family: SF Pro Rounded, sans-serif; 
  font-weight: 600;
  margin-top: 12px;
  padding: 6px 12px;
  color: black;
  font-size: 16px;
  border-radius: 4px;
  text-decoration: none;
  position: relative; /* perlu untuk ::after */
}

/* underline pseudo-element */
.header h3::after {
  content: "";
  display: block;
  width: 30%;          /* panjang underline */
  height: 2px;         /* tebal underline */
  background-color: black;
  margin-top: 4px;     /* jarak antara teks dan underline */
  border-radius: 2px;  /* biar ujungnya agak bulat */
}

  .btn-selengkapnya { font-size: 14px; padding: 6px 12px; }

  .carousel-wrapper {
    position: relative;
    width: 100%;
    height: calc(80vh - 50px);
    overflow: hidden;
  }

  .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;

  }

  .carousel-slide.active { opacity: 1; z-index: 1; }

  .carousel-slide .landscape { width: 100%; height: 50%; margin-bottom: 4px; }
  .carousel-slide .landscape img { width: 100%; height: 100%; object-fit: cover; }

  .square-container {
    display: flex;
    width: 100%;
    height: 50%;
    gap:4px;
  }
  .square-container .square { flex:1; width: 50%; height: 100%; }
  .square-container .square img { width: 100%; height: 100%; object-fit: cover; display: block; }
}







/*===================================
============ AREA VIDEO =============
=====================================*/

section#video-section {
      padding: 60px 20px;
      background: #f9f9f9;
      text-align: center;
    }

    .video-container {
      max-width: 1300px;
      margin: 0 auto;
    }

    .main-video {
      display: flex;
      flex-direction: row-reverse; /* video di kanan, text di kiri */
      align-items: flex-start;
      gap: 30px;
      margin-bottom: 40px;
      text-align: left;
      padding: 0 60px;
    }

    /* Video tetap responsif */
    .main-video iframe {
      flex: 1.2;
      width: 100%;
      height: 400px;
    }

    .video-info {
      flex: 1;
      max-width: 500px;
    }

    .video-info .date {
      color: #888;
      font-size: 0.9em;
    }

    .video-info .title {
      font-weight: 700;
      margin: 5px 0;
      color: black;
      font-size: 24px;
      margin-bottom: 15px;
    }

    .video-info .desc {
      color: #555;
      line-height: 1.5em;
    }

    .thumbnails {
      display: flex;
      gap: 15px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      justify-content: center;
    }

    .thumbnail {
      position: relative;
      flex: 0 0 30%;
      cursor: pointer;
      overflow: hidden;
      scroll-snap-align: start;
      min-width: 250px;
    }

    .thumbnail img {
      width: 100%;
      height: 230px;
      object-fit: cover;
      display: block;
      transition: transform 0.3s ease;
    }

    .thumbnail:hover img {
      transform: scale(1.05);
    }

    .overlay {
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.4);
      display: flex;
      justify-content: center;
      align-items: center;
      transition: background 0.3s ease;
    }

    .thumbnail:hover .overlay {
      background: rgba(0,0,0,0.6);
    }

    .overlay .play-icon {
      width: 50px;
      height: 50px;
      background: rgba(255,255,255,0.8);
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 24px;
      color: #000;
    }

    .thumb-info {
      position: absolute;
      bottom: 10px;
      left: 10px;
      color: white;
      text-align: left;
    }

    .thumb-info .date {
      font-size: 0.8em;
      opacity: 0.8;
    }

    .thumb-info .title {
      font-weight: 600;
    }

    @media (max-width: 768px) {

       .main-video {
        flex-direction: column;
        align-items: center;
        text-align: left;
        padding: 0;
      }

      .main-video iframe {
        width: 100%;
        max-width: 90%;
        height: 300px;
      }

      .video-info {
        width: 100%;
        max-width: 90%;
        margin-top: -20px;
      }
  }








/*===================================
========== AREA INFOGRAFIS ==========
=====================================*/

/* ========BAGIAN INFOGRAFIS======= */
.infografis-section {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  overflow: hidden;
  box-sizing: border-box;
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
  overflow: visible;
  width: 100%;
  min-height: 700px;
}

.slides {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: relative;
  width: 100%;
  max-width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.slide {
  position: absolute;
  width: 320px;
  height: 580px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: all 0.6s ease;
  opacity: 0.6;
  transform: scale(0.8);
}

.slide.active {
  opacity: 1;
  transform: scale(1) translateZ(100px);
  z-index: 3;
}

.slide.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  z-index: 1;
  pointer-events: none;
}

.slide.left1 {
  transform: translateX(-340px) scale(0.96);
  z-index: 2;
}

.slide.left2 {
  transform: translateX(-600px) scale(0.8);
  z-index: 1;
}

.slide.right1 {
  transform: translateX(340px) scale(0.96);
  z-index: 2;
}

.slide.right2 {
  transform: translateX(600px) scale(0.8);
  z-index: 1;
}


.slide .info {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
  width: 80%;        
  max-width: 600px; 
  padding: 0 1rem; 
}

.slide.active .info {
  opacity: 1;
}

.slide .date {
  font-size: 0.9rem;
  opacity: 0.9;
  display: block;
  margin-bottom: 0.3rem;
}

.slide .title {
  font-size: 1.3rem;
  font-weight: 600;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.nav:hover {
  background: #f0f0f0;
}

.nav.prev { left: 10px; }
.nav.next { right: 10px; }

.dots {
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  transition: 0.3s;
}

.dots button.active {
  background: #333;
  width: 24px;
  border-radius: 8px;
}

  /* ===== MEDIA QUERIES ===== */
@media (max-width: 1200px) {
  .infografis-section {
    padding: 4rem 2rem; /* lebih fleksibel */
  }
}

@media (max-width: 900px) {
  .carousel {
    min-height: auto;
    height: 65vh;
  }

  .slide {
    width: 60vw;
    height: 60vh;
    max-width: 260px;
    max-height: 390px;
  }

  /* Hide side slides */
  .slide.left1, .slide.left2, .slide.right1, .slide.right2 {
    display: none;
  }
}










/*===================================
=========== AREA ARTIKEL ============
=====================================*/

.ppm-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.artikel-title {
    font-size: 26px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.ppm-more {
    font-size: 14px;
    font-weight: 500;
    color: gray;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: 0.2s ease;
}

.ppm-more:hover {
    background: rgba(50,116,255,0.08);
    color: #1e5be0;
}


/* GARIS */
.garis-kombo-infog {
  height: 2px;
  width: 100%;
  margin-top: 5px;
  background: linear-gradient(to right, #00bcd4 4%, #ccc 4%);
  margin-bottom: 30px;
}


.latest-section {
  width: 100%;
  padding: 50px 8%;
  background: white;
  font-family: 'SF Pro Rounded', sans-serif;
}


.latest-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 15px;
}

/* ----- Berita Utama ----- */
.main-news img {
  width: 100%;
  max-width: 800px;
  margin-bottom: 16px;
}

.main-news h3 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 12px;
  margin-bottom: 6px;
}

.main-news h3 a {
  text-decoration: none;
  color: #111;
  transition: 0.2s;
}

.main-news h3 a:hover {
  color: #3b82f6;
}

.meta-time {
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
  display: inline-block;
}

.main-desc {
  font-size: 16px;
  color: #444;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----- Side List ----- */
.side-news .news-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.side-news .news-item img {
  width: 220px;
  height: 150px;
  object-fit: cover;
}

.side-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.side-news .news-text h4 {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* maksimal 2 baris */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-news .news-text h4 a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}

.side-news .news-text h4 a:hover {
  color: #3b82f6;
}











    