.utilities_wrapper {
    padding: 50px 0 30px 0;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
}

.utility_items {
    display: flex;
    gap: 30px;
}

.sort_btns,
.sort_tabs_btns {
    display: flex;
    gap: 10px;
}
.sort_btns.mobile{
    display: none;
}

.categories_btn {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.btn_text.mobile {
    display: none;
}

.btn_text {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    color: var(--dark-txt);
    transition: color 0.3s ease;
}

.categories_btn,
.sort_btn,
.sort_tab_btn {
    border-radius: 14px;
    padding: 14px 20px;
    height: 50px;
    background: rgba(14, 40, 56, 0.24);
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.categories_btn:hover {
    background-color: var(--acsent);
}

.sort_btn {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.sort_btn:hover {
    background-color: var(--dark-blue);
}

.sort_btn:hover .btn_text {
    color: var(--acsent);
}



.sort_btn:hover .utility_icon {
    filter: invert(62%) sepia(67%) saturate(567%) hue-rotate(323deg) brightness(101%) contrast(96%);
}

.sort_btn.active {
    background-color: var(--dark-blue);
}

.sort_btn.active .btn_text {
    color: var(--acsent);
}

.sort_btn.active .utility_icon {
    filter: invert(62%) sepia(67%) saturate(567%) hue-rotate(323deg) brightness(101%) contrast(96%);
}

.sort_tab_btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sort_tab_btn:hover {
    background-color: var(--acsent);
}

.sort_tab_btn:hover .btn_text {
    color: var(--black);
}

.sort_tab_btn.active {
    background-color: var(--acsent);
}

.sort_tab_btn.active .btn_text {
    color: var(--black);
}


.tabs_container {
    display: flex;
    gap: 30px;
    margin-bottom: 100px;
}

.tabs_container {
    flex-direction: column;
}

.tab_item {
    flex: 1;
    display: flex;
    gap: 20px;
}

.tab_btn {
    cursor: pointer;
    flex: 0 0 610px;
    position: relative;
}

.tab_item.active .tab_btn_text {
    opacity: 1;
    font-size: 54px;
}

.tab_btn_text {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 34px;
    color: var(--dark-blue);
    opacity: 0.34;
    line-height: 60px;
    transition: opacity 0.3s ease;
}

.tab_content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}
.tab_content strong{
    font-family: var(--second-family);
    font-weight: 700;
    font-size: 17px;
    line-height: 188%;
    color: var(--dark-blue);
    animation: fade 0.3s ease;
}
.tab_content h3{
    font-family: var(--second-family);
    font-weight: 700;
    font-size: 22px;
    line-height: 188%;
    color: var(--dark-blue);
    animation: fade 0.3s ease;
}
.tab_content ul {
    margin-bottom: 0;
    animation: fade 0.3s ease;
}
.tab_content ol {
    margin:  0 0 0 20px;
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    gap: 10px;
}
.tab_content ul li,
.tab_content ol li{
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 17px;
    line-height: 188%;
    color: var(--dark-blue);
    animation: fade 0.3s ease;
}
.tab_item.active .tab_content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 100%; 
    opacity: 1;
}

.faq-block{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.faq-block h2{
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 34px;
    color: var(--dark-blue);
    line-height: 60px;
    text-align: center;
}
.faq-block h3{
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 24px;
    color: var(--dark-blue);
    line-height: 60px;
}
.faq-answer p{
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 17px;
    line-height: 188%;
    color: var(--dark-blue);
    animation: fade 0.3s ease;
}
.faq-answer p strong{
    font-family: var(--second-family);
    font-weight: 700;
    font-size: 17px;
    line-height: 188%;
    color: var(--dark-blue);
    animation: fade 0.3s ease;
}
.tab_pane {
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 17px;
    line-height: 188%;
    color: var(--dark-blue);
    animation: fade 0.3s ease;
}
.tab_pane strong{
    font-family: var(--second-family);
    font-weight: 700;
    font-size: 17px;
    line-height: 188%;
    color: var(--dark-blue);
    animation: fade 0.3s ease;
}
.tab_pane a, .tab_content a, .faq-answer p a{
    color: #a15840;
    font-weight: 600;
}
.filters-modal {
    position: absolute;
    top: 110px;
    left: 0;
    width: 100%;
    display: none;
    z-index: 9999;
}
.filters-close_wrapper{
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background-color: #061b28;
    position: absolute;
    right: 0;
    margin: 15px;
    display: none;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.filters-close {
    border: 2px solid var(--acsent);
    border-radius: 6px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.filters-close span {
    position: absolute;
    background-color: var(--acsent);
    width: 16px;
    height: 2px;
    border-radius: 2px;
    display: block;
    transition: transform 0.3s ease;
}

.filters-close span:first-child {
    transform: rotate(45deg);
}

.filters-close span:last-child {
    transform: rotate(-45deg);
}

.filters-close:hover{
    border: 2px solid #061b28;
}

.filters-close:hover span {
    background-color: #061b28;
}
.filters-nav{
    position: relative;
}
.child_list {
    list-style: none;
    display: none;
    gap: 15px 30px;
    flex-wrap: wrap;
    padding: 20px;
    margin: 0;
}

.child_list.active {
    display: flex;
    position: absolute; 
    left: 236px;       
    top: 35px;
    flex-direction: row;
    width: calc(100% - 256px);
}

.filters-group-title.active{
    color: var(--acsent);
}
.filters-group-title.active::before{
    content: '';
    position: absolute;
    background-color: var(--acsent);
    left: -88%;
    top: 50%;
    width: 100%;
    height: 2px;
}

.filters-groups{
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px 0;
    width: 236px;
    background: var(--dark-blue);

    /* position: relative; */
}
.filters-group{
    display: flex;
    overflow:hidden;
    flex: 1;
}
.filters-group-title{
    flex: 0 0 236px;
    display: flex;
    align-items: center;
    background-color: var(--dark-blue);
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 28px;
    color: var(--white);
    cursor: pointer;
    padding: 15px 20px 15px 40px;
    position: relative;
}
.filters-modal.active {
    display: flex;
}

.filters-overlay {
    display: none;
    flex: 1;
    background: #1c4a66bd;
}

.filters-content {
    background: #0a1a25;
    color: #fff;
    max-height: 500px;
    width: 100%;
    border-radius: 30px;
    overflow-y: auto;
    position: relative;
}
.child_item_link{
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 17px;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}
.child_item_link:hover{
    color: var(--acsent);
}

.filters-close_wrapper:hover{
    background-color: var(--acsent);

}
.sub_menu_category_wrapper{
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}
.sub_menu_category{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-height: 45px;
   
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    position: relative;
}
.sub_menu_category_item{
    background-color: var(--acsent);
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
}
.sub_menu_item_link{
    margin: 10px;
    color: #061b28;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 500;
}

.sub_category_btn{
    display: none;
}
.sub_category_btn.has-overflow{
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    width: 30px;
    height: 20px;
    display: flex;

}
.sub_category_btn.has-overflow img{
    transform:  rotate(-90deg);
    filter: invert(71%) sepia(67%) saturate(322%) hue-rotate(315deg) brightness(103%) contrast(98%);

}
.sub_category_btn.has-overflow.open img{
    transform:  rotate(90deg);
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.map_wrapper{
    max-width: 1290px;
    margin: 70px auto 0 auto;
    height: 340px;
    background: #0E28383D;
    padding: 20px;
    border-radius: 50px;
}
.map_element{
    height: 100%;
    width: 100%;
    border-radius: 40px;
}
@media (max-width: 1170px) {


    .tab_btn {
        cursor: pointer;
        flex: 0 0 410px;
        position: relative;
    }



    .tabs_container {
        margin-bottom: 70px;
        gap: 20px;
    }



}

@media (max-width: 960px) {

    .utility_items {
        flex: 1 1 100%;
        justify-content: center;
    }

    .utilities_wrapper {
        justify-content: center;
    }
    

}

@media (max-width: 930px) {

    .tab_item {
        flex-direction: column;
    }

    .tab_btn {
        flex: none;
    }

    .tab_btn_text {
        font-size: 32px;
    }


    .tabs_container {
        margin-bottom: 50px;
        gap: 10px;
    }

    .utilities_wrapper {
        gap: 10px;
        padding: 20px 0 ;
    }
    .tab_item.active .tab_btn_text {
        opacity: 1;
        font-size: 44px;
    }

}

@media (max-width: 725px) {
    .categories_btn .btn_text {
        display: none;
    }

    .filters-modal{
        height: 100%;
        flex-direction: row-reverse;
        top: 0;
    }
    .sort_btns {
        display: none;
    }

    .sort_btns.mobile {
        display: flex;
        flex-wrap: wrap;
        padding: 15px;
    }
    .sort_btns.mobile .sort_btn{
        flex: 1 1 47%;
        background-color: #1c4a66bd;
        gap: 5px;
    }
    .sort_btns.mobile .sort_btn:hover{
        background-color: var(--acsent);
    }
    .sort_btns.mobile .btn_text{
        color: var(--white);
    }
    .sort_btns.mobile .utility_icon {
        filter: brightness(0) invert(1);
    }

    .btn_text.mobile {
        display: block;
    }
    .utilities_wrapper{
        position: initial;
    }
    .filters-close_wrapper{
        display: flex;
    }
    .filters-overlay{
        display: block;
    }
    .child_list.active{
        position: inherit;
        flex-direction: column;
        width: 100%;
        text-align: left;
        max-height: 200px;
        overflow: auto;
        flex-wrap: nowrap;
    }
    .filters-groups{
        background-color: inherit;
        padding:  0 0 15px 0;
    }
    .filters-group {
        flex-direction: column;
        flex: none;
    }
    .filters-group-title{
        flex: none;
        padding: 5px 0 5px 20px;
        background-color:inherit;
    }
    .filters-group-title::before{
        display: none;
    }
    .child_list.active{
        padding: 5px 0 5px 40px;
    }
      
    .filters-content {
        width: 100%;
        max-width: 80%;
        height: 100vh;
        min-width: 240px;
        left: 0;
        position: inherit;
        border-radius: 0;
        max-height:100%
    }
    .child_item_link{
        font-size: 15px;
    }
}

/* Category Hubs Grid (for parent categories with children) */
.category_hubs_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 40px 0;
}

.category_hub {
    display: block;
    padding: 24px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(14, 40, 56, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
}

.category_hub:hover {
    background: rgba(251, 141, 105, 0.1);
    border-color: rgba(251, 141, 105, 0.4);
}

.hub_content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hub_name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    flex: 1;
}

.hub_count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    min-width: 30px;
    text-align: right;
}

@media (max-width: 560px) {
    .tab_btn_text {
        font-size: 24px;
    }


    .tab_pane {
        font-size: 15px;
    }


    .tabs_container {
        margin-bottom: 40px;
        gap: 0;
    }

    .category_hubs_grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }


}
@media (max-width: 420px) {
    .filters-content{
        max-width: 240px;
    }
    .sort_btns.mobile .btn_text {
        font-size: 15px;
    }
    .tab_item.active .tab_btn_text {
        opacity: 1;
        font-size: 32px;
    }
    .child_item_link{
        font-size: 14px;
    }
    .child_list{
        gap: 5px;
    }

}
