/* blog.css */

.page-blog {
    color: #e5e5e5; /* High contrast text */
    background-color: #0d0d0d; /* Dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small top padding for the first section */
}

/* Hero Section */
.page-blog__hero-section {
    display: flex;
    flex-direction: column; /* Image first, then content */
    align-items: center;
    text-align: center;
    padding: 0 20px 40px; /* Padding for content below the image */
    background-color: #1A2E44; /* Primary color for hero background */
    color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure it takes full width */
    margin-bottom: 20px; /* Space between image and text */
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-blog__hero-content {
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
}

.page-blog__hero-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #FFD700; /* Secondary color for title */
    margin-bottom: 15px;
}

.page-blog__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #e5e5e5;
}

.page-blog__hero-cta {
    display: inline-block;
    background-color: #FFD700; /* Secondary color for CTA */
    color: #1A2E44; /* Primary color for text on CTA */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    min-width: 200px; /* Ensure buttons are not tiny */
    text-align: center;
}

.page-blog__hero-cta:hover {
    background-color: #e0b800; /* Slightly darker gold on hover */
}

/* Posts Section */
.page-blog__posts-section {
    padding: 60px 20px;
    background-color: #121212; /* Slightly lighter dark background */
}

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

.page-blog__section-title {
    font-size: 2.2em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.page-blog__post-card {
    background-color: #1A2E44; /* Primary color for card background */
    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;
    min-width: 200px; /* Ensure card is not tiny */
}

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

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

.page-blog__post-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

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

.page-blog__post-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFD700; /* Secondary color for post titles */
}

.page-blog__post-meta {
    font-size: 0.9em;
    color: #a0a0a0;
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 1em;
    color: #cccccc;
}

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

.page-blog__view-all-cta {
    display: inline-block;
    background-color: #FFD700;
    color: #1A2E44;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease;
    min-width: 200px; /* Ensure buttons are not tiny */
    text-align: center;
}

.page-blog__view-all-cta:hover {
    background-color: #e0b800;
}

/* CTA Section */
.page-blog__cta-section {
    background-color: #1A2E44; /* Primary color for CTA background */
    padding: 80px 20px;
    text-align: center;
    color: #f5f5f5;
}

.page-blog__cta-title {
    font-size: 2.5em;
    color: #FFD700;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-blog__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #e5e5e5;
}

.page-blog__cta-button {
    display: inline-block;
    background-color: #FFD700;
    color: #1A2E44;
    padding: 18px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3em;
    transition: background-color 0.3s ease;
    min-width: 200px; /* Ensure buttons are not tiny */
    text-align: center;
}

.page-blog__cta-button:hover {
    background-color: #e0b800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-blog {
        padding-top: 0; /* Remove top padding on body for mobile, let hero manage */
    }

    .page-blog__hero-section {
        padding: 0 15px 30px;
    }

    .page-blog__hero-title {
        font-size: clamp(1.8em, 8vw, 2.5em); /* Use clamp for better mobile H1 */
    }

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

    .page-blog__hero-cta {
        padding: 12px 25px;
        font-size: 1em;
    }

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

    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-blog__posts-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .page-blog__post-image {
        /* Ensure content images are responsive and not smaller than 200px */
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Still enforce minimum size */
        min-height: 200px; /* Still enforce minimum size */
    }

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

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

    .page-blog__cta-title {
        font-size: 2em;
    }

    .page-blog__cta-description {
        font-size: 1.1em;
    }

    .page-blog__cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    /* Important: All images within .page-blog must be responsive */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure content area images are not smaller than 200px */
/* This rule applies to all img elements within .page-blog, overriding any smaller inherited sizes */
.page-blog img {
    min-width: 200px;
    min-height: 200px;
}
/* Specifically for article images */
.page-blog__post-image {
    min-width: 200px;
    min-height: 200px;
}