/* style/blog.css */

.page-blog {
    background-color: #08160F; /* Background */
    color: #F2FFF6; /* Text Main */
    padding-top: 10px; /* Small top padding for non-homepage first section, as body handles header offset */
    padding-bottom: 40px;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

.page-blog__hero-section {
    display: flex;
    flex-direction: column; /* Content first, then image */
    align-items: center;
    text-align: center;
    padding: 20px 15px 40px;
    max-width: 1390px;
    margin: 0 auto;
}

.page-blog__hero-content {
    margin-bottom: 30px;
    max-width: 900px;
    width: 100%; /* Ensure content takes full width up to max-width */
}

.page-blog__main-title {
    font-family: 'Arial', sans-serif; /* Example font */
    color: #F2FFF6; /* Text Main */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    font-size: clamp(1.8rem, 4.5vw, 3.2rem); /* H1 clamp font size */
}

.page-blog__description {
    color: #A7D9B8; /* Text Secondary */
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #000000; /* Changed to black for better contrast on green gradient */
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__hero-banner {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    max-width: 1200px; /* Max width for the image */
}

.page-blog__hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1200 / 375; /* Based on width="1200" height="375" */
    object-fit: cover;
    object-position: center;
    filter: none; /* Ensure no CSS filter is applied */
}

.page-blog__articles-section {
    max-width: 1390px;
    margin: 40px auto;
    padding: 0 15px;
}

.page-blog__section-title {
    font-family: 'Arial', sans-serif;
    color: #F2FFF6; /* Text Main */
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2.5rem); /* H2 clamp font size */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-blog__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #22C768; /* Auxiliary color */
    margin: 10px auto 0;
    border-radius: 2px;
}

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

.page-blog__article-card {
    background-color: #11271B; /* Card B G */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-blog__article-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-blog__article-thumbnail {
    margin: 0;
    width: 100%;
    overflow: hidden;
}

.page-blog__article-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 400 / 225; /* Based on width="400" height="225" */
    object-fit: cover;
    filter: none; /* Ensure no CSS filter is applied */
    transition: transform 0.3s ease;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-blog__article-card:hover .page-blog__article-thumbnail img {
    transform: scale(1.05);
}

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

.page-blog__article-title {
    font-family: 'Arial', sans-serif;
    color: #F2FFF6; /* Text Main */
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 10px;
    flex-grow: 1;
}

.page-blog__article-date {
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

.page-blog__article-excerpt {
    color: #A7D9B8; /* Text Secondary */
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-blog__read-more {
    color: #2AD16F; /* A shade from the button gradient, for emphasis */
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    align-self: flex-start;
    transition: color 0.2s ease;
}

.page-blog__read-more:hover {
    color: #57E38D; /* Glow */
}

.page-blog__cta-section {
    background-color: #0A4B2C; /* Deep Green */
    text-align: center;
    padding: 60px 20px;
    margin-top: 60px;
    border-radius: 12px;
    max-width: 1390px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__cta-title {
    font-family: 'Arial', sans-serif;
    color: #F2FFF6; /* Text Main */
    font-weight: 700;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-blog__cta-description {
    color: #A7D9B8; /* Text Secondary */
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__cta-button--secondary {
    background: linear-gradient(180deg, #57E38D 0%, #2AD16F 100%); /* Slightly different gradient for secondary CTA */
    color: #000000; /* Changed to black for better contrast on green gradient */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.page-blog__cta-button--secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Responsive adjustments */
@media (max-width: 850px) {
    .page-blog__hero-section {
        padding: 20px 10px 30px;
    }
    .page-blog__main-title {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
    }
    .page-blog__description {
        font-size: 1rem;
    }
    .page-blog__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    .page-blog__article-title {
        font-size: 1.15rem;
    }
    .page-blog__article-excerpt {
        font-size: 0.95rem;
    }
    .page-blog__cta-section {
        padding: 40px 15px;
    }
    .page-blog__cta-title {
        font-size: clamp(1.4rem, 5vw, 2.2rem);
    }
    .page-blog__cta-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .page-blog img { /* Rule for all images within .page-blog content area */
        max-width: 100%;
        height: auto;
    }
    .page-blog__articles-grid {
        grid-template-columns: 1fr; /* Stack cards on very small screens */
    }
    .page-blog__article-thumbnail img {
        min-width: 250px; /* Ensure images are not too small */
        min- /* Maintain aspect ratio */
    }
}

@media (max-width: 549px) {
    .page-blog__main-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
    }
    .page-blog__section-title {
        font-size: clamp(1.3rem, 6vw, 2rem);
    }
    .page-blog__articles-section {
        padding: 0 10px;
    }
    .page-blog__cta-section {
        padding: 30px 10px;
    }
    .page-blog__cta-title {
        font-size: clamp(1.3rem, 6vw, 2rem);
    }
}