/* =========================================================
   MTIC FOOTER
   Desktop + mobile responsive footer
   ========================================================= */

.mtic-custom-footer {
    position: relative;
    width: 100% !important;
    clear: both !important;
    display: block !important;
    background-color: var(--mtic-dark-green);
    color: rgba(255, 255, 255, 0.86);
    font-family: var(--mtic-font-main);
    font-size: 0.875rem;
    line-height: 1.6;
    padding: 36px 0 18px;
    box-sizing: border-box;
}

/* =========================================================
   Main desktop layout
   ========================================================= */

.footer-main-container {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto !important;
    padding: 0 0 26px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    float: none !important;
    box-sizing: border-box;
}

.footer-col {
    min-width: 0;
}

.footer-col-address {
    flex: 0 0 330px;
}

.footer-col-hotlines {
    flex: 0 0 300px;
}

.footer-col-connect {
    flex: 0 0 160px;
}

/* =========================================================
   Column 1: Address
   ========================================================= */

.footer-brand-lockup {
    display: block;
    width: fit-content;
    margin: 0 0 12px;
    text-decoration: none;
    color: inherit;
}

.footer-brand-lockup:hover,
.footer-brand-lockup:focus {
    text-decoration: none;
    color: inherit;
}

.footer-brand-lockup:focus-visible {
    outline: 2px solid var(--mtic-teal);
    outline-offset: 4px;
}

.footer-brand-mark {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    width: max-content;
    max-width: none;
    text-align: left;
}

.footer-brand-mark::after {
    content: "";
    display: block;
    width: 42px;
    height: 2px;
    margin-top: 20px;
    background: var(--mtic-teal);
}

.footer-brand-mark__acronym {
    display: block;
    color: var(--mtic-white);
    font-size: 2.625rem;
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.02em;
}

.footer-address-details .footer-brand-description {
    width: max-content;
    font-weight: 700;
    text-transform: none;
    white-space: nowrap;
}

.footer-address-details,
.footer-contact-details {
    margin: 0;
}

.footer-contact-details {
    margin-top: 18px;
}

.footer-address-details p,
.footer-contact-details p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.35;
}

.footer-contact-details a {
    color: #f2d26b;
    text-decoration: none;
    font-weight: 600;
}

.footer-contact-details a:hover,
.footer-contact-details a:focus {
    color: #ffffff;
    text-decoration: underline;
}

/* =========================================================
   Headings
   ========================================================= */

.footer-col-hotlines h3,
.footer-col-connect h3 {
    position: relative;
    display: inline-block;
    margin: 0 0 20px;
    padding: 0 0 8px;
    color: var(--mtic-teal);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.2;
}

.footer-col-hotlines h3::after,
.footer-col-connect h3::after {
    content: "";
    position: absolute;
    left: 1px;
    bottom: 0;
    width: 36px;
    height: 1px;
    background-color: var(--mtic-teal);
}

/* =========================================================
   Column 2: Hotlines
   ========================================================= */

.footer-hotline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-hotline-list li {
    margin: 0 0 10px;
    padding: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.35;
    white-space: nowrap;
}

.footer-hotline-list li::before {
    content: none;
}

/* =========================================================
   Column 3: Social + gov.bn
   ========================================================= */

.footer-connect-social {
    display: block;
}

.footer-social-media-icons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 0 0 36px;
}

