.logo-light {
    width: 33.33%; /* Make logo 1/3 of original size */
    height: auto; /* Maintain aspect ratio */
}

.image-credit {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 15px;
    font-size: 10px;
    line-height: 1.2;
    text-align: left;
    z-index: 20;
}

.image-credit a {
    color: #ff264a;
    text-decoration: none;
}

.image-credit a:hover {
    text-decoration: underline;
}

/* Event banner styles */
.event-banner {
    position: absolute;
    right: 10px; /* Moved the entire box 10px to the left */
    top: 120px;
    width: 300px;
    background-color: rgba(0, 0, 0, 0.8);
    border-left: 4px solid #ff264a;
    border-top: 4px solid #ff264a;
    padding: 15px; /* Reverted to original padding */
    text-align: left;
    z-index: 100;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* Email signup banner styles */
.email-signup-banner {
    position: absolute;
    right: 10px;
    top: 390px; /* Position below the event banner */
    width: 300px;
    background-color: rgba(255, 38, 74, 0.9);
    border-left: 4px solid #fff;
    border-top: 4px solid #fff;
    padding: 15px;
    text-align: left;
    z-index: 100;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.email-signup-banner:hover {
    background-color: rgba(255, 38, 74, 0.95);
    transform: translateX(-5px);
}

.email-signup-header {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    background-color: #fff;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 2px;
}

.email-signup-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 8px;
    line-height: 1.2;
}

.email-signup-description {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.email-signup-form {
    width: 100%;
}

.email-input-group {
    display: flex;
    margin-bottom: 10px;
}

.email-input-group input[type="email"] {
    flex: 1;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    padding: 8px 10px;
    border: none;
    border-radius: 3px 0 0 3px;
    outline: none;
    background-color: #fff;
    color: #333;
}

.email-input-group input[type="email"]::placeholder {
    color: #999;
}

.email-signup-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ff264a;
    background-color: #fff;
    padding: 8px 12px;
    border: none;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
}

.email-signup-btn:hover {
    background-color: #f5f5f5;
    transform: translateY(-1px);
}

.email-signup-btn:active {
    transform: translateY(0);
}

.email-signup-status {
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    line-height: 1.3;
    min-height: 14px;
}

.email-signup-status.success {
    color: #90EE90;
}

.email-signup-status.error {
    color: #FFB6C1;
}

.email-signup-status.info {
    color: #fff;
}

/* Centered email signup styles */
.email-signup-center {
    margin-top: 60px;
    padding: 20px;
    background-color: rgba(64, 64, 64, 0.7);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.email-signup-center .email-signup-header {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    background-color: rgba(255, 38, 74, 0.9);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
}

.email-signup-center .email-signup-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.2;
}

.email-signup-center .email-signup-description {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.4;
}

.email-signup-center .email-input-group {
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}

.email-signup-center .email-input-group input[type="email"] {
    font-size: 16px;
    padding: 12px 15px;
}

.email-signup-center .email-input-group input[type="email"]::placeholder {
    color: #666;
    font-size: 16px;
}

.email-signup-center .email-signup-btn {
    font-size: 13px;
    padding: 12px 20px;
    min-width: 80px;
    color: #fff;
    background-color: #ff264a;
}

.email-signup-center .email-signup-btn:hover {
    background-color: #e61e42;
    color: #fff;
}

.email-signup-center .email-signup-status {
    font-size: 13px;
    margin-top: 10px;
}

.event-banner:hover {
    background-color: rgba(0, 0, 0, 0.95);
    transform: translateX(-5px);
}

.event-banner-special {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #000; /* Changed to black text */
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    background-color: #f5f5f5; /* Changed to off-white background */
    display: inline-block;
    padding: 3px 8px;
    border-radius: 2px;
}

.event-banner-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ff264a;
    text-transform: uppercase;
    margin-bottom: 8px;
    line-height: 1.2;
}

