:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg: #FFFFFF;
    --page-bg: #F4F7FB;
    --text-main: #1F2D3D;
    --text-black: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}

.page-blog {
    background-color: var(--page-bg); /* #F4F7FB */
    color: var(--text-main); /* #1F2D3D */
    padding-top: 10px; /* Small top padding for first section, body handles --header-offset */
}

.page-blog__hero-section {
    position: relative;
    max-width: 1390px;
    margin: 0 auto 40px auto;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--card-bg); /* Use a neutral background for the section */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column; /* Image on top, content below */
}

.page-blog__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-blog__hero-content {
    padding: 30px;
    text-align: center;
    background-color: var(--card-bg); /* #FFFFFF */
}

.page-blog__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-main); /* #1F2D3D */
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2rem, 5vw, 2.8rem); /* Example clamp for responsiveness */
}

.page-blog__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-main); /* #1F2D3D */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    background: var(--button-gradient); /* linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%) */
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-blog__cta-button:hover {
    opacity: 0.9;
}

.page-blog__latest-articles-section {
    max-width: 1390px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--card-bg); /* #FFFFFF */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-blog__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main); /* #1F2D3D */
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    position: relative;
}

.page-blog__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color); /* #2F6BFF */
    border-radius: 2px;
}

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

.page-blog__article-card {
    background-color: var(--card-bg); /* #FFFFFF */
    border: 1px solid var(--border-color); /* #D6E2FF */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-blog__article-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-blog__article-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-blog__article-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main); /* #1F2D3D */
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-blog__article-title a {
    color: var(--text-main); /* #1F2D3D */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
    color: var(--primary-color); /* #2F6BFF */
}

.page-blog__article-meta {
    font-size: 0.9rem;
    color: #6C757D;
    margin-bottom: 15px;
}

.page-blog__article-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main); /* #1F2D3D */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__read-more-link {
    display: inline-block;
    color: var(--primary-color); /* #2F6BFF */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-blog__read-more-link:hover {
    text-decoration: underline;
    color: var(--secondary-color); /* #6FA3FF */
}

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

.page-blog__view-all-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    background: var(--button-gradient); /* linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%) */
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-blog__view-all-button:hover {
    opacity: 0.9;
}

.page-blog__cta-section {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); /* Using primary/secondary for CTA background */
    color: #FFFFFF;
    padding: 60px 30px;
    text-align: center;
    margin: 40px auto;
    max-width: 1390px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-blog__cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-blog__cta-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FFFFFF;
}

.page-blog__cta-button--large {
    padding: 16px 35px;
    font-size: 1.1rem;
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%); /* Contrasting yellow/orange for emphasis */
    color: var(--text-main); /* Dark text on bright button */
}

.page-blog__cta-button--large:hover {
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-blog__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-blog__section-title {
        font-size: 2rem;
    }
    .page-blog__cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-content,
    .page-blog__latest-articles-section,
    .page-blog__cta-section {
        padding: 20px;
        margin: 20px auto;
    }
    .page-blog__hero-image {
        min-width: 200px; /* Ensure images meet min size */
        min-height: 200px;
    }
    .page-blog__article-image {
        min-width: 200px; /* Ensure images meet min size */
        min-height: 200px;
    }
    .page-blog__hero-image,
    .page-blog__article-image {
        max-width: 100% !important;
        height: auto !important;
    }
    .page-blog__main-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
    }
    .page-blog__hero-description {
        font-size: 1rem;
    }
    .page-blog__section-title {
        font-size: 1.8rem;
    }
    .page-blog__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__cta-title {
        font-size: 1.8rem;
    }
    .page-blog__cta-description {
        font-size: 1rem;
    }
}

/* Enforce content area image size constraint */
.page-blog img:not(.page-blog__hero-image) { /* Apply to all images within page-blog except the hero */
    min-width: 200px;
    min-height: 200px;
}

@media (max-width: 768px) {
    .page-blog img {
        max-width: 100% !important;
        height: auto !important;
    }
}