.page-blog {
    background-color: #F4F7FB; /* Custom Background */
    color: #1F2D3D; /* Custom Text Main */
    font-family: Arial, sans-serif; /* Default font */
}

.page-blog__container {
    max-width: 1390px; /* Adjusted for boxed layout */
    margin: 0 auto;
    padding: 0 20px; /* Consistent padding */
}

/* Hero Section */
.page-blog__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden; /* Ensure no overflow */
}

.page-blog__hero-image-wrapper {
    margin-bottom: 30px;
}

.page-blog__hero-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-blog__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-blog__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: #000000; /* Custom Color_1776249996415 */
    /* No hardcoded large font-size, use clamp if needed, but for now rely on browser defaults and responsiveness */
}

.page-blog__hero-description {
    font-size: 1.15em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #1F2D3D; /* Custom Text Main */
}

.page-blog__hero-button,
.page-blog__view-all-button,
.page-blog__cta-button {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Custom Button */
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(47, 107, 255, 0.3);
}

.page-blog__hero-button:hover,
.page-blog__view-all-button:hover,
.page-blog__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(47, 107, 255, 0.4);
    opacity: 0.9;
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
    padding: 60px 0;
}

.page-blog__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #000000; /* Custom Color_1776249996415 */
}

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

.page-blog__post-card {
    background-color: #FFFFFF; /* Custom Card BG */
    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;
    border: 1px solid #D6E2FF; /* Custom Border */
}

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

.page-blog__post-card-link {
    text-decoration: none;
    color: inherit;
    display: block; /* Make the whole card clickable */
}

.page-blog__post-card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

.page-blog__post-card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #000000; /* Custom Color_1776249996415 */
}

.page-blog__post-card-meta {
    font-size: 0.9em;
    color: #1F2D3D; /* Adjusted for WCAG AA contrast */
    margin-bottom: 15px;
}

.page-blog__post-card-excerpt {
    font-size: 1em;
    line-height: 1.6;
    color: #1F2D3D; /* Custom Text Main */
    margin-bottom: 20px;
}

.page-blog__read-more-link {
    font-weight: 600;
    color: #2F6BFF; /* Main color for links */
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
}

.page-blog__read-more-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #2F6BFF;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.page-blog__post-card-link:hover .page-blog__read-more-link::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}


.page-blog__view-all-button-wrapper {
    text-align: center;
}

/* CTA Section */
.page-blog__cta-section {
    background-color: #2F6BFF; /* Main color */
    padding: 80px 0;
    text-align: center;
    color: #FFFFFF;
    box-shadow: inset 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-blog__cta-description {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #E0EBFB; /* Lighter shade for contrast */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__main-title {
        font-size: 2.8em;
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-blog__container {
        padding: 0 15px;
    }
    .page-blog__hero-section {
        padding-bottom: 30px;
    }
    .page-blog__main-title {
        font-size: clamp(2em, 8vw, 2.5em); /* Use clamp for H1 */
        margin-bottom: 15px;
    }
    .page-blog__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-blog__hero-button,
    .page-blog__view-all-button,
    .page-blog__cta-button {
        padding: 12px 24px;
        font-size: 0.95em;
    }
    .page-blog__latest-posts-section {
        padding: 40px 0;
    }
    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-blog__posts-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 25px;
    }
    .page-blog__post-card-title {
        font-size: 1.2em;
    }
    .page-blog__cta-section {
        padding: 60px 0;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
    .page-blog__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* Important: Mobile image overflow prevention */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure all content area images are at least 200px wide for larger screens */
@media (min-width: 769px) {
    .page-blog__post-card-image {
        min-width: 200px;
        min-height: 200px;
    }
    .page-blog__hero-image {
        min-width: 200px; /* Applies if the hero image is ever scaled down that much, unlikely */
        min-height: 200px;
    }
}