@import url('https://fonts.googleapis.com/css2?family=Zen+Dots&display=swap');

body,
ul,
li,
a,
footer {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

.footer {
    background-color: rgba(11, 11, 11, 1);
    color: #ffffff;
    padding: 3rem 1.5rem;
    font-family: 'Plus Jakarta Sans';
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
    gap: 1.5rem; /* Spacing between grid items */
    max-width: 1200px;
    margin: 0 auto; /* Center the footer */
    padding: 2rem;
}

.footer__section {
    /* flex: 1 1 220px; */
    min-width: 150px;
}

.footer__title {
    font-size: 1.5rem;
    color: #9ca3f7;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.footer__subtitle {
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-decoration: none;
    background: linear-gradient(0deg, #fcfcfca5) no-repeat right bottom / 0 var(--bg-h);
    transition: background-size 350ms;
    --bg-h: 100%;
    display: inline-block;
    align-items: center;
    position: relative;
}

.footer__subtitle:where(:hover, :focus-visible) {
    background-size: 100% var(--bg-h);
    background-position-x: left;
}

.aaludra-logo-text {
    display: inline-flex;
    align-items: end;
    gap: 0.30rem;
    padding-left: 0.25rem;
    color: #ffffff;
    transition: color 0.3s ease;
    font-family: 'Zen Dots', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 70%;
}

.underline {
    padding-bottom: 2px;
    --bg-h: 0.5px;
}

.aaludra-logo {
    width: 1rem;
    object-fit: contain;
    transition: filter 0.3s ease;
    filter: brightness(0) invert(1);
}

.footer__address {
    font-style: normal;
    /* font-size: 0.9rem; */
    font-size: 32px;
    line-height: 1.6;
    color: #ffffff;
    text-decoration: none;
    gap: 10px !important;
}

.footer__heading {
    font-size: 1.1rem;
    color: rgba(138, 147, 229, 1);
    margin-bottom: 1rem;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1%;
    font-family: 'Plus Jakarta Sans';
}

.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 2%;
    gap: 1rem; /* spacing between items */
    flex-wrap: wrap; /* allow wrapping on smaller screens */
}

.footer__item {
    display: flex;
    align-items: flex-start;
    /* Align icon and content at the top */
    margin-bottom: 0.75rem;
    /* Consistent spacing between items */
}

.footer__icon {
    width: 20px;
    /* Adjust size as needed */
    height: 20px;
    margin-right: 10px;
    /* Space between icon and text/numbers */
}

.footer__link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    /* Spacing between links in phone-numbers */
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: #9ca3f7;
}

.footer__link--email {
    display: flex;
    align-items: center;
    flex-direction: row;
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    /* Stack numbers vertically */
}

/* No extra margin-bottom for the last link in phone-numbers */
.phone-numbers .footer__link:last-child {
    margin-bottom: 0;
}

.footer__bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: start;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
    max-width: 1200px;
    margin-inline: auto;
}

.footer__policies {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer__bottom-link {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__bottom-link:hover {
    color: #9ca3f7;
}

@media (max-width: 1200px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer__container {
        flex-direction: column;
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
        /* padding: 3px; */
        padding-left: 100px;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer__section {
        flex: 0;
    }

    .footer__policies {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .footer__list {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 468px) {
    .footer__container {
        flex-direction: column;
        grid-template-columns: repeat(1, 1fr); /* 2 columns on medium screens */
        padding: 3px;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer__section {
        flex: 0;
    }

    .footer__policies {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .footer__list {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.contact_info_block {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 8px 0px;
    border-radius: 6px;
}

.contact_image_style {
    width: 18px;
    height: 18px;
    margin-top: 3px; /* align icon with top of text block */
}

.contact_email_list {
    display: flex;
    flex-direction: column;
}

.contact_into_sub_text {
    color: white;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.5;
}

.contact_into_sub_text:hover {
    text-decoration: underline;
}
