/* style/blog.css */

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

.page-blog__hero-section {
    position: relative;
    overflow: hidden;
    padding: 0;
    text-align: center;
    background-color: #000000; /* Main color for hero background */
    color: #ffffff;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image slightly for text readability */
}

.page-blog__hero-container {
    position: relative;
    max-width: 1920px;
    margin: 0 auto;
}

.page-blog__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    max-width: 90%;
    padding: 20px;
}

.page-blog__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    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.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.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, color 0.3s ease;
    white-space: nowrap;
}

.page-blog__button--primary {
    background-color: #FCBC45; /* Login button color */
    color: #000000;
    border: 2px solid #FCBC45;
}

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

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

.page-blog__button--secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

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

.page-blog__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 20px;
}

.page-blog__section-subtitle {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
}

.page-blog__latest-articles-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

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

.page-blog__article-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.page-blog__article-card:hover {
    transform: translateY(-5px);
}

.page-blog__article-image {
    width: 100%;
    height: 250px;
    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.6em;
    margin-bottom: 15px;
    color: #000000;
}

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

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

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

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

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

.page-blog__deep-content-section {
    padding: 60px 0;
}

.page-blog__content-block {
    margin-bottom: 50px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-blog__content-heading {
    font-size: 2em;
    color: #000000;
    margin-bottom: 20px;
    border-bottom: 2px solid #FCBC45;
    padding-bottom: 10px;
}

.page-blog__content-block p {
    margin-bottom: 15px;
    color: #333333;
}

.page-blog__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-blog__game-list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #333333;
}

.page-blog__game-list-item {
    margin-bottom: 10px;
}

.page-blog__game-list-item strong {
    color: #000000;
}

.page-blog__actions-inline {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-blog__button--cta {
    background-color: #FCBC45;
    color: #000000;
    font-size: 1.2em;
    padding: 15px 30px;
    border-radius: 8px;
    border: 2px solid #FCBC45;
}

.page-blog__button--cta:hover {
    background-color: #E0A83A;
    border-color: #E0A83A;
}

.page-blog__cta-section {
    text-align: center;
    background-color: #000000;
    color: #ffffff;
    padding: 80px 20px;
    border-radius: 10px;
    margin-top: 60px;
}

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

.page-blog__cta-description {
    font-size: 1.4em;
    margin-bottom: 40px;
}

/* Responsive adjustments */
@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: 2em;
    }
    .page-blog__article-title {
        font-size: 1.4em;
    }
    .page-blog__content-heading {
        font-size: 1.8em;
    }
    .page-blog__cta-title {
        font-size: 2.5em;
    }
    .page-blog__cta-description {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding: 40px 15px;
    }
    .page-blog__hero-image {
        min-height: 250px;
    }
    .page-blog__hero-title {
        font-size: 2.2em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__button {
        width: 100%;
    }
    .page-blog__container {
        padding: 0 15px;
    }
    .page-blog__section-title {
        font-size: 1.8em;
        margin-top: 40px;
    }
    .page-blog__section-subtitle {
        margin-bottom: 30px;
    }
    .page-blog__article-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__content-block {
        padding: 20px;
        margin-bottom: 30px;
    }
    .page-blog__content-heading {
        font-size: 1.5em;
    }
    .page-blog__content-block p {
        font-size: 0.95em;
    }
    .page-blog__content-image {
        margin: 20px 0;
        max-width: 100%; /* Ensure images don't overflow */
        height: auto; /* Maintain aspect ratio */
        min-width: 200px; /* Enforce min image size */
        min-height: 200px; /* Enforce min image size */
    }
    .page-blog__game-list {
        margin-left: 15px;
    }
    .page-blog__actions-inline {
        flex-direction: column;
        gap: 10px;
    }
    .page-blog__cta-section {
        padding: 50px 15px;
        margin-top: 40px;
    }
    .page-blog__cta-title {
        font-size: 2em;
    }
    .page-blog__cta-description {
        font-size: 1em;
    }

    /* Ensure all images within .page-blog are responsive and don't overflow */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: 1.8em;
    }
    .page-blog__hero-description {
        font-size: 0.9em;
    }
    .page-blog__button {
        padding: 10px 20px;
    }
    .page-blog__section-title {
        font-size: 1.5em;
    }
    .page-blog__article-title {
        font-size: 1.2em;
    }
    .page-blog__content-heading {
        font-size: 1.3em;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
    .page-blog__cta-description {
        font-size: 0.9em;
    }
}