/*
Theme Name: NL Softworks Blocks
Theme URI: https://nlsoftworks.com/
Author: NL Softworks
Author URI: https://nlsoftworks.com/
Description: A theme created by the NL Softworks team for best performance, conversions and SEO.
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 5.7
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nls-block-theme
Tags: 
*/

/* 
 * Global Styles
 * ----------------------------------------
 */
 .entry-content, 
 footer.wp-block-template-part {
     margin-block-start: 0;
 }
 
 .hidden {
     display: none !important;
 }
 
 /* 
  * Media Queries
  * ----------------------------------------
  */
 @media only screen and (min-width: 1025px) {
     .hidden-desktop {
         display: none !important;
     }
 }
 
 @media (min-width: 600px) and (max-width: 1024px) {
    .hidden-tablet {
        display: none !important;
    }
}

 @media only screen and (max-width: 599px) {
     .hidden-mobile {
         display: none !important;
     }
     a.wp-block-navigation-item__content {
        font-size: 32px;
    }
 }
 
 @media only screen and (max-width: 782px) {
     

    /* Columns */
     .columns-reverse {
         flex-direction: column-reverse;
     }
     
     .content-two-column .wp-block-image img {
         padding-bottom: var(--wp--preset--spacing--80);
     }
     
     :root {
         --wp--preset--spacing--20: 0.44rem;
         --wp--preset--spacing--30: 0.67rem;
         --wp--preset--spacing--40: 1rem;
         --wp--preset--spacing--50: 1.5rem;
         --wp--preset--spacing--60: 2.5rem;
         --wp--preset--spacing--70: 2.5rem;
         --wp--preset--spacing--80: 2.5rem;
     }
     
     .has-x-large-font-size {
         font-size: var(--wp--preset--font-size--medium) !important;
     }
     
     .has-large-font-size {
         font-size: var(--wp--preset--font-size--medium) !important;
     }
     
     body .blog-preview .is-layout-flex {
         justify-content: left;
     }
 }
 



 /* 
  * Blocks Sections
  * ----------------------------------------
  */
 @media only screen and (max-width: 600px) {
     .icons-only-multi-column .is-layout-flex {
         display: flex;
         justify-content: center;     /* Center the whole row */
         flex-wrap: wrap;             /* If needed for responsive */
     }
     
     .icons-only-multi-column .is-layout-flex > * {
         width: calc(100% / 3 - 1rem); /* Simulate 3 columns */
         max-width: 300px;             /* Optional: to prevent oversized items */
     }
 
     .mosaic-oscilating-3-images .wp-block-image {
         margin-top: 0 !important; 
         margin-bottom: 0 !important; 
     }
     
     .mosaic-oscilating-3-images .wp-block-gallery {
         --wp--style--unstable-gallery-gap: 0 !important;
     }
 
     .mosaic-oscilating-5-images .wp-block-image {
         margin-top: 0 !important; 
         margin-bottom: 0 !important; 
     }
     
     .mosaic-oscilating-5-images .wp-block-gallery {
         --wp--style--unstable-gallery-gap: 0 !important;
     }
 }
 
 /* 
  * Gforms Sections
  * ----------------------------------------
  */

  .gform-theme--api, .gform-theme--foundation {
    --gf-form-gap-y: 16px!important;
}

 .gform_button, .gform-button {
     background-color: var(--wp--preset--color--primary);
     border-radius: 10px;
     border-width: 0;
     color: var(--wp--preset--color--inverse-text-color);
     font-family: inherit;
     font-size: inherit;
     line-height: inherit;
     padding: calc(0.667em + 2px) calc(1.333em + 2px);
     text-decoration: none;
 }
