/* Global Styles */
* {

    padding: 0;
    box-sizing: border-box;
    scrollbar-color: rgba(52, 124, 59, 0.3) transparent;
}

/* Reset default margin on body */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0px 20px;
    width: 100%; /* Ensure it doesn't exceed viewport width */
    box-sizing: border-box; /* Include padding in width calculation */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Global scrollbar styling */
*::-webkit-scrollbar {
    width: 6px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: rgba(52, 124, 59, 0.3);
    border-radius: 10px;
}

/* Button Styles */
.btn-primary {
    display: inline-block;
    background-color: #347c3b;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #2a6430;

    box-shadow: 0 4px 8px rgba(52, 124, 59, 0.2);
}

/* Special styling for the Order Now button in the navigation */
.main-menu .btn-primary:hover {
    background-color: #2a6430;
    color: white; /* Ensure text stays white on hover */
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #347c3b;
    color: white;
    transform: translateY(-2px);
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Base padding styles that will be overridden on mobile */
header .container {
    padding: 8px 20px; /* Reduced from 15px to 8px */
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #347c3b;
}

.main-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Apply hover color only to regular links, not buttons */
.main-menu a:not(.btn-primary):hover {
    color: #347c3b;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

.phone {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
}

.phone i {
    color: #347c3b;
    font-size: 20px;
}

.phone a {
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 0;
    background-color: #f0f7f1;
    background-image: url('images/bg.webp?v=2');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 100%);
    transform: translateX(100%); /* Changed from translateX(-100%) to move it off-screen */
    animation: none; /* Removed hero-reveal 1.2s ease-out forwards */
    pointer-events: none;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    background-color: rgba(52, 124, 59, 0.8);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    opacity: 1; /* Changed from opacity: 0 */
    transform: translateY(0); /* Changed from translateY(30px) */
    animation: none; /* Removed hero-content-reveal 1s ease-out 0.5s forwards */
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: white;
}

/* CTA Container with Arrow */
.cta-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Position button on the right */
    gap: 10px;
    position: relative;
}

.cta-arrow {
    width: 140px;
    height: auto;

}

/* Custom CTA Button with Image */
.cta-button {
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
    width: 300px;
    animation: infinite ease-in-out;
}


.yotpo-qa-widget {
    display: none !important;
}

@keyframes ctaPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

.cta-button:hover {
    animation-play-state: paused;

}

.cta-image {
    display: block;
    max-width: 100%;
    height: auto;
    transition: opacity 0.4s ease-in-out;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/cta-hover.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.cta-button:hover .cta-image {
    opacity: 0;
}

.cta-button:hover::after {
    opacity: 1;
}

.cta-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-60%, -50%);
    color: #ffffff;
    font-weight: 700;
    font-size: 21px;
    text-align: center;
    width: 100%;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

@keyframes bounceX {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

.hero-image {
    flex: 1;
    text-align: center;
    display: none; /* Hide the image since we're using it as background */
}

/* Award badge */
.award-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(50%, -15%); /* Position relative to center of hero section */
    z-index: 3;
    width: 150px;
    height: auto;    /* Remove animation properties */
    opacity: 1;
    animation: none;
}

/* Customers badge */
.customers-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(45%, 110%); /* Position below the award badge */
    z-index: 3;
    width: 160px;
    height: auto;
    /* Remove animation properties */
    opacity: 1;
    animation: none;
}

/* Reviews badge */
.reviews-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(24%, -430%); /* Position above the award badge */
    z-index: 3;
    width: 200px;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Style for the reviews badge link */
.hero a {
    cursor: pointer;
    display: inline-block;
}

.hero a:hover .reviews-badge {
    transform: translate(24%, -430%) scale(1.05);
    filter: brightness(1.1);
}

/* Quality badge */
.quality-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(50%, -130%); /* Position above the award badge */
    z-index: 3;
    width: 150px;
    height: auto;
    /* Remove animation properties */
    opacity: 1;
    animation: none;
}

@keyframes pulse {
    0% {
        transform: translate(30px, -50%) scale(1);
    }
    50% {
        transform: translate(30px, -50%) scale(1.05);
    }
    100% {
        transform: translate(30px, -50%) scale(1);
    }
}