.event-banner-date {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.event-banner-location {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    color: #fff;
    margin-bottom: 12px;
}

.event-banner-cta {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background-color: #ff264a;
    padding: 6px 12px;
    border: none;
    border-radius: 3px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.event-banner-cta:hover {
    background-color: #fff;
    color: #ff264a;
    text-decoration: none;
}

.event-flyer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999; /* Increased z-index significantly */
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.event-flyer-modal-content {
    position: relative;
    margin: 5% auto;
    max-width: 80%;
    max-height: 90%;
    z-index: 9999; /* Ensure content is above other elements */
}

.event-flyer-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    display: block;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    pointer-events: none; /* Prevent image from capturing clicks */
}

.event-flyer-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px; /* Slightly smaller font size */
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    width: 36px; /* Smaller size */
    height: 36px; /* Smaller size */
    line-height: 32px; /* Adjusted for better vertical centering */
    text-align: center;
    background-color: rgba(255, 38, 74, 0.8);
    border-radius: 50%;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    border: 2px solid white;
    padding: 0; /* Remove any padding */
    font-family: Arial, sans-serif; /* Use a consistent font */
}

.event-flyer-modal-close:hover {
    background-color: #ff264a; /* Solid color on hover */
    transform: scale(1.05); /* Slight scale for feedback */
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5); /* Glow effect */
}

@media only screen and (max-width: 768px) {
    .event-banner {
        position: absolute;
        width: 90%;
        right: 5%;
        top: 105px; /* Moved up another 25px from 130px */
        padding: 10px; /* Reverted to original padding */
    }
    
    .event-banner-title {
        font-size: 14px;
    }
    
    .event-banner-date, 
    .event-banner-location {
        font-size: 12px;
    }
    
    .email-signup-banner {
        position: absolute;
        width: 90%;
        right: 5%;
        top: 280px; /* Adjusted for mobile */
        padding: 12px;
    }
    
    .email-signup-title {
        font-size: 14px;
    }
    
    .email-signup-description {
        font-size: 11px;
    }
    
    .email-input-group {
        flex-direction: column;
    }
    
    .email-input-group input[type="email"] {
        border-radius: 3px;
        margin-bottom: 8px;
    }
    
    .email-signup-btn {
        border-radius: 3px;
        width: 100%;
    }
    
    .email-signup-center {
        margin-top: 35px;
        padding: 15px;
        max-width: 95%;
    }
    
    .email-signup-center .email-signup-header {
        font-size: 12px;
    }
    
    .email-signup-center .email-signup-title {
        font-size: 16px;
    }
    
    .email-signup-center .email-signup-description {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .email-signup-center .email-input-group {
        flex-direction: column;
    }
    
    .email-signup-center .email-input-group input[type="email"] {
        border-radius: 4px;
        margin-bottom: 10px;
        font-size: 15px;
        padding: 10px 12px;
    }
    
    .email-signup-center .email-input-group input[type="email"]::placeholder {
        color: #666;
        font-size: 15px;
    }
    
    .email-signup-center .email-signup-btn {
        border-radius: 4px;
        width: 100%;
        font-size: 12px;
        padding: 10px 15px;
    }
    
    .event-flyer-modal-content {
        max-width: 95%;
    }
    
    .bg-img-1 {
        background-position: -600px center !important; /* Adjust banner image position on mobile */
    }
    
    .parallax-facts {
        min-height: 100% !important;
        height: auto !important;
        background-position: -1200px center !important; /* Adjust background position */
    }
    
    .parallax {
        height: auto !important;
        min-height: 100% !important;
    }

    .col-sm-12 > div[style*="display:flex"] {
        display: block !important; /* Override the flex display on mobile */
    }
    
    .news-item.col-sm-4 {
        width: 100% !important;
        margin-bottom: 30px;
    }
    
    .img-fullwidth {
        position: relative !important;
        padding: 20px !important;
    }
    
    .post-all {
        margin-top: 0 !important;
    }
    
    .img-fullwidth-wrapper {
        min-height: auto !important;
        margin-bottom: 20px;
    }
    
    .section-txt-services p {
        padding-bottom: 20px;
    }

    .image-credit {
        position: relative !important;
        margin-top: 10px;
        font-size: 9px !important;
        line-height: 1.1 !important;
    }
}
