/* Global Reset and Box-Sizing */
body {
    font-family: 'Lato', sans-serif;
    color: #333333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Container for Centering Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Headings */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
}

h1 { font-size: 2.8em; color: #8E44AD; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping on buttons */
}

.btn-primary {
    background-color: #F1C40F;
    color: #333333; /* Dark text on vibrant yellow */
    border: none;
}

.btn-primary:hover {
    background-color: #e0b40e;
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.3em;
}

/* Header */
header {
    background-color: #FFFFFF;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    height: 50px; /* Adjust as needed */
    max-width: 180px;
}

header nav a {
    color: #333333;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 700;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #8E44AD;
}

.order-now-btn {
    background-color: #F1C40F;
    color: #333333;
    padding: 10px 20px;
    font-size: 1em;
}

/* Hero Section */
#hero {
    background-color: #F4E8FF;
    padding: 80px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    color: #8E44AD;
    font-size: 3.5em;
    margin-bottom: 15px;
}

.hero-text .tagline {
    font-size: 1.5em;
    font-weight: 700;
    color: #333333;
    margin-bottom: 20px;
}

.hero-text .description {
    font-size: 1.1em;
    margin-bottom: 25px;
}

.hero-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.hero-text ul li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.hero-text ul li img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.hero-text .call-to-action {
    font-size: 1.2em;
    font-weight: 700;
    color: #8E44AD;
    margin-bottom: 30px;
}

.hero-cta {
    font-size: 1.4em;
    padding: 20px 40px;
}

.hero-image {
    text-align: center;
    position: relative;
}

.product-hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-image .rating {
    margin-top: 20px;
    font-size: 1.1em;
    color: #333333;
}

.hero-image .rating .stars {
    color: #F1C40F;
    font-size: 1.4em;
    vertical-align: middle;
}

/* Universal H2 Styling */
.h2-wrapper {
    background-color: #8E44AD;
    padding: 20px 0;
    margin-bottom: 40px; /* Space after the title band */
}

.section-title {
    color: #FFFFFF;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

/* Trust Badges Section */
#why-choose-us {
    padding-bottom: 60px; /* Adjust padding as needed */
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.badge-item img {
    height: 80px;
    margin-bottom: 15px;
}

.badge-item h3 {
    color: #8E44AD;
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* Two Column Layout (What is Audifort) */
.two-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding-bottom: 60px;
}

.two-column-section .text-content ul {
    list-style: none;
    padding-left: 0;
}

.two-column-section .text-content ul li {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333333;
}

.two-column-section .image-content {
    text-align: center;
}

.two-column-section .image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* How It Works Section */
#how-it-works {
    padding-bottom: 60px;
}

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

.feature-block {
    background-color: #F4E8FF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-block h3 {
    color: #8E44AD;
    margin-bottom: 15px;
}

.feature-block.full-width {
    grid-column: 1 / -1; /* Spans all columns */
    text-align: center;
    background: none;
    box-shadow: none;
    padding: 0;
}

.feature-block .summary-text {
    font-size: 1.2em;
    font-weight: 700;
    color: #333333;
    margin-bottom: 10px;
}

/* Customer Reviews Section */
#reviews {
    padding-bottom: 60px;
}

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

.review-card {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.review-card .review-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #F1C40F;
}

.review-card .stars {
    color: #F1C40F;
    font-size: 1.2em;
    margin-bottom: 10px;
    display: block;
}

.review-card .verified-purchase {
    font-size: 0.9em;
    color: #5cb85c;
    font-weight: 700;
    margin-bottom: 15px;
}

.review-card .review-text {
    font-style: italic;
    margin-bottom: 15px;
}

.review-card .reviewer-name {
    font-weight: 700;
    color: #8E44AD;
}

/* Pricing Section */
#pricing {
    background-color: #F4E8FF;
    padding-bottom: 60px;
}

.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: flex-end; /* Align cards to the bottom */
}

.price-card {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    padding-top: 50px; /* Space for the banner if popular */
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.price-card img {
    max-width: 80%;
    height: auto;
    margin-bottom: 20px;
}

.price-card h3 {
    color: #8E44AD;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.price-card .price {
    font-size: 2.5em;
    font-weight: 700;
    color: #333333;
    margin-bottom: 5px;
}

.price-card .per-bottle {
    font-size: 0.6em;
    vertical-align: middle;
    color: #666666;
}

.price-card .shipping {
    font-size: 1.1em;
    color: #5cb85c; /* Green for free shipping */
    margin-bottom: 25px;
    font-weight: 700;
}

.price-card .btn-primary {
    width: 100%;
    padding: 15px 0;
    font-size: 1.2em;
}

.price-card.popular {
    transform: scale(1.05);
    border: 3px solid #F1C40F;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px; /* Lift popular card slightly */
    z-index: 1; /* Ensure it overlaps */
}

.popular .best-value-banner {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #F1C40F;
    color: #333333;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Bonuses Section */
#bonuses {
    padding-bottom: 60px;
}

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

.bonus-item {
    display: flex;
    align-items: center;
    background-color: #F4E8FF;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.bonus-item img {
    width: 120px; /* Size of bonus ebook cover */
    height: auto;
    margin-right: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bonus-item .bonus-text h3 {
    color: #8E44AD;
    margin-bottom: 10px;
}

/* Ingredients Section */
#ingredients {
    padding-bottom: 60px;
}

.ingredients-list ol {
    list-style: decimal;
    padding-left: 20px;
}

.ingredients-list ol li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.ingredients-list ol li strong {
    color: #8E44AD;
}

/* Guarantee Section */
#guarantee {
    background-color: #F4E8FF;
    padding-bottom: 60px;
}

.guarantee-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.guarantee-image {
    text-align: center;
}

