.wp-site-blocks{
    background-color: var(--wp--preset--color--off-white);
}
.block-search-page #search-box .search-form-box .search-form{
    width: 100%;
    position: relative;
    margin-bottom: 64px;
    display: flex;
}
.block-search-page #search-box {
    display: inline-flex;
    align-items: start;
    justify-content: start;
    gap: 12px;
    width: 100%;
}
.block-search-page .page-article .global-button.global-button-transparent.button-arrow-transparent {
    position: absolute;
    padding: 16px;
    width: 320x;
    margin-left: -16px;
    bottom: 16px;
}
.block-search-page .page-article .title-page::after,
.block-search-page .page-article .text-link::after {
    content: none !important; 
    display: none !important; 
}
.block-search-page .news-article .textbox{
    color: var(--wp--preset--color--primary);
    margin-bottom: 16px;
}

.block-search-page .news-article .textbox p {
    margin-bottom: 16px;
}
.block-search-page .news-article .news-image::after {
    content: none !important; 
    display: none !important; 
}

.global-button.global-button-transparent.button-arrow-transparent {
    padding: 16px;

}
.block-search-page #search-box .search-submit {
    display: flex;
    padding: 0 128px;
    -webkit-border-radius: 40px;
    -moz-border-radius: 40px;
    border-radius: 40px;
    border: 2px solid var(--wp--preset--color--primary);
    justify-content: center;
}
.block-search-page .title-button{
    margin-right: 60px;
}
.block-search-page #search-box .search-form-box .search-form .search-field{
    width: 100%;
    height: 100%;
    line-height: 128px;
    padding:0 48px;
    box-sizing: border-box;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
    border-radius: 40px;
    border: 2px solid #000;
    color: #000;
    font-size: 36px;
    font-weight: 700;
    background-color: transparent;
    background: #FFF;
}
.block-search-page #search-box .search-form-box .search-form label{
    width: 100%;
    position: relative;
    height: 128px;
    display: block;
}
.block-search-page #search-box .search-submit:hover {
    color: var(--wp--preset--color--background);
    background-color: var(--wp--preset--color--primary);
}
.block-search-page .button-arrow.white {
    position: absolute;
    top: 36px;
    right: 36px;
}
.block-search-page .tab{
    display: none;
}
.block-search-page .tab.tab-active{
    display: block;
}
.block-search-page .search-block{
    padding: 48px 0;
}
.block-search-page  .title-button{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}
.block-search-page  .title-button h2{
    color: #0D0D0D;
    font-size: 56px;
    font-weight: 700;
    line-height: 118.75%;
}
.block-search-page .page-list{
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}
.block-search-page .page-list .page-article {
    display: flex;
    padding: 48px;
    box-sizing: border-box;
    flex-direction: column;
    border-radius: 40px;
    position: relative;
    height: auto;
    min-height: 446px;
    border: 2px solid #D3D5D6;
    background: var(--wp--preset--color--dirty-white);
    flex: 0  0 calc(33.3333% - 48px);
}
.block-search-page .page-list .page-article .title-page {
    color: #0D0D0D;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 24px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}
.block-search-page .page-article .text-link {
    color: #232936;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 64px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.5em* 3);
}
.block-search-page .arrow-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background-image: url('../../assets/images/arrow-right-orange.png');
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    right: 18px;
    top: 18px;
    border-radius: 12px;
    box-sizing: border-box;
    background-color: #FAFAFA;
}
.block-search-page .news-search{
    background: #fff;
    position: relative;
    width: 100vw;
    left: calc((-100vw + (var(--wp--style--global--content-size) * 2)) / 2);
}
.block-search-page .press-list,
.block-search-page .news-list{
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}
.block-search-page .news-article{
    display: flex;
    width: 31%;
    height: auto;
    box-sizing: border-box;
    flex-direction: column;
    position: relative;
}
.block-search-page .news-article .news-image {
    border-radius: 40px;
    margin-bottom: 16px;
    overflow: hidden;
    height: 430px;
}
.block-search-page  .news-article .news-image img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.block-search-page .news-article .textbox p{
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
  }
