/* Longevity Futures - Professional Health Website Styling */
/* Inspired by VeryWellHealth clean, trustworthy design */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    border-bottom: 3px solid #2c7a7b;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.logo h1 a {
    color: #2c7a7b;
    text-decoration: none;
}

.logo .tagline {
    font-size: 14px;
    color: #666;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #2c7a7b;
}

/* Dropdown Menu Styles */
.main-nav li {
    position: relative;
}

.main-nav .has-dropdown > a::after {
    content: ' ▼';
    font-size: 10px;
}

.main-nav .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1001;
    flex-direction: column;
    gap: 0;
}

.main-nav .has-dropdown:hover .dropdown {
    display: flex;
}

.main-nav .dropdown li {
    width: 100%;
}

.main-nav .dropdown a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.main-nav .dropdown a:hover {
    background: #f0f9f9;
    color: #2c7a7b;
}

/* Back Navigation */
.back-nav {
    background: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}
.back-nav a {
    color: #2c7a7b;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}
.back-nav a:hover {
    color: #38a169;
    text-decoration: underline;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2c7a7b 0%, #38a169 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Category Grid */
.featured-categories {
    padding: 60px 0;
    background-color: #fff;
}

.featured-categories h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #2c7a7b;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #2c7a7b;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.category-card h3 {
    color: #2c7a7b;
    font-size: 22px;
    margin-bottom: 15px;
}

.category-card p {
    color: #666;
    margin-bottom: 20px;
}

.btn-link {
    color: #2c7a7b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.btn-link:hover {
    color: #38a169;
}

/* Articles Section */
.recent-articles {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.recent-articles h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #2c7a7b;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.article-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.article-card h3 a {
    color: #2c7a7b;
    text-decoration: none;
}

.article-card h3 a:hover {
    color: #38a169;
}

.article-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
}

.article-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.read-more {
    color: #2c7a7b;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: color 0.3s;
}

.read-more:hover {
    color: #38a169;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2c7a7b 0%, #38a169 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background-color: white;
    color: #2c7a7b;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-primary:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

/* Footer */
.site-footer {
    background-color: #2d3748;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-column p {
    color: #cbd5e0;
    line-height: 1.7;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #4a5568;
    color: #cbd5e0;
    font-size: 14px;
}

/* Article Page Specific Styles */
.article-header {
    background-color: #fff;
    padding: 40px 0;
    border-bottom: 1px solid #e2e8f0;
}

.article-title {
    font-size: 36px;
    color: #2c7a7b;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-info {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.article-content {
    background-color: #fff;
    padding: 50px 0;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.article-body h2 {
    color: #2c7a7b;
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-body h3 {
    color: #2c7a7b;
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul, .article-body ol {
    margin: 20px 0 20px 40px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body blockquote {
    border-left: 4px solid #2c7a7b;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
}

/* Product Recommendation Boxes */
.product-box {
    background: #f7fafc;
    border: 2px solid #2c7a7b;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
}

.product-box h3 {
    color: #2c7a7b;
    margin-bottom: 15px;
}

.product-features {
    list-style: none;
    margin: 20px 0;
}

.product-features li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.product-features li:before {
    content: "✓";
    color: #38a169;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: #2c7a7b;
    margin: 15px 0;
}

.buy-button {
    display: inline-block;
    background-color: #38a169;
    color: white;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s;
}

.buy-button:hover {
    background-color: #2f855a;
    transform: scale(1.05);
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.pros, .cons {
    padding: 20px;
    border-radius: 5px;
}

.pros {
    background-color: #f0fdf4;
    border-left: 3px solid #38a169;
}

.cons {
    background-color: #fef2f2;
    border-left: 3px solid #e53e3e;
}

.pros h4, .cons h4 {
    margin-bottom: 10px;
}

/* Disclosure Box */
.disclosure-box {
    background-color: #fefcbf;
    border-left: 4px solid #d69e2e;
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
}

.disclosure-box p {
    color: #744210;
    font-size: 14px;
    margin: 0;
}

/* References Section */
.references {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

.references h2 {
    color: #2c7a7b;
    margin-bottom: 20px;
}

.references ol {
    font-size: 14px;
    color: #666;
}

.references li {
    margin-bottom: 10px;
}

.references a {
    color: #2c7a7b;
    text-decoration: none;
}

.references a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.faq-section {
    margin-top: 40px;
    background-color: #f7fafc;
    padding: 40px;
    border-radius: 8px;
}

.faq-item {
    margin-bottom: 25px;
}

.faq-question {
    font-size: 20px;
    font-weight: 600;
    color: #2c7a7b;
    margin-bottom: 10px;
}

.faq-answer {
    color: #666;
    line-height: 1.7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Hide header completely on mobile */
    .site-header {
        display: none;
    }

    /* Hero - super compact on mobile */
    .hero {
        padding: 15px 10px !important;
    }

    .hero h1 {
        font-size: 1.2em !important;
        margin-bottom: 8px !important;
    }

    .hero h2 {
        font-size: 0.9em !important;
        margin: 8px 0 6px !important;
    }

    .hero p {
        font-size: 0.8em !important;
        margin-bottom: 8px !important;
        line-height: 1.4 !important;
    }

    /* Hide the long paragraphs on mobile - just show headline */
    .hero p:nth-of-type(2),
    .hero p:nth-of-type(3) {
        display: none !important;
    }

    .hero div[style*="border-left"] {
        display: none !important;
    }

    .hero a[style*="inline-block"] {
        padding: 10px 20px !important;
        font-size: 0.85em !important;
        margin-top: 10px !important;
    }

    /* Section padding */
    .recent-articles {
        padding: 25px 10px !important;
    }

    .recent-articles h2 {
        font-size: 1.3em !important;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 28px;
    }

    .article-body {
        font-size: 16px;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
