
:root {
    --blog-bg: #e9e9db;
    --card-bg: #ffffff;
    --primary-orange: #ff5722;
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --border-color: #e0e0e0;
}

.blog-page {
    background-color: var(--blog-bg);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}

.page-wrapper {
    padding-top: 0;
    /* Adjust if header is fixed */
}

/* Hero Section */
.blog-hero {
    background-color: var(--blog-bg);
    padding: 60px 0 40px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.breadcrumbs {
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary-orange);
}

.breadcrumbs .separator {
    margin: 0 8px;
}

.breadcrumbs .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* Blog Content */
.blog-content {
    padding: 0 0 80px;
    background-color: var(--blog-bg);
}

.blog-page .container {
    max-width: 1040px;
    /* Smaller container as per reference */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center children like the grid and pagination */
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
    width: 100%;
    /* Ensure grid takes full container width */
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

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

.card-image {
    width: 100%;
    padding: 15px 15px 0 15px;
    /* Symmetric padding for top, left, right */
    display: block;
    box-sizing: border-box;
}

.card-image img {
    width: 100%;
    aspect-ratio: 1.35;
    /* Consistent aspect ratio */
    object-fit: cover;
    border-radius: 10px;
    /* Explicit 10px radius for all corners */
    display: block;
    margin: 0 auto;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.card-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.card-date {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #888;
    gap: 8px;
}

.calendar-icon {
    color: #000000;
    stroke: #000000;
    opacity: 1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #e0e0d5;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: #d0d0c5;
}

.page-link.active {
    background-color: var(--primary-orange);
    color: #ffffff;
}

.page-dots {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}