.footer-social-circle {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.footer-social-circle:hover,
.footer-social-circle:focus-visible {
    transform: translateY(-2px);
}

.footer-social-circle__icon {
    display: block;
    width: 28px;
    height: 28px;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-social-circle__icon--hover {
    display: none;
}

.footer-social-circle:hover .footer-social-circle__icon--default,
.footer-social-circle:focus-visible .footer-social-circle__icon--default {
    display: none;
}

.footer-social-circle:hover .footer-social-circle__icon--hover,
.footer-social-circle:focus-visible .footer-social-circle__icon--hover {
    display: block;
}

.footer-logo-gov {
    display: block;
    width: 95px;
    max-width: 100%;
    height: auto;
    margin: 0 0 0 12px;
}

.footer-rate-website {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    margin: 10px 0 0 12px;
    padding: 0.35rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

.footer-rate-website:hover,
.footer-rate-website:focus-visible {
    color: var(--mtic-teal);
    text-decoration: underline;
}

.footer-rate-website:focus-visible {
    outline: 2px solid var(--mtic-teal);
    outline-offset: 3px;
}

/* =========================================================
   Bottom copyright/socket
   ========================================================= */

.footer-socket-container {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto !important;
    padding: 10px 0 0;
    float: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    box-sizing: border-box;
}

.footer-copyright {
    margin: 0;
    white-space: nowrap;
}

.footer-links {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    margin: 0;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.55);
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 900px) {
    .footer-main-container,
    .footer-socket-container {
        width: min(780px, calc(100% - 40px));
    }

    .footer-main-container {
        gap: 14px;
    }

    .footer-col-address {
        flex-basis: 310px;
    }

    .footer-col-hotlines {
        flex-basis: 245px;
    }

    .footer-col-connect {
        flex-basis: 140px;
    }
}

/* =========================================================
   Mobile footer layout
   Matches provided mobile screenshot
   ========================================================= */

@media (max-width: 768px) {
    .mtic-custom-footer {
        padding: 50px 0 34px;
        text-align: left;
    }

    .mtic-custom-footer::before {
        width: min(395px, calc(100% - 64px));
    }

    .footer-main-container {
        width: min(395px, calc(100% - 64px));
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 0 0 32px;
    }

    .footer-col-address,
    .footer-col-hotlines,
    .footer-col-connect {
        width: 100% !important;
        flex: none;
    }

    .footer-brand-lockup {
        margin: 0 0 12px;
    }

    .footer-address-details p,
    .footer-contact-details p {
        font-size: 0.9375rem;
        line-height: 1.22;
        margin: 0;
        letter-spacing: 0.01em;
    }

    .footer-address-details .footer-brand-description {
        font-size: 0.9375rem;
    }

    .footer-contact-details {
        margin-top: 24px;
    }

    .footer-contact-details a {
        color: #ffffff;
        font-weight: 700;
    }

    .footer-col-hotlines {
        margin-top: 24px;
        padding-top: 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.82);
    }

    .footer-col-hotlines h3 {
        color: #ffffff;
        font-size: 1rem;
        font-weight: 700;
        margin: 0 0 16px;
        padding: 0;
    }

    .footer-col-hotlines h3::after {
        display: none;
    }

    .footer-hotline-list li {
        font-size: 0.9375rem;
        line-height: 1.45;
        margin: 0 0 6px;
        color: rgba(255, 255, 255, 0.78);
        white-space: normal;
    }

    .footer-col-connect {
        margin-top: 34px;
        display: grid;
        grid-template-columns: max-content 1fr;
        align-items: center;
        column-gap: 52px;
    }

    .footer-connect-social {
        grid-column: 1;
        grid-row: 1;
        text-align: center;
    }

    .footer-col-connect h3 {
        display: block;
        color: #ffffff;
        font-size: 1rem;
        font-weight: 600;
        margin: 0 0 18px;
        padding: 0;
        text-align: center;
    }

    .footer-col-connect h3::after {
        display: none;
    }

    .footer-social-media-icons {
        justify-content: center;
        gap: 14px;
        margin: 0;
    }

    .footer-social-circle {
        width: 44px;
        height: 44px;
    }

    .footer-social-circle__icon {
        width: 28px;
        height: 28px;
    }

    .footer-logo-gov {
        grid-column: 2;
        grid-row: 1;
        width: 102px;
        margin: 22px 0 0;
        justify-self: start;
        align-self: center;
    }

    .footer-socket-container {
        width: min(395px, calc(100% - 64px));
        padding: 13px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.82);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        text-align: center;
        font-size: 0.8125rem;
        line-height: 1.35;
    }

    .footer-copyright {
        width: 100%;
        white-space: normal;
        color: rgba(255, 255, 255, 0.72);
    }

    .footer-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 7px;
        white-space: normal;
    }

    .footer-links a,
    .footer-links span {
        color: rgba(255, 255, 255, 0.72);
    }
}

@media (max-width: 430px) {
    .mtic-custom-footer::before,
    .footer-main-container,
    .footer-socket-container {
        width: calc(100% - 48px);
    }

    .footer-col-connect {
        column-gap: 34px;
    }

    .footer-social-circle {
        width: 44px;
        height: 44px;
    }

    .footer-social-circle__icon {
        width: 28px;
        height: 28px;
    }

    .footer-logo-gov {
        width: 92px;
        justify-self: flex-end;
    }
}

@media (max-width: 360px) {
    .footer-address-details .footer-brand-description,
    .footer-address-details p,
    .footer-contact-details p {
        font-size: 0.875rem;
    }

    .footer-col-connect {
        grid-template-columns: 1fr;
        row-gap: 24px;
        text-align: center;
    }

    .footer-connect-social,
    .footer-logo-gov {
        grid-column: 1;
        grid-row: auto;
    }

    .footer-logo-gov {
        justify-self: flex-end;
        margin-top: 0;
    }
}
