/*
 * Custom Styles for the Hero Slider Widget
 * Version: 1.2.0
 */

/* Main slider container - ensures it takes up the full screen height */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */.hero-slider-section .slide-button.secondary:hover
    color: #ffffff; /* Default text color, can be overridden by Elementor */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Wrapper for all slides */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}
/* Main wrapper for content, mimicking an Elementor container */
.main-wrapper {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
}

/* Individual slide styling */
.hero-slider-section .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

/* Make the active slide visible */
.hero-slider-section .slide.active {
    opacity: 1;
    z-index: 2;
}

/* Dark overlay for better text readability */
.hero-slider-section .slide-overlay {
    width: 100%;
    height: 100%;
   background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0) 100%
  );
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligns content to the left on desktop */
    padding: 0 8%;
}

/* Content container within the slide */
.hero-slider-section .slide-content {
    /* max-width is now controlled by the Elementor slider control */
}

/* Title styling - Base styles only */
.hero-slider-section .slide-title {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Description styling - Base styles only */
.hero-slider-section .slide-description {
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Container for buttons */
.hero-slider-section .slide-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

/* General button styling */
.hero-slider-section .slide-button {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 700;
    border: 2px solid transparent;
     border-radius:25px;
}

/* Default Primary button styling (can be overridden) */
.hero-slider-section .slide-button.primary {
    background-color: #00953B !important;
    color: #ffffff;
}

.hero-slider-section .slide-button.primary:hover {
    background-color: #047857;
}

/* Default Secondary button styling (can be overridden) */
.hero-slider-section .slide-button.secondary {
    background-color: transparent;
    color: #fff;
    border-color: #00953B;
}

.hero-slider-section .slide-button.secondary:hover {
    background-color: transparent;
    color: #fff !important;
     border: 2px solid #fff !important;
}



/* "Trusted By" / Ratings Section */
.hero-slider-section .slide-ratings {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider-section .rating-images {
    display: flex;
    flex-shrink: 0; /* Prevents images from shrinking */
}

/* Overlapping user images */
.hero-slider-section .rating-images img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    margin-left: -16px;
    object-fit: cover;
}

.hero-slider-section .rating-images img:first-child {
    margin-left: 0;
}

/* Rating text container - border is applied here by Elementor */
.hero-slider-section .rating-text {
    margin-left: 1rem;
    padding-left: 1rem;
}

.hero-slider-section .rating-text .stars {
    /* Color controlled by Elementor */
}

.hero-slider-section .rating-text p {
    margin: 0;
    /* Typography and color controlled by Elementor */
}


/* Navigation arrows (previous/next) */
.hero-slider-section .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider-section .slider-nav:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-slider-section .slider-nav.prev-slide {
    left: 1rem;
}

.hero-slider-section .slider-nav.next-slide {
    right: 1rem;
}

.hero-slider-section .slider-nav svg {
    width: 24px;
    height: 24px;
}

/* Indicator dots container */
.hero-slider-section .slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}


/* Individual dots */
.hero-slider-section .slider-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.5);
    transition: background-color 0.3s ease;
    
    /* --- Add these lines --- */
    padding: 0; /* Removes default button padding */
    box-sizing: border-box; /* Ensures width and height are not affected by padding/border */
    flex-shrink: 0; /* Prevents dots from shrinking in the flex container */
}

.hero-slider-section .slider-dots button:hover,
.hero-slider-section .slider-dots button.active {
    background-color: #ffffff;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    
    
  .main-wrapper {
    padding:0;
}
    .hero-slider-section{
        height:70vh;
    }
    .hero-slider-section .slide-overlay {
        justify-content: center;
        text-align: center;
    }
    
    .hero-slider-section .slide-buttons {
       
        justify-content: center;
        flex-wrap:nowrap;
         flex-direction: row !important;
       
    }

    .hero-slider-section .slide-ratings {
        justify-content: center;
        flex-direction:column;
    }
    .slide-ratings .rating-text {
    border-width: 0 !important;
    margin-left: 0;
    padding-left: 0;
    }
    

    .hero-slider-section .slider-nav {
        width: 32px;
        height: 32px;
    }

    .hero-slider-section .slider-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .hero-slider-section .slide-button {
    padding: 0.75rem 10px !important;
    
}
}

