﻿/* Blog Details Page Styles */

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: #f2f2f2;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin-top: 45px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: auto;
    padding: 2rem;
}
@media (max-width: 768px) {
    .container {
        margin-top: 40px; /* reduce as you want */
        padding: 1rem;
    }
}

/* Very small screens (≤ 480px) */
@media (max-width: 480px) {
    .container {
        margin-top: 30px;
    }
}

.blog-header {
    background: linear-gradient(to right, #efc28e, #94c949);
    border-radius: 1rem;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Blog Header Image */
.blog-header-image {
    margin: 2rem 0;
    text-align: center;
}

.header-image {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-height: 500px;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 768px) {
    .header-image {
        max-height: 300px;
    }
}

.blog-content {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    color: #002b5c;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-content h1 { font-size: 2rem; }
.blog-content h2 { font-size: 1.75rem; }
.blog-content h3 { font-size: 1.5rem; }
.blog-content h4 { font-size: 1.25rem; }

.blog-content p {
    margin-bottom: 1.5rem;
    color: #333;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-content blockquote {
    border-left: 4px solid #94c949;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content a {
    color: #94c949;
    text-decoration: none;
    font-weight: 500;
}

.blog-content a:hover {
    color: #7ba83a;
    text-decoration: underline;
}

.blog-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.blog-content pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-content pre code {
    background: none;
    padding: 0;
}

.related-posts {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.related-posts h3 {
    color: #002b5c;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: #f8f9fa;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-4px);
    text-decoration: none;
    color: inherit;
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-card-content {
    padding: 1rem;
}

.related-card h4 {
    color: #002b5c;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.related-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #94c949;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: #7ba83a;
    text-decoration: none;
}

.back-button::before {
    content: '←';
    font-size: 1.2rem;
}

.blog-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.blog-tags h4 {
    color: #002b5c;
    margin-bottom: 1rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #94c949;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .blog-header {
        padding: 2rem 1rem;
    }

    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-content {
        padding: 2rem 1.5rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}