/* ===== CER Popup Style (premium) ===== */

.cer-btn {
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff !important;
  background: linear-gradient(135deg, #1f5fd6, #3f8cff);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 14px 30px rgba(31, 95, 214, 0.35);
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  opacity: 1 !important;
}

.cer-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(31, 95, 214, 0.45);
}

.cer-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(31, 95, 214, 0.3);
}

/* Modal */
.cer-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 99999;
}

.cer-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.cer-modal__overlay {
  position: absolute;
  inset: 0;
}

.cer-modal__content {
  position: relative;
  width: min(560px, 92vw);
  background: linear-gradient(160deg, #0b3a5a, #062c44);
  color: #ffffff;
  border-radius: 20px;
  padding: 34px 30px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.12);
}

.cer-modal__content h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
}

.cer-popup-body {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
}

.cer-popup-body a {
  color: #8cc4ff;
  text-decoration: underline;
}

.cer-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.9);
  font-size: 28px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.cer-modal__close:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}

/* Popup image (elegant + mobile friendly) */
.cer-popup-media {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.cer-popup-media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .cer-modal__content {
    padding: 26px 20px;
    border-radius: 18px;
  }
  .cer-popup-media {
    border-radius: 14px;
    margin-bottom: 14px;
  }
}
