body.popup-open,
html.popup-open {
  overflow: hidden !important;
}

.custom-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 58, 95, 0.7); 
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050; 
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.custom-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.custom-popup-container {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 90%;
  max-height: 90vh; 
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.custom-popup-overlay.active .custom-popup-container {
  transform: scale(1);
}

.custom-popup-header {
  background-color: #1E3A5F; 
  color: #FFFFFF;
  padding: 15px 25px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-popup-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.custom-popup-close {
  background: none;
  border: none;
  color: #FFFFFF; 
  font-size: 1.8rem; 
  font-weight: bold;
  cursor: pointer;
  padding: 0 5px; 
  line-height: 1;
}

.custom-popup-close:hover {
  color: #E0E0E0; 
}

.custom-popup-content {
  padding: 25px;
  overflow-y: auto; 
  color: #555555; 
  line-height: 1.6;
}

.custom-popup-content h1,
.custom-popup-content h2,
.custom-popup-content h3 {
  color: #333333;
  margin-top: 0;
  margin-bottom: 15px;
}

.custom-popup-content p {
  margin-bottom: 15px;
}

.custom-popup-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px; 
}

.custom-popup-content a {
  color: #1E3A5F; 
  text-decoration: none;
}

.custom-popup-content a:hover {
  text-decoration: underline;
}


.custom-popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
}

.custom-popup-button-primary,
.custom-popup-button-secondary {
    padding: 10px 22px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    line-height: 1.5;
}

.custom-popup-button-primary {
    background-color: #007bff;
    color: #ffffff;
}

.custom-popup-button-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
}

.custom-popup-button-primary:active {
    transform: translateY(0);
    box-shadow: none;
    background-color: #004a99;
}

.custom-popup-button-secondary {
    background-color: transparent;
    color: #6c757d;
    border-color: #ced4da;
}

.custom-popup-button-secondary:hover {
    background-color: #f8f9fa;
    color: #212529;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

.custom-popup-button-secondary:active {
    transform: translateY(0);
    background-color: #e9ecef;
}
