/* ================= GLOBAL RESET ================= */
.site-footer {
    background: #FFFFFF;
    font-family: 'Lato', sans-serif;
    border-top: 2px solid #00162f;
    /* Dark top border from image */
    margin-top: 50px;
    color: #333;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
}

/* ================= DESKTOP GRID (3 COLUMNS) ================= */
.footer-main-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.3fr;
    gap: 40px;
}

/* Column Titles */
.footer-title {
    font-size: 11px;
    font-weight: 900;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.footer-header-line {
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
    width: 100%;
}

/* Contact Column */
.footer-contact-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-main-logo {
    height: 55px;
    width: auto;
}

.footer-emblem {
    height: 55px;
    width: auto;
}

.footer-address {
    font-size: 13px;
    line-height: 1.6;
    color: #444;
    max-width: 300px;
}

/* Links Column (2 Columns on Desktop) */
.footer-links-grid {
    display: flex;
    gap: 50px;
}

.footer-links-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-grid li {
    font-size: 13px;
    margin-bottom: 12px;
    color: #444;
    cursor: pointer;
    white-space: nowrap;
}

.footer-links-grid li:hover {
    color: #dd221b;
}

/* Publications Column */
.footer-pubs-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-pubs-row img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.footer-publications-container {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between the top and bottom row */
}

/* .secondary-row img {
     height:80px !important;
}

.secondary-row {
    justify-content: center !important;
} */

/* .secondary-row {
    display: flex !important;
    justify-content: center !important; 
    align-items: center !important;     
    width: 100% !important;             
    margin-top: 10px;                   
}


.secondary-row a {
    display: flex;
}

.secondary-row img {
     height: px !important; 
     width: auto;
} */

/* 1. Force the entire third column to align everything to the center */
.footer-col:last-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Centers the title, lines, and logos */
}

/* 2. Reset the container to remove the large gap */
.footer-publications-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important; /* Reduces space between top and bottom logos */
    width: 100% !important;
}

/* 3. Ensure both rows of logos are perfectly centered */
.footer-pubs-row, 
.secondary-row {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 5px 0 !important;
}

/* 4. Adjust logo size so they look balanced */
.secondary-row img {
    height: 90px !important;
    width: auto !important;
    margin: 0 10px !important;
}

/* 5. If that "Discover more" box is unwanted, this will attempt to hide it */
.footer-col .discover-more, 
.footer-col div[class*="widget"] {
    display: none !important;
}

@media (max-width: 992px) {
    .footer-pubs-row {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

/* ================= BOTTOM BAR (DARK NAVY) ================= */
.footer-bottom-bar {
    background: #00162f;
    color: #fff;
    padding: 12px 0;
}

.footer-bottom-flex {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.footer-copy {
    opacity: 0.9;
}

.footer-discover {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-discover a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.footer-discover a:hover {
    text-decoration: underline;
}

/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 992px) {
    .footer-main-grid {
        grid-template-columns: 1fr;
        /* Stack into 1 column */
        gap: 35px;
    }

    .footer-links-grid {
        gap: 20px;
        flex-direction: column;
        /* Stack link columns on mobile */
    }

    .footer-contact-brand {
        justify-content: flex-start;
    }

    .footer-pubs-row {
        flex-wrap: wrap;
        /* Wrap logos on small screens */
        justify-content: flex-start;
        gap: 20px;
    }

    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .footer-pubs-row img {
        height: 30px;
        /* Smaller logos for very small phones */
    }
}