.popup {
  display: flex;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: white;
  padding: 10px;
  border-radius: 16px;
  width: 90vw;
  max-width: 960px;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

.popup-slider {
  width: 100%;
  height: 60vh;
  position: relative;
  overflow: hidden;
}

.popup-slider-track {
  display: flex;
  height: 100%;
  width: 500%; /* (jika 5 gambar, nanti diatur ulang via JS) */
  transition: transform 0.5s ease-in-out;
}

.popup-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  flex: 0 0 100%;
  display: block;
}

/* tombol kiri kanan */ 
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 7px;
    font-size: 17px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.3s;
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}


/* === Tombol Tutup (diperkecil 70%) === */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #f44336;
    color: white;
    padding: 7px 11px;
    font-size: 11px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    z-index: 20;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background-color: #d32f2f;
}

/* === Dot Navigation === */
.dot-nav {
    text-align: center;
    margin-top: 10px;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
}

.dot-nav .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.6);
    border: 2px solid red; /* Tambahkan garis pinggir merah */
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

@keyframes pop-scale {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.dot-nav .dot.active {
  background-color: white;
  border-color: red;
  animation: pop-scale 0.6s ease-in-out infinite;
}

/* === Animasi === */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === Responsif Mobile === */
@media (max-width: 768px) {
    .popup-content {
        padding: 15px;
    }

    .popup-image {
        max-height: 60vh;
    }

    .nav-btn {
        padding: 10px;
        font-size: 22px;
    }

    .close-btn {
        padding: 8px 14px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .popup-content {
        max-width: 95vw;
    }

    .popup-slider {
        height: auto;
        max-height: 250px;
    }

    .popup-image {
        max-height: 50vh;
    }
}

/* text selamat datang */
.contain {
      max-width: 960px;
      margin: 40px auto;
      background: #ffffff;
      padding: 40px 30px;
      box-shadow: 0 0 15px rgba(0,0,0,0.08);
      border-radius: 8px;
    }
    h1 {
      color: #005aab;
      font-size: 28px;
      text-align: center;
      margin-bottom: 10px;
    }
    h2 {
      color: #0071ce;
      font-size: 22px;
      text-align: center;
      margin-bottom: 30px;
    }
    p {
      margin-bottom: 18px;
      text-align: justify;
    }
    .signature {
      margin-top: 40px;
      font-weight: bold;
      text-align: right;
      color: #333;
    }
    .signature span {
      display: block;
      font-weight: normal;
      color: #666;
    }
    .highlight {
      color: #0071ce;
      font-weight: 600;
    }
