/* MD Passive Income - Main Stylesheet */
/* Color Scheme: White #FFFFFF, Green #2d8a4e, Gold #d4a843 */

:root {
    --primary-green: #2d8a4e;
    --accent-gold: #d4a843;
    --dark-gray: #333333;
    --light-gray: #f5f5f5;
    --border-gray: #e0e0e0;
    --success-green: #27ae60;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--white);
    color: var(--dark-gray);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-gold);
}

/* Container & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-gray);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--primary-green);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 2px solid var(--accent-gold);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, #1f5a36 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 138, 78, 0.3);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-gold {
    background-color: var(--accent-gold);
    color: var(--white);
}

.btn-gold:hover {
    background-color: #c99333;
}

/* Cards & Sections */
.section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-green);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.card {
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(45, 138, 78, 0.1);
    border-color: var(--primary-green);
}

.card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

/* Grid Systems */
.grid {
    display: grid;
    gap: 2rem;
}

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

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Income Callout Boxes */
.income-callout {
    background: linear-gradient(135deg, var(--primary-green) 0%, #1f5a36 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(45, 138, 78, 0.2);
}

.income-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.income-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Testimonials */
.testimonial-card {
    border-left: 4px solid var(--accent-gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-green);
}

.testimonial-title {
    font-size: 0.9rem;
    color: #888;
}

/* Featured Guides */
.guide-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.guide-item:hover {
    border-color: var(--primary-green);
    background-color: var(--light-gray);
}

.guide-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-green) 0%, #1f5a36 100%);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.guide-content h4 {
    margin-top: 0;
    color: var(--primary-green);
}

/* Start Here Section */
.start-here {
    background-color: var(--light-gray);
    padding: 3rem;
    border-radius: 12px;
    border-left: 5px solid var(--accent-gold);
}

.start-here h3 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.start-here ol {
    margin-left: 1.5rem;
}

.start-here li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Newsletter Form */
.newsletter-form {
    background: linear-gradient(135deg, var(--primary-green) 0%, #1f5a36 100%);
    color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.newsletter-form h3 {
    color: var(--white);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

.form-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Article Styling */
.article-header {
    border-bottom: 2px solid var(--border-gray);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.article-title {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    color: #888;
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reading-time,
.update-date,
.author-name {
    color: #666;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--primary-green);
}

.breadcrumbs span {
    color: #999;
}

/* Table of Contents */
.table-of-contents {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.table-of-contents h4 {
    margin-top: 0;
}

.table-of-contents ul {
    list-style: none;
}

.table-of-contents li {
    margin-bottom: 0.75rem;
}

.table-of-contents a {
    color: var(--primary-green);
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comparison-table thead {
    background-color: var(--primary-green);
    color: var(--white);
}

.comparison-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-gray);
}

.comparison-table tbody tr:hover {
    background-color: var(--light-gray);
}

.comparison-table .highlight {
    background-color: rgba(212, 168, 67, 0.1);
    font-weight: 600;
    color: var(--accent-gold);
}

/* Difficulty Badge */
.difficulty-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.difficulty-easy {
    background-color: #d4edda;
    color: #155724;
}

.difficulty-medium {
    background-color: #fff3cd;
    color: #856404;
}

.difficulty-hard {
    background-color: #f8d7da;
    color: #721c24;
}

/* Income Potential Box */
.income-box {
    background-color: #f0f8f4;
    border-left: 4px solid var(--primary-green);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.income-box strong {
    color: var(--primary-green);
}

/* Affiliate Link Styling */
a[data-affiliate] {
    position: relative;
}

a[data-affiliate]::after {
    content: ' ↗';
    font-size: 0.75em;
    vertical-align: super;
}

/* Step-by-Step Guide */
.step-guide {
    counter-reset: step-counter;
}

.step-item {
    counter-increment: step-counter;
    margin-bottom: 2rem;
    padding-left: 4rem;
    position: relative;
}

.step-item::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-green) 0%, #1f5a36 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.step-title {
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.step-description {
    color: #555;
}

/* Ad Slots */
.ad-slot {
    background-color: var(--light-gray);
    border: 1px dashed var(--border-gray);
    padding: 1rem;
    text-align: center;
    color: #999;
    margin: 2rem 0;
    border-radius: 4px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 2rem;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}

/* Disclaimer & Legal */
.disclaimer {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
    font-size: 0.95rem;
}

.disclaimer strong {
    color: #856404;
}

/* Highlight Box */
.highlight-box {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.highlight-box h4 {
    margin-top: 0;
    color: #1976d2;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-cta-group {
        gap: 0.75rem;
    }

    .section {
        padding: 2rem 0;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-meta {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .form-two-col {
        grid-template-columns: 1fr;
    }

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

    .guide-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .guide-number {
        width: 50px;
        height: 50px;
    }

    .newsletter-form {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .card {
        padding: 1.5rem;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
    }

    .step-item {
        padding-left: 3.5rem;
    }

    .step-item::before {
        width: 35px;
        height: 35px;
        font-size: 0.95rem;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .ad-slot,
    .newsletter-form,
    .btn {
        display: none;
    }

    body {
        color: #000;
    }

    a {
        color: #333;
    }
}
