/* style/blog.css */
.page-blog {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set for content area if needed, though body handles it */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    color: #FFFFFF; /* Light text for hero content over potentially dark image */
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-blog__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.page-blog__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

.page-blog__hero-content {
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for text readability */
    padding: 40px;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.page-blog__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

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

.page-blog__hero-button {
    display: inline-block;
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Dark text for light button */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 1.1em;
}

.page-blog__hero-button:hover {
    background-color: #E6A73A;
}

/* General Section Styling */
.page-blog__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-blog__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
}

/* Articles Grid (Featured & Mastering Games) */
.page-blog__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.page-blog__article-card {
    background-color: #F8F8F8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    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 {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

.page-blog__article-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #000000;
}

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

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

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

.page-blog__read-more-button {
    display: inline-block;
    background-color: #000000; /* Primary color */
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

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

/* Latest Posts List */
.page-blog__posts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

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

.page-blog__post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.page-blog__post-image {
    width: 300px; /* Minimum 200px, larger for better visual */
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

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

.page-blog__post-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #000000;
}

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

.page-blog__post-title a:hover {
    color: #FCBC45;
}

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

.page-blog__post-meta a {
    color: #777777;
    text-decoration: none;
}

.page-blog__post-meta a:hover {
    text-decoration: underline;
}

.page-blog__post-excerpt {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
}

/* CTA Section */
.page-blog__cta-section {
    position: relative;
    background-color: #000000; /* Fallback background */
    color: #FFFFFF;
    text-align: center;
    padding: 80px 20px;
    overflow: hidden;
    margin-top: 60px;
}

.page-blog__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4; /* Make background image subtle */
    z-index: -1;
}

.page-blog__cta-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

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

.page-blog__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #F0F0F0;
}

.page-blog__cta-button {
    display: inline-block;
    background-color: #FCBC45; /* Login button color */
    color: #000000;
    padding: 18px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 1.2em;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 2.5em;
    }
    .page-blog__hero-description {
        font-size: 1.1em;
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__article-title {
        font-size: 1.3em;
    }
    .page-blog__post-item {
        flex-direction: column;
    }
    .page-blog__post-image {
        width: 100%;
        height: 250px; /* Ensure images are not too small on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        min-height: 400px;
        padding: 40px 15px;
    }
    .page-blog__hero-content {
        padding: 30px;
    }
    .page-blog__hero-title {
        font-size: 2em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__post-item {
        flex-direction: column;
    }
    .page-blog__post-image {
        width: 100%;
        height: 220px; /* Ensure images are not too small on mobile */
        max-width: 100%; /* Mobile content area image constraint */
        height: auto;
    }
    .page-blog__cta-section {
        padding: 60px 15px;
    }
    .page-blog__cta-title {
        font-size: 2em;
    }
    .page-blog__cta-description {
        font-size: 1em;
    }
    .page-blog__container {
        padding: 15px;
    }
    /* Mobile content area image constraint */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-section {
        min-height: 350px;
    }
    .page-blog__hero-title {
        font-size: 1.8em;
    }
    .page-blog__hero-description {
        font-size: 0.9em;
    }
    .page-blog__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-blog__section-title {
        font-size: 1.8em;
    }
    .page-blog__article-title {
        font-size: 1.2em;
    }
    .page-blog__post-title {
        font-size: 1.2em;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
    .page-blog__cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}

/* Ensure all images within .page-blog are at least 200px wide/high for content images */
.page-blog img {
    min-width: 200px;
    min-height: 200px;
}