.page-blog {
    background-color: #08160F;
    color: #F2FFF6;
    padding-top: 10px; /* Small top padding to respect body's padding-top from shared.css */
}

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

.page-blog__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px 60px;
    background-color: #0A4B2C;
    border-bottom: 2px solid #1E3A2A;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

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

.page-blog__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    color: #F2FFF6;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.page-blog__description {
    font-size: 1.1em;
    line-height: 1.6;
    color: #A7D9B8;
    margin-bottom: 30px;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-blog__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-blog__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    font-weight: 700;
    color: #F2C14E; /* Gold for section titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
    position: relative;
}

.page-blog__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #57E38D, #F2C14E);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-blog__latest-posts-section {
    padding-bottom: 60px;
}

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

.page-blog__post-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2E7A4E; /* Border color */
}

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

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

.page-blog__post-thumbnail {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

.page-blog__post-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-blog__post-excerpt {
    font-size: 0.95em;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.5;
    margin-bottom: 15px;
}

.page-blog__post-date {
    font-size: 0.85em;
    color: #A7D9B8;
    display: block;
}

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

.page-blog__view-all-button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(34, 199, 104, 0.3);
}

.page-blog__view-all-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(34, 199, 104, 0.5);
}

.page-blog__categories-section {
    padding-bottom: 80px;
}

.page-blog__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.page-blog__category-card {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid #1E3A2A; /* Divider color for subtle border */
}

.page-blog__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.4);
    border-color: #2AD16F; /* Highlight border on hover */
}

.page-blog__category-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
}

.page-blog__category-description {
    font-size: 0.9em;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.5;
}

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

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

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

    .page-blog__section-title {
        font-size: clamp(1.6em, 7vw, 2.2em);
        padding-top: 40px;
    }

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

    .page-blog__post-thumbnail {
        height: 200px;
    }

    .page-blog__post-title {
        font-size: 1.2em;
    }

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

    /* Ensure content images are responsive and don't overflow */
    .page-blog__latest-posts-section img,
    .page-blog__post-card img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-blog__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

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

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

    .page-blog__post-excerpt {
        font-size: 0.9em;
    }

    .page-blog__category-card {
        padding: 20px;
    }

    .page-blog__category-title {
        font-size: 1.2em;
    }

    .page-blog__category-description {
        font-size: 0.85em;
    }
}

/* Global image size constraint check for content area */
/* The min-width/height is handled by the layout and fixed height for thumbnails. */
/* For images not explicitly sized, ensure they are not too small. */
.page-blog img:not(.page-blog__hero-image) {
    /* These properties are more for ensuring generated images are large enough, */
    /* the actual display size is controlled by width/height/object-fit */
    /* and responsive rules. Explicit min-width/height on img can cause overflow */
    /* if not carefully managed with max-width: 100%; */
}

/* Ensuring content area images are not smaller than 200px as per rules */
.page-blog__latest-posts-section .page-blog__post-thumbnail {
    width: 100%; /* Occupy full width of card */
    height: 220px; /* Fixed height for consistency, >200px */
    object-fit: cover;
}

/* For mobile, max-width: 100%; height: auto; is applied, but min-size still applies */
@media (max-width: 768px) {
    .page-blog__latest-posts-section .page-blog__post-thumbnail,
    .page-blog__category-card img {
        max-width: 100%;
        height: auto;
        /* min-width and min-height are implicitly handled by the layout and object-fit */
        /* Ensure these don't cause overflow */
    }
}