.page-blog {
    background-color: #F4F7FB;
    color: #1F2D3D;
}

.page-blog__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #2F6BFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.page-blog__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    color: #FFFFFF;
    background-color: #2F6BFF; /* Ensure background consistency */
    width: 100%;
}

.page-blog__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin-bottom: 15px;
    max-width: 100%;
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* Using clamp for responsive H1 font size */
}

.page-blog__description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #FFFFFF;
    max-width: 700px;
    margin: 0 auto;
}

.page-blog__posts-section {
    padding: 60px 20px;
    background-color: #F4F7FB;
}

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

.page-blog__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1F2D3D;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-blog__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    margin: 15px auto 0;
    border-radius: 2px;
}

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

.page-blog__post-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #D6E2FF;
}

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

.page-blog__post-thumbnail {
    width: 100%;
    height: 225px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #D6E2FF;
}

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

.page-blog__post-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    flex-grow: 1;
}

.page-blog__post-title a {
    color: #1F2D3D;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
    color: #2F6BFF;
}

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

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

.page-blog__read-more-btn {
    display: inline-block;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
    font-size: 0.95rem;
}

.page-blog__read-more-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-blog__view-all-btn {
    display: inline-block;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-blog__view-all-btn:hover {
    opacity: 0.9;
    transform: translateY(-3px);
}

.page-blog__cta-section {
    background-color: #2F6BFF;
    padding: 60px 20px;
    text-align: center;
    color: #FFFFFF;
}

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

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

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

.page-blog__cta-btn {
    display: inline-block;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 2px solid #FFFFFF;
}

.page-blog__cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-btn--register {
    background: #FFFFFF; /* White button for register */
    color: #2F6BFF;
    border: 2px solid #2F6BFF;
}

.page-blog__cta-btn--register:hover {
    background-color: #F0F0F0;
    color: #2F6BFF;
}

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

@media (max-width: 768px) {
    .page-blog__hero-content {
        padding: 30px 15px;
    }
    .page-blog__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-blog__description {
        font-size: 1rem;
    }
    .page-blog__posts-section {
        padding: 40px 15px;
    }
    .page-blog__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-blog__posts-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__post-thumbnail {
        height: 200px;
        max-width: 100%;
    }
    .page-blog__post-title {
        font-size: 1.25rem;
    }
    .page-blog__post-excerpt {
        font-size: 0.9rem;
    }
    .page-blog__read-more-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    .page-blog__view-all-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .page-blog__cta-section {
        padding: 40px 15px;
    }
    .page-blog__cta-title {
        font-size: 1.8rem;
    }
    .page-blog__cta-description {
        font-size: 0.95rem;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__cta-btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    /* Ensure all content area images are responsive and do not overflow */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
}