/* style/blog.css */

/* Base styles for the blog page, ensuring proper header offset and default text color */
.page-blog {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for default light body background */
    background-color: #f8f8f8; /* A very light grey background for the main content area */
}

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

/* Hero Section */
.page-blog__hero-section {
    background-color: #1A2E44; /* Primary brand color */
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-blog__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-bottom: 40px;
}

.page-blog__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFD700; /* Accent color for title */
    line-height: 1.2;
}

.page-blog__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__hero-cta-button {
    display: inline-block;
    background-color: #FFD700; /* Accent color for CTA */
    color: #1A2E44; /* Dark text for accent button */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__hero-cta-button:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-blog__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-blog__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire area */
    opacity: 0.2; /* Subtle overlay */
    filter: none; /* Ensure no filters are applied */
    display: block; /* Remove extra space below image */
}

/* Section Titles and Text */
.page-blog__section-title {
    font-size: 2.5em;
    color: #1A2E44;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-blog__section-title--light {
    color: #FFD700; /* Accent color for titles on dark backgrounds */
}

.page-blog__section-text {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #555555;
}

.page-blog__section-text--light {
    color: #f0f0f0; /* Light text for dark backgrounds */
}

.page-blog__sub-title {
    font-size: 1.8em;
    color: #1A2E44;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: left;
}

.page-blog__sub-title--light {
    color: #FFD700;
}

.page-blog__block-text {
    font-size: 1em;
    margin-bottom: 20px;
    color: #555555;
    text-align: left;
}

.page-blog__block-text--light {
    color: #f0f0f0;
}

/* Introduction Section */
.page-blog__introduction-section {
    padding: 60px 0;
    background-color: #ffffff;
}

/* Featured Articles Section */
.page-blog__featured-articles-section {
    padding: 60px 0;
    background-color: #f0f0f0;
}

.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, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-blog__article-image-wrapper {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    overflow: hidden;
}

.page-blog__article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

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

.page-blog__article-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

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

.page-blog__article-title a.page-blog__article-link:hover {
    color: #FFD700;
}

.page-blog__article-description {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__read-more-button {
    display: inline-block;
    background-color: #1A2E44;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.page-blog__read-more-button:hover {
    background-color: #FFD700;
    color: #1A2E44;
}

.page-blog__read-more-button--accent {
    background-color: #FFD700;
    color: #1A2E44;
}

.page-blog__read-more-button--accent:hover {
    background-color: #e6c200;
    color: #1A2E44;
}

/* Deep Dive Sections */
.page-blog__deep-dive-section {
    padding: 80px 0;
}

.page-blog__deep-dive-section--primary {
    background-color: #1A2E44;
    color: #ffffff;
}

.page-blog__deep-dive-section--secondary {
    background-color: #ffffff;
    color: #333333;
}

.page-blog__deep-dive-section--secondary .page-blog__section-title {
    color: #1A2E44;
}

.page-blog__deep-dive-section--secondary .page-blog__section-text {
    color: #555555;
}

.page-blog__content-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 60px;
    gap: 30px;
}

.page-blog__content-block:nth-child(odd) {
    flex-direction: row-reverse; /* Alternate image and text */
}

.page-blog__content-block:last-child {
    margin-bottom: 0;
}

.page-blog__content-block .page-blog__sub-title,
.page-blog__content-block .page-blog__block-text {
    text-align: left;
    flex: 1;
    min-width: 300px; /* Minimum width before wrapping */
}

.page-blog__content-block .page-blog__content-image {
    width: 100%;
    max-width: 600px; /* Max width for content images */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    display: block; /* Remove extra space below image */
    flex-shrink: 0; /* Prevent image from shrinking */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Call to Action Section */
.page-blog__cta-section {
    background-color: #FFD700; /* Accent color background */
    color: #1A2E44; /* Dark text for accent background */
    padding: 80px 0;
    text-align: center;
}

.page-blog__cta-section .page-blog__section-title {
    color: #1A2E44;
}

.page-blog__cta-section .page-blog__section-text {
    color: #333333;
}

.page-blog__cta-button {
    display: inline-block;
    background-color: #1A2E44; /* Primary color for CTA button on accent background */
    color: #ffffff;
    padding: 18px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 30px;
}

.page-blog__cta-button:hover {
    background-color: #0d1e2f;
    transform: translateY(-2px);
}

.page-blog__cta-button--accent {
    background-color: #FFD700;
    color: #1A2E44;
}

.page-blog__cta-button--accent:hover {
    background-color: #e6c200;
    color: #1A2E44;
}