section.library-search-section {
    padding-top: 0px;
    padding-bottom: 32px;
    padding-left: 0px;
    padding-right: 0px;
}

.search-widget-container {
    width: 100%;
    max-width: 980px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 1px 2px 23px 4px rgba(0, 0, 0, 0.10);
}

.search-widget-container .resources-wrapper {
    padding-top: 20px;
    background: #FAFAFC;
}

.search-widget-form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.desktop-instruction-label {
    text-align: center;
    font-size: 13px;
    color: #0b2265;
    padding-bottom: 20px;
    font-weight: 500;
}

.search-header-mobile {
    display: none;
}

.mobile-accordion-toggle {
    display: none;
}

.resources-group {
    display: flex;
    align-items: stretch;
    border-top: 1px solid #e2e8f0;
}

.resource-item {
    flex: 1;
    position: relative;
    cursor: pointer;
    text-align: center;
    padding: 14px 10px;
    font-size: 13.5px;
    margin-bottom: 0px;
    color: #123472;
    border-right: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
}

.resource-item:first-child {
    border-left: none;
}

.resource-item:last-child {
    border-right: none;
}

.resource-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.resource-item.is-active {
    font-weight: 600;
    color: #001a4e;
    background: #ffffff;
}

.resource-item.is-active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #0d3b66;
}

.search-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 60px 40px;
}

.search-field-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 18px;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 48px;
    padding: 0 20px 0 46px;
    border-radius: 30px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    color: #334155;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-input:focus {
    border-color: #001a4e;
    box-shadow: 0 0 0 3px rgba(0, 26, 78, 0.08);
}

.search-submit-btn {
    height: 48px;
    padding: 0 40px;
    border-radius: 30px;
    background-color: #001a4e;
    color: #ffffff;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s, transform 0.1s;
}

.search-submit-btn:hover:not(:disabled) {
    background-color: #002878;
}

.search-submit-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.search-submit-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.resources-mobile-placeholder {
    display: none;
}

@media (max-width: 767px) {
    .search-widget-container {
        max-width: 380px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        border-radius: 8px;
        padding: 0px 0px 24px;
    }

    .desktop-instruction-label {
        display: none;
    }

    .search-header-mobile {
        display: block;
        text-align: center;
        font-weight: 700;
        font-size: 16px;
        color: #001a4e;
        padding-bottom: 16px;
        padding-top: 24px;
        background-color: #FAFAFC;
    }

    .search-widget-container .resources-wrapper {
        /*border-top: 1px solid #f1f5f9;*/
        padding-bottom: 0px;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 40px;
        padding-top: 0px;
        background-color: #FAFAFC;
    }

    .mobile-accordion-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        background: transparent;
        border: none;
        padding: 12px 0;
        cursor: pointer;
        color: #001a4e;
        font-size: 16px;
        font-weight: 500;
    }

    .mobile-accordion-toggle .toggle-icon {
        display: inline-flex;
        transition: transform 0.25s ease;
    }

    .mobile-accordion-toggle.is-open .toggle-icon {
        transform: rotate(180deg);
    }

    .resources-group {
        flex-direction: column;
        border: none;
        display: none;
    }

    .resources-group.is-open {
        display: flex;
    }

    .resources-group:not(.is-open) .resource-item {
        display: none;
    }

    .resources-group:not(.is-open) .resource-item.is-active {
        display: flex;
        border-top: 1px solid #eef2f6;
        border-bottom: 1px solid #eef2f6;
    }

    .resource-item {
        width: 100%;
        border-left: none !important;
        border-right: none !important;
        border-bottom: 1px solid #eef2f6;
        padding: 13px 16px;
        justify-content: center;
        font-size: 14px;
        position: relative;
    }

    .resource-item.is-active::before {
        display: none;
    }

    .resources-group.is-open .resource-item.is-active::after,
    .resources-group:not(.is-open) .resource-item.is-active::after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3.5px;
        background-color: #001a4e;
    }

    .search-input-row {
        flex-direction: column;
        gap: 14px;
        padding: 0;
    }

    .search-field-wrapper {
        width: 100%;
    }

    .search-input {
        height: 46px;
    }

    .search-submit-btn {
        width: 100%;
        height: 46px;
    }

    .search-input-row {
        padding: 0 24px;
    }

    .resources-mobile-placeholder {
        display: block;
    }

    .resources-mobile-placeholder.is-open {
        display: none!important;
    }

    .resources-mobile-placeholder p {
        color: #001A52;
        text-align: center;
        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: 1.5;
        padding-top: 16px;
        padding-bottom: 16px;
        border-top: 1px solid #f1f5f9;
    }
}