:root {
    --color-secondary: #377B2E;
    --color-primary: #EE3523;
    --gray-backgroud: #F8F5F5;    
    --testimonial-background: #67BD5C
}

body {
    font-family: "Assistant", sans-serif;
    font-optical-sizing: auto;    
    font-style: normal;    
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23414651' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.navbar-toggler {
    border: none;
    box-shadow: none;
}
.navbar-toggler:focus {
    box-shadow: none;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='%23EE3523' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


.fs-16 {font-size: 16px;}
.fs-18 {font-size: 18px;}
.fs-20 {font-size: 20px;}
.fs-24 {font-size: 24px;}
.py-60 {padding-top: 60px; padding-bottom: 60px;}
.pt-60 {padding-top: 60px;}
.py-100 {padding-top: 100px; padding-bottom: 100px}
.my-100 {margin-top: 100px; margin-bottom: 100px;}
.mb-60 {margin-bottom: 60px;}
.my-60 {margin-top: 60px; margin-bottom: 60px;}
.negative-80 {margin-top: -80px}
.rounded-15 {border-radius: 15px;}
.border-radius-top-right{border-top-right-radius: 15px;} 
.border-radius-bottom-right {border-bottom-right-radius: 15px;}
.border-radius-top-left {border-top-left-radius: 15px;} 
.border-radius-bottom-left {border-bottom-left-radius: 15px;}
h1 {font-size: 76px}
.btn {border-radius: 30px; }
.btn-primary, .btn-primary:visited, .btn-primary:hover {color: #fff;}
.hero {
    position: relative;
}

.hero-angle {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}
.rounded-navbar {border-radius: 50px; background: var(--gray-backgroud)}
.bg-primary-gradient {background: linear-gradient(91.92deg, rgba(55, 123, 46, 0) 31.75%, #377B2E 60.4%);}
.bg-gray {background-color: #F2F3F4;}
/*.dark-gradient {background: linear-gradient(90deg, #161617 0%, #3B3B3B 44.72%, rgba(73, 73, 74, 0) 63.05%, rgba(102, 102, 102, 0) 100%);}*/
.dark-gradient {
    background: #161617;
    overflow: hidden;
}

.dark-gradient .row {
    align-items: stretch;
}

.dark-gradient .content-col {
    background: #161617;
    position: relative;
    z-index: 3;
}

.dark-gradient .image-col {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.dark-gradient .image-col img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* This is the actual blend between the columns */
.dark-gradient .image-col::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 220px; /* adjust until it matches the figma */
    height: 100%;
    z-index: 2;
    pointer-events: none;

    background: linear-gradient(
        90deg,
        #161617 0%,
        #3B3B3B 35%,
        rgba(73, 73, 74, 0) 100%
    );
}

.green-gradient {
    background: linear-gradient(0deg, #1FAF38 0%, #60D669 100%);
    color: #194114;
    border: none;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-weight: 600;
}

.green-gradient img {
    width: 18px;
    height: 18px;
}



.dark-text {color: #161617;}

.hp-hero {background-image: url('../images/homepage_hero.jpg'); background-size: contain; background-repeat: no-repeat;}
.about-hero {background-image: url('../images/about_hero.jpg'); background-size: contain; background-repeat: no-repeat;}
.our-products-hero{background-image: url('../images/our-products-hero.jpg'); background-size: contain; background-repeat: no-repeat;}
.equipment-rent-hero {background-image: url('../images/equipment-rent.jpg'); background-size: contain; background-repeat: no-repeat;}
.faq-hero {background-image: url('../images/FAQs.jpg'); background-size: contain; background-repeat: no-repeat;}
.blog-hero {background-image: url('../images/Blog.jpg'); background-size: contain; background-repeat: no-repeat;}

.horizontal-contact {position: relative; top: -2px;}
/*
.hp-hero {position: relative; overflow: hidden;}


.hp-hero::before {content: ""; position: absolute; left: 0; top: 0; width: 55%; height: 100%; background-image: url('../images/homepage-hero-large.jpg');
    background-size: cover; background-position: left center; background-repeat: no-repeat; z-index: 0;}


.hp-hero .container { position: relative; z-index: 2;}
*/

/** CONTACT FORM **/
.contact-form label {color:#161617 }
input[type="text"], input[type="email"], input[type="tel"], .risu-contact-form .form-control {
    background-color: #ffffff;
    height: 50px;
    border-radius: 50px;
    padding: 0 20px;
}


/* Placeholder styling */
.risu-contact-form .form-control::placeholder {
    color: #636771;
    font-size: 16px;
}

/* Make column relative */
.risu-contact-form .col-md-3:last-child {
    position: relative;
}

/* Remove layout impact */
.risu-contact-form .wpcf7-spinner {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

.section-diagonal-bottom{
  position: relative;
  overflow: hidden;
}

/* leave room for cutout */
.section-diagonal-bottom{
  padding-bottom: calc(clamp(40px, 1vw, 110px));
}

.section-cutout{
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  line-height: 0;
  pointer-events: none;
}

.section-cutout svg{
  display: block;
  width: 100%;
  height: clamp(60px, 6vw, 110px);
}

input {direction: rtl;text-align: right;}
input[type="submit"] {height: 50px; background-color: var(--color-primary); color: #fff; border-radius: 30px}
.contact-textarea {border-radius: 16px}

/* Position the submit button inside the bottom-left of the textarea (RTL aware!) */
.contact-submit-btn {
    position: absolute;
    bottom: 15px;
    left: 20px; /* RTL: left = bottom-left corner */
    z-index: 5;
    border-radius: 30px;  
    min-width: 150px;
}




/** END OF CONTACT FORM **/

.pill {border: 1px solid #D7DFE5; border-radius: 30px; color: #161617; font-size: 16px; text-align: center; padding: 3px 12px; display: inline-block; line-height: normal}
.section-divider-between{
  line-height: 0;
}

.section-divider-between svg{
  display: block;
  width: 100%;
  height: clamp(48px, 6vw, 110px);
}
.green-top-divider svg {
    height: clamp(48px, 6vw, 102px);
    width: 100%;
    display: block;
}
.breadcrumb {
    direction: rtl;
    justify-content: flex-start;
}

.breadcrumb-item + .breadcrumb-item::before {
    float: right;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.breadcrumb-item.active {
    color: var(--bs-primary);
}
.general-details-list {
    padding: 0;
    margin: 0;
}

.general-details-item {
    position: relative;
    padding-right: 16px; /* RTL spacing */
    margin-bottom: 12px;
}

.general-details-item::before {
    content: "";
    position: absolute;
    right: 0; /* RTL */
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #67BD5C;
}

/**** SINGLE PRODUCT CAROUSEL **/
.carousel-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}
.single-product-images-carousel-wrapper{
    position: relative;
    padding-right: calc((100vw - 1320px) / 2);
    padding-left: 0;
}

.single-product-gallery-item {
    width: 360px;   /* controls peek */
    padding: 0 12px;    
}

.carousel-dots-wrapper {
    display: flex;
    justify-content: center;
}

.carousel-dots {
    display: flex;
    gap: 12px;
}

.carousel-dot {
    height: 8px;
    width: 32px;
    background-color: #377B2E4D;
    border-radius: 999px;
    transition: width 0.25s ease, background-color 0.25s ease;
    cursor: pointer;
}

.carousel-dot.is-active {
    width: 56px;
    background-color: var(--bs-secondary);
}

.white-dots .carousel-dot.is-active {    
    background-color: var(--bs-primary) !important;
    
}

.white-dots .carousel-dot {background-color: #f2f2f2 !important;}

/** END OF SINGLE PAGE CAROUSEL **/

/** SINGLE PAGE OTHER RPODUCTS **/

.product-card-wrapper {
    width: 350px;
    height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.product-slide {
    height: 100%;    
}

.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;    
    padding: 0 12px;    
}

.testimonial-slide {width: auto;}
.testimonial-slide .card {
    min-width: 300px;
    max-width: 420px;
}
.testimonial-slide .card-body {
    min-height: 316px;
}
.accordion-button::after{display:none;}
.accordion-button {text-align: right;}
.accordion-item {border-top: none; border-right: none; border-left: none;}


.article-post-card {
    border-bottom: 4px solid #67BD5C;
    padding-bottom: 20px;
}

.article-post-card h4 {
    font-size: 20px;
}

.article-post-card p {
    font-size: 18px;
    color: #6c757d;
}

.post-card-image img {
    display: block;
}

.read-more {
    color: #161617;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: none;
}

.contact-overlay-image {
    position: relative;
    background-image: url('../images/contact-overlay.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 500px;
}

/* Gradient overlay */
.contact-overlay-image::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        #161617 0%,
        #3B3B3B 42.22%,
        rgba(102,102,102,0) 100%
    );

    z-index: 1;
}

/* Ensure content sits above overlay */
.contact-overlay-image .row {
    position: relative;
    z-index: 2;
}
.location-row {
    direction: rtl; /* keeps map visually on the right in Hebrew layout */
}

/* circular map */
.map-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.map-circle iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* address line */
.location-address span {
    font-size: 15px;
}

/* GALLERY */
.masonry-grid {
    margin-top: 40px;
}

.masonry-item {
    width: 33.333%;
    padding: 8px;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.filter-action-btn {
        display: flex;
        align-items: center;
        gap: 6px;

        background: none;
        border: none;
        padding: 8px 10px;

        font-size: 14px;
        cursor: pointer;
    }

    .filter-action-btn img {
        width: 20px;
        height: 20px;
    }

    /* Optional: make clear button subtle */
    .clear-btn {
        color: #999;
    }

/** PRODUCT FILTERS ************/

.product-filters {
    background: #fff;
    padding: 16px 20px;
    border: 1px solid #D7DFE5;
    border-radius: 100px;
    height: 80px;
    align-items: center;
}



/* group */
.filters-group {
    gap: 20px;
}

/* each item */
.filter-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* label */
.filter-item label {
    font-weight: 600;
    font-size: 18px;
    color: #161617;
    margin-bottom: 4px;
}

/* select */
.filter-item select {
    border: none;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    line-height: 1.2;
}

/* separator */
.filter-separator {
    width: 1px;
    height: 40px;
    background: #D7DFE5;
    margin: 0 10px;
}
.filters-group .filter-separator:last-child {
    display: none;
}
.filter-action-btn:active {
    opacity: 0.6;
}

.filter-dot {
    width: 6px;
    height: 6px;
    background: red;
    border-radius: 50%;
    display: inline-block;
}

.filter-item-dropdown {
    position: relative;
}

.filter-group-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: 8px 12px;
}

/* hidden by default */
.filter-options {
    display: none;

    position: absolute;
    top: 100%;
    right: 0;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;

    padding: 10px;
    min-width: 180px;

    z-index: 999;
}

/* active state */
.filter-item-dropdown.active .filter-options {
    display: block;
}

/* checkbox styling */
.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
filter-checkbox-label span {font-size: 16px;}

.active-filters {
    align-items: center;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 10px;
    border-radius: 20px;

    background: #f1f1f1;
    font-size: 14px;
    text-decoration: none;
    color: #333;
}

.filter-pill .remove {
    font-weight: bold;
    cursor: pointer;
}

.filter-pill:hover {
    background: #e5e5e5;
}

.filter-pill.clear-all {
    background: transparent;
    color: #999;
}
.filter-pill {
    direction: rtl;
    transition: all 0.2s ease;
}



@media (min-width: 768px) {
    .filter-submit {
        flex: 0 0 140px; /* FIXED width */
        max-width: 140px;
    }

    .filter-submit .btn {
        width: 100%;
    }    
    .filters-group {
        flex: 1 1 auto;
        min-width: 0;
    }

    .filter-item {
        min-width: 0;
    }

    .filter-item select {
        width: 100%;
    }
    
    

}

    


/**** END OF PRODUCT FILTERS ******/



@media (max-width: 991px) {
    .masonry-item {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .masonry-item {
        width: 100%;
    }
}

@media (max-width: 1199.98px) {
 
    .hot-jobs-carousel-wrapper {
        padding-right: calc((100vw - 960px) / 2);
    }
}

@media (max-width: 787px){
    h1 {font-size: 56px;}
    h4 {font-size: 28px;}
    label {font-size: 18px;}
    .hero-content img {max-width: 250px;}
    /*
    .dark-gradient {
        background: linear-gradient(180deg, #161617 0%, #3B3B3B 70.72%, rgba(73, 73, 74, 0) 100.0%);
    }
    */
    .dark-gradient .row {
        flex-direction: column;
    }

    .dark-gradient .image-col::before {

        left: 0;
        top: auto;
        bottom: 0;

        width: 100%;
        height: 120px; /* adjust visually */

        background: linear-gradient(
            180deg,
            rgba(22,22,23,0) 0%,
            rgba(22,22,23,0.6) 50%,
            #161617 100%
        );
    }

    .dark-gradient .image-col img {
        height: auto;
    }
    
    

    .advantage-box h4 {font-size: 24px;}
    .white-dots {padding-right: 15px;}
    .contact-overlay-image::before {
        background: linear-gradient(
            180deg,
            #161617 0%,
            #3B3B3B 35.22%,
            rgba(102,102,102,0) 100%
        );

        z-index: 1;
    }
    .green-top-divider svg {
        height: 21.5px;
        width: 100%;
        display: block;
        position: relative; 
        bottom: -1px;
    }
    .hero-angle svg {height: 45px;}
    .rounded-navbar {border-radius: 0; background-color: #fff; border: none;}    
    .equipment-rent-hero {background-size: cover}
    .our-products-hero{background-size: cover; }
        
    
    #filtersWrapper {
        display: none;
        width: 100%;
        height: auto;        
        overflow-y: auto;
        max-height: 80vh;
    }

    #filtersWrapper.active {
        display: block;
    }
    .filter-submit {
        position: sticky;
        bottom: 0;
        background: #fff;
        padding-top: 10px;
    }
    
    .product-filters {
        display: flex;
        flex-direction: column;

        /* instead of height: 100% */
        height: auto;
        min-height: 100%;
        border: none !important;
        box-shadow: none !important;
    }

    .filters-group {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        overflow: visible;
    }

    .filter-item {
        width: 100%;
        border: none !important;
        margin-bottom: 10px;
    }
    
    .filter-item:not(:last-child) {
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }

    .filter-item select {
        width: 100%;
    }

    .filter-submit {
        width: 100%;
    }

    .filter-submit button {
        width: 100%;
    }

    .filter-separator {
        display: none;
    }
    
    
    
}