/* page-blog.css */
.page-blog__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as per rule */
    padding-bottom: 40px;
    background-color: var(--background-color);
    text-align: center;
}

.page-blog__hero-image-wrapper {
    margin-bottom: 20px;
}

.page-blog__hero-image {
    display: block;
    width: 100%;
    max-width: 1200px; /* Max width for content */
    height: 675px; /* HTML width/height is 1200x675, CSS should match or be responsive */
    object-fit: cover;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Ensure minimum image size */
    min-height: 200px; /* Ensure minimum image size */
}

.page-blog__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-blog__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-main-color);
    margin-bottom: 15px;
    /* No fixed font-size, rely on weight/line-height/color */
}

.page-blog__description {
    font-size: 1.1em;
    color: var(--text-main-color);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

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

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

.page-blog__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--text-main-color);
    text-align: center;
    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: var(--card-bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-blog__post-image {
    width: 100%;
    height: 225px; /* HTML width/height is 400x225, CSS should match or be responsive */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure minimum image size */
    min-height: 200px; /* Ensure minimum image size */
}

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

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

.page-blog__post-meta {
    font-size: 0.9em;
    color: #666666; /* Using a dark grey for meta info, ensures contrast */
    margin-bottom: 15px;
}

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

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

.page-blog__read-more:hover {
    color: var(--auxiliary-color);
}

.page-blog__view-all {
    text-align: center;
}

.page-blog__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    background: var(--button-gradient);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__button:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, var(--main-color) 0%, var(--auxiliary-color) 100%); /* Slightly reverse gradient on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-blog__hero-section {
        padding-bottom: 30px;
    }
    .page-blog__main-title {
        font-size: clamp(1.8em, 5vw, 2.5em); /* Using clamp for responsive font size */
    }
    .page-blog__section-title {
        font-size: 1.8em;
    }
    .page-blog__post-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__hero-image,
    .page-blog__post-image {
        max-width: 100%; /* Important for mobile overflow */
        height: auto; /* Important for mobile overflow */
        min-width: 200px;
        min-height: 200px;
    }
    .page-blog__post-title {
        font-size: 1.2em;
    }
}

/* Color Palette Variables */
:root {
    --main-color: #2F6BFF;
    --auxiliary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg-color: #FFFFFF;
    --background-color: #F4F7FB;
    --text-main-color: #1F2D3D;
    --custom-color-1776249996415: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}