/*
Theme Name: ABFM
Theme URI: https://www.theabfm.org
Description: Astra Child Theme
Author: ABFM
Author URI: https://www.theabfm.org
Template: astra
Version: 1.0.2
Text Domain: astra-child
*/

.mobile-background-color {
    background: transparent;
}

/* Nav Active State */
.ekit-wid-con .elementskit-navbar-nav > li > a.ekit-menu-nav-link.nav-active {
    border-bottom: 3px solid var(--e-global-color-astglobalcolor8) !important;
}

/* Start Global */
ul li::marker {
    color: #EA9A27;
}

ul li {
    padding-bottom: 10px;
}

a {
    text-decoration-color: #EA9A27 !important;
}

.base-container {
    width: 42%;
    padding: 88px 0px;
    margin: 0 auto;
}

.full-container {
    width: 100%;
    padding: 88px 0px;
    margin: 0 auto;
}

.table-container {
    width: 65%;
    padding: 128px 0px;
    margin: 0 auto;
}

.single-news .post-navigation,
.single-insights .post-navigation {
    display: none;
}

.ekit-template-content-footer {
    padding-top: 120px;
}

/* Tablet */
@media (max-width: 1024px) {
    .mobile-background-color {
        background: #EDF5F8;
    }

    .base-container {
        width: 100%;
        padding: 64px 32px;
    }

    .table-container {
        width: 100%;
        padding: 64px 16px;
    }

    .full-container {
        width: 100%;
        padding: 64px 0px;
    }

    .ekit-template-content-footer {
        padding-top: 40px;
    }
}

/* Mobile */
@media (max-width: 640px) {

    .base-container,
    .table-container,
    .full-container {
        padding: 32px 16px;
    }
}

/* End Global */

/* Start Footer Links*/
.contact-link {
    display: flex;
    align-items: center;
    color: #fafafa;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.contact-icon {
    margin-right: 8px;
    transition: color 0.3s ease;
}

.contact-address {
    color: #fafafa;
}

.contact-link:hover {
    color: #ea9a27 !important;
}

.news-link {
    position: relative;
    color: #474747;
    text-decoration: none !important;
    font-size: 16px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
    padding-bottom: 4px;
}

.footer-link {
    position: relative;
    color: #fafafa;
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-link::after,
.news-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #ea9a27;
    transition: height 0.3s ease;
}

.footer-link:hover::after,
.news-link:hover::after {
    height: 4px;
}

.footer-link:hover {
    color: #fafafa;
}

.news-link:hover {
    color: #474747;
}

/* End Footer Links*/

/* Start Mobile Menu */
.custom-mobile-menu {
    display: none;
}

.e-n-accordion-item-title-icon {
    background-color: #ea9a27;
    border-radius: 8px;
    padding: 12px;
}

.mobile-link {
    display: block;
    color: #474747;
    padding-bottom: 8px;
    padding-top: 8px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-bottom 0.3s;
}

.mobile-link:hover {
    color: #ea9a27;
    border-bottom: 2px solid #ea9a27;
}

.link-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    gap: 16px;
}

.mobile-link-white {
    display: block;
    color: #fafafa;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-bottom 0.3s;
    width: 100%;
    text-align: center;
}

.mobile-link-white:hover {
    color: #ea9a27;
    border-bottom: 2px solid #ea9a27;
}

/* End Mobile Menu */

