/* carousel styling */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.carousel {
    display: block;
    white-space: nowrap;
    overflow-x: hidden;
    scroll-behavior: smooth;
    animation: scroll 50s linear infinite;
}

.carousel .company {
    box-sizing: border-box;
    display: inline-block;
    width: 300px;
    margin: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 20px;
    background: white;
    vertical-align: top;
    overflow: hidden; /* Ensures content does not overflow the box */
    word-wrap: break-word; /* Allows long words to break and wrap onto the next line */
    white-space: normal; /* Ensure this is set to normal */
}

.carousel .company img {
    width: 100px; /* Set a fixed width */
    height: 100px; /* Set a fixed height */
    object-fit: contain; /* Ensures the image is resized to fit while maintaining aspect ratio */
    display: block; /* Makes the image a block element to allow margin auto to work */
    margin: 0 auto; /* Centers the image horizontally */
}

/* row styling */
.row {
    padding-bottom: 20px; /* Added padding to the bottom of the row */
}

/* FAQ styling */
.custom-faq {
    margin: 20px 10vw; /* Use viewport width for dynamic scaling */
}

@media (min-width: 1200px) {
    .custom-faq {
        margin: 20px 120px; /* Fixed margin for larger screens */
    }
}

.custom-faq details {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px 15px;
    margin-top: 10px;
    margin-bottom: 10px;
    background: #f9f9f9; /* Light background for each FAQ item */
}

.custom-faq details > summary {
    list-style: none;
    cursor: pointer;
    font-weight: bold; /* Make the question bold */
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
}

.custom-faq details > summary::-webkit-details-marker {
    display: none; /* Remove the default marker */
}

.custom-faq details > summary::before {
    margin-right: 8px;
    font-size: 20px;
}

.custom-faq details > summary::after {
    content: "▼"; /* Arrow icon */
    font-size: 12px;
    transition: transform 0.2s ease;
}

.custom-faq details[open] > summary::after {
    transform: rotate(180deg); /* Flip arrow when open */
}

.custom-faq details p {
    font-size: 14px;
    color: #333;
    padding: 8px 0; /* Padding inside the answer paragraph */
}

/* Base styles for the feature list */
.feature-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    width: 100%;
}

.feature-list .feature-content,
.feature-list .feature-image {
    width: 100%; /* Full width on mobile */
}

.feature-list .feature-image img {
    height: 200px;
    filter: brightness(0) invert(1); /* This filter will render the images in white */
}

/* Desktop styles */
@media (min-width: 768px) {
    .feature-list {
        flex-direction: row;
        text-align: left;
    }

    .feature-list.left,
    .feature-list.right {
        justify-content: space-between; /* This ensures content and image are on opposite ends */
    }

    .feature-list.left .feature-image {
        order: -1; /* Image before content */
        display: flex;
        justify-content: flex-end; /* Aligns the image container's content to the right */
        padding-right: 20px; /* Padding between the image and text content */
    }

    .feature-list.right .feature-image {
        order: 1; /* Image after content */
        display: flex;
        justify-content: flex-start; /* Aligns the image container's content to the left */
        padding-left: 20px; /* Padding between the image and text content */
    }

    .feature-list.left .feature-content {
        padding-left: 20px; /* For symmetry in padding when image is on the left */
    }

    .feature-list.right .feature-content {
        padding-right: 20px; /* For symmetry in padding when image is on the right */
        text-align: right; /* Justify the text to the right for feature-list.right */
    }

    .feature-list.left .feature-image img,
    .feature-list.right .feature-image img {
        width: auto; /* Adjust width as necessary */
        max-width: 100%; /* Ensure it does not overflow its container */
    }

    .feature-list .feature-content,
    .feature-list .feature-image {
        width: 50%; /* Each takes up half the space on desktop */
    }
}

/* Ensure consistency with testimonial breakpoints */
@media (max-width: 768px) {
    .feature-list,
    .feature-list .feature-content,
    .feature-list .feature-image {
        width: 100%;
        order: 0;
        margin: 0;
        padding: 0; /* Reset padding for mobile to maintain full width */
    }
}

/* Testimonial Styles */
.testimonials-section {
    text-align: center; /* Centers all inline-block children */
    width: 100%; /* Ensures the container takes full width */
    padding: 20px; /* Optional: Adds some padding around the section */
}

.testimonial-container {
    width: 30%; /* Adjust based on the total width of the container to fit 3 side by side */
    display: inline-block; /* Allows multiple testimonials to sit side-by-side */
    vertical-align: top; /* Keeps items top-aligned */
    margin: 0 1%; /* Spacing between testimonials */
    box-sizing: border-box; /* Includes padding and border in the element's total width and height */
    text-align: center; /* Centers the content */
}