.block-search-page .news-article .title {
    padding-left: 0;
    font-size: 40px;
    font-weight: 700;
    color: #000;
    margin-bottom: 32px;
}
.block-search-page .search-no-resault,
.block-search-page  .search-title{
    color: #0D0D0D;
    font-size: 56px;
    font-weight: 400;
    margin-bottom: 96px;
}
.block-search-page .search-tabs{
    padding-bottom: 32px;
    display: flex;
    list-style: none;
}

.block-search-page .search-tab {
    margin-right: 32px;
    position: relative;
    display: inline-flex;
    padding: 24px 64px;
    border: 2px solid;
    border-radius: 40px;
    border-color: var(--wp--preset--color--grey);
    cursor: pointer;
    align-items: center;
    width: fit-content;
    overflow: hidden;
    z-index: 1;
    transition: color 0.5s ease, background-color 0.5s ease;
}
.block-search-page .search-tab .title{
    color: #0D0D0D;
    font-size: 32px;
    line-height: 144.444%;
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
}
.block-search-page .search-tab .tabno{
    color: var(--wp--preset--color--dark-blue);
 
    font-size: 32px;
    font-weight: 700;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
}
.block-search-page .search-tab.active .tabno{
    color: var(--wp--preset--color--off-white);
}


.block-search-page #search-box .search-submit {
    min-width: 300px;
    padding: 24px 48px;
    -webkit-border-radius: 40px;
    -moz-border-radius: 40px;
    border-radius: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    line-height: 48px;
    text-decoration: none;
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--wp--preset--color--primary);
    background-color: var(--wp--preset--color--background);
    color: var(--wp--preset--color--primary);
    z-index: 1;
    margin-left: 32px;
}
.block-search-page .search-form-box{
    width: 100%;
}
/* EFECT DE HOVER PE BUTON */
.block-search-page .search-tab {
    position: relative;
    display: inline-flex;
    padding: 24px 64px;
    border: 2px solid;
    border-radius: 40px;
    border-color: var(--wp--preset--color--grey);
    cursor: pointer;
    align-items: center;
    width: fit-content;
    overflow: hidden;
    z-index: 1;
    transition: color 0.5s ease, background-color 0.5s ease;
}

.block-search-page .search-tab:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--wp--preset--color--primary); 
    transition: width 0.5s ease;
    z-index: -1;
}

.block-search-page .search-tab:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--wp--preset--color--light-grey);
    z-index: -2;
}

.block-search-page .search-tab .tabno {
    margin-right: 16px;
    transition: color 0.5s ease;
}

.block-search-page .search-tab .title {
    color: #000; 
    font-size: 32px; 
    font-style: normal;
    font-weight: 500;
    transition: color 0.5s ease;
}

/* Efectul de hover pentru umplere */
.block-search-page .search-tab:hover:before {
    width: 100%; /* Umplere completă la hover */
}
.block-search-page .search-tab.active .title{
    color: #fff;
}
.block-search-page .search-tab:hover .title,
.block-search-page .search-tab:hover .tabno img {
    color: #fff; 
    filter: brightness(0) invert(1); 
}
/* Stilurile de bază rămân aceleași */

/* Stilul pentru starea activă */
.block-search-page .search-tab.active {
color: #fff; /* Textul devine alb */
}

.block-search-page .search-tab.active:before {
width: 100%; 
background-color:var(--wp--preset--color--primary);
}

.block-search-page .search-tab.active .text-button,
.block-search-page .search-tab.active .icon img {
color: #fff; 
filter: brightness(0) invert(1); 
}

/* SFARSIT EFECT HOVER BUTTON */

