/* ==========================================================================
   STATION GROUP - ISOLATED FOOTER STYLES (footer.css)
   ========================================================================== */

footer {
    background-color: #141B2D !important; /* var(--primary-blue) */
    color: #ffffff;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 1fr 1.9fr; 
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 30px 20px; 
    align-items: start;
}

.footer-column h3, 
.footer-logo-side h3 {
    color: #c5a059; /* var(--accent-gold) */
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    font-weight: 700;
    border: none !important; 
}

.footer-logo-side p {
    color: #bbb;
    font-size: 13px;
    line-height: 1.6;
    text-align: justify;
    margin: 0;
}

.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 10px; 
    display: flex;
    align-items: center;
}

.footer-links li a {
    color: #bbb;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: normal;
}

.footer-links li.no-wrap-link a { white-space: nowrap !important; }
.footer-links li a:hover { color: #c5a059; padding-left: 8px; }

.contact-inline { display: flex; align-items: center; gap: 20px; color: #bbb; font-size: 13px; flex-wrap: wrap; margin-top: 5px; }
.contact-inline span { display: flex; align-items: center; gap: 8px; }
.contact-inline i { color: #c5a059; font-size: 14px; }

.accred-container { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.footer-cert-img { height: 40px; border-radius: 2px; background: #fff; padding: 2px; transition: all 0.3s ease; }
.footer-cert-img:hover { transform: scale(1.1); }

.social-wrapper { display: flex; gap: 12px; margin-top: 15px; }
.social-btn { width: 36px; height: 36px; background: rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-size: 16px; transition: all 0.3s ease; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.1); }
.social-btn:hover { background-color: #c5a059; color: #141B2D; transform: translateY(-3px); border-color: #c5a059; }

.footer-bottom { background: #0d121d; padding: 15px 40px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #777; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-visitor-center { color: #888; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
#footer-visitor-count { color: #c5a059; font-family: 'Courier New', monospace; font-size: 14px; margin-left: 8px; letter-spacing: 2px; }

/* --- MOBILE RESPONSIVENESS FOR FOOTER --- */
@media (max-width: 1150px) {
    .footer-container { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-links li.no-wrap-link a { white-space: normal !important; }
}

@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-links li { justify-content: center; }
    .contact-inline { justify-content: center; }
    .accred-container, .social-wrapper { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; padding: 20px; }
}

/* ==========================================================================
   MASTER GRCA POPUP STYLES (COOKIE KILLER EDITION)
   ========================================================================== */
#websitePopup.popup-overlay {
    display: none; 
    position: fixed !important; 
    top: 0 !important;
    left: 0 !important;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8) !important;
    z-index: 99999999 !important; 
    justify-content: center;
    align-items: center;
}

#websitePopup .popup-content {
    background-color: #ffffff;
    width: 95%;
    max-width: 1200px;
    height: 85vh; 
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    overflow: hidden !important; /* Enforces the cut-off */
    display: block !important; 
}

#websitePopup .close-btn {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    color: #333;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10001;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: background-color 0.3s, color 0.3s;
}

#websitePopup .close-btn:hover {
    color: white;
    background-color: #e74c3c;
}

#websitePopup .popup-iframe {
    width: 100% !important;
    height: calc(100% + 350px) !important; /* Stretches the frame deeply */
    max-height: none !important; /* THE FIX: Destroys any global limits */
    border: none !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

/* --- BULLETPROOF WHITE COVER --- */
/* Creates a solid white block over the bottom edge to hide anything that slips up */
#websitePopup .popup-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35px; 
    background: #ffffff; 
    z-index: 10000;
    pointer-events: none;
}

/* --- MOBILE FIX --- */
@media screen and (max-width: 768px) {
    #websitePopup .popup-iframe {
        /* Mobile banners stack taller, requiring a deeper push */
        height: calc(100% + 550px) !important; 
    }
}