/* style/blog.css */

/* Ensure text color contrasts with body background (which is #FFFFFF) */
.page-blog {
    color: #333333; /* Dark text for light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Hero Section */
.page-blog__hero-section {
    padding-top: var(--header-offset, 120px); /* Fixed header offset for PC */
    position: relative;
    overflow: hidden;
    background-color: #000000; /* Main color as section background */
    color: #FFFFFF; /* Light text for dark background */
    text-align: center;
    padding-bottom: 60px;
}

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

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-blog__hero-title {
    font-size: 3em;
    margin-bottom: 15px;
    color: #FCBC45; /* Login button color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-blog__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    font-size: 1em;
    border: none;
}

.page-blog__button--register {
    background-color: #FFFFFF; /* Register button color */
    color: #000000;
}

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

.page-blog__button--login {
    background-color: #FCBC45; /* Login button color */
    color: #000000;
}

.page-blog__button--login:hover {
    background-color: #e0a53a;
    transform: translateY(-2px);
}

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

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

.page-blog__introduction-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Titles and Descriptions */
.page-blog__section-title {
    font-size: 2.2em;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

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

/* Article List */
.page-blog__article-list,
.page-blog__promo-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-blog__article-card,
.page-blog__promo-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease-out, transform 0.6s ease-out;
    opacity: 0;
    transform: translateY(20px);
}

.page-blog--fade-in {
    opacity: 1;
    transform: translateY(0);
}

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

.page-blog__article-image,
.page-blog__promo-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-blog__article-card h3,
.page-blog__promo-card h3 {
    font-size: 1.4em;
    margin: 15px 20px 10px;
    color: #000000;
}

.page-blog__article-card h3 a,
.page-blog__promo-card h3 a {
    text-decoration: none;
    color: #000000;
    transition: color 0.3s ease;
}

.page-blog__article-card h3 a:hover,
.page-blog__promo-card h3 a:hover {
    color: #FCBC45;
}

.page-blog__article-excerpt,
.page-blog__promo-excerpt {
    font-size: 0.95em;
    color: #666666;
    margin: 0 20px 15px;
    flex-grow: 1; /* Ensures text takes available space */
}

.page-blog__button--read-more,
.page-blog__button--view-promo {
    margin: 0 20px 20px;
    padding: 10px 20px;
    background-color: #000000;
    color: #FFFFFF;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9em;
    text-decoration: none;
    align-self: flex-start; /* Align button to start */
}

.page-blog__button--read-more:hover,
.page-blog__button--view-promo:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.page-blog__additional-news-info,
.page-blog__additional-strategy-info,
.page-blog__additional-promo-info {
    font-size: 1.0em;
    color: #555555;
    margin-top: 25px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Promotions Section */
.page-blog__promotions-section {
    padding: 60px 0;
    background-color: #f0f0f0; /* Light grey background for contrast */
}

/* Responsible Gaming Section */
.page-blog__responsible-gaming-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.page-blog__responsible-gaming-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__responsible-gaming-text a {
    color: #FCBC45;
    text-decoration: none;
    font-weight: bold;
}

.page-blog__responsible-gaming-text a:hover {
    text-decoration: underline;
}

/* CTA Section */
.page-blog__cta-section {
    background-color: #000000; /* Dark background for strong CTA */
    color: #FFFFFF;
    padding: 80px 20px;
    text-align: center;
}

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

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

.page-blog__button--primary {
    background-color: #FCBC45;
    color: #000000;
    padding: 15px 35px;
    font-size: 1.1em;
    border-radius: 8px;
}

.page-blog__button--primary:hover {
    background-color: #e0a53a;
    transform: translateY(-3px);
}

/* More Resources Section */
.page-blog__more-resources {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.page-blog__resource-intro,
.page-blog__resource-outro {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__resource-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
}

.page-blog__resource-list li {
    font-size: 1.1em;
    margin-bottom: 10px;
    flex-basis: calc(50% - 15px); /* Two columns on larger screens */
    text-align: left;
}

.page-blog__resource-list li a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.page-blog__resource-list li a:hover {
    color: #FCBC45;
    text-decoration: underline;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 2.5em;
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__cta-title {
        font-size: 2.2em;
    }
    .page-blog__article-image,
    .page-blog__promo-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    /* Mobile content area images must use max-width: 100%; height: auto; */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
    .page-blog__hero-section {
        padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
        padding-bottom: 40px;
    }
    .page-blog__hero-title {
        font-size: 2em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__button {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-blog__introduction-title,
    .page-blog__section-title,
    .page-blog__cta-title {
        font-size: 1.8em;
    }
    .page-blog__article-list,
    .page-blog__promo-list {
        grid-template-columns: 1fr;
    }
    .page-blog__resource-list li {
        flex-basis: 100%;
        text-align: center;
    }
    /* Ensure no horizontal scrolling */
    .page-blog__container {
        padding: 15px;
        overflow-x: hidden;
    }
    .page-blog {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: 1.7em;
    }
    .page-blog__introduction-title,
    .page-blog__section-title,
    .page-blog__cta-title {
        font-size: 1.5em;
    }
    .page-blog__article-card h3,
    .page-blog__promo-card h3 {
        font-size: 1.2em;
    }
    .page-blog__button--primary {
        padding: 12px 25px;
        font-size: 1em;
    }
}