/* =========================================
   VELOURA UNIFORM GRID (Bella Vita Style)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --bg-dark: #050505;
    --card-bg: #111;
    --border-color: #222;
    --accent: #b91c1c;
    --text-main: #e5e5e5;
    --text-muted: #888;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
}

/* Header */
.blog-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.3rem;
    font-weight: 400;
    color: #ffffff; /* White text */
    letter-spacing: 1px;
    margin-left: 10%;
}

/* --- MAIN WRAPPER --- */
.blog-wrapper {
    max-width: 1200px;
    padding-top: 18px !important;
    margin: 0 auto;
    padding: 60px 20px 100px;
}

/* --- UNIFORM GRID SYSTEM --- */
/* 1. GRID FIX (Replace your .blog-grid) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px; 
}
/* --- BLOG CARD DESIGN --- */
.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-8px); /* Lift Effect */
    border-color: var(--accent); /* Red Border on Hover */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Image Area */
.card-image-wrap {
    height: 220px; 
    position: relative;
    overflow: hidden;
    margin-bottom: 0; 
    border-bottom: 1px solid #222;
}

.card-image-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .card-image-wrap img { transform: scale(1.1); }

/* Floating Category Badge */
.card-category {
    position: absolute; top: 10px; left: 10px;
    /* Dark Glass Effect */
    background: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 4px 8px; 
    font-size: 0.65rem; 
    font-weight: 600;
    text-transform: uppercase; 
    letter-spacing: 1px;
    border-radius: 2px;
    transition: 0.3s;
}


/* Content Area */
.card-content {
    padding: 20px; /* Padding kam ki (25px se 20px) */
    flex: 1;
    display: flex; flex-direction: column;
}
.card-meta {
    font-size: 0.75rem; color: #666; margin-bottom: 10px;
    text-transform: uppercase; letter-spacing: 1px;
}

.card-title-link { text-decoration: none; }
.card-title-link h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem; /* Font thoda chota kiya (1.4rem se 1.2rem) */
    color: #fff; margin: 0 0 10px;
    line-height: 1.4; transition: 0.2s;
}
.card-title-link h3:hover { color: var(--accent); }

.card-excerpt {
    font-size: 0.85rem; /* Text size thoda chota */
    color: #aaa; line-height: 1.5;
    margin-bottom: 15px; flex-grow: 1;
}
.link-read-more {
    color: #fff; text-decoration: none; font-size: 0.85rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    display: flex; align-items: center; gap: 8px; transition: 0.3s;
}
.link-read-more:hover { color: var(--accent); gap: 12px; }

/* --- NO POSTS STATE --- */
.no-posts {
    grid-column: 1 / -1;
    text-align: center; padding: 60px;
    color: #555; border: 1px dashed #333;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .blog-hero h1 { font-size: 2.2rem; }
    .category-scroll { justify-content: flex-start; } /* Swipeable on mobile */
    .blog-grid { grid-template-columns: 1fr; } /* 1 Column on Mobile */
    .blog-header h1{
         margin-left: 5%;
    }
}
/* 3. PAGINATION STYLES (Add at bottom) */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.page-link {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: #111;
    border: 1px solid #333;
    color: #888;
    text-decoration: none;
    border-radius: 50%;
    transition: 0.3s;
}

.page-link:hover, .page-link.active {
    background: #b91c1c;
    color: #fff;
    border-color: #b91c1c;
}

