:root {
  --primary: #0a174e;
  --bg: white;
  --secondary: #f5d042;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Poppins", sans-serif;
}
header {
  background-color: var(--primary);
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lokasi a {
  color: var(--secondary);
  margin: 0 3px;
  text-decoration: none;
}
.nav-links a {
  color: var(--bg);
  margin: 0 2px;
  text-decoration: none;
}

.navbar {
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  z-index: 10;
  background-color: var(--bg);
  color: #0a1f44;
  padding: 15px 30px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.hamburger {
  display: none;
  font-size: 1rem;
  cursor: pointer;
}
.navbar img {
  width: 200px;
  height: 50px;
}
.navbar .logo button {
  padding: 6px 12px;
  border: none;
  background-color: var(--secondary);
  color: white;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
}
.nav-navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.nav-navbar a {
  color: var(--primary);
  margin: 0 10px;
  text-decoration: none;
  font-weight: 500;
}

.search-container {
  display: flex;
  width: 350px;
  height: 30px;
  margin-right: 10px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--primary);
}

.search-input {
  flex: 1;
  border: none;
  padding: 0 15px;
  font-size: 16px;
  outline: none;
}

.search-button {
  background-color: var(--bg);
  width: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
}

.search-button img {
  width: 20px;
  height: 20px;
}

.lokasi a:hover {
  color: aqua;
}
.nav-links a:hover {
  color: cyan;
}
.nav-navbar a.active {
  color: var(--secondary); /* warna HOME aktif */
}
.nav-navbar a:hover {
  color: var(--primary);
}

.navbar ul li a:hover {
  color: #007bff; /* hover effect */
}

.hero {
  position: relative;
  background-image: url("../img/bg/herohome.jpg");
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  background-repeat: no repeat;
  background-size: cover;
  background-position: center;
}
.hero h1 {
  font-size: 3rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 1s ease-in-out;
}
.hero h2 {
  font-size: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 1s ease-in-out;
}
.hero h3 {
  font-size: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.2s ease-in-out;
}
.hero button {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.2rem 1rem;
  font-size: 1rem;
  background-color: var(--secondary);
  border-radius: 0.5rem;
  box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
}
.popup {
  display: none;
  position: fixed;
  width: 1000px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border: 2px solid #007bff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.popup img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}
.popup-close {
  margin-top: 10px;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background-color: #dc3545;
  color: white;
}
.popup-close:hover {
  background-color: #a71d2a;
}

.onKlikGoing-Class {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  background-color: #28a745;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.onKlikGoing-Class.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.main-button-onKlikGoing {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-style: bold;
}

.main-button-onKlikGoing:hover {
  background-color: #218838;
}

.close-btn-onKlikGoing {
  font-size: 18px;
  cursor: pointer;
  color: #555;
  transition: color 0.3s;
}

.close-btn-onKlikGoing:hover {
  color: #000;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  background-color: #f9f9f9;
}
.feature {
  background: white;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
.feature:hover {
  transform: translateY(-10px);
}
.feature i {
  font-size: 2rem;
  color: orange;
  margin-bottom: 10px;
}
.title-ongoing {
  background-color: var(--primary);
  align-content: center;
}
.title-ongoing h2 {
  margin-top: 30px;
  text-align: center;
  color: white;
  animation: blink-anim 1s steps(2, start) infinite;
}

.display-onAir {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  background-color: var(--primary);
}
.display-onAir .onair {
  background: white;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
.display-onAir .onair .sit-count {
  background: var(--primary);
  color: white;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
.display-onAir .onair img {
  width: 20%;
}
.onair-title-base {
  color: #222;
  text-decoration: none;
  transition: color 0.3s ease;
}

.onair-title-base:hover {
  color: #28a745;
  text-decoration: none;
  cursor: pointer;
}

.display-onAir .onair .sit-count .text-count-sit {
  color: var(--secondary);
}
.link-goto-on {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px 40px;
  background-color: #0a1f44;
}
.link-goto-on .goto-on-link {
  background: white;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
.link-goto-on .goto-on-link h2,
a {
  text-decoration: none;
}
.link-goto-on .goto-on-link h2:hover {
  text-decoration: underline;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

.footer {
  background-color: var(--primary);
  color: white;
  padding: 40px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.logo-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-footer img {
  height: 50px;
}

.footer h3 {
  margin: 0;
  font-size: 18px;
}

.footer p {
  font-size: 14px;
  margin: 5px 0;
}

.social-icons-footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
}

.social-icons-footer img {
  width: 30px;
  height: 30px;
}

.map-container {
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.center {
  text-align: center;
}
.project-slider {
  background-color: var(--bg);
  padding: 1rem;
}
.project-slider h2 {
  text-align: center;
  margin-top: 1.25rem;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 0;
}

.slider-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(
    to right,
    transparent,
    white 10%,
    white 90%,
    transparent
  );
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
}

.slider-container::-webkit-scrollbar {
  display: none;
}

.slider {
  display: flex;
  gap: 1rem;
  padding: 0;
}

.slide {
  flex: 0 0 auto;
  width: clamp(140px, 40vw, 180px);
  height: clamp(100px, 25vw, 120px);
  border-radius: 0.625rem;
  overflow: hidden;
  background-color: #333;
  transition: transform 0.4s ease, width 0.4s ease, height 0.4s ease;
  cursor: pointer;
  filter: blur(1px);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.slide:hover {
  transform: scale(1.05);
  filter: none;
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide.middle {
  width: clamp(260px, 60vw, 300px);
  height: clamp(160px, 40vw, 200px);
  z-index: 2;
  filter: none;
  opacity: 1;
}

.slide:first-child {
  margin-left: calc(50vw - 150px);
}

.slide:last-child {
  margin-right: calc(50vw - 150px);
}

.nav-button-slide {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 0.75rem;
  cursor: pointer;
  z-index: 3;
  border-radius: 50%;
}

.nav-left-slide {
  left: 0.5rem;
}

.nav-right-slide {
  right: 0.5rem;
}

.pagination {
  margin-top: 1.5rem;
  text-align: center;
}

.pagination button {
  background-color: #333;
  color: white;
  border: none;
  border-radius: 50%;
  width: 0.75rem;
  height: 0.75rem;
  margin: 0 0.3rem;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s;
}

.pagination button.active,
.pagination button:hover {
  background-color: #fff;
  opacity: 1;
  transform: scale(1.2);
}
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px 20px;
  background-color: #efefef;
}
.about h2 {
  text-align: center;
  font-style: bold;
}
.about .deskripsi {
  background: var(--primary);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
.about .deskripsi i {
  color: white;
  text-decoration: underline;
}
.about .deskripsi .active-learnmore {
  display: none;
}
.about .deskripsi .active-learnmore.show {
  display: block;
}
.about .deskripsi h3 {
  color: var(--secondary);
}
.about .deskripsi p {
  margin-bottom: 10px;
  padding: 10px;
  color: rgb(255, 255, 255);
}
.about .deskripsi .keunggulan {
  display: grid;
}
.about .deskripsi .keunggulan a {
  color: white;
  text-decoration: none;
  padding: 3px;
}
.about .deskripsi .keunggulan a:hover {
  color: aqua;
}
.about .video-porto {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.review-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  background-color: var(--bg);
}
.review-home .det {
  background: var(--bg);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
.review-home i {
  font-size: 2rem;
  color: black;
  margin-bottom: 10px;
}
.review-home h3 {
  color: var(--secondary);
  margin-bottom: 30px;
}

.review-home h4 {
  color: var(--secondary);
}
.title-update-terkini {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background-color: var(--primary);
}

.title-update-terkini h1 {
  text-align: center;
  color: white;
  font-size: 2rem;
}

.update-terkini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
  background-color: var(--primary);
}

.update-container {
  background: white;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.update-container:hover {
  transform: scale(1.02);
}

.update-container iframe {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 8px;
}
.blog-update {
  padding: 40px 20px;
  background-color: #f8f9fa;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: auto; /* Tambahan agar bisa scroll horizontal di HP */
}

.blog-update main {
  width: 100%;
  min-width: 760px; /* Pastikan 2 kolom muat minimal */
}

/* Grid tetap 2 kolom */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.blog-update article {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.blog-update article:hover {
  transform: translateY(-5px);
}

.blog-update h2 {
  margin: 0;
  padding: 20px;
  font-size: 1.8rem;
  background-color: var(--primary);
  color: white;
  text-align: center;
}

.blog-update h2 a {
  color: inherit;
  text-decoration: none;
}

.blog-update .date-blog {
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  margin: 10px 0;
}

.gambar-blog {
  width: 100%;
  overflow: hidden;
}

.gambar-blog img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gambar-blog img:hover {
  transform: scale(1.03);
}

.text-blog {
  padding: 20px;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.read-more {
  display: inline-block;
  margin: 0 20px 20px;
  color: var(--primary);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--secondary);
}
.testimoni-title h1 {
  text-align: center;
}
.testimoni-gallery {
  padding: 30px 20px;
}

.educates {
  max-width: 800px;
  margin: auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.educates h1 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary);
}
.educates-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.educates-item.open {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.educates-question {
  width: 100%;
  padding: 15px 20px;
  font-size: 1rem;
  background-color: #e0f7fa;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.educates-question:hover {
  background-color: #b2ebf2;
}

.educates-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.educates-item.open .icon {
  transform: rotate(180deg);
}

.educates-iframe-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.educates-iframe-wrapper.active {
  max-height: 600px;
}

.educates-iframe-wrapper iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}
.gallery-testi {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: 200px;
  gap: 15px;
}

.item.testi {
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  animation: fadeInTesti 0.8s ease both;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.item.testi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.item.testi:hover img {
  transform: scale(1.08);
}

.item.wide.testi {
  grid-column: span 2;
}

.item.tall.testi {
  grid-row: span 2;
}

@keyframes fadeInTesti {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes blink-anim {
  to {
    visibility: hidden;
  }
}

@keyframes fadeInDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero h2 {
    font-size: 0.8rem;
  }
  .hero h3 {
    font-size: 0.8rem;
  }
  .logo {
    font-size: 0.8rem;
  }
  .nav-links a {
    font-size: 0.4rem;
  }
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .navbar img {
    width: 40%;
    height: 40%;
  }
  .hamburger {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
  }
  .nav-navbar {
    flex-direction: column;
    width: 100%;
    display: none;
  }
  .nav-navbar.active {
    display: flex;
  }
  .nav-navbar a {
    margin: 5px 0;
  }
  .navbar .logo input {
    width: 72%;
  }
  .navbar .logo button {
    width: 20%;
  }
  .lokasi a {
    font-size: 0.4rem;
  }
  .search-container {
    width: 100%;
  }
  .search-input {
    width: 40%;
  }
  .search-button {
    width: 10%;
  }
  .popup {
    width: 80%;
  }
  .slide {
    width: 90px;
    height: 60px;
  }

  .slide.middle {
    width: 240px;
    height: 160px;
  }

  .slide:first-child,
  .slide:last-child {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .nav-button-slide {
    font-size: 1.25rem;
    padding: 0.5rem;
  }
  .review-home {
    padding: 20px 10px;
  }
  .blog-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 15px;
  }

  .blog-update h2 {
    font-size: 1.2rem;
    padding: 10px;
  }

  .text-blog {
    font-size: 0.9rem;
    padding: 10px;
  }
  .gallery-testi {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    grid-auto-rows: 160px;
  }

  .item.wide.testi,
  .item.tall.testi {
    grid-column: span 1;
    grid-row: span 1;
  }
}
