/* style/blog.css */
.page-blog {
    color: #333333; /* Default text color for light background */
}

.page-blog__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    background-color: #1A2E44;
    color: #ffffff;
    text-align: center;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    filter: brightness(0.5); /* Darken image for text readability, not changing color */
    z-index: 1;
}

.page-blog__hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

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

.page-blog__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFD700;
}

.page-blog__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-blog__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-blog__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__button--primary {
    background-color: #FFD700;
    color: #1A2E44;
    border: 2px solid #FFD700;
}

.page-blog__button--primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-blog__button--secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-blog__button--secondary:hover {
    background-color: #FFD700;
    color: #1A2E44;
}

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

.page-blog__introduction-section,
.page-blog__featured-articles-section,
.page-blog__all-articles-section,
.page-blog__cta-section {
    padding: 60px 0;
}

.page-blog__introduction-section {
    background-color: #f8f8f8;
}

.page-blog__section-title {
    font-size: 2.8em;
    color: #1A2E44;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-blog__section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.page-blog__intro-text {
    font-size: 1.1em;
    line-height: 1.6;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.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: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__article-image {
    width: 100%;
    height: 220px; /* Consistent height for article images */
    object-fit: cover;
    display: block;
}

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

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

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

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

.page-blog__article-description {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 20px;
}

.page-blog__read-more-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1A2E44;
    color: #FFD700;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-blog__read-more-button:hover {
    background-color: #334e6b;
}

.page-blog__article-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-blog__list-item {
    display: flex;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.page-blog__list-thumbnail {
    width: 250px;
    height: 167px;
    object-fit: cover;
    flex-shrink: 0;
}

.page-blog__list-content {
    padding: 25px;
    flex-grow: 1;
}

.page-blog__list-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

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

.page-blog__list-description {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 15px;
}

.page-blog__cta-section {
    background-color: #1A2E44;
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

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

.page-blog__cta-description {
    font-size: 1.2em;
    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: 2.2em;
    }
    .page-blog__list-item {
        flex-direction: column;
    }
    .page-blog__list-thumbnail {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-title {
        font-size: 2em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__hero-container {
        padding: 60px 15px;
    }
    .page-blog__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__button {
        width: 100%;
        padding: 12px 20px;
    }
    .page-blog__introduction-section,
    .page-blog__featured-articles-section,
    .page-blog__all-articles-section,
    .page-blog__cta-section {
        padding: 40px 0;
    }
    .page-blog__section-title {
        font-size: 1.8em;
    }
    .page-blog__article-card {
        margin: 0 10px;
    }
    .page-blog__list-item {
        margin: 0 10px;
    }
    .page-blog__list-thumbnail {
        width: 100%;
        height: auto;
        max-width: 100% !important; /* Mobile responsive image */
    }
    .page-blog__article-image {
        width: 100%;
        height: auto;
        max-width: 100% !important; /* Mobile responsive image */
    }
    .page-blog__cta-title {
        font-size: 2.2em;
    }
    .page-blog__cta-description {
        font-size: 1em;
    }
    .page-blog__container {
        padding: 0 15px;
    }
    /* Ensure all images within .page-blog are responsive and not smaller than 200px */
    .page-blog img {
        min-width: 200px; /* Minimum size for content images */
        min-height: 200px; /* Minimum size for content images */
    }
    .page-blog__list-thumbnail, .page-blog__article-image {
        min-width: unset; /* Allow smaller images if they are part of responsive design */
        min-height: unset;
    }
    /* Specific override for content images to ensure they are not too small */
    .page-blog__article-image, .page-blog__list-thumbnail {
        width: 100%; /* Ensure they take full width */
        height: auto; /* Maintain aspect ratio */
        max-width: 100%; /* Prevent overflow */
        min-width: 200px; /* Enforce minimum display size */
        min-height: 150px; /* Enforce minimum display size, proportional to width */
    }
    .page-blog__article-image[width="400"], .page-blog__list-thumbnail[width="200"] {
        width: 100%;
        height: auto;
    }
}

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