/* Blog Content Styling - Override dark theme for readability */

/* Fix header overlap issue */
.blog-section {
    padding-top: 120px !important; /* Space for fixed header */
    min-height: 100vh;
    background: #ffffff !important;
}

/* Container styling */
.blog-section .container {
    background: #ffffff;
    padding: 40px 20px;
}

/* Single blog post article */
.single-blog-post {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Blog title */
.single-blog-post > h1 {
    font-size: 2.5rem !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
    text-align: left;
}

/* Blog meta information */
.blog-meta {
    color: #7f8c8d !important;
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.blog-meta .date {
    color: #7f8c8d !important;
    font-weight: 500;
}

.blog-meta .reading-time {
    margin-left: 15px;
    color: #95a5a6 !important;
}

/* Featured image */
.featured-image {
    margin: 30px 0 40px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Blog content area */
.blog-content {
    color: #2c3e50 !important;
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif !important;
}

/* Paragraphs */
.blog-content p {
    color: #2c3e50 !important;
    margin-bottom: 1.5em !important;
    line-height: 1.8 !important;
    font-size: 1.1rem !important;
}

/* Headings in blog content */
.blog-content h1 {
    font-size: 2.2rem !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    margin-top: 2em !important;
    margin-bottom: 0.8em !important;
    line-height: 1.3 !important;
}

.blog-content h2 {
    font-size: 1.9rem !important;
    color: #1a1a1a !important;
    font-weight: 600 !important;
    margin-top: 2em !important;
    margin-bottom: 0.8em !important;
    line-height: 1.3 !important;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.blog-content h3 {
    font-size: 1.5rem !important;
    color: #2c3e50 !important;
    font-weight: 600 !important;
    margin-top: 1.8em !important;
    margin-bottom: 0.8em !important;
    line-height: 1.4 !important;
}

.blog-content h4 {
    font-size: 1.3rem !important;
    color: #2c3e50 !important;
    font-weight: 600 !important;
    margin-top: 1.5em !important;
    margin-bottom: 0.8em !important;
}

.blog-content h5 {
    font-size: 1.1rem !important;
    color: #2c3e50 !important;
    font-weight: 600 !important;
    margin-top: 1.5em !important;
    margin-bottom: 0.8em !important;
}

.blog-content h6 {
    font-size: 1rem !important;
    color: #2c3e50 !important;
    font-weight: 600 !important;
    margin-top: 1.5em !important;
    margin-bottom: 0.8em !important;
}

/* Strong/Bold text */
.blog-content strong,
.blog-content b {
    color: #1a1a1a !important;
    font-weight: 600 !important;
}

/* Emphasis/Italic text */
.blog-content em,
.blog-content i {
    color: #2c3e50 !important;
    font-style: italic;
}

/* Links */
.blog-content a {
    color: #1babeb !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(27, 171, 235, 0.3);
    transition: all 0.2s ease;
    font-weight: 500;
}

.blog-content a:hover {
    color: #193459 !important;
    border-bottom-color: #193459;
}

/* Lists */
.blog-content ul,
.blog-content ol {
    color: #2c3e50 !important;
    padding-left: 2em;
    margin: 1.5em 0;
}

.blog-content ul li,
.blog-content ol li {
    color: #2c3e50 !important;
    margin-bottom: 0.8em;
    line-height: 1.7;
}

.blog-content ul li::marker {
    color: #1babeb;
}

.blog-content ol li::marker {
    color: #1babeb;
    font-weight: 600;
}

/* Nested lists */
.blog-content ul ul,
.blog-content ol ol,
.blog-content ul ol,
.blog-content ol ul {
    margin: 0.5em 0;
}

/* Blockquotes */
.blog-content blockquote {
    border-left: 4px solid #1babeb !important;
    padding: 1.5em 2em !important;
    margin: 2em 0 !important;
    background: #f8f9fa !important;
    color: #2c3e50 !important;
    font-size: 1.15rem !important;
    font-style: italic;
    border-radius: 4px;
}

.blog-content blockquote p {
    color: #2c3e50 !important;
    margin-bottom: 0.5em !important;
}

/* Code blocks */
.blog-content pre {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1.5em !important;
    overflow-x: auto;
    margin: 2em 0;
}

.blog-content code {
    background: #f8f9fa !important;
    color: #e74c3c !important;
    padding: 0.2em 0.5em;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 0.9em;
}

.blog-content pre code {
    background: transparent !important;
    color: #2c3e50 !important;
    padding: 0;
    border-radius: 0;
}

/* Images in content */
.blog-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 2em 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Tables */
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    color: #2c3e50 !important;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-radius: 6px;
    overflow: hidden;
}

.blog-content th,
.blog-content td {
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    text-align: left;
    color: #2c3e50 !important;
}

.blog-content th {
    background: #f8f9fa !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
}

.blog-content tr:nth-child(even) {
    background: #f8f9fa;
}

.blog-content tr:hover {
    background: #e9ecef;
}

/* Horizontal rules */
.blog-content hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 3em 0;
}

/* Special highlight boxes */
.blog-content .highlight-box {
    background: #e7f3ff;
    border-left: 4px solid #1babeb;
    padding: 1.5em;
    margin: 2em 0;
    border-radius: 4px;
}

/* Footer in blog page */
.footer-section {
    background: #193459 !important;
    color: #ffffff !important;
    padding: 40px 0;
    margin-top: 80px;
}

.footer-section p {
    color: #ffffff !important;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-section {
        padding-top: 100px !important;
    }
    
    .single-blog-post {
        padding: 20px;
    }
    
    .single-blog-post > h1 {
        font-size: 1.8rem !important;
    }
    
    .blog-content {
        font-size: 1rem !important;
    }
    
    .blog-content h1 {
        font-size: 1.8rem !important;
    }
    
    .blog-content h2 {
        font-size: 1.5rem !important;
    }
    
    .blog-content h3 {
        font-size: 1.3rem !important;
    }
    
    .blog-content table {
        font-size: 0.9rem;
    }
    
    .blog-content th,
    .blog-content td {
        padding: 8px 10px;
    }
}

/* Print styles */
@media print {
    .blog-section {
        padding-top: 0 !important;
    }
    
    .blog-content {
        color: #000 !important;
    }
    
    .blog-content a {
        color: #000 !important;
        text-decoration: underline;
        border-bottom: none;
    }
}

