/*
Theme Name:         WP-Start
Theme URI:          http://selin.com.ua
Description:        A WP-Start theme by <a href="http://selin.com.ua/">Serhii Mykulyn</a>.
Version:            1.0
Requires at least:  5.0
Author:             Serhii Mykulyn
Author URI:         http://selin.com.ua
License:            GNU General Public License v2 or later
License URI:        http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:        sel_theme
*/
/* טוען את Noto Sans Hebrew מ‑Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@400;700&display=swap');

/* מגדיר שהאתר ישתמש בפונט זה */
body {
    font-family: 'Noto Sans Hebrew', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans Hebrew', sans-serif;
}



.about-section .content-wrapper {
    display: flex;
    margin-top: 40px;
    margin-bottom: 120px;
}
.about-section .content-wrapper .about-text{
    padding-right: 80px;
    padding-top: 30px;
    padding-bottom: 50px;
    padding-left: 50px;
    font-size: 16px;
}
.about-text .read-more-button {
    background: #000;
    color: #fff;
    font-weight: bold;
    width: 190px;
    display: block;
    padding-top: 15px;
    padding-bottom: 15px;
    text-align: center;
    margin-top: 50px;

}
.about-section .about-image img {
    max-width: 510px;
    height: 330px;
}
/*  */
.whySwiper {
    margin-bottom: 110px;
}
.why-choose-us .container {
    position: relative;
}
.why-choose-us .page-title{
    margin-bottom: 50px;
}
.whySwiper .swiper-slide {
    text-align: center;
}
.why-choose-us .project-popup__prev {
    right: -3%;
}
.why-choose-us .project-popup__next {
    left: -3%;
}

/**/
.testimonials .container{
    position: relative;
}
.testimonialsSwiper {
    margin-top: 50px;
    margin-bottom: 150px;
}
.testimonialsSwiper .testimonial-card {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
}
.head__sl {
    display: flex;
    justify-content: space-between;
}
.testimonials .project-popup__prev {
    right: -5%;
}
.testimonials .project-popup__next {
    left: -5%;
}

/**/
 
.tabs-nav {
    gap: 10px;
    list-style: none;
    padding: 0;
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap; /* Позволяет перенос элементов на новую строку */

}
.tab-link {
    cursor: pointer;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #000;
    list-style: none;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
}
.tabs-nav .tab-link.active{
    background: #000;
    color: #fff;
 }
/* Первые 5 элементов (первая строка) */
.tab-link:nth-child(-n+5) {
    flex: 1 0 18%; /* Примерно 5 элементов в ряд с учетом отступов */
}

/* Последние 4 элемента (вторая строка) */
.tab-link:nth-child(n+6) {
    flex: 1; /* Равномерное растягивание на всю ширину */
}
.tab-link:hover {
    background: #000;
    color: #fff;
}
.load-more-projects {
    margin:0 auto;
}
  
.projects-tabs .page-title {
    margin-bottom: 80px;
}
 

/**/
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
     .hero {
    	height: auto;
  	}
    .projects-tabs .page-title {
  		margin-bottom: 35px;
	}
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.masonry__item .masonry__item-over {
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
  
.masonry__item:hover .masonry__item-over,
.masonry__item.hovered .masonry__item-over {
    opacity: 1;
    pointer-events: auto;
}
  
.masonry__item-title {
    font-size: 48px!important;
    text-align: center;
}

.projects-wrap {
    padding-top: 20px!important;
}



/**/
@media screen and (max-width: 699px) {
    .tab-link:nth-child(n+6) {
        flex: none;
    }
    .tab-link:nth-child(-n+5) {
        flex: none;
    }
    .about-section .content-wrapper {
        flex-direction: column;
    }
    .about-section .about-image img {
        height: auto;
        max-width: 100%;
    }
    .about-section .content-wrapper .about-text {
        padding: 0px;
    }
    .why-choose-us .project-popup__prev {
        right: -1%;
    }
    .why-choose-us .project-popup__next {
        left: -1%;
    }
    .testimonials .project-popup__prev {
        right: -1%;
    }
    .testimonials .project-popup__next {
        left: -1%;
    }
}

.mfp-figure .mfp-close {
    width: 70px!important;
    text-align: center!important;
    padding: 0px!important;
    left: -1px!important;
    position: absolute!important;
    color: #333!important;
    margin-left: 0!important;
    margin-right: auto!important;
}
.project-popup__next, .project-popup__prev {
    z-index: 99999;
}

#masonry-container {
    transform: scaleX(-1); /* зеркально отразить контейнер */
}

.masonry__item {
    transform: scaleX(-1); /* отразить обратно каждый блок */
}

/*********************************** NOA'S EDITS ***********************************/

/************** general **************/

@media (min-width:1025px) {
	
	body {
		padding-top: 67px;
	}

}

/************** hp **************/

.hero {
    height: auto;
}

.projects-tabs .page-title {
    margin-bottom: 45px;
}

.home ul.tabs-nav {
    display: none;
}

.masonry__item .masonry__item-over {
    opacity: 1 !important;
    background: linear-gradient(to bottom, transparent, rgb(0 0 0 / 80%)) !important;
	padding: 50px 40px 25px 40px;
}

.masonry__item-title {
    font-size: 40px !important;
	text-shadow: 2px 2px 4px rgb(0 0 0 / 40%);
}

