.page-blog {
    background-color: #0a0909; /* Deep red/black theme, using a very dark grey */
    color: #F4F7FB; /* Light text on dark background */
    padding-top: 10px; /* Small top padding to respect body padding-top */
    font-family: Arial, sans-serif; /* Example font */
}

.page-blog__container {
    max-width: 1280px; /* Boxed layout */
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.page-blog__hero-section {
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background-color: #2d0000; /* Deep red for hero background */
    margin-bottom: 40px;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

.page-blog__hero-content {
    max-width: 900px;
    color: #F4F7FB; /* Light text */
}

.page-blog__main-title {
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #d6d604; /* Yellow-green accent for H1 */
    font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font size with clamp */
}

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

/* Section Titles */
.page-blog__section-title,
.page-blog__cta-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #d6d604; /* Yellow-green accent */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

/* Latest Posts Section */
.page-blog__latest-posts {
    padding: 40px 0;
    margin-bottom: 40px;
}

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

.page-blog__post-card {
    background-color: #FFFFFF; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-blog__post-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency, adjust as needed */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

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

.page-blog__post-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1F2D3D; /* Text Main */
    transition: color 0.3s ease;
}

.page-blog__post-title:hover {
    color: #2F6BFF; /* Primary blue on hover */
}

.page-blog__post-date {
    font-size: 0.9rem;
    color: #666; /* Slightly darker grey for date */
    margin-bottom: 15px;
    display: block;
}

.page-blog__post-excerpt {
    font-size: 1rem;
    line-height: 1.5;
    color: #000000; /* Custom Color_1776249996415 */
}

.page-blog__button-wrapper {
    text-align: center;
}

.page-blog__view-all-button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    min-width: 200px; /* Min size constraint */
    min-height: 48px; /* Min size constraint */
}

.page-blog__view-all-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
}

/* Categories Section */
.page-blog__categories-section {
    padding: 40px 0;
    margin-bottom: 40px;
    background-color: #0a0909; /* Consistent dark background */
}

.page-blog__category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-blog__category-item {
    background-color: #2F6BFF; /* Primary blue for category item background */
    border-radius: 25px;
    padding: 8px 20px;
    transition: background-color 0.3s ease;
}

.page-blog__category-item:hover {
    background-color: #4A8BFF; /* Lighter blue on hover */
}

.page-blog__category-link {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    display: block;
}

/* CTA Section */
.page-blog__cta-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #2d0000; /* Deep red background */
    border-radius: 12px;
    margin-bottom: 40px;
}

.page-blog__cta-title {
    color: #d6d604; /* Yellow-green accent */
    margin-bottom: 20px;
}

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

.page-blog__cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    min-width: 200px; /* Min size constraint */
    min-height: 50px; /* Min size constraint */
}

.page-blog__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
}

/* Global content image min-size for desktop, to prevent small icons */
.page-blog img:not(.shared-logo):not(.shared-icon) {
    min-width: 200px; 
    min-height: 200px;
    object-fit: cover; /* Ensure aspect ratio is maintained while covering space */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-blog__hero-section {
        padding: 30px 15px;
    }

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

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

    .page-blog__section-title,
    .page-blog__cta-title {
        font-size: clamp(1.6rem, 5vw, 2rem);
    }

    .page-blog__post-grid {
        grid-template-columns: 1fr;
    }

    .page-blog__post-image {
        height: 180px; /* Adjust height for mobile */
    }
    
    /* Crucial mobile overflow fix for all content images */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }

    .page-blog__category-list {
        flex-direction: column;
        align-items: center;
    }

    .page-blog__cta-section {
        padding: 40px 15px;
    }

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