.page-blog {
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
    background-color: #F4F7FB;
    color: #1F2D3D;
    font-family: Arial, sans-serif;
}

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

/* Hero Section */
.page-blog__hero-section {
    display: flex;
    flex-direction: column; /* Enforce image on top, content below */
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
    background-color: #FFFFFF;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-blog__hero-content {
    max-width: 800px;
}

.page-blog__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font size constraint */
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.page-blog__description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #1F2D3D;
    margin-bottom: 20px;
}

/* Articles Section */
.page-blog__articles-section {
    margin-bottom: 60px;
}

.page-blog__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 600;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
}

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

.page-blog__article-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__article-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.page-blog__article-image {
    width: 100%;
    height: 225px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-blog__article-content {
    padding: 20px;
}

.page-blog__article-title {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.4;
    color: #000000;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.page-blog__article-link:hover .page-blog__article-title {
    color: #2F6BFF; /* Highlight on hover */
}

.page-blog__article-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1F2D3D;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-blog__article-date {
    font-size: 0.85rem;
    color: #666666;
    display: block;
}

.page-blog__view-all {
    text-align: center;
    margin-top: 40px;
}

/* CTA Section */
.page-blog__cta-section {
    background: linear-gradient(135deg, #2F6BFF, #6FA3FF);
    color: #FFFFFF;
    padding: 60px 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 60px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-blog__cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-blog__cta-description {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* Buttons */
.page-blog__button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-blog__button--primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-blog__button--primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-blog__button--cta {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
    padding: 15px 35px;
    font-size: 1.15rem;
}

.page-blog__button--cta:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .page-blog__hero-section {
        padding: 20px 15px;
        margin-bottom: 30px;
    }

    .page-blog__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-blog__description {
        font-size: 1rem;
    }

    .page-blog__articles-grid {
        grid-template-columns: 1fr;
    }

    .page-blog__article-image {
        height: auto; /* Allow height to adjust */
        max-width: 100%; /* Ensure no overflow */
    }

    .page-blog__article-title {
        font-size: 1.2rem;
    }

    .page-blog__cta-section {
        padding: 40px 15px;
        margin-bottom: 40px;
    }

    .page-blog__cta-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    .page-blog__cta-description {
        font-size: 1rem;
    }

    .page-blog__button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .page-blog__button--cta {
        padding: 12px 25px;
        font-size: 1rem;
    }

    /* Enforce image responsiveness for content area */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-blog__container {
        padding: 0 15px;
    }
}

/* Ensure no filter on images */
.page-blog img {
    filter: none;
}