@keyframes hero-reveal {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes hero-content-reveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes badge-fade-in {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Intro Section */
.intro {
    padding: 40px 0;
    background-color: white;
}

.intro-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #347c3b;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.intro-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    flex: 1;
    min-width: 300px;
}

.intro-video {
    flex-basis: 500px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.intro-video .video-container {
    margin-bottom: 0;
}

.intro-video .second-video {
    margin-top: 0;
}

.intro-text p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
    text-align: left;
}

.intro-content .video-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    background-color: white;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.intro-content .video-container h3 {
    padding: 15px 20px;
    margin: 0;
    background-color: #347c3b;
    color: white;
    font-size: 18px;
    text-align: center;
    line-height: 1.4;
}

.intro-content .video-caption {
    padding: 15px 20px;
    margin: 0;
    text-align: center;
    font-size: 15px;
    color: #555;
    border-top: 1px solid #eee;
}

@media (max-width: 992px) {
    .intro-layout {
        flex-direction: column;
    }

    .intro-video {
        width: 100%;
        max-width: 600px;
        margin: 0 auto 30px;
        order: -1; /* Keep videos first on mobile */
    }

    .intro-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .intro-content h2 {
        font-size: 24px;
    }

    .intro-text p {
        font-size: 16px;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .container,
    section,
    .hero-content,
    .features-grid,
    .video-row,
    .footer-content {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box; /* Include padding in width calculation */
        overflow-x: hidden; /* Hide any horizontal overflow */
    }

    /* Fix for all badge elements on mobile */
    .award-badge, .customers-badge, .quality-badge, .reviews-badge {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Award badge on the left */
    .award-badge {
        left: -30px;
        width: 100px; /* Reduce size to ensure it fits */
        transform: translateY(1%);
        visibility: visible !important;
    }

    /* Ensure the hero section doesn't cause overflow */
    .hero {
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }

    /* Prevent horizontal scrolling on the entire page */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
}

/* Quiz Intro Section */
.quiz-intro {
    padding: 10px 0;
    background-color: #f0f7f1;
}

.quiz-intro h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #347c3b;
}

.quiz-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.quiz-question {
    flex: 1;
    min-width: 250px;
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.quiz-question i {
    font-size: 36px;
    color: #347c3b;
    margin-bottom: 15px;
    display: block;
}

.quiz-question p {
    font-size: 16px;
    color: #555;
}

.quiz-cta {
    text-align: center;
    margin-top: 40px;
}

.quiz-cta p {
    margin-bottom: 20px;
    font-size: 18px;
    color: #555;
}

/* Features Section */
.features {
    padding: 20px 0;
    background-color: #fff;
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #347c3b;
    font-size: 36px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #f0f7f1;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Animated border effect */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    padding: 4px; /* Border width */
    background: linear-gradient(90deg, #347c3b, #5ba85f, #347c3b);
    background-size: 300% 300%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.feature-card:hover::before {
    opacity: 1;
    animation: border-rotate 2s linear infinite;
}

@keyframes border-rotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: #347c3b;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 32px;
    color: white;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
    color: #333;
}

.feature-card p {
    color: #666;
    font-size: 16px;
}

/* Responsive adjustments for features grid */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* How It Works Section */
.how-it-works {
    padding: 20px 0;
    background-color: #f0f7f1;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #347c3b;
    font-size: 36px;
    font-weight: 700;
}

/* Instruction Booklet */
.instruction-booklet {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
    position: relative;
}

.booklet-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.booklet-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.booklet-caption {
    margin-top: 15px;
    font-size: 16px;
    color: #555;
    font-style: italic;
}

.how-it-works-box {
    max-width: 800px;
    margin: 0 auto 60px;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff, #f0f7f1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 6px;
    border: 1px solid rgba(52, 124, 59, 0.1);
}

.how-it-works-description {
    text-align: center;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
}

.how-it-works-description h3 {
    color: #347c3b;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-it-works-description h3 i {
    margin-right: 10px;
    color: #347c3b;
}

.how-it-works-description p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #444;
}

.how-it-works-description p:last-child {
    margin-bottom: 0;
    font-weight: 600;
}

.how-it-works .video-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.how-it-works .video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.how-it-works .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.how-it-works .video-iframe-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.how-it-works .video-thumbnail {
    position: relative;
    cursor: pointer;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.how-it-works .video-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.how-it-works .video-thumbnail:hover::after {
    background-color: rgba(0, 0, 0, 0.4);
}

.how-it-works .video-thumbnail:hover {
    transform: scale(1.02);
}

/* Adjust play button size for better proportions */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px; /* Slightly larger play button */
    height: 48px;
    z-index: 1;
    transition: transform 0.3s ease;
}

.how-it-works .video-thumbnail:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Steps Section */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: #347c3b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.step-content h3 {
    margin-bottom: 15px;
    color: #333;
}

/* CTA Center */
.cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Warning Section */
.warning {
    padding: 20px 0 50px;
    background-color: #fff;
}

.warning-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 15px;
}

.warning-header i {
    font-size: 36px;
    color: #ff7b00;
    animation: warningPulse 2s infinite;
}

.warning h2 {
    text-align: center;
    color: #347c3b;
    font-size: 36px;
    font-weight: 700;
    margin: 0;
}

.warning-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 25px;
    border: 1px solid rgba(52, 124, 59, 0.2);
    border-radius: 10px;
    background-color: rgba(240, 247, 241, 0.5);
}

.warning-content p {
    margin-bottom: 20px;
    font-size: 18px;
}

@keyframes warningPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Section Divider */
.section-divider {
    height: 80px;
    position: relative;
    overflow: hidden;
    background-color: #fff;
}

.divider-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23f0f7f1'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
}

/* Ingredients Section */
.ingredients {
    padding: 10px 0 10px;
    background-color: #fff;
    text-align: center;
}

.ingredients h3 {
    margin-bottom: 20px;
    color: #347c3b;
    font-size: 28px;
    font-weight: 600;
}

.usa-badge-container {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
}

.usa-badge-container img {
    max-width: 250px;
    display: block;
    margin: 0 auto;
}

/* Reasons Section */
.reasons-section {
    padding-top: 10px;
    padding-bottom: 60px;
    margin-top: 0;
    background-color: #f0f7f1;
}

.reasons-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

