/* style/blog.css */
.page-blog {
    padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
    background-color: #FFFFFF; /* White background as per color scheme */
    color: #000000; /* Dark text for light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    text-align: center;
    overflow: hidden; /* Ensures image doesn't overflow */
    padding-bottom: 60px; /* Space below hero content */
}

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

.page-blog__hero-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: #FFFFFF; /* White text over dark/rich image */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    max-width: 800px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay for readability */
    border-radius: 8px;
}

.page-blog__hero-title {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: #FFFFFF; /* White for contrast */
}

.page-blog__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFFFFF; /* White for contrast */
}

.page-blog__hero-cta-button,
.page-blog__cta-button {
    display: inline-block;
    background-color: #FCBC45; /* Login color for CTA, as per requirements */
    color: #000000; /* Black text for contrast */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    border: 2px solid #FCBC45;
}

.page-blog__hero-cta-button:hover,
.page-blog__cta-button:hover {
    background-color: #e0a538; /* Slightly darker on hover */
    border-color: #e0a538;
}

/* Content Introduction & Deep Dive Sections */
.page-blog__content-introduction,
.page-blog__deep-dive {
    padding: 60px 0;
    background-color: #FFFFFF; /* White background */
    color: #000000; /* Black text */
}

.page-blog__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
}

.page-blog__sub-title {
    font-size: 1.8em;
    color: #000000;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-blog__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333; /* Slightly lighter black for body text */
}

.page-blog__list {
    list-style: disc;
    margin-left: 40px;
    margin-bottom: 20px;
    color: #333333;
}

.page-blog__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Featured Articles Section */
.page-blog__featured-articles {
    padding: 60px 0;
    background-color: #f8f8f8; /* Light grey background for distinction */
}

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

.page-blog__article-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.page-blog__article-card:hover {
    transform: translateY(-5px);
}

.page-blog__article-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    /* Ensure image display size is not less than 200px */
    min-width: 200px;
    min-height: 200px;
}

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

.page-blog__article-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    min-height: 60px; /* Ensure consistent height for titles */
}

.page-blog__article-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
    color: #FCBC45; /* Highlight on hover */
}

.page-blog__article-description {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
    min-height: 80px; /* Consistent height for descriptions */
}

.page-blog__read-more-button {
    display: inline-block;
    background-color: #000000; /* Black button */
    color: #FFFFFF; /* White text */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.page-blog__read-more-button:hover {
    background-color: #333333; /* Slightly lighter on hover */
}

/* Call to Action Section */
.page-blog__cta-section {
    background-color: #000000; /* Black background */
    color: #FFFFFF; /* White text */
    padding: 80px 20px;
    text-align: center;
}

.page-blog__cta-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-blog__cta-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 2.8em;
    }
    .page-blog__hero-description {
        font-size: 1.1em;
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__cta-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .page-blog {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }
    .page-blog__hero-section {
        padding-bottom: 40px;
    }
    .page-blog__hero-container {
        position: static; /* Allow content to flow naturally */
        transform: none;
        padding: 20px;
        background-color: rgba(0, 0, 0, 0.7); /* Keep overlay for readability */
    }
    .page-blog__hero-image {
        max-height: 400px;
    }
    .page-blog__hero-title {
        font-size: 2em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__hero-cta-button,
    .page-blog__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-blog__sub-title {
        font-size: 1.5em;
    }
    .page-blog__paragraph,
    .page-blog__list-item {
        font-size: 1em;
    }
    .page-blog__articles-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    .page-blog__article-image {
        height: 200px; /* Adjust height for mobile */
        max-width: 100%; /* Ensure content images are responsive */
        height: auto; /* Maintain aspect ratio */
    }
    .page-blog__article-content {
        min-height: auto; /* Remove fixed height for mobile */
    }
    .page-blog__article-title {
        min-height: auto;
        font-size: 1.3em;
    }
    .page-blog__article-description {
        min-height: auto;
    }
    .page-blog__cta-title {
        font-size: 2em;
    }
    .page-blog__cta-description {
        font-size: 1.1em;
    }
    /* Critical: Ensure content images don't overflow */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: 1.8em;
    }
    .page-blog__hero-description {
        font-size: 0.9em;
    }
    .page-blog__section-title {
        font-size: 1.5em;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
}

/* Ensure no image filter is applied */
.page-blog img {
    filter: none; /* Explicitly disable any potential filters */
}