/* blog.css: Blog Page এবং Post-এর স্টাইল (চূড়ান্ত) */

/* --------------------------------------------------------------------- */
/* Blog Hero Section: Header এর নিচে ব্লগ টাইটেল */
/* --------------------------------------------------------------------- */
.blog-page .blog-hero {
    text-align: center;
    padding: 60px 5% 40px;
    background-color: var(--secondary-bg);
    border-bottom: 3px solid var(--accent-color);
}

.blog-page .section-title {
    font-size: 2.5em;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.blog-page .section-subtitle {
    font-size: 1.1em;
    color: var(--secondary-text);
    max-width: 800px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------- */
/* Blog List Grid: পোস্টগুলির গ্রিড লে-আউট */
/* --------------------------------------------------------------------- */
.blog-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background-color: var(--secondary-bg);
    border-radius: 10px;
    overflow: hidden; 
    box-shadow: var(--box-shadow-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.blog-card a {
    text-decoration: none;
    color: var(--primary-text);
    display: block;
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover; 
}

.card-content {
    padding: 20px;
}

.card-content h2 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.blog-card:hover .card-content h2 {
    color: var(--accent-hover);
}

.post-meta {
    font-size: 0.9em;
    color: var(--secondary-text);
    margin-bottom: 15px;
}

/* --------------------------------------------------------------------- */
/* Blog Post Content Styling: (নতুন যোগ করা হয়েছে) */
/* --------------------------------------------------------------------- */
.post-content-area {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 5%;
}

.post-content {
    /* এটি আপনার আর্টিকেল কনটেন্টকে স্টাইল করবে */
}

.post-content h1 {
    font-size: 2.5em;
    color: var(--accent-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-bg);
    padding-bottom: 10px;
}
.post-content h2 {
    font-size: 1.8em;
    color: var(--primary-text);
    margin-top: 30px;
    margin-bottom: 10px;
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
}
.post-content h3 {
    font-size: 1.4em;
    color: var(--accent-hover);
    margin-top: 20px;
    margin-left: 10px;
}
.post-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--secondary-text);
    line-height: 1.8; /* পঠনযোগ্যতা বাড়ানোর জন্য */
}
.post-content ul, .post-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
    color: var(--secondary-text);
    font-size: 1.1em;
}
.post-content ul li, .post-content ol li {
    margin-bottom: 10px;
}

.post-meta-data {
    font-style: italic;
    color: var(--secondary-text);
    margin-bottom: 30px;
    display: block;
}

.featured-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Post Footer */
.post-footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--secondary-bg);
    margin-top: 50px;
}
/* --------------------------------------------------------------------- */
/* Pagination: পেজ নম্বর স্টাইল */
/* --------------------------------------------------------------------- */
.pagination {
    text-align: center;
    padding: 20px 5%;
    margin-top: 20px;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    text-decoration: none;
    color: var(--primary-text);
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination .active {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    font-weight: bold;
}

.pagination a:hover:not(.active) {
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--accent-color);
}


/* --------------------------------------------------------------------- */
/* Media Queries: মোবাইলের জন্য */
/* --------------------------------------------------------------------- */
@media (max-width: 600px) {
    .blog-list-grid {
        grid-template-columns: 1fr;
    }
    
    .post-content-area {
        margin: 20px auto;
    }
}