/* Testimonials Section */
.testimonials {
    padding: 10px 0 100px; /* Increased bottom padding to make room for indicators */
    background-color: #f0f7f1;
}

.testimonials-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 15px;
}

.testimonials-header i {
    font-size: 24px;
    color: #347c3b;
    opacity: 0.8;
}

.testimonials h2 {
    text-align: center;
    color: #347c3b;
    font-size: 36px;
    font-weight: 700;
    margin: 0;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    height: 400px; /* Fixed height for the slider */
}

.testimonial {
    background-color: #f0f7f1;
    padding: 30px;
    border-radius: 10px;
    margin: 0 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    height: 340px; /* Fixed height for each testimonial */
    overflow-y: auto; /* Add scrolling if content exceeds height */
}

.testimonial.active {
    display: block;
    opacity: 1;
}

.testimonial-content {
    position: relative;
    height: calc(100% - 60px); /* Allow room for author section */
    overflow-y: auto; /* Make content scrollable */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: rgba(52, 124, 59, 0.5) rgba(240, 247, 241, 0.5); /* For Firefox */
}

.testimonial-content::-webkit-scrollbar {
    width: 6px;
}

.testimonial-content::-webkit-scrollbar-track {
    background: rgba(240, 247, 241, 0.5);
    border-radius: 10px;
}

.testimonial-content::-webkit-scrollbar-thumb {
    background-color: rgba(52, 124, 59, 0.5);
    border-radius: 10px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author p {
    margin: 0;
    font-weight: 600;
}

.author-title {
    font-size: 14px;
    color: #666;
    display: block;
    font-weight: normal;
}

/* Testimonial Navigation */
.testimonial-controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    pointer-events: none;
}

.testimonial-arrow {
    background-color: #347c3b;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    pointer-events: auto;
    opacity: 0.8;
}

.testimonial-arrow:hover {
    background-color: #295f2e;
    opacity: 1;
    transform: scale(1.1);
}

.testimonial-arrow.prev {
    left: -20px;
}

.testimonial-arrow.next {
    right: -20px;
}

.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d0e6d3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background-color: #347c3b;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .testimonial-arrow {
        width: 35px;
        height: 35px;
        opacity: 0.9;
    }

    .testimonial-arrow.prev {
        left: -10px;
    }

    .testimonial-arrow.next {
        right: -10px;
    }

    .testimonial {
        padding: 20px;
        margin: 0 10px;
        height: 290px; /* Adjusted for mobile */
    }

    .testimonial-content {
        height: calc(100% - 50px);
    }

    .testimonial-content p {
        font-size: 14px;
        line-height: 1.5;
    }

    .testimonial-author p {
        font-size: 14px;
    }

    .author-title {
        font-size: 12px;
    }

    .testimonial-dot {
        width: 8px;
        height: 8px;
    }
}

/* Guarantee Section */
.guarantee {
    padding: 20px 0;
    background-color: #f0f7f1;
}

.guarantee-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.guarantee-icon {
    font-size: 80px;
    color: #347c3b;
    flex-shrink: 0;
}

.guarantee-text h2 {
    margin-bottom: 20px;
    color: #347c3b;
}

.guarantee-text p {
    font-size: 18px;
}

/* FAQ Section */
.faq {
    padding: 20px 0;
    background-color: white;
}

.faq h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #347c3b;
    font-size: 36px;
    font-weight: 700;
}

/* FAQ Categories */
.faq-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 10px;
}

.faq-category {
    background-color: #f0f7f1;
    border: 1px solid #e6f2e8;
    color: #347c3b;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 600;
    font-size: 16px;
    will-change: background-color, color;
}

.faq-category:hover {
    background-color: #e6f2e8;
}

.faq-category.active {
    background-color: #347c3b;
    color: white;
}

/* FAQ Lists */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: none;
    transform: translateZ(0); /* Force GPU acceleration */
    will-change: opacity;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    left: 0;
    right: 0;
    transition: opacity 0.15s ease-in;
}

.faq-list.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    background-color: #fff;
}

.faq-item:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px;
    background-color: #f0f7f1;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    will-change: background-color;
}

.faq-question:hover {
    background-color: #e6f2e8;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    padding: 0;
}

.faq-question i {
    transition: transform 0.2s ease;
    color: #347c3b;
    font-size: 16px;
    will-change: transform;
}

.faq-answer {
    background-color: #fff;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.2s ease;
}

.faq-answer p {
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.faq-item.active .faq-question {
    background-color: #e6f2e8;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 2000px;
    transition: max-height 0.4s ease-in, padding 0.2s ease;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background-color: #347c3b;
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.guarantee-badge {
    display: inline-block;
    background-color: white;
    color: #347c3b;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 20px;
}

.guarantee-badge i {
    margin-right: 10px;
    color: #347c3b;
}

/* Footer */
footer {
    background-color: #222;
    color: white;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;

}

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: white;
}

.footer-links h3, .footer-contact h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h3:after, .footer-contact h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #347c3b;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a:hover {
    color: #347c3b;
}

.footer-contact p {
    margin-bottom: 15px;
}

.footer-contact a {
    color: #347c3b;
}

