/* 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; 
    }
}

/* Button Padding - Sitewide */
.button, .navContent li .button {
    padding: 10px 30px;
}

/* Equalize Simple List Blocks SITEWIDE */
/* Make sure to UNCHECK "Height-optimized grid" */
.itemsCollectionContent { 
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	min-height: 100%;
}
.itemsCollectionContent > .item {
	display: flex;
	flex-direction: column;}
	
/* 1. POPUP OVERLAY SETTINGS */
.mad-popup-wrap {
    position: fixed;
    display: none; /* Controlled by JS */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
}

/* Shown state triggered by JS */
.mad-popup-wrap.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 2. POPUP BOX SETTINGS */
.mad-popup-box {
    position: relative;
    background: #686786;   /* Purple Background */
    width: 750px;          /* Adjusted for a larger image */
    max-width: 90%;
    border-radius: 25px;   /* Rounded Corners */
    overflow: hidden;      /* Clips content to rounded corners */
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

/* 3. DESKTOP CONTENT LAYOUT (Side-by-Side) */
.mad-popup-content {
    display: flex;
    flex-direction: row;   /* Text Left, Image Right */
    align-items: center;
    padding: 40px;         /* Padding around the inside */
}

.popup-text-content {
    flex: 1;
    text-align: left;      /* Left Aligned Text */
    padding-right: 30px;   /* Space between text and image */
}

.popup-img {
    flex: 0 0 300px;       /* Fixed size for image on desktop */
    display: flex;
    justify-content: center;
    align-items: center;
}

.mad-popup-content img {
    width: 100%;
    height: auto;
    border-radius: 15px;   /* Slightly rounded image corners */
    display: block;
}

/* 4. TEXT STYLING */
.mad-popup-wrap p.popup-subheader {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #ffffff;        /* White text */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mad-popup-wrap p.popup-header {
    margin: 0 0 25px 0;
    font-size: 42px;       /* Big NEWHATS text */
    font-weight: 900;
    color: #ffffff;        /* White text */
    line-height: 1;
}

/* 5. BUTTON STYLING (Pill Shape) */
.mad-popup-wrap .button {
    display: inline-block;
    background-color: #ed65a1; /* Pink */
    color: #ffffff !important;
    padding: 14px 35px;
    border-radius: 50px;       /* Pill shape */
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.mad-popup-wrap .button:hover {
    background-color: #76a7c5; /* Blue Hover */
}

/* 6. CLOSE BUTTON (White) */
.mad-popup-wrap .close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    cursor: pointer;
    z-index: 10;
}

.mad-popup-wrap .close svg {
    fill: #ffffff;
}

/* 7. MOBILE RESPONSIVE (Stacking) */
@media screen and (max-width: 650px) {
    .mad-popup-content {
        flex-direction: column-reverse; /* Image on top, text on bottom */
        padding: 30px 20px;
        text-align: center;
    }

    .popup-img {
        flex: 0 0 auto;
        width: 100%;
        margin-bottom: 20px;
    }

    .mad-popup-content img {
        max-width: 200px; /* Prevents image from being too huge on mobile */
        margin: 0 auto;
    }

    .popup-text-content {
        padding-right: 0;
        text-align: center;
    }

    .mad-popup-wrap p.popup-header {
        font-size: 34px;
    }
}