.gform-button {
    height: 54px;
    width: 100%;
    padding: inherit;
}

 .gform_wrapper.gravity-theme .gform_footer, 
 .gform_wrapper.gravity-theme .gform_page_footer {
     margin: 12px 0 0 !important;
     padding: 0 !important;
 }
 
 .gform_wrapper.gravity-theme input[type=color], 
 .gform_wrapper.gravity-theme input[type=date], 
 .gform_wrapper.gravity-theme input[type=datetime-local], 
 .gform_wrapper.gravity-theme input[type=datetime], 
 .gform_wrapper.gravity-theme input[type=email], 
 .gform_wrapper.gravity-theme input[type=month], 
 .gform_wrapper.gravity-theme input[type=number], 
 .gform_wrapper.gravity-theme input[type=password], 
 .gform_wrapper.gravity-theme input[type=search], 
 .gform_wrapper.gravity-theme input[type=tel], 
 .gform_wrapper.gravity-theme input[type=text], 
 .gform_wrapper.gravity-theme input[type=time], 
 .gform_wrapper.gravity-theme input[type=url], 
 .gform_wrapper.gravity-theme input[type=week], 
 .gform_wrapper.gravity-theme select, 
 .gform_wrapper.gravity-theme textarea {
     font-size: 16px !important;
     padding: 16px !important;
     border-radius: 0;
     border: 1px solid #ccc;
     font-family: var(--wp--preset--font-family--inter);
 }
 
 ::placeholder {
     font-family: var(--wp--preset--font-family--inter);
 }
 
 :focus-visible {
     outline: none;
 }
 
 /* 
  * Slick Slider Sections
  * ----------------------------------------
  */
 /* Base styles for all slick sliders */
 .my-slick-slider {
     width: 100%;
 }
 
 .my-slick-slider .slick-slide {
     margin: 0 10px; /* Default margin between slides */
     transition: transform 0.3s ease;
 }
 
 .slick-slide img {
     margin: auto;
 }
 
 /* Increase space between slides */
 .custom-slick-slider .slick-slide {
     margin: 0 25px;
     transition: transform 0.3s ease;
 }
 
 /* Keep your oscillating effect */
 .custom-slick-slider .slick-slide:nth-child(odd) {
     margin-top: 30px;
 }
 
 .custom-slick-slider .slick-slide:nth-child(even) {
     margin-bottom: 30px;
 }
 
 .my-slick-slider img {
     margin: auto;
 }
 
 /* Increase space between slides */
 .my-slick-slider .slick-slide {
     margin: 0 25px;
 }
 
 /* Special handling for sliders with fewer slides than slidesToShow */
 .my-slick-slider.few-slides .slick-track {
     display: flex !important;
     justify-content: space-between !important;
     width: 100% !important;
     transform: none !important; /* Prevent slick from adjusting position */
 }
 
 .my-slick-slider.few-slides .slick-slide {
     float: none !important;
     width: auto !important; /* Let content determine width */
     max-width: 30%; /* Prevent slides from getting too wide */
     margin: 0 auto; /* Center slides */
     flex: 1; /* Allow slides to grow */
 }
 
 /* Hide any cloned slides in few-slides mode */
 .my-slick-slider.few-slides .slick-slide.slick-cloned {
     display: none !important;
 }
 
 /* Ensure arrows don't interfere with spacing */
 .my-slick-slider.few-slides .slick-arrow {
     display: none !important;
 }
 
 /* Disable slick animation for few-slides to avoid conflicts */
 .my-slick-slider.few-slides .slick-list {
     overflow: visible !important;
     width: 100%;
 }
 
 /* Increase space between slides */
 .mosaic-oscillating-3-images-slider .slick-slide {
  margin: 0 25px;
  transition: transform 0.3s ease;
}

/* Keep your oscillating effect */
.mosaic-oscillating-3-images-slider .slick-slide:nth-child(odd) {
  margin-top: 30px;
}

.mosaic-oscillating-3-images-slider .slick-slide:nth-child(even) {
  margin-bottom: 30px;
}

