/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Merriweather', serif;
    color: #222;
    margin-bottom: 1rem;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    margin-bottom: 30px;
}

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

.logo {
    font-family: 'Merriweather', serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: #2c3e50;
}

.main-header nav a {
    text-decoration: none;
    color: #555;
    margin-left: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Main Content Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 900px) {
    .content-wrapper {
        grid-template-columns: 2fr 1fr;
    }
}

/* Article Styles */
.main-headline {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.author-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

.author-text {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    flex-direction: column;
}

.author-separator {
    color: #ccc;
    margin: 0 8px;
    font-weight: 300;
}

.read-time-badge {
    background-color: #f3f4f6;
    color: #6b7280;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.intro-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Reason Sections */
.reason-section {
    margin-bottom: 40px;
    padding-top: 20px;
}

.reason-title {
    font-size: 1.5rem;
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #2c3e50;
}

.reason-number {
    background-color: #76c043;
    /* Green from image */
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.reason-content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.reason-image {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.reason-cta {
    text-align: center;
    margin-top: 20px;
}

/* Sidebar */
.sidebar {
    margin-top: 20px;
}

.sidebar-offer {
    background: #f4f9f4;
    border: 2px solid #76c043;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    position: sticky;
    top: 20px;
}

.sidebar-offer h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.sidebar-offer img {
    margin: 0 auto 15px;
}

/* CTA Button */
.cta-section {
    text-align: center;
    margin: 50px 0;
}

.cta-button {
    display: inline-block;
    background-color: #388e3c;
    /* Darker green for button */
    color: white;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: #2e7d32;
}

.cta-button.small {
    padding: 10px 20px;
    font-size: 1rem;
    width: 100%;
}

/* How It Works */
.how-it-works {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-top: 50px;
}

.how-it-works h2 {
    color: white;
    margin-bottom: 40px;
}

.diagram {
    background: white;
    padding: 20px;
    border-radius: 8px;
    display: inline-block;
}

/* Testimonials */
.testimonials {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.testimonial-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.stars {
    color: #f1c40f;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.user {
    margin-top: 15px;
    font-weight: 600;
    color: #555;
    text-align: right;
}

/* Footer */
footer {
    background: #222;
    color: #888;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 10px;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .main-headline {
        font-size: 1.8rem;
    }

    .reason-title {
        font-size: 1.3rem;
    }

    .reason-number {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

/* Medical Advisor Section */
.medical-advisor {
    padding: 60px 0;
    background-color: #f4f9f4;
    /* Light green background matching theme */
}

.advisor-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
}

@media (min-width: 768px) {
    .advisor-card {
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }
}

.advisor-profile {
    flex: 0 0 250px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.advisor-img-container {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.advisor-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advisor-badge {
    color: #2e7d32;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.badge-icon {
    font-size: 1.5rem;
}

.advisor-content {
    flex: 1;
}

.advisor-content h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.advisor-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    font-style: italic;
}

.advisor-signature {
    font-weight: 700;
    color: #333;
    text-align: right;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.advisor-features {
    display: flex;
    gap: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    color: #76c043;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .advisor-card {
        padding: 30px 20px;
    }

    .advisor-features {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .advisor-content h3 {
        font-size: 1.5rem;
        text-align: center;
    }
}

/* Updated Testimonial Styles */
.user-profile {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.user-profile img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 700;
    color: #333;
    font-size: 1rem;
}

.verified-badge {
    font-size: 0.75rem;
    color: #2e7d32;
    font-weight: 600;
    text-transform: uppercase;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
}

/* As Seen In Section */
.as-seen-in {
    background-color: #f8f8f8;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.as-seen-in .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.as-seen-in p {
    font-weight: 700;
    color: #888;
    font-size: 0.8rem;
    margin: 0;
    margin-right: 20px;
}

.as-seen-in .logos {
    display: flex;
    align-items: center;
    gap: 30px;
}

.as-seen-in img {
    height: 25px;
    opacity: 0.6;
    filter: grayscale(100%);
}

.logo-text {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #888;
}

/* Fix for author image */
.author-img {
    object-fit: cover;
}

/* NYT Logo Style */
.logo-text.nyt {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

/* Ingredients Grid Style */
.ingredients-grid p {
    margin-bottom: 0.5rem;
}

/* Hot Take Bar */
.hot-take-container {
    background-color: #f0fdf4;
    border-left: 4px solid #16a34a;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.hot-take-badge {
    display: inline-block;
    background-color: #16a34a;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.hot-take-text {
    font-size: 0.95rem;
    color: #1f2937;
    margin: 0;
    line-height: 1.5;
}

/* How It Works Redesign (Dark Theme) */
.how-it-works.dark-theme {
    background-color: #2f3e30;
    padding: 5rem 0;
    color: white;
}

.how-it-works.dark-theme .section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.science-label {
    color: #86efac;
    /* Light green */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 1rem;
}

.how-it-works.dark-theme h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.how-it-works.dark-theme .subtitle {
    font-size: 1.125rem;
    color: #d1d5db;
    /* Light gray */
    line-height: 1.6;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .how-it-works-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.how-it-works-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: block;
}

.how-it-works-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.icon-box {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box.pulse-icon {
    background-color: rgba(239, 68, 68, 0.2);
    /* Red tint */
    color: #fca5a5;
    /* Light red */
}

.icon-box.leaf-icon {
    background-color: rgba(34, 197, 94, 0.2);
    /* Green tint */
    color: #86efac;
    /* Light green */
}

.timeline-item h3 {
    font-family: 'Merriweather', serif;
    color: #fca5a5;
    /* Light red for 'Before' */
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.timeline-item:last-child h3 {
    color: #86efac;
    /* Light green for 'After' */
}

.timeline-item p {
    color: #d1d5db;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* Bottom CTA Section */
.bottom-cta-section {
    background-color: #1f2937;
    color: white;
    text-align: center;
    padding: 5rem 1rem;
}

.bottom-cta-section h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.bottom-cta-section p {
    font-size: 1.125rem;
    color: #d1d5db;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.bottom-cta-section .cta-button {
    display: inline-block;
    background-color: #16a34a;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s;
    font-size: 1.125rem;
}

.bottom-cta-section .cta-button:hover {
    background-color: #15803d;
}

/* Mobile Optimization */
@media (max-width: 768px) {

    /* Typography */
    .main-headline {
        font-size: 1.8rem;
        text-align: center;
    }

    .intro-text {
        font-size: 1rem;
    }

    .reason-title {
        font-size: 1.25rem;
        align-items: center;
    }

    .reason-number {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        margin-right: 10px;
    }

    .how-it-works.dark-theme h2,
    .bottom-cta-section h2 {
        font-size: 1.75rem;
    }

    .advisor-content h3 {
        font-size: 1.5rem;
        text-align: center;
    }

    /* Layout */
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .main-header nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .main-header nav a {
        margin: 0;
        font-size: 0.85rem;
    }

    .sidebar {
        display: none;
        /* Hide sidebar on mobile to reduce clutter */
    }

    .author-info {
        justify-content: center;
    }

    /* Spacing */
    .container {
        padding: 0 15px;
    }

    .how-it-works.dark-theme,
    .bottom-cta-section,
    .testimonials,
    .medical-advisor {
        padding: 40px 0;
    }

    .how-it-works-grid {
        gap: 2rem;
    }

    .bottom-cta-section {
        padding: 3rem 1rem;
    }

    .advisor-card {
        padding: 25px 15px;
    }
}