.guarantee-image img {
    max-width: 250px;
    height: auto;
}

.guarantee-text h3 {
    color: #8E44AD;
    font-size: 2em;
    margin-bottom: 20px;
}

/* FAQ Section */
#faq {
    padding-bottom: 60px;
}

.faq-accordion .faq-item {
    background-color: #FFFFFF;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.faq-accordion .faq-question {
    background-color: #f9f9f9;
    color: #333333;
    padding: 18px 25px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.faq-accordion .faq-question::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.faq-accordion .faq-item.active .faq-question::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-accordion .faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: #ffffff;
}

.faq-accordion .faq-item.active .faq-answer {
    max-height: 500px; /* Arbitrary large value to allow content to show */
    padding: 15px 25px 25px;
}

.faq-accordion .faq-answer p {
    margin: 0;
}

/* Video Section */
#product-video {
    background-color: #FFFFFF;
    padding: 60px 20px;
    text-align: center;
}

#product-video h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 30px;
}

.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

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

/* How to Buy Section */
#how-to-buy {
    background-color: #F4E8FF;
    padding: 60px 20px;
    text-align: center;
}

#how-to-buy h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 30px;
}

#how-to-buy p {
    max-width: 800px;
    margin: 0 auto 15px;
    font-size: 1.1em;
    line-height: 1.6;
}

#how-to-buy strong {
    color: #8E44AD;
}

#how-to-buy .btn { /* Custom style for this button */
    background-color: #6A1B9A;
    color: #fff;
    padding: 15px 40px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1em;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#how-to-buy .btn:hover {
    background-color: #5a158a;
    transform: translateY(-2px);
}


/* Final CTA Section */
#final-cta {
    background-color: #333333;
    color: #FFFFFF;
    padding: 80px 0;
    text-align: center;
}

#final-cta h2 {
    color: #FFFFFF;
    font-size: 2.5em;
    margin-bottom: 30px;
}

.final-cta-img {
    max-width: 300px;
    height: auto;
    margin-bottom: 30px;
}

#final-cta p {
    font-size: 1.5em;
    margin-bottom: 10px;
}

#final-cta p del {
    color: #cccccc;
}

#final-cta .final-price {
    font-size: 2.8em;
    font-weight: 700;
    color: #F1C40F; /* Vibrant yellow for the final price */
    margin-bottom: 40px;
}

/* Footer */
footer {
    background-color: #8E44AD;
    color: #FFFFFF;
    padding: 40px 0 20px;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 30px;
    width: 100%;
    max-width: 600px; /* Limit width for footer links */
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #F1C40F;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #F1C40F;
}

.footer-disclaimers {
    font-size: 0.8em;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 20px;
    max-width: 900px;
}

.copyright {
    font-size: 0.8em;
    margin-top: 20px;
    color: #cccccc;
}

.copyright a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
}

#faq {
    padding-bottom: 60px;
}

.faq-accordion .faq-item {
    background-color: #FFFFFF;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden; /* Crucial for hiding content when max-height is 0 */
}

.faq-accordion .faq-question {
    background-color: #f9f9f9;
    color: #333333;
    padding: 18px 25px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.faq-accordion .faq-question::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.faq-accordion .faq-item.active .faq-question::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-accordion .faq-answer {
    padding: 0 25px;
    max-height: 0; /* Start with 0 max-height */
    transition: max-height 0.4s ease-out, padding 0.4s ease-out; /* Smooth transition for both */
    background-color: #ffffff;
}

/* The .active class will now be handled by JS dynamically setting max-height */
/* Remove the .faq-item.active .faq-answer block from the previous CSS */
/* Instead, the JS will set the max-height to scrollHeight when 'active' */


.faq-accordion .faq-answer p {
    margin: 0;
    padding-top: 15px; /* Add padding to the paragraph inside for spacing */
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image {
        order: -1; /* Move image above text on smaller screens */
    }
    .two-column-section, .guarantee-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .guarantee-image {
        order: -1;
    }
    .bonus-item {
        flex-direction: column;
        text-align: center;
    }
    .bonus-item img {
        margin-right: 0;
        margin-bottom: 20px;
    }
    header .header-content {
        flex-direction: column;
        gap: 15px;
    }
    header nav {
        margin: 10px 0;
    }
    header nav a {
        margin: 0 10px;
    }
    .footer-links {
        grid-template-columns: 1fr; /* Stack footer columns */
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.5em; }
    .hero-text h1 { font-size: 2.8em; }
    .hero-cta { font-size: 1.2em; padding: 15px 30px; }
    .price-card.popular { transform: scale(1); border-width: 2px; } /* Reduce scale on small screens */
    .pricing-table {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .final-cta .final-price { font-size: 2em; }
    .video-wrapper {
        padding-bottom: 75%; /* More square for mobile */
    }
    #product-video h2, #how-to-buy h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .header-content, .footer-content {
        padding: 0 15px;
    }
    header nav a {
        font-size: 0.9em;
        margin: 0 8px;
    }
    .hero-text h1 { font-size: 2.2em; }
    .hero-text .tagline { font-size: 1.2em; }
    .hero-text .description, .hero-text ul li, .hero-text .call-to-action { font-size: 1em; }
    .btn-primary { padding: 12px 20px; font-size: 1em; }
    .btn-large { padding: 15px 25px; font-size: 1.1em; }
    .h2-wrapper { padding: 15px 0; }
    .section-title { font-size: 1.6em; }
    .review-card, .price-card, .bonus-item, .feature-block { padding: 20px; }
    .faq-accordion .faq-question { font-size: 1.1em; padding: 15px 20px; }
    .faq-accordion .faq-item.active .faq-answer { padding: 10px 20px 20px; }
    #final-cta h2 { font-size: 1.8em; }
}