@media (max-width: 767px) {
  /* Keep your oscillating effect */
  .mosaic-oscillating-3-images-slider .slick-slide:nth-child(odd) {
    margin-top: 0px;
  }

  .mosaic-oscillating-3-images-slider .slick-slide:nth-child(even) {
    margin-bottom: 0px;
  }
  .custom-slick-slider .slick-slide:nth-child(odd) {
    margin-top: 0px;
  }

  .custom-slick-slider .slick-slide:nth-child(even) {
    margin-bottom: 0px;
  }

}

 /* 
  * Gallery Sections
  * ----------------------------------------
  */
 .mosaic-oscillating-3-images-slider-wrapper {
     max-width: 100%;
     width: 100%;
     overflow: hidden;
     padding: 0;
 }
 
 .mosaic-oscillating-3-images-slider {
     width: 100%;
 }
 
 .mosaic-oscillating-3-images-slider .slide {
     margin: 0 15px;
     transition: transform 0.3s ease;
 }
 
 /* Oscillating effect */
 .mosaic-oscillating-3-images-slider .slide:nth-child(2) {
     margin-top: 30px;
 }
 
 .mosaic-oscillating-3-images-slider .slide:nth-child(3) {
     margin-bottom: 30px;
 }
 
 .mosaic-oscillating-3-images-slider .slide img {
     width: 100%;
     display: block;
     border-radius: 8px; /* Optional: rounded corners */
 }
 
 /* Few slides adjustments */
 .mosaic-oscillating-3-images-slider.few-slides .slick-list {
     width: 100% !important;
     overflow: visible !important;
 }
 
 .mosaic-oscillating-3-images-slider.few-slides .slick-track {
     width: 100% !important;
     display: flex !important;
     justify-content: center !important;
     transform: none !important;
 }
 
 /* Disable centerMode features when in few-slides mode */
 .mosaic-oscillating-3-images-slider.few-slides {
     padding: 0 !important;
 }

 /* 
  * Us vs Them Sections
  * ----------------------------------------
  */
 .us-vs-them .positive li {
  list-style-image: url(/wp-content/themes/nls-blocks-theme/assets/images/icons/positive.svg);
  vertical-align: middle;
  display: flex;
  align-items: center;
}

.us-vs-them .negative li {
  list-style-image: url(/wp-content/themes/nls-blocks-theme/assets/images/icons/negative.svg);
  vertical-align: middle;
  display: flex;
  align-items: center;
}

/* Remove default list-style when using flexbox approach */
.us-vs-them .positive li::marker,
.us-vs-them .negative li::marker {
  content: "";
}

/* Add the icon as a pseudo-element for better control */
.us-vs-them .positive li::before {
  content: "";
  display: inline-block;
  width: 27px; /* Adjust based on your icon size */
  height: 26px; /* Adjust based on your icon size */
  background-image: url(/wp-content/themes/nls-blocks-theme/assets/images/icons/positive.svg);
  background-size: contain;
  background-repeat: no-repeat;
  padding-right: 22px;
  vertical-align: middle;
}

.us-vs-them .negative li::before {
  content: "";
  display: inline-block;
  width: 26px; /* Adjust based on your icon size */
  height: 28px; /* Adjust based on your icon size */
  background-image: url(/wp-content/themes/nls-blocks-theme/assets/images/icons/negative.svg);
  background-size: contain;
  background-repeat: no-repeat;
  padding-right: 22px;
  vertical-align: middle;
}
@media (max-width: 767px) {
  .us-vs-them .negative li::before, .us-vs-them .positive li::before {
    padding-right: 42px;
  }
}






.price-table li {
  list-style-image: url(/wp-content/themes/nls-blocks-theme/assets/images/icons/positive.svg);
  vertical-align: middle;
  display: flex;
  align-items: center;
}

/* Remove default list-style when using flexbox approach */
.price-table li::marker {
  content: "";
}

