/* Blog Details Page Styles */

/* Blog Details Layout */
.blog-details-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

@media (max-width: 992px) {
    .blog-details-layout {
        grid-template-columns: 1fr;
    }
}

/* Blog Details */
.blog-details {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Blog Header */
.blog-header {
    padding: 40px 40px 0;
}

.blog-header .blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.blog-header .blog-category {
    display: inline-block;
    padding: 6px 14px;
    background: #2d5a27;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-header .blog-date {
    color: #888;
    font-size: 14px;
}

.blog-header .blog-date i {
    margin-right: 5px;
}

.blog-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 20px;
}

.blog-header .blog-excerpt {
    font-size: 18px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Featured Image */
.blog-featured-image {
    margin: 30px 0;
    padding: 0 40px;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

/* Gallery */
.blog-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 40px;
    margin-bottom: 30px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-caption {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    text-align: center;
}

/* Blog Content */
.blog-content {
    padding: 0 40px 40px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.blog-content p {
    margin-bottom: 20px;
}

.blog-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 40px 0 20px;
}

.blog-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 30px 0 15px;
}

.blog-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 25px 0 12px;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.blog-content li {
    margin-bottom: 10px;
}

.blog-content blockquote {
    border-left: 4px solid #2d5a27;
    padding: 20px 25px;
    margin: 30px 0;
    background: #f9f9f9;
    font-style: italic;
    color: #555;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.blog-content a {
    color: #2d5a27;
    text-decoration: underline;
}

.blog-content a:hover {
    color: #1e3d1a;
}

/* Blog Tags */
.blog-tags {
    padding: 20px 40px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag-label {
    font-weight: 500;
    color: #555;
}

.blog-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f5f5f5;
    color: #555;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.blog-tag:hover {
    background: #2d5a27;
    color: #fff;
}

/* Blog Footer / Share */
.blog-footer {
    padding: 20px 40px 40px;
    border-top: 1px solid #eee;
}

.share-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-label {
    font-weight: 500;
    color: #555;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0a66c2;
}

.share-btn.email {
    background: #757575;
}

/* Blog Sidebar (same as main blog) */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2d5a27;
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.search-form input:focus {
    outline: none;
    border-color: #2d5a27;
}

.search-form button {
    padding: 12px 15px;
    background: #2d5a27;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form button:hover {
    background: #1e3d1a;
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    display: block;
    padding: 10px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}

.category-list a:hover {
    background: #f5f5f5;
    color: #2d5a27;
}

/* Related Posts Widget */
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-post {
    display: flex;
    gap: 15px;
}

.related-image {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.4;
}

.related-content h4 a {
    color: #1a1a1a;
    text-decoration: none;
}

.related-content h4 a:hover {
    color: #2d5a27;
}

.related-date {
    font-size: 12px;
    color: #888;
}

/* Newsletter Widget */
.newsletter-widget p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #2d5a27;
}

.newsletter-form button {
    padding: 12px;
    background: #2d5a27;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-form button:hover {
    background: #1e3d1a;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-header {
        padding: 30px 20px 0;
    }

    .blog-header h1 {
        font-size: 28px;
    }

    .blog-featured-image {
        padding: 0 20px;
    }

    .blog-content {
        padding: 0 20px 30px;
    }

    .blog-tags {
        padding: 20px;
    }

    .blog-footer {
        padding: 20px;
    }

    .blog-gallery {
        padding: 0 20px;
    }
}
