/* ----------------- MMB Community Blog & Article CSS ----------------- */

.blog-header {
    background: linear-gradient(rgba(11, 48, 16, 0.7), rgba(11, 48, 16, 0.85)), 
                url("/media/photos/Main/Treks_from_Pune__Mumbai_with_TIB_Community.png") no-repeat center center/cover;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 70px;
}

.blog-header h1 {
    font-size: 42px;
    color: white;
    margin-bottom: 10px !important;
}

/* Blog List Grid */
.blog-list-container {
    max-width: 1200px;
    margin: 60px auto 80px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.blog-post-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-post-img {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.blog-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post-card:hover .blog-post-img img {
    transform: scale(1.04);
}

.blog-post-details {
    padding: 30px;
}

.blog-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    align-items: center;
}

.blog-meta i {
    color: var(--accent-orange);
}

.blog-post-title {
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: 15px !important;
    line-height: 1.3;
}

.blog-post-excerpt {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.blog-readmore-btn {
    color: var(--primary-forest);
    font-family: Gilroy-Bold, sans-serif !important;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.blog-readmore-btn:hover {
    color: var(--accent-orange);
}

/* Sidebar styling */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 20px !important;
    border-bottom: 2px solid var(--primary-mountain);
    padding-bottom: 8px;
}

.popular-posts-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-post-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.popular-post-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.popular-post-info h4 {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 5px !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.popular-post-info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Single Blog Post Template Typography & Formatting */
.article-container {
    max-width: 900px;
    margin: 50px auto 80px;
    padding: 0 20px;
}

.article-header {
    margin-bottom: 30px;
}

.article-title {
    font-size: 44px;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 20px !important;
}

.article-hero-img {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    height: 450px;
}

.article-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #2d3748;
}

.article-content p {
    margin-bottom: 25px;
    color: #2d3748;
}

.article-content h2 {
    font-size: 28px;
    color: var(--primary-forest);
    margin: 40px 0 20px !important;
}

.article-content h3 {
    font-size: 22px;
    color: var(--secondary-earth);
    margin: 30px 0 15px !important;
}

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

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

/* Route highlights box */
.route-summary-box {
    background-color: var(--bg-cream);
    border-left: 5px solid var(--accent-orange);
    border-radius: 4px 12px 12px 4px;
    padding: 25px;
    margin: 35px 0;
    box-shadow: var(--shadow-sm);
}

.route-summary-box h4 {
    color: var(--primary-forest);
    font-size: 18px;
    margin-bottom: 15px !important;
}

.route-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.route-summary-item {
    display: flex;
    flex-direction: column;
}

.route-summary-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.route-summary-val {
    font-family: Gilroy-Bold, sans-serif;
    color: var(--text-dark);
}

/* Related tours box in articles */
.related-tours-widget {
    background-color: #f7fafc;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
}

.related-tours-widget h3 {
    font-size: 20px;
    margin-bottom: 20px !important;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .blog-list-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 32px;
    }
    
    .article-hero-img {
        height: 280px;
    }
    
    .route-summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .blog-post-img {
        height: 200px;
    }
    
    .blog-post-title {
        font-size: 20px;
    }
}
