/* ==========================================================================
   Blog Archive Pages - FINAL CONSISTENT GRID VERSION
   ========================================================================== */

/* --- 1. Main Full-Width Layout --- */
.archive-full-width-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- 2. Archive Header (Polished) --- */
.archive-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.archive-title {
    font-family: var(--font-secondary);
    font-size: 36px;
    font-weight: 900;
    margin: 0;
}
.archive-description { font-size: 16px; color: #555; margin-top: 10px; }

/* --- 3. Consistent 3-Column Grid --- */
.archive-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Hamesha 3 columns */
    gap: 30px;
}

/* Responsive: Tablet par 2 columns */
@media (max-width: 1024px) {
    .archive-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Responsive: Mobile par 1 column */
@media (max-width: 767px) {
    .archive-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* --- 4. Post Card Styling (Polished) --- */
.post-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.post-card-thumbnail a { display: block; }
.post-card-thumbnail img { width: 100%; height: 200px; object-fit: cover; }

.post-card-content {
    padding: 25px;
}
.post-card-meta {
    display: flex; align-items: center; gap: 15px;
    margin-bottom: 12px; font-size: 11px; font-weight: bold; text-transform: uppercase;
}
.post-card-category a { color: var(--color-brand, #ff3366); text-decoration: none; }
.post-card-date { color: #888; }

.post-card-title {
    font-family: var(--font-secondary);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 15px;
}
.post-card-title a { text-decoration: none; color: var(--color-dark, #212529); }

.post-card-excerpt p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* --- 5. Pagination (Polished) --- */
.pagination { margin-top: 50px; border-top: 1px solid #eee; padding-top: 30px; }
.nav-links { display: flex; justify-content: center; align-items: center; gap: 10px; }
.nav-links .page-numbers {
    padding: 10px 18px; border: 1px solid #ddd; border-radius: 6px;
    text-decoration: none; color: #555; font-weight: 500;
}
.nav-links .page-numbers.current, .nav-links .page-numbers:hover {
    background-color: var(--color-brand, #ff3366); color: #fff; border-color: var(--color-brand, #ff3366);
}

/* ==========================================================================
   ARCHIVE HEADER - FINAL POLISHED & CENTERED VERSION
   ========================================================================== */

/* --- 1. Header ko Center Align Karein --- */
.archive-header {
    text-align: center; /* Sab kuch center mein aa jayega */
    padding-top: 20px;
    padding-bottom: 30px;
    margin-bottom: 50px;
    background-color: transparent; /* Background color hata dein */
    border-left: none; /* Left border hata dein */
    border-radius: 0;
}

/* --- 2. Title ko Professional Look Dein --- */
.archive-title {
    font-size: 42px; /* Title ko thoda aur bada karein */
    line-height: 1.2;
}

/* YEH ASAL MAGIC HAI: Title se pehle label add karein */
.archive-title::before {
    content: 'Topic'; /* Yahan 'Category' ya 'Viewing' bhi likh sakte hain */
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-brand, #ff3366); /* Theme ka primary color */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* --- 3. Description ko Style Karein --- */
.archive-description {
    font-size: 17px;
    color: #555;
    line-height: 1.7;
    max-width: 600px; /* Description ko zyada lamba hone se rokein */
    margin-left: auto; /* Center align karega */
    margin-right: auto; /* Center align karega */
    margin-top: 15px;
}

/* --- Author Archive Header Styling --- */
.author-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
}
.author-avatar img {
    border-radius: 50%;
    margin-bottom: 20px;
}
.author-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 900;
    margin: 0 0 10px;
}
.author-bio {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    max-width: 600px;
}