.footer-section {
    background: #fff;
    padding: 90px 0 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

/* This handles the extra px-4 only for the main footer content */
.footer-main.px-4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.footer-container {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 var(--frontend-gutter); 
}

.footer-bottom { 
    background: #f5f5f5;
    border-top: 0;
    margin: 70px 0 0;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 400;
    color: #111111;
}

.footer-bottom span {
    font-weight: 400;
}

.footer-bottom .footer-container {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.footer-bottom a {
    color: #111111;
    font-weight: 400;
    text-decoration: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.6fr;
    gap: 80px;
    margin-bottom: 40px;
}

.footer-logo { max-width: 190px; margin-bottom: 15px; }
.footer-desc {
    color: #111111;
    font-size: 20px;
    font-weight: 350;
    line-height: 1.5;
    margin-bottom: 20px;
}

.footer-image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.footer-image-grid img { width: 100%; height: 150px; object-fit: cover; border-radius: 6px; }

.footer-heading { 
    color: #3e228f; 
    font-weight: 500; 
    font-size: 32px;
    margin-bottom: 20px; 
}

.footer-links { list-style: none; padding: 0; }
.footer-links li a {
    color: #333;
    display: block;
    font-size: 20px;
    font-weight: 350;
    margin-bottom: 12px;
    text-decoration: none;
}

.auth-buttons a { 
    display: block; width: 220px; padding: 12px; text-align: center; 
    text-decoration: none; color: white; margin-bottom: 10px; 
    font-size: 16px; font-weight: 400; text-transform: uppercase;
}
.btn-medical { background: #3e228f; }
.btn-lab { background: #1dad99; }

.contact-info {
    color: #111111;
    font-size: 20px;
    font-weight: 350;
    line-height: 1.5;
    list-style: none;
    padding: 0;
}
.contact-info li {
    align-items: flex-start;
    display: flex;
    font-weight: 350;
    gap: 10px;
    margin-bottom: 15px;
}

/* Keep the hours row identical to the other contact rows. The hours are
   rendered inside a span, so make the inheritance explicit and protect it
   from generic production/minified span rules. */
.contact-info .contact-hours-text {
    color: inherit;
    font-family: inherit;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit;
}

.contact-info i {
    color: #3e228f;
    flex: 0 0 24px;
    line-height: 1.5;
    margin-right: 0;
    text-align: center;
    width: 24px;
}

.footer-follow-heading {
    margin-top: 74px;
}

.social-icon {
    display: inline-flex;
}

.social-icon img {
    display: block;
    height: 42px;
    width: 42px;
}

/* Responsive adjustments */
@media screen and (max-width: 991px) {
    .footer-section { padding: 60px 0 0; }
    .footer-grid {
        gap: 34px;
        grid-template-columns: 1fr;
    }

    .footer-heading {
        font-size: 28px;
        margin-bottom: 14px;
    }

    .footer-desc,
    .footer-links li a,
    .contact-info {
        font-size: 16px;
    }

    .footer-image-grid img {
        height: 120px;
    }

    .auth-buttons a {
        font-size: 14px;
        padding: 11px;
        width: 200px;
    }

    .footer-follow-heading {
        margin-top: 28px;
    }

    .footer-bottom {
        font-size: 16px;
        margin: 50px 0 0;
        padding: 20px 0;
    }

    .footer-bottom .footer-container {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

@media screen and (max-width: 575px) {
    .footer-section { padding: 40px 0 0; }

    .footer-heading {
        font-size: 24px;
    }

    .footer-desc,
    .footer-links li a,
    .contact-info,
    .footer-bottom {
        font-size: 14px;
    }

    .footer-logo {
        max-width: 150px;
    }

    .footer-image-grid img {
        height: 92px;
    }

    .auth-buttons a {
        font-size: 12px;
        width: 100%;
    }

    .social-icon img {
        height: 36px;
        width: 36px;
    }

    .footer-bottom {
        margin: 40px 0 0;
        padding: 18px 0;
    }
}
