.page-blog {
    font-family: Arial, sans-serif;
    background-color: #F4F7FB; /* Use the specified background color for the main container */
    color: #1F2D3D; /* Use the specified main text color */
    line-height: 1.6;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 50px;
}

.page-blog__hero-section {
    display: flex;
    flex-direction: column; /* Default to column for mobile-first approach, desktop media query will change */
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%); /* Use primary/secondary colors for hero background */
    color: #FFFFFF; /* Light text on dark background */
    overflow: hidden; /* Prevent image overflow */
    border-radius: 12px;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__hero-content {
    max-width: 800px;
}

.page-blog__main-title {
    font-size: clamp(2rem, 5vw, 3rem); /* H1 font size with clamp */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-blog__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #E0E0E0; /* Slightly off-white for description */
}

.page-blog__cta-button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-blog__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); 
}

.page-blog__latest-posts {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 30px auto 50px auto;
    background-color: #FFFFFF; /* Card BG color for this section */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-blog__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #1F2D3D; /* Text Main color */
}

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

.page-blog__post-card {
    background-color: #FFFFFF;
    border: 1px solid #D6E2FF; /* Border color */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

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

.page-blog__post-meta {
    font-size: 0.9rem;
    color: #6B7B8D; /* A slightly lighter grey for meta info */
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 1rem;
    color: #4A5B6C; /* A slightly darker grey for excerpt */
    margin-bottom: 15px;
}

.page-blog__read-more {
    display: inline-block;
    color: #2F6BFF; /* Primary color for read more link */
    font-weight: 600;
    font-size: 0.95rem;
}

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

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

.page-blog__view-all-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-section {
    background-color: #1A3A6D; /* Darker background for CTA section, matching WOW88 style */
    color: #FFFFFF;
    text-align: center;
    padding: 60px 20px;
    border-radius: 12px;
    max-width: 1200px;
    margin: 30px auto 50px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-blog__cta-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-blog__cta-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #E0E0E0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-blog__cta-button--register,
.page-blog__cta-button--login {
    min-width: 150px;
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .page-blog__hero-section {
        flex-direction: row;
        text-align: left;
        padding: 60px;
        justify-content: space-around;
        gap: 40px;
    }

    .page-blog__hero-visual {
        flex: 1;
        margin-bottom: 0;
    }

    .page-blog__hero-content {
        flex: 1;
        max-width: 50%;
    }

    .page-blog__main-title,
    .page-blog__description {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .page-blog__post-image {
        height: auto; /* Allow image to scale proportionally */
        max-width: 100%; /* Ensure images don't overflow on mobile */
    }

    /* Content area images must not display smaller than 200px */
    .page-blog__post-card img {
        min-width: 200px;
        min-height: 200px;
        width: 100%; /* Ensure it fills container, then min-width/height applies */
    }
    
    /* Ensure no horizontal scroll for the main content */
    .page-blog,
    .page-blog__hero-section,
    .page-blog__latest-posts,
    .page-blog__cta-section {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .page-blog__post-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }

    .page-blog__cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-blog__cta-button--register,
    .page-blog__cta-button--login {
        width: 100%;
        max-width: 300px; /* Constrain max width for full-width buttons */
        margin: 5px 0;
    }
}

@media (max-width: 549px) {
    .page-blog__hero-section {
        padding: 30px 15px;
    }

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

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

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