.footer-bottom {
    background-color: #1a1a1a;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

.footer-legal {
    margin-top: 10px;
    opacity: 0.7;
}

.footer-legal a:hover {
    color: #347c3b;
}

.disclaimer {
    background-color: #f0f7f1;
    padding: 20px;
    font-size: 12px;
    color: #666;
    text-align: center;
    border-top: 1px solid #ddd;
}

/* Media Queries */
@media (max-width: 1300px) {
    .award-badge {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(50%, -15%);
        width: 150px; /* Slightly smaller than full desktop */
        z-index: 3;
        filter: brightness(1.3) contrast(1.1);
        opacity: 1;
        animation: none;
    }

    .customers-badge {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(45%, 110%);
        width: 160px; /* Slightly smaller than full desktop */
        z-index: 3;
        opacity: 1;
        animation: none;
    }

    .quality-badge {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(50%, -130%);
        width: 150px; /* Slightly smaller than full desktop */
        z-index: 3;
        opacity: 1;
        animation: none;
    }

    /* Ensure layout is desktop-style */
    .hero {
        padding-bottom: 80px;
        overflow: hidden;
    }

    .hero .container {
        flex-direction: row;
        align-items: center;
    }

    .hero-content {
        max-width: 600px;
    }
}

@media (max-width: 1100px) {
    .award-badge {
        width: 120px;
        transform: translate(20px, -50%);
    }

    .customers-badge {
        width: 120px;
        transform: translate(20px, 60%);
    }
}

@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .cta-container {
        justify-content: center; /* Center the button on smaller screens */
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .award-badge {
        top: 20px;
        left: auto;
        right: 20px;
        width: 100px;
        transform: none;
    }

    .customers-badge {
        top: 140px;
        left: auto;
        right: 20px;
        width: 100px;
        transform: none;
    }

    .quality-badge {
        top: 260px;
        left: auto;
        right: 20px;
        width: 100px;
        transform: none;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    /* Move reviews badge above the hero content */
    .reviews-badge {
        position: absolute;
        top: 34px; /* Position at the top */
        left: 50%;
        transform: translateX(-50%); /* Center horizontally */
        width: 200px;
        height: auto;
        z-index: 5;
    }

    /* Horizontal alignment of badges below hero content */
    .award-badge, .quality-badge, .customers-badge {
        position: absolute;
        bottom: 40px; /* Position below hero content */
        top: auto; /* Reset top positioning */
        transform: none;
        display: inline-block !important; /* Ensure badges are always displayed */
        opacity: 1 !important; /* Ensure badges are visible */
        z-index: 999; /* Ensure badges appear above all other elements */
        height: auto;
    }

    /* Award badge on the left */
    .award-badge {
        left: 0;
        width: 100px; /* Reduce size to ensure it fits */
        transform: translateY(13%);
        visibility: visible !important;
    }

    /* Quality badge in the center */
    .quality-badge {
        left: 50%;
        transform: translateX(-50%);
        width: 110px;
        visibility: visible !important;
    }

    /* Customers badge on the right */
    .customers-badge {
        right: 3%;
        left: auto;
        width: 110px;
        visibility: visible !important;
    }

    /* Use mobile-specific background image */
    .hero {
        background-image: url('images/mobile-bg.webp');
        background-position: center top;
        padding-bottom: 120px !important; /* Increase padding to ensure badges are visible */
        overflow: visible !important; /* Allow badges to be visible outside the section */
    }

    /* Ensure section below hero doesn't overlap badges */
    .intro {
        margin-top: 40px;
    }

    /* Fix button alignment on mobile */
    .cta-text {
        transform: translate(-62%, -50%); /* Move text slightly to the left on mobile */
        font-size: 18px;
    }

    .cta-button {
        position: relative;
        display: inline-block;
        transition: transform 0.3s ease;
        width: 270px; /* Control size on mobile */
    }

    .cta-button::after {
        background-position: 45% center; /* Align hover image with text position */
        background-size: contain !important;
        width: 270px !important;
    }

    .hero a:hover .reviews-badge {
        transform: translateX(-50%) scale(1.05); /* Adjust hover effect for new positioning */
    }

    /* Restore other mobile styles */
    .main-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .guarantee-content {
        flex-direction: column;
        text-align: center;
    }

    .guarantee-icon {
        margin-bottom: 20px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .footer-legal {
        margin-top: 15px;
    }

    .cta-arrow {
        width: 80px; /* Smaller arrow on mobile */
    }

    .cta-image {
        max-width: 270px; /* Control the size of the CTA image on mobile */
    }

    .cta-button::after {
        background-size: 200px auto; /* Match the size of the CTA image on mobile */
    }
}

/* ===== SCROLL ANIMATIONS (v1.1.0) ===== */
/* Base animation classes */
.section-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Specific animation types */
section.fade-in {
    opacity: 0;
    transform: translateY(0);
    transition: opacity 1s ease;
}

section.fade-in.animate {
    opacity: 1;
}

section.fade-in-stagger {
    opacity: 0;
    transition: opacity 0.8s ease;
}

section.fade-in-stagger.animate {
    opacity: 1;
}

section.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.slide-up.animate {
    opacity: 1;
    transform: translateY(0);
}

section.zoom-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.zoom-in.animate {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animations for children elements */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-item.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Feature cards animations */
.feature-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Steps animations */
.step-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.step-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Quiz questions animations */
.quiz-question-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.quiz-question-visible {
    opacity: 1;
    transform: translateY(0);
}

/* FAQ items animations */
.faq-item-hidden {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.faq-item-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page transition effect */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.2s cubic-bezier(0.65, 0, 0.35, 1); /* Reduced from 0.5s to 0.2s */
}

.page-transition.active {
    transform: translateX(0);
}

/* Yotpo Widget Styling */
.yotpo-section {
    max-width: 1500px;
    margin: 10px auto;
    padding: 0 20px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.yotpo-section .Container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.yotpo-section .Heading {
    font-size: 32px;
    color: #347c3b;
    text-align: center;
    margin-bottom: 30px;
}

/* Fix Yotpo widget width and alignment */
.yotpo.yotpo-main-widget {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure Yotpo reviews display properly */
.yotpo .yotpo-regular-box {
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    padding: 15px !important;
}

/* Responsive styles for Yotpo section */
@media (max-width: 768px) {
    .yotpo-section {
        margin: 40px auto;
        padding: 0 15px;
    }

    .yotpo-section .Heading {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .yotpo .yotpo-regular-box {
        padding: 10px !important;
    }
}

/* Additional Yotpo Widget Fixes */
.yotpo .yotpo-display-wrapper {
    width: 100% !important;
    max-width: 100% !important;
}

.yotpo .yotpo-nav-content {
    width: 100% !important;
    max-width: 100% !important;
}

.yotpo .yotpo-review {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
    padding: 15px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

/* Fix Yotpo stars alignment */
.yotpo .yotpo-review .yotpo-header .yotpo-review-stars {
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Fix Yotpo review content spacing */
.yotpo .yotpo-review .content-review {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

/* Hide Yotpo Q&A section */
.yotpo-qa-widget,
.yotpo .yotpo-nav-tab[data-tab="questions"],
.yotpo .yotpo-nav-tab[data-type="questions"],
.yotpo-questions-container,
.yotpo-questions,
.yotpo a[href="#qna"],
.yotpo div[id="qna"] {
    display: none !important;
}

/* Video Gallery Styles */
.video-gallery {
    padding: 20px 0;
    background-color: #f9f9f9;
    position: relative;
}

.video-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, #f0f7f1, #f9f9f9);
    z-index: 1;
}

.video-gallery .container {
    position: relative;
    z-index: 2;
}

.video-gallery-title {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 36px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.video-gallery-subtitle {
    text-align: center;
    margin-bottom: 15px;
    color: #347c3b;
    font-size: 24px;
    font-weight: 600;
}

.video-gallery-description {
    text-align: center;
    margin: 0 auto 40px;
    max-width: 900px;
    color: #555;
    font-size: 18px;
    line-height: 1.6;
}

.video-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 20px;
}

.video-container {
    flex-basis: calc(50% - 10px);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    background-color: white;
    display: flex;
    flex-direction: column;
}

.video-container:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.video-container h3 {
    padding: 15px 20px;
    margin: 0;
    background-color: #347c3b;
    color: white;
    font-size: 18px;
    text-align: center;
    line-height: 1.4;
}

.video-caption {
    padding: 15px 20px;
    margin: 0;
    text-align: center;
    font-size: 15px;
    color: #555;
    border-top: 1px solid #eee;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .video-row {
        flex-direction: column;
    }

    .video-container {
        flex-basis: 100%;
    }
}

@media (max-width: 768px) {
    .video-gallery-title {
        font-size: 28px;
    }

    .video-gallery-description {
        font-size: 16px;
        padding: 0 15px;
    }

    .video-container h3 {
        font-size: 16px;
        padding: 12px 15px;
    }

    .video-caption {
        font-size: 14px;
        padding: 12px 15px;
    }
}

/* Reasons Section Animation Styles */
.reasons-list {
    counter-reset: reason-counter;
    padding: 25px !important;
    background-color: white;
    border-radius: 12px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reasons-section:hover .reasons-list {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1) !important;
}

.reason-item {
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: relative;
    padding: 15px 10px !important;
    border-bottom: 1px solid rgba(240, 240, 240, 0.7) !important;
    border-radius: 6px;
    margin-bottom: 5px;
}

.reason-item:last-child {
    border-bottom: none !important;
}

.reason-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.check-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: #347c3b;
    color: white;
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.check-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.reason-item.visible .check-container {
    transform: scale(1);
}

.reason-item.visible .check-container::before {
    animation: checkPulse 0.8s ease-out;
}

.reason-text {
    font-size: 16px;
    color: #333;
    margin-left: 5px;
    flex: 1;
    line-height: 1.4;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.reason-item.visible .reason-text {
    opacity: 1;
    transform: translateX(0);
}

@keyframes checkPulse {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Check icon animation */
.check-container i {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.reason-item.visible .check-container i {
    opacity: 1;
    transform: scale(1);
    animation: checkBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.2s;
}

@keyframes checkBounce {
    0% {
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.2);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.reason-item.visible {
    animation: reasonHighlight 1.5s ease-out;
    animation-fill-mode: forwards;
}

@keyframes reasonHighlight {
    0% {
        background-color: transparent;
    }
    20% {
        background-color: rgba(52, 124, 59, 0.1);
    }
    100% {
        background-color: transparent;
    }
}

.reason-item:hover .check-container {
    transform: scale(1.1);
    background-color: #295f2e;
}

.reason-item:hover .check-container::before {
    animation: checkPulse 0.8s ease-out;
}

/* Apply a staggered delay to each reason item */
.reason-item:nth-child(1) { transition-delay: 0.05s; }
.reason-item:nth-child(2) { transition-delay: 0.1s; }
.reason-item:nth-child(3) { transition-delay: 0.15s; }
.reason-item:nth-child(4) { transition-delay: 0.2s; }
.reason-item:nth-child(5) { transition-delay: 0.25s; }
.reason-item:nth-child(6) { transition-delay: 0.3s; }
.reason-item:nth-child(7) { transition-delay: 0.35s; }
.reason-item:nth-child(8) { transition-delay: 0.4s; }
.reason-item:nth-child(9) { transition-delay: 0.45s; }
.reason-item:nth-child(10) { transition-delay: 0.5s; }

.reason-item:nth-child(1) .check-container { transition-delay: 0.15s; }
.reason-item:nth-child(2) .check-container { transition-delay: 0.2s; }
.reason-item:nth-child(3) .check-container { transition-delay: 0.25s; }
.reason-item:nth-child(4) .check-container { transition-delay: 0.3s; }
.reason-item:nth-child(5) .check-container { transition-delay: 0.35s; }
.reason-item:nth-child(6) .check-container { transition-delay: 0.4s; }
.reason-item:nth-child(7) .check-container { transition-delay: 0.45s; }
.reason-item:nth-child(8) .check-container { transition-delay: 0.5s; }
.reason-item:nth-child(9) .check-container { transition-delay: 0.55s; }
.reason-item:nth-child(10) .check-container { transition-delay: 0.6s; }

@media (max-width: 768px) {
    .reason-item {
        padding: 12px 8px !important;
    }

    .reason-text {
        font-size: 14px;
    }

    .check-container {
        width: 20px;
        height: 20px;
    }
}

/* Video thumbnail container styles */
.video-thumbnail {
    position: relative;
    cursor: pointer;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.video-thumbnail:hover::after {
    background-color: rgba(0, 0, 0, 0.4);
}

.video-thumbnail:hover {
    transform: scale(1.02);
}

/* Adjust play button size for better proportions */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px; /* Slightly larger play button */
    height: 48px;
    z-index: 1;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Make iframe container match thumbnail size */
.video-iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Customer Reviews Section */
.customer-reviews {
    background-color: #f9f9f9;
    padding: 20px 0;
    position: relative;
}

.customer-reviews h2 {
    text-align: center;
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.customer-reviews h2:after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FF6B00;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 300px; /* Fixed height */
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.review-card:before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 60px;
    color: rgba(255, 107, 0, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    flex-grow: 1;
    position: relative;
    z-index: 1;
    overflow-y: auto; /* Make content scrollable */
    height: calc(100% - 65px); /* Leave space for author info */
    padding-right: 5px; /* Space for scrollbar */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: rgba(52, 124, 59, 0.5) #f0f0f0; /* For Firefox */
}

.review-text::-webkit-scrollbar {
    width: 5px;
}

.review-text::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.review-text::-webkit-scrollbar-thumb {
    background-color: rgba(52, 124, 59, 0.5);
    border-radius: 10px;
}

.review-author {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0; /* Prevent shrinking */
}

.review-author h4 {
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 5px 0;
}

.review-author p {
    font-size: 0.85rem;
    color: #777;
    margin: 0;
}

@media (max-width: 992px) {
    .reviews-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .review-card {
        height: 280px; /* Slightly smaller on tablets */
    }
}

@media (max-width: 768px) {
    .customer-reviews {
        padding: 10px 0;
    }

    .customer-reviews h2 {
        font-size: 2rem;
    }

    .reviews-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .review-card {
        height: 250px; /* Smaller on mobile */
    }

}

/* Add specific media queries for the in-between state (769px to 1099px) */
@media (min-width: 769px) and (max-width: 1099px) {
    /* Use mobile layout for this range per requirements */
    /* Badge positioning for in-between widths */
    .award-badge {
        position: absolute;
        top: auto;
        bottom: -80px;
        left: 5%;
        transform: none;
        width: 130px;
        z-index: 999;
    }

    .quality-badge {
        position: absolute;
        top: auto;
        bottom: -80px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        z-index: 999;
    }

    .customers-badge {
        position: absolute;
        top: auto;
        bottom: -80px;
        right: 5%;
        left: auto;
        transform: none;
        width: 100px;
        z-index: 999;
    }

    .reviews-badge {
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 220px;
        z-index: 999;
    }

    /* Ensure hero has enough bottom padding for badges */
    .hero {
        padding-bottom: 120px;
        overflow: visible;
    }

    /* Center the hero content */
    .hero .container {
        flex-direction: column;
        align-items: center;
    }

    .hero-content {
        max-width: 80%;
    }

    /* Add margin to the intro section to prevent overlap */
    .intro {
        margin-top: 40px;
    }
}

/* Bed Bug Treatment Plans Section */
.treatment-plans {

    background-color: #fff;
    text-align: center;
}

.plans-title {
    font-size: 42px;
    color: #2d464f;
    margin-bottom: 20px;
    font-weight: 600;
}

.plans-subtitle {
    max-width: 800px;
    margin: 0 auto 10px;
    font-size: 18px;
    color: #444;
}

.plans-additional {
    margin-bottom: 40px;
    font-size: 16px;
    color: #555;
}

.plans-additional a {
    color: #347c3b;
    text-decoration: underline;
    font-weight: 600;
}

.plans-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0 auto 40px;
    flex-wrap: wrap;
    max-width: 1200px;
}

.plan-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.plan-header {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.plan-header h3 {
    font-size: 24px;
    color: #2d464f;
    margin-bottom: 0;
    font-weight: 600;
    line-height: 1.3;
}

.plan-image {
    margin-bottom: 20px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.plan-details {
    min-height: 80px;
    margin-bottom: 15px;
}

.plan-details p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.plan-price {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
}

.plan-price .original {
    text-decoration: line-through;
    color: #999;
    font-size: 20px;
}

.plan-price .sale {
    color: #347c3b;
    margin-left: 5px;
}

.plan-savings {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}

.plan-cta {
    display: block;
    background-color: #347c3b;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 auto;
    max-width: 200px;
}

.plan-cta:hover {
    background-color: #2a6430;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 124, 59, 0.2);
}

.best-value {
    border: 2px solid #347c3b;
}

.recommendation-tag {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: #2a6430;
    color: white;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    transform: translateY(-100%);
}

.citation {
    font-size: 12px;
    color: #888;
    text-align: center;
}

/* Responsive styles for Treatment Plans */
@media (max-width: 960px) {
    .plans-grid {
        flex-direction: column;
        align-items: center;
    }

    .plan-card {
        max-width: 450px;
        width: 100%;
        margin-bottom: 40px;
    }

    .plan-card:last-child {
        margin-bottom: 20px;
    }

    .recommendation-tag {
        position: relative;
        transform: none;
        margin: -25px -25px 20px -25px;
        border-radius: 0;
    }

    .plan-card:has(.recommendation-tag) {
        order: -1;
        margin-top: 25px;
    }
}

@media (max-width: 576px) {
    .plans-title {
        font-size: 32px;
    }

    .plans-subtitle {
        font-size: 16px;
    }

    .plan-card {
        min-width: auto;
        width: 90%;
    }

    .plan-details {
        min-height: auto;
    }

}

/* Add rules for main-menu when active on mobile */
.main-menu.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: auto;
    right: 0;
    width: 280px;
    height: 100%;
    background-color: white;
    padding: 0;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 0 0 0 10px;
    margin-top: 0;
    animation: slideRight 0.3s ease-in-out;
    overflow-y: auto;
}

.main-menu.active li {
    margin-bottom: 8px;
    text-align: left;
    padding: 12px 25px;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.main-menu.active li:hover {
    background-color: #f0f7f1;
    border-left: 4px solid #347c3b;
}

.main-menu.active li:first-child {
    margin-top: 60px;
}

.main-menu.active li:last-child {
    margin-bottom: 20px;
    padding: 12px 25px;
}

.main-menu.active li a {
    display: block;
    width: 100%;
}

.main-menu.active li a.btn-primary {
    margin: 5px 0;
    text-align: center;
}

@keyframes slideRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Mobile floating header styles - changed from 768px to 1000px */
@media (max-width: 1060px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1001;
        padding: 10px 0;
    }

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
    }

    .logo {
        display: flex;
        align-items: center;
        margin-left: 10px;
    }

    .logo h1 {
        font-size: 1.2rem;
        margin-left: 10px;
    }

    .logo-image {
        width: 30px;
        height: 30px;
        margin-left: 20px;
    }

    body {
        padding-top: 60px; /* Add padding to body to account for fixed header */
    }

    .mobile-menu-toggle {
        display: block;
        font-size: 1.5rem;
        color: #333;
        cursor: pointer;
        padding: 5px;
        margin-right: 10px;
        border-radius: 5px;
        transition: all 0.3s ease;
        overflow: hidden;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-toggle:hover {
        color: #4CAF50;
        transform: scale(1.1);
    }

    .mobile-menu-toggle.active {
        color: #4CAF50;
    }

    .main-menu {
        display: none;
    }
}

/* Keep padding for larger screens */
@media (min-width: 1061px) {
    header .container {
        padding: 0 20px; /* Reduced from padding: 0 20px to remove vertical padding */
    }

    .mobile-menu-toggle {
        display: none;
    }

    .main-menu {
        display: flex;

    }

    .mobile-menu-close {
        display: none;
    }
}

/* Menu overlay for when menu is active */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile menu close button */
.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background-color: #f0f7f1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    color: #4CAF50;
    transform: rotate(90deg);
}

/* Mobile styles for h1 */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 24px !important; /* Reduced from 32px */
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero-content p {
        margin-bottom: 0px;
    }


    .logo h1 {
        font-size: 20px !important; /* Reduced from 24px */
    }
    .phone a {
        font-weight: 600;
        font-size: 12px;
    }
    .fa-phone {
        display: none;
    }

}

/* Mobile Scroll Indicator */
.scroll-indicator {
    display: none; /* Hidden by default */
    position: fixed; /* Changed from absolute to fixed */
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    cursor: pointer;
    z-index: 100; /* Higher z-index to ensure it's above other elements */
    width: 50px;
    height: 50px;
    background-color: rgba(52, 124, 59, 0.9); /* Brand green with opacity */
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: bounce 2s infinite;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-indicator i {
    color: white;
    font-size: 24px;
    line-height: 50px; /* Center vertically */
}

.scroll-indicator.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Show the scroll indicator only on mobile */
@media (max-width: 768px) {
    .scroll-indicator {
        display: block;
    }
}

@media (max-width: 768px) {
    .award-badge {
        position: absolute !important;
        top: auto !important;
        bottom: 40px !important; /* Position below hero content */
        left: 14px !important;
        transform: translateY(13%) !important; /* Match existing mobile positioning */
        width: 110px !important; /* Fixed smaller width for mobile */
        height: auto !important;
        z-index: 4 !important;
        visibility: visible !important;
    }

    /* Other mobile styles remain unchanged */
}

/* Add styles for the new dropdown menu */
.main-menu .dropdown {
    position: relative;
}

.main-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 10px 0;
    list-style: none;
    min-width: 160px; /* Adjust as needed */
    z-index: 101; /* Ensure it's above other elements */
}

.main-menu .dropdown:hover .dropdown-menu,
.main-menu .dropdown:focus-within .dropdown-menu { /* Added focus-within for accessibility */
    display: block;
}

.main-menu .dropdown-menu li {
    margin: 0;
}

.main-menu .dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    white-space: nowrap;
    text-decoration: none;
    font-weight: 400; /* Adjust weight if needed */
}

.main-menu .dropdown-menu li a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* Style the dropdown toggle */
.main-menu .dropdown-toggle {
    display: flex;
    align-items: center;
}

.main-menu .dropdown-icon {
    margin-left: 5px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.main-menu .dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Adjustments for Mobile Menu (if necessary - based on how script.js handles it) */
/* If mobile menu uses a class like 'mobile-menu-open' on nav or header */
.mobile-menu-open .main-menu .dropdown-menu {
    position: static; /* Change position for mobile layout */
    box-shadow: none;
    border-radius: 0;
    padding-left: 15px; /* Indent submenu items */
    background-color: transparent;
}

.mobile-menu-open .main-menu .dropdown:hover .dropdown-menu {
    display: block; /* Ensure it stays block on hover even on mobile if menu is open */
}

.mobile-menu-open .main-menu .dropdown-menu li a {
    padding: 8px 0; /* Adjust padding for mobile */
}

/* Adjustments for Mobile Menu (when .active class is present) */
.main-menu.active .dropdown-menu {
    /* Don't show the dropdown menu by default in mobile mode */
    display: none;
    position: static; /* Always use static position for mobile layout */
    box-shadow: none;
    border-radius: 0;
    padding: 10px 0 10px 25px; /* Indent submenu items, adjusted padding */
    background-color: transparent;
    border: none;
    margin-top: 5px; /* Add some space above */
}

/* Only show dropdown menu when .dropdown-open class is present */
.main-menu.active .dropdown.dropdown-open .dropdown-menu {
    display: block;
}

.main-menu.active .dropdown-menu li a {
    padding: 8px 0; /* Adjust padding for mobile */
    font-weight: 400;
    color: var(--text-color); /* Ensure correct text color */
}

.main-menu.active .dropdown-menu li a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* Rotate icon when dropdown is open in mobile view */
.main-menu.active .dropdown.dropdown-open .dropdown-icon {
    transform: rotate(180deg);
}

/* Add default state and transition for mobile icon */
.main-menu.active .dropdown .dropdown-icon {
    transition: transform 0.3s ease;
    transform: rotate(0deg); /* Explicitly set default rotation */
}

/* Ensure desktop hover still works correctly (overrides mobile static display if needed) */
@media (min-width: 1061px) { /* Adjust this breakpoint if necessary */
    .main-menu .dropdown-menu {
        display: none; /* Default state on desktop */
        position: absolute; /* Ensure absolute positioning on desktop */
        background-color: var(--white);
        box-shadow: var(--box-shadow);
        border-radius: var(--border-radius);
        padding: 10px 0;
        min-width: 160px;
        z-index: 101;
        margin-top: 0;
    }

    .main-menu .dropdown:hover .dropdown-menu,
    .main-menu .dropdown:focus-within .dropdown-menu {
        display: block; /* Show on hover/focus on desktop */
    }

    .main-menu .dropdown:hover .dropdown-icon {
      transform: rotate(180deg); /* Restore icon rotation on desktop */
    }
}

/* Existing styles might need adjustments below this point... */

/* Adjustments for Mobile Menu (when .active class is present) */
/* Hide dropdown menu by default OR when dropdown-open class is NOT present */
.main-menu.active .dropdown:not(.dropdown-open) .dropdown-menu {
    display: none;
}

/* Explicitly set static position and other base styles for mobile dropdown menu container */
.main-menu.active .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding: 10px 0 10px 25px;
    background-color: transparent;
    border: none;
    margin-top: 5px;
}

/* Only show dropdown menu when .dropdown-open class IS present */
.main-menu.active .dropdown.dropdown-open .dropdown-menu {
    display: block;
}