footer {
    background-color: #f99659;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: stretch;
    padding: 15px 0;
    min-height: 250px;
}

footer .column {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90%;
}

footer .column.right-border {
    border-right: 1.5px solid white;
    padding-right: 25px;
}

footer .column.left-border {
    border-left: 1.5px solid white;
    padding-left: 25px;
}

footer .column.a {
    width: 25%;
}

footer .column.a.contact {
    flex-direction: column;
    text-align: center;
}

footer .column.a.contact svg {
    width: 16px;
    height: 16px;
    fill: white;
    margin-right: 5px;
    min-width: 16px;
    min-height: 16px;
    flex-shrink: 0;
}

footer .column.a.contact h2 {
    margin-bottom: 15px;
    font-size: 24px;
    color: white;
}

footer .column.a.contact a {
    width: 100%;
    text-align: center;
    text-decoration: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}
footer .column.a.contact a svg {
    margin-right: 8px;
}
footer .column.a.contact a span {
    display: block;
    text-align: center;
}

footer .column.b {
    width: 33%;
    flex-direction: column;
    text-align: center;
    color: white;
}

footer .column.b h2 {
    margin-bottom: 5px;
    font-size: 24px;
}

footer .column.b h3 {
    margin-top: 5px;
    font-size: 15px;
    font-weight: normal;
    margin-bottom: 5px;
}

footer .column.b p {
    font-size: 15px;
    margin-bottom: 15px;
    max-width: 240px;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    list-style: square;
    color: white;
}

footer ul li {
    padding: 2px 0;
    font-size: 20px;
}

footer ul li a {
    text-decoration: none;
    color: white;
    font-size: 25px;
}

footer ul li.underline-bold {
    font-weight: bold;
    text-decoration: underline;
}

footer ul li {
    width: 50%;
}

/* Hover effect for Home */
footer a[href="index.html"]:hover {
    color: #000000;
    transition: all 0.3s ease;
}

/* Hover effect for Donate text with underline color change */
footer a[href="donate.html"]:hover {
    color: #000000; /* Text color */
    text-decoration: underline;
    text-decoration-color: #000000; /* Underline color */
    transition: all 0.3s ease;
}

/* Hover effect for About and Gallery */
footer a[href="about.html"]:hover,
footer a[href="gallery.html"]:hover {
    color: #f5dd68;
    transition: all 0.3s ease;
}

/* Hover effect for Events and FAQ */
footer a[href="events.html"]:hover,
footer a[href="faq.html"]:hover {
    color: #ade47a;
    transition: all 0.3s ease;
}

/* Hover effect for Join Us and Reach Out */
footer a[href="volunteer.html"]:hover,
footer a[href="reach-out.html"]:hover {
    color: #7798cd;
    transition: all 0.3s ease;
}

/* Hover effect for Facebook icon */
footer a[href*="www.facebook.com"]:hover svg {
    fill: #7798cd; /* Change SVG fill color on hover */
    transition: all 0.3s ease;
}

/* Hover effect for phone number */
footer .column.a.contact a[href*="tel:"]:hover {
    color: #ade47a;
    transition: all 0.3s ease;
}

/* Hover effect for email address */
footer .column.a.contact a[href*="mailto:"]:hover {
    color: #7798cd;
    transition: all 0.3s ease;
}

/* Hover effect for physical address */
footer .column.contact a:last-child:hover {
    color: #f5dd68;
    transition: all 0.3s ease;
}
/* For tablets and below */
@media (max-width: 1023px) {
    footer {
        flex-direction: column;
        align-items: center;
    }

    footer .column {
        width: 100%;
        padding: 15px;
        border-right: none !important;
        border-left: none !important;
        border-bottom: 1.5px solid white;
        justify-content: center;
        text-align: center;
    }
    footer .column.right-border {
        border-right: none !important;
    }

    footer .column.left-border {
        border-left: none !important;
    }
    footer .column.a.contact svg {
        width: 20px;
        height: 20px;
    }
    /* Remove the bottom border from the last .column element */
    footer .column:last-child {
        border-bottom: none;
    }

    footer .column.a,
    footer .column.b {
        align-items: center;
    }

    footer .column.a.contact,
    footer .column.b {
        text-align: center;
    }

    footer ul {
        flex-direction: column;
        align-items: center;
    }

    footer ul li {
        width: 100%;
    }
}

/* For mobile phones */
@media (max-width: 480px) {
    footer .column.a.contact h2,
    footer .column.b h2,
    footer .column.b h3 {
        font-size: 20px;
    }

    footer ul li a {
        font-size: 20px;
    }
    /* Hide "Child Advocacy Center" text on tablet and below */
    footer .column.b h3 {
        display: none;
    }
    footer .column.a.contact svg {
        width: 24px;
        height: 24px;
    }
}