/* style/blog.css */
.page-blog {
    color: #333333; /* Default dark text for light body background */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-blog__hero-section {
    position: relative;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding: 0;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7);
}

.page-blog__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 900px;
    width: 90%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.page-blog__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #E5B80B;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #f0f0f0;
}

.page-blog__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-blog__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1.1em;
    border: none;
    cursor: pointer;
}

.page-blog__button--primary {
    background-color: #E5B80B;
    color: #0A2342;
}

.page-blog__button--primary:hover {
    background-color: #f0c94f;
    transform: translateY(-2px);
}

.page-blog__button--secondary {
    background-color: #0A2342;
    color: #E5B80B;
    border: 2px solid #E5B80B;
}

.page-blog__button--secondary:hover {
    background-color: #1a3a61;
    transform: translateY(-2px);
}

.page-blog__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-blog__section-title {
    font-size: 2.5em;
    color: #0A2342;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-blog__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #E5B80B;
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-blog__post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-blog__post-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-blog__post-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-blog__post-content {
    padding: 25px;
}

.page-blog__post-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-blog__post-link {
    color: #0A2342;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__post-link:hover {
    color: #E5B80B;
}

.page-blog__post-excerpt {
    font-size: 0.95em;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 20px;
    /* Limit excerpt length if needed, but for 1500 words, make it long */
}

.page-blog__read-more {
    display: inline-block;
    color: #E5B80B;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-blog__read-more:hover {
    color: #0A2342;
}

.page-blog__pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.page-blog__pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #0A2342;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__pagination-link:hover,
.page-blog__pagination-link--active {
    background-color: #E5B80B;
    color: #0A2342;
}

.page-blog__categories {
    background-color: #f8f8f8;
    padding: 60px 0;
    margin-top: 60px;
}

.page-blog__category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-blog__category-item {
    display: inline-block;
    padding: 12px 25px;
    border: 2px solid #0A2342;
    border-radius: 30px;
    color: #0A2342;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-blog__category-item:hover {
    background-color: #0A2342;
    color: #E5B80B;
    border-color: #0A2342;
}

.page-blog__cta-section {
    background-color: #0A2342;
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    margin-top: 60px;
}

.page-blog__cta-title {
    font-size: 2.8em;
    color: #E5B80B;
    margin-bottom: 25px;
}

.page-blog__cta-description {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #f0f0f0;
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 3em;
    }

    .page-blog__hero-description {
        font-size: 1.1em;
    }

    .page-blog__post-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding: 40px 15px;
    }

    .page-blog__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-blog__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-blog__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-blog__button {
        width: 80%;
        max-width: 300px;
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-blog__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-blog__post-card {
        margin-bottom: 20px;
    }

    .page-blog__post-title {
        font-size: 1.3em;
    }

    .page-blog__post-excerpt {
        font-size: 0.9em;
    }

    .page-blog__category-list {
        flex-direction: column;
        align-items: center;
    }

    .page-blog__category-item {
        width: 80%;
        max-width: 300px;
        text-align: center;
    }

    .page-blog__cta-title {
        font-size: 2em;
    }

    .page-blog__cta-description {
        font-size: 1em;
    }
    
    .page-blog img { /* CRITICAL: Mobile content images max-width */
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: 1.8em;
    }
    .page-blog__hero-description {
        font-size: 0.9em;
    }
    .page-blog__button {
        padding: 10px 20px;
    }
    .page-blog__section-title {
        font-size: 1.8em;
    }
    .page-blog__post-title {
        font-size: 1.2em;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
}