/* Add the icon as a pseudo-element for better control */
.price-table li::before {
  content: "";
  display: inline-block;
  width: 27px; /* Adjust based on your icon size */
  height: 26px; /* Adjust based on your icon size */
  background-image: url(/wp-content/themes/nls-blocks-theme/assets/images/icons/positive.svg);
  background-size: contain;
  background-repeat: no-repeat;
  padding-right: 22px;
  vertical-align: middle;
}

@media (max-width: 767px) {
  .price-table li::before {
    padding-right: 12px;
  }
}





/* button effects 


.wp-element-button, .gform_button {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  
  .wp-element-button:hover, .gform_button:hover {
    transform: translateY(-1px);
  }
*/

.wp-element-button, .gform_button, .popup-close {
    transition: transform 0.15s ease-out;
    cursor: pointer;
}

.wp-element-button:active, .gform_button:active, .popup-close:active {
    transform: scale(0.95);
}










/* popup stuff */


        /* Popup Bubble Styles */
        .popup-bubble {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background-color: var(--wp--preset--color--primary) !important;
            border-radius: 15px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s ease;
            z-index: 9998;
            text-align: left;
            padding: 12px 22px;
            margin-left: 20px;
        }
        
        /* Speech bubble tail */
        .popup-bubble::after {
            content: "";
            position: absolute;
            bottom: -10px;
            right: 30px;
            width: 0;
            height: 0;
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-top: 10px solid var(--wp--preset--color--primary) !important;
            filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
        }

        .popup-bubble:hover {
            transform: scale(1.1);
        }

        .bubble-icon {
            font-size: 18px;
            color: white;
            font-weight: 500;
        }

        /* Preview Bubble */
        .popup-preview {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background-color: #007bff;
            border-radius: 10px;
            padding: 15px 20px;
            color: white;
            max-width: 300px;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
            transform: translateX(120%);
            transition: transform 0.3s ease;
            z-index: 9997;
            cursor: pointer;
        }

        .popup-preview.show {
            transform: translateX(0);
        }

        .preview-content {
            position: relative;
        }

        .preview-content p {
            margin: 0;
            padding-right: 30px;
        }

        .preview-close {
            position: absolute;
            top: -5px;
            right: -5px;
            background: none;
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
            padding: 0;
            width: 25px;
            height: 25px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Popup Modal */
        .popup-modal {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: white;
            padding: 0px;
            border-radius: 10px;
            box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
            z-index: 10000;
            max-width: 1400px;
            width: 90%;
            max-height: 100vh;
            overflow-x: auto;
            margin: 32px auto;
        }


        .popup-content-wrap {
            padding: 32px;
        }

        .popup-content {
            position: relative;
        }

        .popup-close {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 28px;
            color: #aaa;
            cursor: pointer;
            transition: color 0.3s ease;
            line-height: .5;
            font-weight: 300;
        }
        .popup-close:hover {
            color: #000;
        }

        .popup-modal h2 {
            margin-top: 0;
            color: #333;
        }

        .popup-modal form {
            margin-top: 20px;
        }

        .popup-modal input[type="email"] {
            width: 100%;
            padding: 10px;
            margin-bottom: 15px;
            border: 1px solid #ddd;
            border-radius: 5px;
            box-sizing: border-box;
        }

        .popup-modal button {
            width: 100%;
            padding: 10px;
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s ease;
        }

        .popup-modal button:hover {
            background-color: #0056b3;
        }

        /* Overlay */
        .popup-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 9999;
        }

        /* Responsive */
        @media (max-width: 600px) {
            .popup-modal {
            
            width: calc(100% - 24px);
            margin: 12px auto;
            }
            .bubble-icon {
                font-size: 20px;
            }
            
            .popup-preview {
                max-width: 250px;
                padding: 12px 15px;
            }
        }

        body.popup-open .wp-site-blocks {
            overflow: hidden !important;
            position: fixed !important;
            width: 100% !important;
            left: 0 !important;
        }