@media (max-width: 768px) {
    .testimonial-container {
        width: 100%; /* Full width on smaller screens */
        margin: 10px 0; /* Adjust spacing for stacked layout */
    }
}

.testimonial-star {
    width: 20px; /* Adjust size of stars */
    height: auto; /* Maintain aspect ratio */
    filter: brightness(0) saturate(100%) invert(34%) sepia(95%) saturate(2082%) hue-rotate(2deg) brightness(93%) contrast(101%);
    /* This filter attempts to simulate a gold color */
    display: inline-block; /* Ensures stars are in a row */
}

.testimonial-quote {
    font-style: italic;
    margin-top: 10px; /* Spacing between stars and quote */
    quotes: "“" "”"; /* CSS for adding quotation marks */
}

.testimonial-quote:before {
    content: open-quote;
}

.testimonial-quote:after {
    content: close-quote;
}

/* Pricing column */
@media only screen and (max-width: 768px) {
    .pricing-column {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Navbar styling */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.hamburger {
    display: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #101010;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-item {
    margin-left: 5rem;
}

.nav-link{
    font-size: 1.6rem;
    font-weight: 400;
    color: #475569;
}

.nav-link:hover{
    color: #0056b3;
}

.nav-logo {
    font-size: 2.1rem;
    font-weight: 500;
    color: #0056b3;
    text-decoration: none; /* Add this line to remove underline */
}

/* Navbar responsiveness */

@media only screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 5rem;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        border-radius: 10px;
        text-align: center;
        transition: 0.3s;
        box-shadow:
            0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 1000; /* High z-index to ensure it's on top */
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.6rem 0;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

}

/* Button styling */

.button-container {
    display: flex;
    justify-content: center;
    margin: 20px 0; /* Adjust margin as needed */
}

.button {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    text-align: center;
    min-width: 150px; /* Ensures all buttons are at least 150px wide */
}

/* Specific styling for Stripe buttons */
a[href*="stripe.com"].button {
    pointer-events: none; /* Makes the button non-clickable */
    cursor: default; /* Changes cursor to default instead of pointer */
}

.button-primary {
    background-color: #0056b3; /* Primary color */
    color: white;
}

.button-secondary {
    background-color: #4A4A4A; /* Darker grey for better contrast */
    color: white;
}

/* Intro styling for both sections */
[id^="intro"] {
    background: #0056b3;
    color: #fff;
    text-align: center;
    padding: 0 20px 20px; /* No top padding */
}

/* Specific styling for sections with intro-html class */
#intro-html {
    padding: 20px 20px 0; /* No bottom padding */
}

/* Specific styling for default intro section */
#intro-default {
    padding: 0 20px 20px; /* Apply 20px padding to left, right, and bottom sides */
    background: #0056b3; /* Maintain existing background color */
    color: #fff; /* Maintain existing text color */
    text-align: center; /* Maintain existing text alignment */
}

/* Remove top and bottom margins from first and last child of intro-html */
#intro-html > :first-child,
#intro-default > :first-child {
    margin-top: 0;
}

#intro-html > :last-child,
#intro-default > :last-child {
    margin-bottom: 0;
}

/* features styling */
#features {
    background: #0056b3; /* Blue background */
    color: #fff; /* White text color */
    text-align: center; /* Center align text */
    padding: 20px; /* Consistent padding */
}
/* Additional styling for single page content */
main > article {
    padding: 20px; /* Adjust the padding as needed */
}

/* General styling */

* {
    box-sizing: border-box;
}


body, html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    background: #f4f4f4;
    color: #333;
}

h1 {
    font-size: 65px; /* Adjust the size as needed */
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 600px; /* Example max-width; adjust as needed */
    word-wrap: break-word; /* Ensures long words do not overflow */
    text-align: center; /* Centers the text within the h1 element */
    margin-left: auto; /* Centers the h1 element within its parent */
    margin-right: auto; /* Centers the h1 element within its parent */
}

#pricing h2, #features h2, #faq h2, #leads h2 {
    font-size: 40px; /* Adjust the size as needed, slightly smaller than h1 */
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 600px; /* Example max-width; adjust as needed */
    word-wrap: break-word; /* Ensures long words do not overflow */
    text-align: center; /* Centers the text within the h2 element */
    margin-left: auto; /* Centers the h2 element within its parent */
    margin-right: auto; /* Centers the h2 element within its parent */
}

.large-text {
    font-size: 24px; /* Adjust the size as needed */
}

header {
    padding: 20px;
}

section, h2.pricing {
    padding: 0 20px;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
}