/* ==========================================================================
   Footer Styles
   ========================================================================== */
.footer-accordion-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 20px !important;
}

.footer-accordion-title::after {
    content: '';
    transition: transform 0.3s ease;
    background-image: url("/wp-content/themes/batao/assets/icons/chevron-down-regular-full.svg");
    width: 20px;
    height: 20px;
    filter: invert();
    background-repeat: no-repeat;
}

.footer-copyright {
    font-size: 14px;
}

.footer-accordion-content {
    display: none;
    padding-left: 0;
    padding-right: 0;
}

@media(max-width: 782px) {
    footer .footer-copyright {
        display: flex;
        font-size: 15px;
        flex-direction: column;
        justify-items: center;
        align-items: center;
    }

    .footer-accordion {
        padding: 0 20px !important;
        border-bottom: 1px solid #5b5b93;
    }

    .footer-accordion.is-open {
        padding-bottom: 1.5rem !important;
    }

    .footer-accordion.big-title {
        padding-bottom: 1.5rem !important;
    }

    .footer-accordion-content {
        margin-top: 5px !important;
    }

    footer .footer-copyright .footer-hide-mobile {
        display: none;
    }
}

@media(min-width: 782px) {
    .footer-wrapper {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

    .footer-copyright {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media(max-width: 1200px) {
    .wp-block-group.has-contrast-background-color.has-background {
        padding-bottom: 20px !important;
    }
}

@media(min-width: 1200px) {
    .footer-wrapper {
        padding-top: 70px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .footer-copyright {
        padding-left: 0;
        padding-right: 0;
    }
}


footer .wp-block-list {
    list-style-type: none;
    margin-left: 0 !important;
}

footer a:not(.wp-block-button__link) {
    text-decoration: none;
}

footer a:not(.wp-block-button__link):hover {
    text-decoration: underline;
}

.footer-accordion.is-open .footer-accordion-content {
    display: block;
}

.footer-accordion.is-open .footer-accordion-title::after {
    transform: rotate(180deg);
}

.footer-accordion:first-child .footer-accordion-title::after {
    content: none;
}

@media (min-width: 782px) {
    .footer-accordion-content {
        display: block !important;
        padding-top: 12px;
    }

    .footer-accordion-title::after {
        display: none;
    }

    footer .footer-copyright {
        display: flex;
        flex-direction: row;
        gap: 0.25rem;
    }
}

@media (max-width: 782px) {
    footer .footer-accordion .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
        margin-inline-start: 0 !important;
        margin-inline-end: auto !important;
    }
}

@media (min-width: 1200px) {
    .footer-accordion-title {
        font-size: 25px !important;
        line-height: 34px !important;
    }

    .footer-accordion.big-title h2 {
        font-size: 38px !important;
        line-height: 52px;
    }

    .footer-accordion.big-title p {
        padding-right: 50px;
    }
}

/* Container Layout */
.custom-hexagon-links {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

/* The Hexagon "Border" */
.hexagon-wrapper {
    position: relative;
    width: 47px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff; /* This acts as the border color */
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    transition: transform 0.3s ease;
}

/* The Dark Center */
.hexagon-wrapper::after {
    content: "";
    position: absolute;
    inset: 1.5px; /* Border thickness */
    background-color: #353565; /* Matches your footer background */
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    z-index: 1;
    transition: background-color 0.3s ease;
}

/* SVG Icon Logic */
.social-svg {
    width: 20px;
    height: 20px;
    fill: #ffffff; /* Initial icon color */
    z-index: 2;
    transition: fill 0.3s ease;
}

/* --- HOVER EFFECTS --- */

/* Fill hexagon white */
.hexagon-wrapper:hover::after {
    background-color: #ffffff;
}

/* Change icon to Blue */
.hexagon-wrapper:hover .social-svg {
    fill: #353565;
}

/* Optional: Slight lift effect */
.hexagon-wrapper:hover {
    transform: translateY(-3px);
}