/* ========================================= */
/* BLOG PAGE FINAL FIX – OVERRIDES          */
/* ========================================= */

body.blog-page .container,
body.blog-page header .container,
body.blog-page .blog-hero-header .container,
body.blog-page .blog-categories .container,
body.blog-page .featured-articles-section .container,
body.blog-page .latest-articles-section .container {
    max-width: 1250px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}
.logo{
    border: none;
}
/* --- Blog Hero Header --- */
.blog-hero-header {
    background: url('../images/blog-hero-bg.png') no-repeat center/cover;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: var(--white);
}

.blog-hero-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.blog-hero-header .hero-text {
    position: relative;
    z-index: 2;
}

.blog-hero-header h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 10px;
}

.blog-hero-header p {
    font-size: 20px;
    max-width: 700px;
    margin: auto;
}
/* --- Categories Section --- */
.blog-categories {
    background: var(--white);
    padding: 20px 0;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.filter-buttons-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid #ccc;
    background: var(--light-gray);
    color: var(--text-color);
    font-weight: 500;
    transition: 0.3s ease;
    text-decoration-line: none;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* --- Article Sections --- */
.featured-articles-section,
.latest-articles-section {
    padding: 60px 20px;
    background: var(--light-gray);
}

.featured-articles-section h2,
.latest-articles-section h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

/* --- Grid Layout --- */
.featured-articles-grid,
.latest-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* --- Card --- */
.article-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image {
    height: 200px;
    background: #f0f8ff;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.read-time-tag,
.read-time-info {
    position: absolute;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    z-index: 5;
}

.read-time-tag {
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

.read-time-tag.tag-blue { background: var(--primary-blue); }
.read-time-tag.tag-marketing { background: #ff6a00; }
.read-time-tag.tag-web-it { background: var(--secondary-green); }

.read-time-info {
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.85);
}

/* Card Content */
.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    flex-grow: 1;
}

.article-card p {
    font-size: 15px;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.read-more-btn {
    background: var(--secondary-green);
    color: #fff;
    padding: 10px 22px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 15px;
    margin-top: auto;
    display: inline-block; /* বাটন হিসাবে ঠিকভাবে দেখানোর জন্য */
    text-align: center;
}

.read-more-btn:hover {
    background: #2a7c7e;
}

/* Meta */
.article-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.author-info {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.author-info i {
    margin-right: 8px;
    font-size: 22px;
    color: var(--primary-blue);
}

.author-title {
    color: #6c757d;
}

.article-date {
    color: #6c757d;
    font-size: 14px;
}

/* Hide When Filtering */
.article-card.hidden { display: none !important; }


/* Desktop Grid Fix */
@media (min-width: 992px) {
    body.blog-page .featured-articles-grid,
    body.blog-page .latest-articles-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 30px !important;
    }
}
/* Mobile Devices (768px এর নিচে) */
@media (max-width: 768px) {
    .blog-hero-header { height: 220px; }
    .blog-hero-header h1 { font-size: 36px; }

    /* ক্যাটাগরি বাটনগুলিকে স্ক্রল করার অনুমতি দেওয়া */
    .filter-buttons-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 10px;
    }
    
    /* দুটি গ্রিডকেই 1 কলামে সেট করা */
    .featured-articles-grid,
    .latest-articles-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    
    .featured-articles-section,
    .latest-articles-section {
        padding: 40px 15px; /* মোবাইলের জন্য সামান্য প্যাডিং */
    }

    .card-image { height: 180px; }
    .article-card h3 { font-size: 18px; }
    
    /* Hero, Statistics Bar ইত্যাদির জন্য বিদ্যমান মোবাইল ফিক্সগুলি */
    .hero-section {
        padding: 100px 20px;
        justify-content: center;
        text-align: center;
    }

    .hero-content h1, 
    .hero-content p {
        max-width: 100%;
        text-align: center;
    }

    .statistics-bar .container {
        flex-direction: column;
        gap: 30px;
    }

    .stat-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 15px;
    }

    .stat-item:last-child {
        border-bottom: none;
    }
}

