/* Blog Page Specific Styles */

/* Blog Page Container */
.blog-page {
    background: white;
    padding: 60px 0;
}

.blog-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Blog Header */
.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid var(--primary-color);
}

.blog-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-meta {
    color: var(--text-secondary);
    font-size: 1rem;
}

.blog-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.blog-meta .separator {
    margin: 0 10px;
}

/* Blog Sections */
.blog-section {
    margin-bottom: 4rem;
}

.blog-section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.blog-section h3 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.blog-section h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 1.5rem 0 0.8rem;
}

.blog-section h5 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.blog-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.blog-section ul,
.blog-section ol {
    margin: 1rem 0 1.5rem 2rem;
}

.blog-section li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.blog-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Lead Text */
.lead-text {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

/* Table of Contents */
.toc-section {
    background: var(--background);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    border-left: 4px solid var(--primary-color);
}

.toc-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 0;
    border: none;
    padding: 0;
}

.table-of-contents {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: toc-counter;
}

.table-of-contents li {
    counter-increment: toc-counter;
    margin-bottom: 0.8rem;
}

.table-of-contents li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem;
    border-radius: 6px;
}

.table-of-contents li a:hover {
    background: rgba(182, 92, 184, 0.1);
    padding-left: 1rem;
}

/* Info Boxes */
.info-box,
.tip-box,
.warning-box,
.example-box {
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    border-left: 4px solid;
}

.info-box {
    background: rgba(182, 92, 184, 0.05);
    border-left-color: var(--primary-color);
}

.info-box h4,
.tip-box h4,
.warning-box h4,
.example-box h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.tip-box {
    background: rgba(40, 167, 69, 0.05);
    border-left-color: var(--success);
}

.tip-box h4 {
    color: var(--success);
}

.warning-box {
    background: rgba(255, 193, 7, 0.05);
    border-left-color: var(--warning);
}

.warning-box h4 {
    color: #d39e00;
}

.example-box {
    background: rgba(0, 123, 255, 0.05);
    border-left-color: #007bff;
}

.example-box h4 {
    color: #007bff;
}

.info-box p,
.tip-box p,
.warning-box p,
.example-box p {
    margin-bottom: 0.5rem;
}

.info-box ul,
.tip-box ul,
.warning-box ul,
.example-box ul {
    margin-bottom: 0;
}

/* Stat Boxes */
.stat-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
}

.stat-box .stat {
    margin: 1rem 0;
}

.stat-box .stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-box .stat-label {
    display: block;
    font-size: 1rem;
    opacity: 0.95;
}

.stat-box .highlight-stat {
    font-size: 1.2rem;
    margin: 0;
    color: white;
}

/* Scenario Cards */
.scenario-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.scenario-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.scenario-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.scenario-card h3 i {
    margin-right: 10px;
}

.scenario-card p {
    margin-bottom: 0.8rem;
}

/* Step Guide */
.step-guide {
    margin: 2rem 0;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 2.5rem;
    position: relative;
}

.step::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 60px;
    bottom: -40px;
    width: 2px;
    background: var(--border-color);
}

.step:last-child::before {
    display: none;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Field Explanations */
.field-explanation {
    background: var(--background);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.field-explanation h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.5rem;
}

.field-explanation h3 i {
    margin-right: 10px;
}

.field-explanation h4 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

/* Frequency Cards */
.frequency-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.frequency-card h5 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.2rem;
}

.frequency-card ul {
    margin-bottom: 1rem;
}

/* Tip Cards */
.tip-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
}

.tip-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.4rem;
}

.tip-card h3 i {
    margin-right: 10px;
}

/* Benefit Cards */
.benefit-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.benefit-card h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.benefit-card h3 i {
    margin-right: 10px;
}

/* Action Plan */
.action-plan {
    background: linear-gradient(135deg, rgba(182, 92, 184, 0.1), rgba(208, 140, 210, 0.1));
    padding: 2.5rem;
    border-radius: 15px;
    margin: 2rem 0;
    border: 2px solid var(--primary-color);
}

.action-plan h3 {
    text-align: center;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 2rem;
}

.action-step {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.action-step:last-child {
    margin-bottom: 0;
}

.action-step h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.action-step ul {
    margin-bottom: 0;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    margin: 3rem 0;
    color: white;
}

.cta-box h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta-box p {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-box .cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.cta-box .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.cta-box .cta-button i {
    margin-left: 8px;
}

/* Final Thoughts */
.final-thoughts {
    background: var(--background);
    padding: 2.5rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.final-thoughts h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.final-thoughts p {
    font-size: 1.05rem;
}

/* Related Section */
.related-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.related-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.related-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.related-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.related-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.related-card p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* Smooth Scrolling for Anchor Links */
html {
    scroll-behavior: smooth;
}

/* Anchor Link Offset */
.blog-section[id] {
    scroll-margin-top: 100px;
}

/* Responsive Design for Blog */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2.2rem;
    }
    
    .blog-section h2 {
        font-size: 1.8rem;
    }
    
    .blog-section h3 {
        font-size: 1.4rem;
    }
    
    .stat-box .stat-number {
        font-size: 2.5rem;
    }
    
    .step {
        flex-direction: column;
        gap: 10px;
    }
    
    .step::before {
        left: 25px;
        top: 60px;
    }
    
    .action-plan {
        padding: 1.5rem;
    }
    
    .cta-box {
        padding: 2rem;
    }
    
    .related-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-header h1 {
        font-size: 1.8rem;
    }
    
    .blog-content {
        padding: 0 15px;
    }
    
    .blog-section {
        margin-bottom: 3rem;
    }
    
    .stat-box .stat-number {
        font-size: 2rem;
    }
    
    .info-box,
    .tip-box,
    .warning-box,
    .example-box,
    .scenario-card,
    .tip-card,
    .benefit-card {
        padding: 1.2rem;
    }
}
