:root {
    --primary: #8FB41F;
    --secondary: #2C3E5C;
    --text-main: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
}

body {
    font-family: 'Plus+Jakarta+Sans', sans-serif;
    color: var(--text-main);
    background: var(--bg-light);
    line-height: 1.6;
}

.page-header {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #2C3E5C 0%, #121820 100%);
    color: white;
    text-align: center;
}

.page-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto;
}

.blog-container {
    max-width: 1200px;
    margin: -60px auto 100px;
    padding: 0 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

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

.blog-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

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

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

.blog-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--secondary);
}

.blog-content h2 a {
    text-decoration: none;
    color: inherit;
}

.blog-excerpt {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s;
}

.read-more:hover {
    gap: 12px;
}

.pagination-container {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

/* Basic pagination styling */
.pagination {
    display: flex;
    gap: 10px;
    list-style: none;
}

.page-item .page-link {
    padding: 10px 18px;
    border-radius: 12px;
    background: white;
    color: var(--secondary);
    text-decoration: none;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    transition: all 0.2s;
}

.page-item.active .page-link {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Blog index header bar */
.blog-index-header {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
    background: transparent;
}

.blog-index-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
}

.blog-index-header .logo {
    color: white;
}

.blog-index-header .logo img {
    height: 36px;
    filter: brightness(0) invert(1);
}

.blog-index-back-btn {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.blog-index-back-btn i {
    margin-right: 8px;
}

/* Page header accent */
.page-header-accent {
    color: var(--primary);
}

/* Blog image placeholder */
.blog-image-placeholder {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image-placeholder i {
    font-size: 4rem;
    color: #94a3b8;
}

/* Empty state */
.blog-empty-state {
    text-align: center;
    padding: 100px 0;
}

.blog-empty-state i {
    font-size: 5rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.blog-empty-state h2 {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary);
}

.blog-empty-state p {
    color: var(--text-light);
}

/* CTA Section */
.blog-cta-section {
    background: white;
    padding: 100px 0;
    border-top: 1px solid #e2e8f0;
}

.blog-cta-section .container {
    text-align: center;
}

.blog-cta-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.blog-cta-section p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
}

.blog-cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.blog-cta-actions .btn {
    padding: 15px 40px;
    font-weight: 700;
}

/* Footer */
.blog-index-footer {
    background: #121820;
    color: white;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-index-footer .logo {
    color: white;
    margin-bottom: 30px;
    display: inline-block;
}

.blog-index-footer p {
    color: #94a3b8;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}