/* Nav Dropdowns */

.navContent ul li ul a {
    white-space: normal !important;
    overflow: visible !important;
}

@media only screen and (min-width: 768px) {
    .navContent ul li ul {
        min-width: 250px !important;
        right: auto !important; 
    }
}

/* Equalize Simple List Blocks - Pin Buttons to Bottom*/

/* Change item class here */
.items_c5217b8ab82a47938fd429a6bdea1e0b { 
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	min-height: 100%;
}

/* Change item class here */
.items_c5217b8ab82a47938fd429a6bdea1e0b> .item {
	display: flex;
	flex-direction: column;
  position: relative;
}

/* Change item class here */
.items_c5217b8ab82a47938fd429a6bdea1e0b > .item a.button {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px; 
}

/* Change item class here */
.items_c5217b8ab82a47938fd429a6bdea1e0b > .item p {
    margin-bottom: 20px;
}

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7); 
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Popup Box */
.popup-content {
  background-color: #fff; /* White Background */
  width: 90%;
  max-width: 500px; 
  position: relative;
  border-radius: 8px;
  overflow: hidden; 
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: center;
  max-height: 90vh; 
  overflow-y: auto;
  /* FORCE TEXT COLOR FOR THE WHOLE BOX */
  color: #333333 !important; 
}

/* Image - UPDATED TO PREVENT BLUR */
.popup-image img {
  width: auto;       /* Uses natural image width */
  max-width: 100%;   /* Prevents it from being too big */
  display: block;
  margin: 0 auto;    /* Centers the image */
}

/* Text Area */
.popup-text {
  padding: 15px 20px 25px;
}

/* Headline Styling */
.popup-text h2 {
  margin-top: 0;
  /* Dark Blue - with !important to override theme settings */
  color: #0d2c53 !important; 
  font-size: 24px;
}

/* Paragraph Styling */
.popup-text p {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 20px;
  /* Dark Gray - with !important to override theme settings */
  color: #333333 !important;
}

/* Fix for the bold text inside the paragraph */
.popup-text strong {
  color: #333333 !important;
}

/* Button Styling */
.popup-btn {
  display: inline-block;
  background-color: #e38332; 
  color: #fff !important; /* Ensure button text stays white */
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 18px;
  transition: background 0.3s;
}

.popup-btn:hover {
  background-color: #c96f25; 
  color: #fff !important;
}

/* Close Button */
.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #333 !important; /* Forces X to be dark */
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  background: rgba(255,255,255,0.8); 
  border-radius: 50%;
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
}

/* Mobile Adjustment */
@media screen and (max-width: 600px) {
  .popup-content {
    width: 90%;
  }
}