@media only screen and (max-width: 3000px) {
    
    .block-search-page .button-arrow.white{
        position: absolute;
        top: 18px;
        right:18px;
    }
    .block-search-page .search-form-box {
        width: 100%;
    }
    .block-search-page #search-box .search-form-box .search-form{
        margin-bottom: 32px;
    }
    .block-search-page #search-box {
        display: inline-flex;
        align-items: start;
        justify-content: start;
        gap:12px;
        width: 100%;
    }
    .block-search-page .global-button.global-button-transparent.button-arrow-transparent{
        cursor: pointer;
    }

    .block-search-page #search-box .search-submit:hover {
        color: var(--wp--preset--color--background);
        background-color: var(--wp--preset--color--primary);
    }
    .block-search-page #search-box .search-submit {
        min-width: 150px;
        padding: 12px 24px;
        -webkit-border-radius: 20px;
        -moz-border-radius: 20px;
        border-radius: 20px;
        font-size: 16px;
        line-height: 24px;
        border: 1px solid var(--wp--preset--color--primary);
        margin-left: 16px;
    }
    .block-search-page .title-button{
        margin-right: 30px;
    }
    .block-search-page #search-box .search-form-box .search-form .search-field{
        width: 100%;
        line-height: 64px;
        padding: 0 24px;
        box-sizing: border-box;
        -moz-border-radius: 8px;
        border-radius: 20px;
        border: 1px solid #000;
        font-size: 18px;
        border: 1px solid var(--wp--preset--color--light-grey);
        background: #FFF;
    }
    .block-search-page #search-box .search-form-box .search-form label:before{
        width: 24px;
        height: 24px;
        left: 24px;
        top: 20px;
    }
    .block-search-page #search-box .search-form-box .search-form label{
        height: 64px;
        width: 100%;
        margin-right: 16px;
    }
    .block-search-page .news-search{
        left: calc((-100vw + var(--wp--style--global--content-size)) / 2);
    }
    .block-search-page .page-article .text-link {
        color: var(--wp--preset--color--dark-blue);
        font-size: 16px;
        font-weight: 400;
        margin-bottom: 32px;
    
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: calc(1.5em * 3);
    }
    
    .block-search-page .page-article .global-button.global-button-transparent.button-arrow-transparent{
      position: absolute;
    padding: 8px;
      width: 160px;
      margin-left: -8px;
      bottom: 8px;
    }
    .block-search-page .page-list{
        gap: 24px;
    }
    .block-search-page .page-list .page-article {

                height: auto;
                min-height: 223px;
                padding: 24px;
                border-radius: 20px;
                border: 1px solid var(--wp--preset--color--grey);
                background: var(--wp--preset--color--dirty-white);
                flex: 0  0 calc(33.3333% - 24px);
    }
    .block-search-page .page-list .page-article .title-page {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 12px;
        
        display: -webkit-box; 
        -webkit-box-orient: vertical; 
        -webkit-line-clamp: 2; 
        overflow: hidden; 
        text-overflow: ellipsis; 
        line-height: 1.2em;
    }
    
    .block-search-page .news-article .news-image{
        border-radius: 12px;
        margin-bottom: 8px;
        height: 215px;
    }
    .block-search-page .news-article .textbox p {
        margin-bottom: 8px;
    }
    .block-search-page .arrow-link {
        width: 56px;
        height: 56px;
    }
    .block-search-page  .title-button{
        margin-bottom: 30px;
    }
    .block-search-page  .title-button h2{
        font-size: 28px;
    }
    .block-search-page .news-article{
        height: auto;
        
    }
    .block-search-page .news-article .title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    .block-search-page .search-tabs{
        padding-bottom: 16px;
    }
    .block-search-page .search-no-resault,
    .block-search-page  .search-title{
        font-size: 28px;
        margin-bottom: 48px;
    }
    .block-search-page .search-tab {
        margin-right: 16px;
        padding: 12px 16px;
        border: 1px solid var(--wp--preset--color--grey);
        border-radius: 20px;
    }
    .block-search-page .search-tab .title{
        font-size: 18px;
    }
    .block-search-page .search-tab .tabno{
        font-size: 12px;
        width: 24px;
        height: 24px;
        margin-left: 8px;
    }