.masonry__item-link {
    width: 75%;
    height: 48px;
    background-color: #ffffff24;
    border: 1px solid #ffffff;
    margin: 10px auto 0 auto;
}

.masonry__item:hover {
    box-shadow: 0 0 32px rgba(0,0,0,0.39);
}





@media (min-width:1025px) {

	section.search-products {
		padding: 0;
		margin-top: -130px;
		display: block;
		z-index: 9999;
		position: relative;
	}

	section.search-products > .container {
		background-color: #ffffff !important;
		padding: 60px;
		box-shadow: 0 -10px 20px 0 rgb(0 0 0 / 5%);
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	section.search-products h2.page-title {
		padding: 0;
		margin-top: -25px;
	}

	section.search-products h2.page-title:after {
		bottom: -33px;
	}

	section.projects-tabs {
		padding-top: 180px;
	}

}

@media (min-width:1025px) and (max-width:1400px) {

	section.search-products {
		margin-top: -130px;
	}

	section.search-products > .container {
		max-width: 85%;
		gap: 20px;
	}

}

section.search-products .search_panel {
    display: block;
    position: relative;
    box-shadow: none;
}

section.search-products .search_panel .btn {
    background-image: url(https://ledplus.co.il/wp-content/themes/led-theme/assets/img/loop.png);
    background-repeat: no-repeat;
    background-size: 34px;
    background-position: center;
    background-color: #f6df00;
    color: transparent;
    border: 1px solid #000000;
    border-right: none;
}

section.search-products .search_panel input {
    box-shadow: none;
    border-left: none;
    border-width: 1px;
    outline: none !important;
}






@media (max-width:767px) {
	
	a.home-btn {
    display: none;
}
	
	div#masonry-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    height: auto !important;
    gap: 1em;
}

.masonry__item {
    width: calc(52% - 1em) !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    height: 200px !important;
}

div#masonry-container .masonry__item:last-child {
    display: none;
}

.masonry__item-over::after {
    top: 5px;
    right: 5px;
    bottom: 5px;
    left: 5px;
}

.masonry__item .masonry__item-over {
    padding: 15px;
}

.masonry__item-title {
    font-size: 22px !important;
    line-height: 1.2em;
}

.masonry__item-link {
    width: 100%;
    height: 35px;
    margin: 15px auto 0 auto;
    font-size: 14px;
}

section.search-products {
    padding-bottom: 25px;
}

section.search-products .search_panel {
    margin-top: 50px;
}

section.search-products .search_panel input {
    padding: 15px;
    height: 65px;
}

section.search-products .search_panel .btn {
    height: 65px;
    background-size: 30px;
}
	
}

/************** projects archive **************/
	
.projects {
    align-items: stretch;
}

.project-item > * {
    flex-shrink: 0;
}

.projects-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.projects-item__title,
.projects-item__descr {
    flex-grow: 1;
}

.projects-item__link {
    width: 100%;
}

.projects-item__img:hover img {
    box-shadow: 0 0 32px rgba(0,0,0,0.39);
}
	


@media (max-width:767px) {
	
ul.tabs-nav {
    position: sticky;
    margin-bottom: 10px;
}

li.tab-link {
    flex: 1 0 auto !important;
    font-size: 16px;
    padding: 8px 0;
}

    .projects {
        grid-template-columns: 1fr 1fr;
        gap: 40px 20px;
    }
	
	.projects-item__img {
        height: 130px;
    }
	
	.projects-item__title {
    font-size: 18px;
    margin-top: 18px;
    line-height: 1.2em;
}

.projects-item__descr {
        padding: 0;
    }
	
	.projects-item__descr p {
    margin: 10px 0 0 0;
}
	
	.projects-item__link {
    height: 42px;
    border: 1px solid #000;
    font-size: 15px;
	    margin: 15px auto 0;
}

}

/************** contact page **************/

.contact-page-form .contact-page__btn {
    margin: 0;
}

/************** product page **************/

.related-slider.product-project-gallery {
    margin: 50px auto 0;
}

.related-slider.product-project-gallery .related-item img {
    height: 500px;
    -o-object-fit: cover;
    object-fit: cover;
}

body.single-products .related-next,
body.single-products .related-prev {
    bottom: 40% !important;
}

.related-slider.only-one-slide .related-wrap {
  display: flex;
  justify-content: center;
}

.related-slider.only-one-slide .related-item {
  float: none;
}

@media (max-width:1025px) {

.related-slider.product-project-gallery .related-item img {
    height: 250px;
}

body.single-products .related-next,
body.single-products .related-prev {
    bottom: 25% !important;
}

}

/************** products archive **************/


@media (max-width:767px) {

    .products-items {
        grid-template-columns: repeat(2, 1fr);
    }
	
	.products__item {
    border: 1px solid #e9e9e9;
}
	
	.products__item img {
    height: 160px;
}
	
	    .catalog-items {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        justify-content: space-between;
    }
	
	.catalog__item {
    width: 48%;
    margin-bottom: 1em;
}

.catalog__item img {
    max-height: 150px;
    height: 150px;
}

.catalog__item-name {
    font-size: 15px;
    -o-text-overflow: unset;
    text-overflow: unset;
    white-space: normal;
    margin-top: 8px;
    word-break: break-word;
    padding-right: 20px;
    padding-left: 20px;
}

}



