.wrapper {
    width: 100%;
    position: relative;
    margin: auto;
}

.wrapper.smaller {
    max-width: 940px;
}

/* Home Sections */
#hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 60px 0;
    position: relative;
}

#benefits-section {
    text-align: center;
    padding-bottom: 60px;
    margin: 0;
}

#banner-section,
#turbine-codes-section {
    padding: 40px 20px;
    text-align: center;
    overflow: visible;
    margin: 0;
}

#blog-articles {
    background: none;
    margin: 80px 0;
}

/* Home Sections END */

/* ------------------------------------Blog-------------------------------------- */
.read-more-button {
    font-size: 1em;
    color: var(--white);
    background-color: var(--black);
    border-radius: 15%;
    padding: 10px;
}

.blog-entry {
    padding: 0 40px;
}

.entry-date {
    font-size: 0.9em;
    display: inline-block;
    color: var(--dark-gray);
}

.entry-title {
    margin: 10px 0;
    color: var(--dark-gray);
}

.entry-title a {
    color: inherit;
    text-decoration: none;
}

.entry-excerpt {
    font-size: 1em;
    color: var(--dark-gray);
}

.static-posts {
    margin-top: 40px;
}

.read-more {
    font-weight: bolder;
    color: var(--dark-gray);
}

.read-more:hover,
.entry-title:hover {
    color: var(--secondary-red);
}

.static-post.blog-swiper-slide {
    flex: 1;
    padding: 0 10px;
    box-sizing: border-box;
    overflow: hidden;
    max-width: max-content;
    height: auto !important;
}

.blog-swiper-pagination {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

/* ------------------------------------Blog-------------------------------------- */

/* ----------------------------------Newsletter----------------------------------- */
.newsletter-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.newsletter-top {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
}

.newsletter-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.newsletter-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 20px;
}

.newsletter-form input {
    padding: 10px 15px;
    font-size: 16px;
    width: 300px;
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.newsletter-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #000000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-button:hover {
    background-color: var(--secondary-red);
}

/* ----------------------------------Newsletter----------------------------------- */

/* ---------------------------------Benefits-------------------------------------------- */
/* Benefit container */
.inner-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 940px;
    margin: 0 auto
}

/* Individual benefit item */
.benefit-item {
    width: 30%;
    text-align: center;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--dark-gray);
}

.benefit-item:hover {
    transform: translateY(-5px);
    color: var(--primary-red);
}

/* Style for inline SVGs */
.benefit-svg svg {
    width: 80px;
    height: 80px;
    fill: currentColor;
    display: block;
    margin: auto;
}

/* Benefit title link */
.benefit-title-a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: bold;
}

.benefit-title-a h3 {
    margin: 10px 0;
    font-size: 18px;
}

/* Benefit description */
.red-under {
    position: relative;
    display: inline-block;
}

/* Hidden underline initially */
.red-under::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background-color: red;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease-in-out;
    opacity: 0;
}

/* Active class when the section is in view */
.section-visible .red-under::after {
    transform: scaleX(1);
    opacity: 1;
}

.benefit-item h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    flex-shrink: 0;
    font-weight: 500;
    font-size: 1.1em;
    letter-spacing: -1px;
}

/* Adjust description styles */
.benefit-item p {
    font-size: 16px;
    color: #666;
    flex-shrink: 0;
    margin-top: 10px;
    text-align: center;
    font-weight: 400;
}

.benefit-title-a {
    text-decoration: none;
}

.benefit-title-a:hover h3 {
    color: var(--primary-red);
}

.benefit-item input {
    margin-right: 10px;
}

.remove-benefit {
    background: #ff4d4d;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.image-preview img {
    display: block;
    margin-top: 5px;
    max-width: 100px;
    height: auto;
}

/* Banner Section styling */
.question {
    gap: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.question h2 {
    font-weight: 100;
}

.over_bg {
    z-index: -9999;
}

.over_bg svg {
    position: absolute;
    z-index: -999;
    top: -120px;
    right: 0;
    left: auto;
}

/* Banner Section styling END */

/* Review Section */
.review-title h3 {
    font-weight: 100;
    font-size: var(--font-normal);
}

/* Main container styling */
.shop-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
}

/* Quick Help Section */
.quick-help-left {
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    align-items: center;
}

.assistance-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Quick Help Section END */
/* FAQs */
.faqs {
    width: 100%
}

