/* --- FOOTER & LAYOUT */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: auto;
    position: relative;
}

body {
    font-family: sans-serif;
    background-color: #161c20;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1 0 auto;
}

.standard-content {
    width: 100%;
}

footer {
    position: sticky;
    bottom: 0;
    background-color: #16697a;
    padding: 10px 0;
    text-align: center;
    color: white;
    width: 100%;
    height: auto;
    min-height: 75px;
    z-index: 500;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    footer p {
        margin: 0;
        font-size: 1.4em;
    }

    footer .content li {
        list-style-type: none;
        text-align: left;
        line-height: 25px;
        font-size: 1.5em;
    }

    footer .content a {
        color: #121212;
        font-family: 'Open Sans', sans-serif;
        font-size: 14px;
        font-weight: 400;
        letter-spacing: -0.04em;
        line-height: 25px;
    }

.footer-item {
    text-align: left;
    padding-top: 0.5rem;
}

.privacy-footer {
    text-align: left !important;
    width: 50%;
    padding-left: 15px;
}

/* Default: Show text contact, hide icons (PC/Tablet) */
.standard-contact {
    display: block !important;
}

.mobile-contact {
    display: none !important;
}

.contact-icon-btn {
    display: inline-flex;
    align-items: center;
    color: #fff;
    padding: 8px 12px;
    margin: 0 4px;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
    min-width: 44px;
    justify-content: center;
}

    .contact-icon-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

.contact-icon {
    width: 20px;
    height: 20px;
    margin-right: 0;
}

/* Right-align standard-contact */
.col-6.text-end {
    padding-right: 15px;
    padding-left: 15px;
    display: flex;
    flex-direction: row;
    justify-content: end;
    width:50%;
}

/* Bootstrap overrides */
a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a {
    color: #0077cc;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Tablet (481px - 768px): Inline columns, show text, hide icons */
@media (min-width: 481px) and (max-width: 768px) {
    .footer .row {
        flex-wrap: nowrap !important;
        align-items: center;
    }

    .privacy-footer {
        width: 50% !important;
        justify-content:start;
    }

    .standard-contact {
        display: block !important;
        width: 50% !important;
        padding: 0 10px;
    }

        .standard-contact h5 {
            font-size: 1.2em;
        }

        .standard-contact p {
            font-size: 1em;
        }

    .mobile-contact {
        display: none !important;
    }

    .col-6 {
        width: 50% !important;
        padding: 0 7.5px;
    }
}

/* Mobile (max-width: 480px): Hide text, show icons inline at bottom-right */
@media (max-width: 480px) {
    .standard-contact {
        display: none !important;
    }

    .footer .row {
        flex-wrap: nowrap !important; /* Force inline without wrapping */
        align-items: center; /* Vertical alignment */
        justify-content: space-between; /* Privacy left, buttons right */
    }

    .privacy-footer {
        text-align: left !important;
        width: 50% !important;
        padding: 5px 15px 0;
        order: 1; /* Ensure left position */
    }

    .mobile-contact {
        display: flex !important;
        justify-content: flex-end; /* Buttons right-aligned within col */
        align-items: center;
        gap: 12px;
        width: 50% !important; /* Match privacy width for balance */
        padding: 0 15px 5px 0;
        margin-top: 0; /* No top margin */
        order: 2; /* Ensure right position */
    }

    .col-6 {
        width: 50% !important; /* Fixed 50% for inline cols */
        padding: 0 7.5px; /* Tight gutter */
    }

    .contact-icon-btn {
        padding: 16px 12px !important;
        margin: 0 !important;
        font-size: 0.8rem;
        border-radius: 0.4rem;
        min-width: 44px;
    }

    .contact-icon {
        width: 30px;
        height: 30px;
        margin-right: 0;
    }

    .text-end {
        text-align: right !important;
    }

    footer {
        min-height: 65px;
        padding: 0;
    }

    .footer-contact h5 {
        font-size: 0.9em !important;
        margin: 0;
    }

    .footer-contact p {
        font-size: 0.8em !important;
        margin: 0;
    }
}