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

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding as per rule */
    margin-bottom: 40px;
    display: flex; /* For image above content */
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Ensure it doesn't get too wide */
    margin-bottom: 20px; /* Space between image and text */
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

.page-blog__hero-content {
    max-width: 900px;
    padding: 0 20px 40px;
    z-index: 1;
}

.page-blog__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Using clamp for H1 font-size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--custom-color-1776249996415, #000000);
    margin-bottom: 15px;
}

.page-blog__description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-main, #1F2D3D);
    margin-bottom: 30px;
}

.page-blog__button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    min-width: 200px; /* Ensure button is not too small */
    text-align: center;
    border: none;
    cursor: pointer;
}

.page-blog__button:hover {
    opacity: 0.9;
}

/* Posts Section */
.page-blog__posts-section {
    padding: 40px 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.5rem;
    font-weight: 700;
    color: var(--custom-color-1776249996415, #000000);
    text-align: center;
    margin-bottom: 40px;
}

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

.page-blog__post-card {
    background-color: var(--card-b-g, #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;
    display: flex;
    flex-direction: column;
}

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

.page-blog__post-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency, will be adjusted by object-fit */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

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

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

.page-blog__post-title {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
    flex-grow: 1; /* Allows title to take available space */
}

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

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

.page-blog__post-summary {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 20px;
}

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

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

/* Pagination */
.page-blog__pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.page-blog__pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--card-b-g, #FFFFFF);
    color: var(--primary-color, #2F6BFF);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid var(--border, #D6E2FF);
}

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

/* CTA Section */
.page-blog__cta-section {
    padding: 60px 0;
    background-color: var(--primary-color, #2F6BFF);
    color: #FFFFFF;
    text-align: center;
    margin-top: 40px;
}

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

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

.page-blog__cta-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: #d6d604; /* Yellow/Lemon yellow accent color */
    color: var(--custom-color-1776249996415, #000000); /* Black text for contrast */
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-blog__cta-button:hover {
    background-color: #e0e000; /* Slightly lighter yellow on hover */
    transform: translateY(-2px);
}

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

    .page-blog__section-title {
        font-size: 2rem;
    }

    .page-blog__post-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-blog__hero-content {
        padding: 0 15px 30px;
    }

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

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

    .page-blog__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-blog__post-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    
    .page-blog__post-image {
        max-width: 100%;
        height: auto; /* Ensure images don't overflow */
        min-height: 200px; /* Maintain minimum size */
    }

    .page-blog__cta-title {
        font-size: 1.8rem;
    }

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

    .page-blog__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-content {
        padding: 0 10px 20px;
    }

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

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

    .page-blog__section-title {
        font-size: 1.6rem;
    }

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

    .page-blog__post-title {
        font-size: 1.1rem;
    }

    .page-blog__post-summary {
        font-size: 0.9rem;
    }
    .page-blog__cta-title {
        font-size: 1.6rem;
    }
}