details {
    padding: 20px 0;
    border-bottom: 1px solid #EEE;
    cursor: pointer;
}

details:hover summary::marker {
    color: var(--dark-gray);
    transition: color 0.3s ease-in-out;
}

details summary::marker {
    color: var(--light-gray);
}

/* FAQs END */

/* Contact Form 7 */
.contact-form {
    max-width: 360px;
    width: 100%;
    text-align: center;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

span.assistance-icon svg {
    width: 80px;
    height: 80px;
    fill: var(--lightest-gray);
}

#quick-help .inner-container {
    justify-content: space-between;
    margin-bottom: 40px;
}

.contact-form .input-container {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
    margin: 0;
}

.contact-form .input-container p {
    margin: 0;
    padding: 0;
    position: relative;
}

.contact-form .wpcf7-response-output {
    margin: 20px 0 0 !important;
}

.contact-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    outline: none;
    width: 100%;
    cursor: pointer;
}

.contact-form label {
    text-align: left;
    font-weight: 100;
    margin-bottom: 2px;
    display: flex;
    flex-direction: column;
}

.contact-form span.wpcf7-spinner {
    margin: auto;
    position: absolute;
    right: 8px;
    top: 8px;
}

.contact-form #submit-btn {
    border-radius: 5px;
    padding: 10px;
    border: none;
    font-weight: bold;
    border: 1px solid var(--lightest-gray);
}

.contact-form #submit-btn:not([disabled]) {
    background-color: var(--dark-gray);
    color: var(--white);
    cursor: pointer;
}

.contact-form .tooltip {
    visibility: hidden;
    background-color: darkorange;
    color: #fff;
    text-align: center;
    padding: 5px 10px;
    border-radius: 5px;
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.contact-form .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: darkorange transparent transparent transparent;
}

.contact-form .wpcf7-not-valid-tip {
    font-size: small;
}

.contact-form .input-container.error .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Contact Form 7 END */

/* MISC */
.text-center {
    text-align: center;
    align-items: center;
}

/* MISC EDN */

/* Reviews */
.reviews-container {
    display: flex;
    align-items: center;
    position: relative;
}

.grid.reviews {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding: 10px 0;
    scroll-behavior: smooth;
    width: 100%;
}

.reviews .grid-container {
    display: flex;
    /* Change to flexbox */
    gap: 10px;
    min-width: 100%;
    overflow-x: auto;
    /* Allow horizontal scrolling */
    scroll-snap-type: x mandatory;
    scroll-snap-align: start;
    padding-bottom: 10px;
    /* Prevent scrollbar overlap */
    overflow: hidden;
}

.review {
    flex: 0 0 auto;
    /* Prevent flex shrinking */
    width: 100%;
    /* Adjust width as needed */
    max-width: 300px;
    /* Prevent reviews from being too large */
    min-width: 280px;
    /* Prevent reviews from being too small */
    scroll-snap-align: start;
    padding: 0 20px;
    border: 1px solid var(--lightest-gray);
    border-radius: 5px;
    background: var(--secondary-gray);
    flex: 1;
    overflow: clip;
}

.grid.reviews::-webkit-scrollbar {
    display: none;
}

.scroll-btn {
    background: #cccccc36;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
}

#prevBtn {
    left: 0;
}

#nextBtn {
    right: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    #hero {
        margin: 0;
    }

    .chassis-image {
        display: none;
    }

    .blog-swiper-slide {
        width: 33.33%;
        /* Show 3 on medium-sized screens */
    }

    .static-post.blog-swiper-slide {
        flex: inherit;
        padding: 0;
    }

    .static-posts {
        flex-wrap: wrap;
        gap: 40px !important;
    }

    .blog-entry {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .reviews .grid-container {
        grid-template-columns: repeat(2, 1fr);
        /* Show 2 reviews on smaller screens */
    }

    #quick-help .inner-container {
        justify-content: center;
    }

    .blog-swiper-slide {
        width: 50%;
        /* Show 2 on smaller screens */
    }

    .newsletter-form input {
        width: 100%;
    }

    .newsletter-top img {
        display: none;
    }

    .question {
        flex-direction: column;
        width: auto;
    }

    .benefit-item {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .reviews .grid-container {
        grid-template-columns: repeat(1, 1fr);
        /* Show 1 review per row on very small screens */
    }

    .blog-swiper-slide {
        width: 100%;
    }
}