/* Start Dots */
.dot-gradient {
    background-image: linear-gradient(to right, #edf5f8eb 68%, #ffffffab 68%);
}

.dot-gradient-half {
    background-image: linear-gradient(to right, #edf5f8eb 34%, #ffffffab 34%);
}

.dot-div::before,
.dot-div-half::before {
    content: '';
    width: 38%;
    transform: scaleX(-1);
    background-image: url('/wp-content/uploads/2025/05/dots-1.png');
    background-repeat: repeat;
    opacity: 0.7;
}

.dot-div-full {
    background-image: linear-gradient(to right, #edf5f8eb 100%, #ffffffab 0%);
}

.dot-div-full::before {
    content: '';
    background-image: url('/wp-content/uploads/2025/05/dots-1v.png');
    background-position: center bottom;
    opacity: 0.7;
}

.dot-div-right::before {
    content: "";
    top: 0;
    right: 0;
    width: 66%;
    height: 100%;
    background-image: url("/wp-content/uploads/2025/06/dots-1-flip.png");
    transform: scaleX(-1);
    transform-origin: right;
    background-position: center;
    opacity: 0.15;
}

/* End Dots */

/* Start post search */
.post-search-form {
    display: flex;
    width: 60%;
    margin: 20px auto;
}

.post-search-form input[type='search'] {
    flex: 1;
    padding: 36px 24px;
    outline: none;
    font-size: 16px;
    border: 1px solid #d9d9d9;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    background: #fafafa;
}

.post-search-form input[type='text'] {
    flex: 1;
    padding: 36px 24px;
    outline: none;
    font-size: 16px;
    border: 1px solid #d9d9d9;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    background: #fafafa;
}

.post-search-form button {
    background-color: #ea9a27;
    color: #474747;
    margin-left: -6px;
    border: 1px solid #ea9a27;
    padding: 0px 28px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.post-search-form button:hover {
    background-color: #fafafa;
}

.post-search-form button i {
    pointer-events: none;
}

/* End post search */

.theme-10395::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/wp-content/uploads/2025/05/dots-1v.png');
    background-position: center bottom;
    opacity: 0.1;
}

/* Start Mobile Layouts */
@media (max-width: 1024px) {
    .dot-div::before {
        height: 70%;
        width: 100%;
        background-image: url('/wp-content/uploads/2025/05/dots-1v.png');
        background-position: center bottom;
    }

    .dot-gradient {
        background-image: linear-gradient(to bottom, #ffffff 35%, #ffffff 35%);
    }

    .post-search-form {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .dot-div-half::before {
        height: 35%;
        width: 100%;
        background-image: url('/wp-content/uploads/2025/05/dots-1v.png');
        background-position: center bottom;
    }

    .dot-gradient-half {
        background-image: linear-gradient(to bottom, #edf5f8eb 34%, #ffffffab 34%);
    }

    .dot-div-right::before {
        width: 100%;
        height: 100%;
        background-repeat: repeat-x;
        background-position: left bottom;
        transform: none;
        background-image: url("/wp-content/uploads/2025/05/dots-1v.png");
    }

    .link-container {
        grid-template-columns: 1fr;
    }
}

/* End Mobile Layouts */

.cf7-label {
    color: #474747;
    font-weight: 700;
    letter-spacing: .8px;
    font-size: 16px;
    padding-bottom: 4px;
}

.inside-shadow {
    box-shadow:
        inset 0 8px 8px -6px rgba(0, 0, 0, 0.25),
        0 0 50px 0 rgba(0, 0, 0, 0.07) !important;
}

.accordion-expand-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 20px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: #003a5d;
    cursor: pointer;
    user-select: none;
}

.accordion-toggle-icon {
    font-size: 1.25rem;
    line-height: 1;
    font-weight: 600;
}

.header-search-toggle {
    cursor: pointer;
}

.header-search-bar {
    display: none;
}

.header-search-bar.active {
    display: block;
}

/* Expand/Collapse toggle button icon */
.accordion-toggle-icon {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-expand-toggle.is-expanded .accordion-toggle-icon {
    transform: rotate(180deg);
}

/* Override Elementor's display:none so we can animate instead */
.e-n-accordion-item-title-icon {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.e-n-accordion-item-title-icon .e-opened,
.e-n-accordion-item-title-icon .e-closed {
    display: flex !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Closed state: plus visible, minus hidden & pre-rotated */
.e-n-accordion-item:not([open]) .e-n-accordion-item-title-icon .e-closed {
    transform: rotate(0deg);
    opacity: 1;
    position: relative;
}

.e-n-accordion-item:not([open]) .e-n-accordion-item-title-icon .e-opened {
    transform: rotate(-180deg);
    opacity: 0;
    position: absolute;
}

/* Open state: minus visible, plus spins out */
.e-n-accordion-item[open] .e-n-accordion-item-title-icon .e-opened {
    transform: rotate(0deg);
    opacity: 1;
    position: relative;
}

.e-n-accordion-item[open] .e-n-accordion-item-title-icon .e-closed {
    transform: rotate(180deg);
    opacity: 0;
    position: absolute;
}