/* style/blog.css */

.page-blog {
    color: #333333; /* Default text color for light background */
    background-color: var(--color-background, #ffffff); /* Ensure body background color is respected */
    padding-top: var(--header-offset, 120px); /* Account for fixed header */
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

.page-blog__hero-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 450px; /* Minimum height for hero section */
}

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

.page-blog__hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    color: #ffffff; /* Light text color on dark hero image */
}

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

.page-blog__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

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

.page-blog__hero-button--register {
    background-color: #ffffff; /* White button */
    color: #000000; /* Black text */
    border: 2px solid #ffffff;
}

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

.page-blog__hero-button--login {
    background-color: #FCBC45; /* Yellow button */
    color: #000000; /* Black text */
    border: 2px solid #FCBC45;
}

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

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

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

.page-blog__latest-articles,
.page-blog__game-guides,
.page-blog__responsible-gaming,
.page-blog__more-insights,
.page-blog__newsletter-signup {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

.page-blog__article-card,
.page-blog__guide-card,
.page-blog__responsible-card,
.page-blog__insight-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-blog__article-card:hover,
.page-blog__guide-card:hover,
.page-blog__responsible-card:hover,
.page-blog__insight-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-blog__article-image,
.page-blog__guide-image,
.page-blog__responsible-image,
.page-blog__insight-image {
    width: 100%;
    height: 225px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eeeeee;
}

.page-blog__guide-image,
.page-blog__insight-image {
    height: 200px; /* Slightly smaller for guides/insights */
}

.page-blog__article-content,
.page-blog__guide-card .page-blog__article-content,
.page-blog__responsible-card .page-blog__article-content,
.page-blog__insight-item .page-blog__article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-blog__article-title,
.page-blog__guide-title,
.page-blog__responsible-card-title,
.page-blog__insight-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

.page-blog__article-title a:hover,
.page-blog__guide-title a:hover,
.page-blog__responsible-card-title a:hover,
.page-blog__insight-title a:hover {
    color: #FCBC45; /* Highlight color on hover */
}

.page-blog__article-excerpt,
.page-blog__guide-excerpt,
.page-blog__responsible-card-excerpt,
.page-blog__insight-excerpt {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

.page-blog__read-more {
    display: inline-block;
    color: #FCBC45;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto; /* Push to bottom */
}

.page-blog__read-more:hover {
    color: #e0a53b;
    text-decoration: underline;
}

.page-blog__responsible-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-blog__cta-section {
    background-color: #000000; /* Dark background for CTA */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-blog__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.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-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 16px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-blog__cta-button--register {
    background-color: #FCBC45; /* Yellow */
    color: #000000;
    border: 2px solid #FCBC45;
}

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

.page-blog__cta-button--download {
    background-color: #ffffff; /* White */
    color: #000000;
    border: 2px solid #ffffff;
}

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

.page-blog__cta-image {
    width: 600px; /* Fixed width for desktop */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(252, 188, 69, 0.4);
}

.page-blog__insights-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-blog__insight-item {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 0;
    text-align: center;
}

.page-blog__insight-item .page-blog__insight-image {
    height: 200px; /* Ensure images are not too small */
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 12px 12px 0 0;
}

.page-blog__insight-item .page-blog__insight-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-blog__insight-item .page-blog__insight-excerpt {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 15px;
    padding: 0 15px;
}

.page-blog__newsletter-signup {
    background-color: #f0f0f0;
    padding: 60px 20px;
    margin-top: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-blog__newsletter-content {
    max-width: 700px;
    margin: 0 auto;
}

.page-blog__newsletter-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #000000;
}

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

.page-blog__newsletter-form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.page-blog__newsletter-input {
    padding: 14px 20px;
    border: 2px solid #FCBC45;
    border-radius: 8px;
    font-size: 1em;
    width: 300px;
    max-width: 100%;
    box-sizing: border-box;
}

.page-blog__newsletter-button {
    background-color: #FCBC45;
    color: #000000;
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-blog__newsletter-button:hover {
    background-color: #e0a53b;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 2.8em;
    }
    .page-blog__hero-description {
        font-size: 1.2em;
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__cta-title {
        font-size: 2.4em;
    }
    .page-blog__cta-image {
        width: 500px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .page-blog {
        padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
    }
    .page-blog__hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }
    .page-blog__hero-title {
        font-size: 2.2em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-blog__articles-grid,
    .page-blog__guides-grid,
    .page-blog__responsible-content,
    .page-blog__insights-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-blog__article-image,
    .page-blog__guide-image,
    .page-blog__responsible-image,
    .page-blog__insight-image {
        height: auto; /* Ensure images are not too small on mobile */
        min-height: 200px;
        min-width: 200px;
    }
    .page-blog__article-card,
    .page-blog__guide-card,
    .page-blog__responsible-card,
    .page-blog__insight-item {
        margin: 0 auto;
        max-width: 450px; /* Constrain card width on mobile */
    }
    .page-blog__section-title {
        font-size: 1.8em;
        margin: 40px 0 30px;
    }
    .page-blog__cta-section {
        padding: 50px 15px;
        flex-direction: column; /* Stack image and content */
    }
    .page-blog__cta-title {
        font-size: 2em;
    }
    .page-blog__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__cta-button {
        width: 100%;
        max-width: 300px;
    }
    .page-blog__cta-image {
        width: 100%; /* Make CTA image responsive */
        max-width: 400px; /* Limit max width for smaller screens */
        height: auto;
    }
    .page-blog__newsletter-title {
        font-size: 1.8em;
    }
    .page-blog__newsletter-description {
        font-size: 1em;
    }
    .page-blog__newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    .page-blog__newsletter-input {
        width: 100%;
        max-width: 300px;
    }
    .page-blog__newsletter-button {
        width: 100%;
        max-width: 300px;
    }

    /* Ensure all content images in .page-blog are responsive and not smaller than 200px */
    .page-blog img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce minimum display size for content images */
        min-height: 200px; /* Enforce minimum display size for content images */
    }
    /* Override specific image heights to be auto for responsiveness while maintaining min-height */
    .page-blog__article-image,
    .page-blog__guide-image,
    .page-blog__responsible-image,
    .page-blog__insight-image {
        height: auto;
        min-height: 200px;
    }
}

@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.6em;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
    .page-blog__newsletter-title {
        font-size: 1.6em;
    }
}