/* Overlay */
#duoplus-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

#duoplus-popup-overlay.duoplus-show {
  opacity: 1;
  visibility: visible;
}

/* Popup container */
#duoplus-popup {
  background: #fff;
  max-width: 500px;
  width: 90%;
  padding: 0;
  border-radius: 0; /* squared edges */
  text-align: center;
  position: relative;
  box-shadow: 30px 20px 50px -15px rgba(0, 0, 0, 0.2);
}

/* Popup image */
#duoplus-popup img {
    width: 100%;
    height: 250px;
    margin-bottom: 15px;
    object-fit: cover;
}

/* Title */
#duoplus-popup h3 {
  margin-bottom: 15px;
  margin-top: 10px;
  font-size: 36px;
  line-height: 1.2;
  color: #003767;
}

/* Paragraphs */

.duoplus-popup-details p {
    margin-bottom: 15px;
    font-size: 20px;
    line-height: 36px;
    font-weight: 300;
}

/* Close button */
#duoplus-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

/* Button */
.duoplus-popup-btn {
  display: inline-block;
  background: #003767;
  color: #fff!important;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 400;
  padding: 15px 37px;
  border-radius: 0; /* squared edges */
  text-decoration: none;
  margin-top: 15px;
  transition: background 0.3s ease;
  margin-bottom: 40px;
}

.duoplus-popup-btn:hover {
  background: #00294d;
}

.duoplus-popup-date-notice {
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 20px;
    color: white;
    width: fit-content;
    padding: 12px;
    border-radius: 5px;
}

/* Optional state colors */
.duoplus-popup-date-notice.ended {
    background: #d63638; /* red */
}

.duoplus-popup-date-notice.upcoming {
    background: #0073aa; /* blue */
}

.duoplus-popup-date-notice.running {
    background: #28a745; /* green */
}
