/* Running Text Styles */
.dukcapil-running-text {
  /*position: relative; */
  /*margin-top: 20px;  */
  /*z-index: 9999;     */
}

.breaking-news {
  width: 100%;
  background: #e7f3ff; /* Warna latar belakang yang lebih lembut */
  color: #1e3c72;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  font-size: 16px; /* Ukuran font sedikit lebih besar */
  padding: 12px 24px; /* Padding yang lebih seimbang */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  border-radius: 8px; /* Sedikit radius untuk sudut */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Bayangan yang lebih halus */
}

/* Decorative Bar */
.breaking-news::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 30px; /* Lebar bar yang lebih besar */
  height: 100%;
  background: #1e3c72;
  clip-path: polygon(0 0, 100% 0, 0% 100%);
}

.breaking-news .header {
  font-weight: bold;
  margin-right: 12px; /* Jarak antar elemen */
}

.breaking-news .text {
  white-space: nowrap;
  overflow: hidden;
  border-left: 3px solid #1e3c72;
  padding-left: 15px;
  flex-grow: 1;
  position: relative;
  color: #1e3c72;
  height: 24px; /* Tinggi yang sedikit lebih besar */
}

.breaking-news .text.cursor-blink::after {
  content: '';
  position: absolute;
  right: 0;
  font-weight: 700;
  color: #1e3c72;
  animation: blink 1.2s infinite;
}

/* Keyframes */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.breaking-news .text.bounce {
  animation: bounceUpDown 0.6s ease forwards;
}

@keyframes bounceUpDown {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Popup Styles */
.dukcapil-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75); /* Background yang lebih gelap */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(0px);
}

.dukcapil-popup-content {
  position: relative;
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); /* Bayangan yang lebih lembut */
  animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dukcapil-popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: #ff4757;
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: background 0.3s ease, transform 0.2s ease;
}

.dukcapil-popup-close:hover {
  background: #ff3742;
  transform: scale(1.1);
}

.dukcapil-popup-media {
  text-align: center;
}

.dukcapil-popup-media img,
.dukcapil-popup-media video {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .breaking-news {
    font-size: 14px; /* Ukuran font lebih kecil */
    padding: 10px 15px; /* Padding yang lebih kecil */
  }
  
  .breaking-news::before {
    width: 25px; /* Lebar bar yang lebih kecil */
  }
  
  .dukcapil-popup-content {
    margin: 20px;
    padding: 15px;
    max-width: calc(100% - 40px);
    max-height: calc(100% - 40px);
  }
}

@media (max-width: 480px) {
  .breaking-news {
    font-size: 12px; /* Ukuran font paling kecil */
    padding: 6px 12px;
  }
  
  .breaking-news .header {
    margin-right: 8px;
  }
  
  .breaking-news .text {
    padding-left: 10px;
    height: 18px; /* Tinggi yang lebih kecil */
  }
}