/* IBF Accredited Training Providers — matches html/why-work-with-ibf.html */

.WhyWorkSection2.relative {
    position: relative;
}

.WhyWorkSection2 .inner-padding-120 {
    position: relative;
    z-index: 2;
}

/* Background image stretches with section height (html/_default.scss .float-div.bgimage) */
.WhyWorkSection2 .float-div.bgimage {
    pointer-events: none;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transform: none;
    z-index: 0;
}

.WhyWorkSection2 .float-div.bgimage img {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    z-index: 1;
    transition: all 0.6s ease;
    object-fit: cover;
    object-position: 50% 50%;
}

.WhyWorkSection2 .opacity-10 {
    opacity: 0.1;
}

/* Collapsible content — same as html/_pages-custom.scss */
.WhyWorkSection2 .collapsible-wrapper {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition:
        max-height 0.45s cubic-bezier(0, 1, 0, 1),
        opacity 0.35s ease,
        transform 0.35s ease;
}

.WhyWorkSection2 .collapsible-wrapper.is-expanded {
    max-height: 5000px;
    opacity: 1;
    transform: translateY(0);
    overflow: visible;
    transition:
        max-height 0.5s ease-in-out,
        opacity 0.4s ease,
        transform 0.4s ease;
}

.WhyWorkSection2 .directoryWrapper {
    border: 1px solid #342c25;
    padding: 40px;
    margin-bottom: 50px;
    background-color: #ffffff;
}

@media screen and (max-width: 1599.98px) {
    .WhyWorkSection2 .directoryWrapper {
        padding: 30px;
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 575.98px) {
    .WhyWorkSection2 .directoryWrapper {
        padding: 20px;
        margin-bottom: 30px;
    }
}

.WhyWorkSection2 .directoryWrapper:last-child {
    margin-bottom: 0;
}

.WhyWorkSection2 .alphabetNav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.WhyWorkSection2 .alphabetNav a {
    color: #342c25;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.WhyWorkSection2 .alphabetNav a:hover,
.WhyWorkSection2 .alphabetNav a.active {
    color: #a7cb19;
    font-weight: 700;
}

@media screen and (max-width: 991.98px) {
    .WhyWorkSection2 .alphabetNav {
        position: relative;
        display: block;
        margin-bottom: 20px;
    }

    .WhyWorkSection2 .alphabetNav::before {
        content: var(--selected-letter, "A");
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 44px;
        padding: 10px 45px 10px 15px;
        border: 1px solid #ddd;
        background-color: #ffffff;
        color: #342c25;
        font-weight: 700;
        cursor: pointer;
    }

    .WhyWorkSection2 .alphabetNav::after {
        content: "";
        position: absolute;
        top: 18px;
        right: 18px;
        width: 9px;
        height: 9px;
        border-right: 2px solid #342c25;
        border-bottom: 2px solid #342c25;
        transform: rotate(45deg);
        transition: 0.3s;
        pointer-events: none;
    }

    .WhyWorkSection2 .alphabetNav.open::after {
        top: 23px;
        transform: rotate(-135deg);
    }

    .WhyWorkSection2 .alphabetNav a {
        display: none;
        width: 100%;
        min-height: 40px;
        padding: 10px 15px;
        background-color: #ffffff;
        border: 1px solid #ddd;
        border-top: 0;
        justify-content: flex-start;
    }

    .WhyWorkSection2 .alphabetNav a:hover,
    .WhyWorkSection2 .alphabetNav a.active {
        color: #a7cb19;
        background-color: #ffffff;
    }

    .WhyWorkSection2 .alphabetNav.open a {
        display: flex;
    }
}

.WhyWorkSection2 .directoryContent {
    height: 360px;
    overflow-y: auto;
    background-color: #ffffff;
    padding: 30px;
    scroll-behavior: smooth;
}

.WhyWorkSection2 .directoryContent::-webkit-scrollbar {
    width: 8px;
}

.WhyWorkSection2 .directoryContent::-webkit-scrollbar-track {
    background: #f0eeec;
}

.WhyWorkSection2 .directoryContent::-webkit-scrollbar-thumb {
    background: #a7cb19;
    border-radius: 8px;
}

.WhyWorkSection2 .directoryItem {
    margin-bottom: 30px;
}

.WhyWorkSection2 .directoryItem:last-child {
    margin-bottom: 0;
}

.WhyWorkSection2 .group-badge {
    width: 40px;
    height: 40px;
    background-color: #342c25;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 20px;
}

.WhyWorkSection2 .org-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    font-size: 18px;
    color: #342c25;
}

@media screen and (max-width: 1599.98px) {
    .WhyWorkSection2 .org-list {
        font-size: 15px;
    }
}

@media screen and (max-width: 1199.98px) {
    .WhyWorkSection2 .org-list {
        font-size: 18px;
    }
}

@media screen and (max-width: 575.98px) {
    .WhyWorkSection2 .org-list {
        font-size: 16px;
    }
}
