:root {
    --primary-blue: #0d1b3e;
    --accent-orange: #ff8c00;
    --bg-light: #f8f9fa;
}

/* Page Setup */
.blog-page-wrapper {
    background-color: var(--bg-light);
    padding-bottom: 80px;
    font-family: 'Segoe UI', sans-serif;
}

/* Hero Section */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a2f5e 100%);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 50px;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.blog-hero p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Layout */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-content: center;
    justify-items: stretch;
}

/* Card Design */
.blog-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    /* Ensure card has background */
    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;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Link Wrapper - Makes the whole card clickable */
.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image Wrapper */
.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #eee;
}

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

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

/* Content */
.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
    line-height: 1.4;
    margin-top: 0;
}

.blog-meta {
    font-size: 0.85rem;
    color: #999;
    margin-top: auto;
    /* Push to bottom if needed */
    display: flex;
    gap: 15px;
    font-weight: 600;
}

.blog-date {
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
}