/* EFECT DE HOVER PE BUTON */
    .block-search-page .search-tab {
        position: relative;
        display: inline-flex;
        padding: 12px 32px;
        border: 1px solid;
        border-radius: 20px;
        border-color: var(--wp--preset--color--grey);
        cursor: pointer;
        align-items: center;
        width: fit-content;
        overflow: hidden; 
        z-index: 1;
        transition: color 0.5s ease, background-color 0.5s ease;
    }
    
    .block-search-page .search-tab:before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 100%;
        background-color: var(--wp--preset--color--primary);
        transition: width 0.5s ease;
        z-index: -1;
    }
    
    .block-search-page .search-tab:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--wp--preset--color--light-grey);
        z-index: -2;
    }
    
    .block-search-page .search-tab .tabno {
        margin-right: 8px;
        transition: color 0.5s ease;
    }
    
    .block-search-page .search-tab .title {
        color: var(--wp--preset--color--dark-blue);
        font-size: 16px; 
        font-style: normal;
        font-weight: 500;
        transition: color 0.5s ease;
    }
    
    /* Efectul de hover pentru umplere */
    .block-search-page .search-tab:hover:before {
        width: 100%; 
    }
    
    .block-search-page .search-tab:hover .title,
    .block-search-page .search-tab:hover .tabno img {
        color: var(--wp--preset--color--off-white); 
        filter: brightness(0) invert(1); 
    }
/* Stilurile de bază rămân aceleași */

/* Stilul pentru starea activă */
.block-search-page .search-tab.active {
    color: var(--wp--preset--color--off-white); 
    background-color:var(--wp--preset--color--primary);
    border-color:var(--wp--preset--color--primary);
}

.block-search-page .search-tab.active:before {
    width: 100%; 
    background-color:var(--wp--preset--color--primary);
}

.block-search-page .search-tab.active .text-button,
.block-search-page .search-tab.active .icon img {
    color: var(--wp--preset--color--off-white); 
    filter: brightness(0) invert(1); 
}

    /* SFARSIT EFECT HOVER BUTTON */
}
@media only screen and (max-width: 1500px) {
    .block-search-page .news-search{
        left: -5vw;
    }
}

@media only screen and (max-width: 1200px) {
    .block-search-page .page-list .page-article {
        flex: 1 0 calc(50% - 24px);
    }
    .block-search-page .news-search {
        left: -2vw;
    }
    .block-search-page .news-article{
       flex: 0 0 calc(50% - 32px);
        
    }
    .block-search-page .press-list, .block-search-page .news-list {
        padding-left: 32px;
    }
}
@media only screen and (max-width: 850px) {
    .block-search-page .search-tabs{
        flex-direction: column;
    }
    .block-search-page #search-box {
        flex-direction: column;

    }
    .block-search-page #search-box .search-form-box .search-form{
        flex-direction: column;
    }
    .block-search-page #search-box .search-submit {
        width: 100%;
        margin: 0;
        margin-top: 24px;
    }
    .block-search-page .title-button{
        flex-direction: column;
        align-items: flex-start;
    }
    .block-search-page .title-button h2{
        margin-bottom:24px;
    }
    .block-search-page .search-tab {
        margin-right: 0;
        margin-bottom: 24px;
    }
    .block-search-page .page-list .page-article {
        width: 100%;
        flex: auto;
    }
    .block-search-page .news-article{
        width: 100%;
        height: auto;
        flex: 0 0 100%;
    }
    .block-search-page .press-list,
    .block-search-page .news-list{
       padding: 0;
    }
    
    .block-search-page .search-no-resault, .block-search-page .search-title{
        font-size: 24px;
    }
}