.footer {
    background-color: #ffffff; /* White background */
    color: #555555; /* Dark grey text */
    padding: 30px 60px; /* Increased padding */
    display: flex;
    justify-content: space-between; /* Space out the three columns */
    align-items: center; /* Vertically center content */
    font-family: Arial, sans-serif;
    font-size: 13px; /* Slightly smaller font */
    border-top: 1px solid #eeeeee; /* Lighter top border */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Footer Links */
.footer-links {
    margin-bottom: 12px;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #319C80;
}

.footer-divider {
    margin: 0 10px;
    color: #ccc;
}
.footer-column {
    flex: 1;
    min-width: 250px; /* Minimum width for columns */
    padding: 0 20px;
}
.footer-column.logo {
    flex: 0 1 auto; /* Logo column takes its own size */
}
.footer-column.logo img {
    height: 50px; /* Adjust logo height */
}
.footer-column p {
    margin: 4px 0; /* Tighter line spacing */
    line-height: 1.6;
}
.footer-column.disclaimer {
    text-align: right;
}

/* Mobile Footer Styles */
@media screen and (max-width: 768px) {
    .footer {
        flex-direction: column;
        padding: 24px 20px;
        text-align: center;
        gap: 20px;
    }

    .footer-column {
        min-width: auto;
        padding: 0;
        width: 100%;
    }

    .footer-column.logo img {
        height: 40px;
    }

    .footer-column p {
        font-size: 12px;
    }

    .footer-column.disclaimer {
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* ========================================
   Footer Popup Styles
   ======================================== */
.footer-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.footer-popup-overlay.active {
    display: flex;
}

.footer-popup {
    background: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.footer-popup-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.footer-popup-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.footer-popup-close:hover {
    color: #333;
}

.footer-popup-content {
    padding: 24px;
    overflow-y: auto;
    line-height: 1.7;
}

.footer-popup-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: #319C80;
    margin: 20px 0 10px;
}

.footer-popup-content h3:first-child {
    margin-top: 0;
}

.footer-popup-content p {
    font-size: 14px;
    color: #555;
    margin: 0 0 12px;
}

.footer-popup-date {
    margin-top: 24px !important;
    padding-top: 16px;
    border-top: 1px solid #eee;
    font-size: 13px !important;
    color: #888 !important;
    text-align: right;
}

/* Mobile Popup */
@media screen and (max-width: 768px) {
    .footer-popup {
        max-height: 90vh;
        border-radius: 12px;
    }

    .footer-popup-header {
        padding: 16px 20px;
    }

    .footer-popup-header h2 {
        font-size: 18px;
    }

    .footer-popup-content {
        padding: 20px;
    }

    .footer-popup-content h3 {
        font-size: 14px;
    }

    .footer-popup-content p {
        font-size: 13px;
    }
}
