.page-blog {
    font-family: Arial, sans-serif;
    color: var(--text-main, #1F2D3D);
    background-color: var(--background, #F4F7FB);
}

.page-blog__hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding */
    background: linear-gradient(180deg, var(--primary-color, #2F6BFF) 0%, var(--secondary-color, #6FA3FF) 100%);
    color: #FFFFFF;
    text-align: center;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__hero-content {
    max-width: 900px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
    position: relative; /* Ensure content is above any background effects but not overlapping image */
    z-index: 1;
}

.page-blog__main-title {
    font-size: clamp(2em, 4vw, 3em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

.page-blog__description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-blog__view-all-button {
    display: inline-block;
    background: var(--button-bg, linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%));
    color: #FFFFFF;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__view-all-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-blog__posts-section {
    padding: 60px 0;
    background-color: var(--background, #F4F7FB);
}

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

.page-blog__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--text-main, #1F2D3D);
    text-align: center;
    margin-bottom: 40px;
}

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

.page-blog__post-card {
    background-color: var(--card-bg, #FFFFFF);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 200px;
}

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

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

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

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

.page-blog__post-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--custom-color-1776249996415, #000000);
    line-height: 1.4;
}

.page-blog__post-title:hover {
    color: var(--primary-color, #2F6BFF);
}

.page-blog__post-excerpt {
    font-size: 0.95em;
    color: var(--text-main, #1F2D3D);
    line-height: 1.5;
    margin-bottom: 15px;
}

.page-blog__post-date {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 10px;
}

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

.page-blog__read-more:hover {
    color: var(--secondary-color, #6FA3FF);
}

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

.page-blog__pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color, #D6E2FF);
    color: var(--text-main, #1F2D3D);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: var(--card-bg, #FFFFFF);
}

.page-blog__pagination-item:hover:not(.page-blog__pagination-item--active) {
    background-color: var(--primary-color, #2F6BFF);
    color: #FFFFFF;
    border-color: var(--primary-color, #2F6BFF);
}

.page-blog__pagination-item--active {
    background: var(--button-bg, linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%));
    color: #FFFFFF;
    border-color: var(--primary-color, #2F6BFF);
    cursor: default;
}

.page-blog__cta-section {
    background: linear-gradient(90deg, var(--primary-color, #2F6BFF) 0%, var(--secondary-color, #6FA3FF) 100%);
    padding: 80px 0;
    text-align: center;
    color: #FFFFFF;
}

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

.page-blog__cta-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-blog__button {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__button--primary {
    background: var(--card-bg, #FFFFFF);
    color: var(--primary-color, #2F6BFF);
}

.page-blog__button--primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__button--secondary {
    background: var(--button-bg, linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%));
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
}

.page-blog__button--secondary:hover {
    background: var(--primary-color, #2F6BFF);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

@media (max-width: 768px) {
    .page-blog__hero-image {
        max-height: 350px;
        margin-bottom: 15px;
    }
    .page-blog__hero-content {
        margin-bottom: 30px;
        padding: 0 15px;
    }
    .page-blog__main-title {
        font-size: clamp(1.5em, 6vw, 2.2em);
    }
    .page-blog__description {
        font-size: 1em;
    }
    .page-blog__view-all-button {
        padding: 10px 25px;
        font-size: 0.95em;
    }
    .page-blog__posts-section {
        padding: 40px 0;
    }
    .page-blog__container {
        padding: 0 15px;
    }
    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-blog__post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-blog__post-image {
        height: 200px; /* Ensure min-height 200px */
        max-width: 100%;
    }
    .page-blog__post-card {
        min-width: 200px;
    }
    .page-blog__post-title {
        font-size: 1.15em;
    }
    .page-blog__post-excerpt {
        font-size: 0.9em;
    }
    .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;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Ensure content area images are responsive and not too small */
    .page-blog__posts-section img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-blog__main-title {
        font-size: clamp(1.3em, 7vw, 1.8em);
    }
    .page-blog__section-title {
        font-size: 1.6em;
    }
    .page-blog__cta-title {
        font-size: 1.6em;
    }
    .page-blog__button {
        font-size: 1em;
        padding: 12px 25px;
    }
}

/* Image size constraints for content area, minimum 200px */
.page-blog__posts-section .page-blog__post-image {
    min-width: 200px;
    min-height: 200px;
}

/* Global image rules to ensure no small icons, apply to all img within page-blog */
.page-blog img {
    min-width: 200px;
    min-height: 200px;
}

/* Override specific image sizes for smaller elements if they were allowed, but they are not */
/* This rule ensures no image within the main content area will be rendered smaller than 200px */
.page-blog__posts-section .page-blog__post-image {
    width: 100%; /* Make sure it takes full width of its container */
    height: auto; /* Maintain aspect ratio */
    max-width: 100%;
    object-fit: cover;
}