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

.page-blog__hero-section {
    background-color: #003366; /* Deep blue main color */
    color: #ffffff; /* White text for dark background */
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-blog__hero-container {
    max-width: 900px;
    z-index: 1;
}

.page-blog__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold accent for title */
    line-height: 1.2;
}

.page-blog__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__hero-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #003366; /* Deep blue text on gold button */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__hero-button:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-3px);
}

.page-blog__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-blog__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
}

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

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

.page-blog__article-heading {
    font-size: 2.2em;
    color: #003366; /* Deep blue for main headings */
    margin-bottom: 20px;
    border-bottom: 3px solid #FFD700; /* Gold underline */
    padding-bottom: 10px;
}

.page-blog__article-subheading {
    font-size: 1.8em;
    color: #003366;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-blog__article-subheading--small {
    font-size: 1.4em;
    color: #003366;
    margin-top: 25px;
    margin-bottom: 10px;
}

.page-blog__article-paragraph {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #333333;
}

.page-blog__feature-list,
.page-blog__game-list,
.page-blog__numbered-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-blog__feature-item,
.page-blog__game-item,
.page-blog__list-item {
    font-size: 1.1em;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
    color: #333333;
}

.page-blog__feature-item::before,
.page-blog__game-item::before {
    content: '★'; /* Star icon */
    color: #FFD700; /* Gold star */
    position: absolute;
    left: 0;
    font-size: 1.2em;
    top: -2px;
}

.page-blog__list-item::before {
    content: counter(item) ". ";
    counter-increment: item;
    color: #003366; /* Deep blue number */
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-blog__numbered-list {
    counter-reset: item;
}


.page-blog__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__content-image--small {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 600px; /* Specific width for small image, will be max-width: 100% on mobile */
    height: 400px;
    object-fit: cover;
}

.page-blog__image-with-text {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.page-blog__image-with-text .page-blog__content-image {
    flex: 1;
    min-width: 300px;
}

.page-blog__text-content {
    flex: 1.5;
    min-width: 300px;
}

.page-blog__primary-button {
    display: inline-block;
    background-color: #003366; /* Deep blue button */
    color: #ffffff; /* White text */
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
}

.page-blog__primary-button:hover {
    background-color: #002244; /* Darker blue on hover */
    transform: translateY(-2px);
}

.page-blog__secondary-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #003366; /* Deep blue text */
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
}

.page-blog__secondary-button:hover {
    background-color: #e6c200; /* Darker gold on hover */
    transform: translateY(-2px);
}

.page-blog__text-link {
    color: #003366; /* Deep blue for text links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-blog__text-link:hover {
    color: #FFD700; /* Gold on hover */
    text-decoration: underline;
}

.page-blog__game-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
}

.page-blog__game-showcase .page-blog__content-image {
    flex: 1;
    min-width: 400px;
}

.page-blog__game-showcase .page-blog__game-list {
    flex: 1.2;
    min-width: 300px;
}

.page-blog__promo-callout {
    background-color: #f8f8f8;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.page-blog__security-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 30px;
    gap: 20px;
}

.page-blog__security-info .page-blog__content-image {
    max-width: 600px;
    height: auto;
}


.page-blog__latest-articles {
    padding: 40px 0;
    text-align: center;
}

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

.page-blog__article-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    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 6px 20px rgba(0, 0, 0, 0.15);
}

.page-blog__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-blog__card-title {
    font-size: 1.4em;
    color: #003366;
    margin: 20px 20px 10px 20px;
    line-height: 1.4;
}

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

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

.page-blog__card-excerpt {
    font-size: 1em;
    color: #666666;
    margin: 0 20px 15px 20px;
    flex-grow: 1; /* Push link to bottom */
}

.page-blog__card-link {
    display: inline-block;
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    margin: 0 20px 20px 20px;
    transition: color 0.3s ease;
}

.page-blog__card-link:hover {
    color: #003366;
    text-decoration: underline;
}

.page-blog__view-all {
    margin-top: 40px;
}

.page-blog__cta-section {
    background-color: #003366; /* Deep blue background */
    color: #ffffff; /* White text */
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    margin-top: 50px;
}

.page-blog__cta-heading {
    font-size: 2.5em;
    color: #FFD700; /* Gold heading */
    margin-bottom: 20px;
}

.page-blog__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-blog__cta-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #003366; /* Deep blue text */
    padding: 18px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-button:hover {
    background-color: #e6c200; /* Darker gold on hover */
    transform: translateY(-4px);
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 2.8em;
    }
    .page-blog__hero-description {
        font-size: 1.1em;
    }
    .page-blog__article-heading {
        font-size: 2em;
    }
    .page-blog__article-subheading {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    /* Mobile content area images must not cause horizontal scrolling */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }

    .page-blog__hero-section {
        padding: 60px 15px;
        gap: 20px;
    }

    .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__content-area {
        padding: 30px 15px;
    }

    .page-blog__article {
        padding: 20px;
        margin-bottom: 30px;
    }

    .page-blog__article-heading {
        font-size: 1.8em;
    }

    .page-blog__article-subheading {
        font-size: 1.4em;
    }

    .page-blog__article-subheading--small {
        font-size: 1.2em;
    }

    .page-blog__article-paragraph,
    .page-blog__feature-item,
    .page-blog__game-item,
    .page-blog__list-item,
    .page-blog__promo-text {
        font-size: 0.95em;
    }

    .page-blog__image-with-text,
    .page-blog__game-showcase {
        flex-direction: column;
        gap: 20px;
    }

    .page-blog__game-showcase .page-blog__content-image {
        min-width: unset; /* Reset min-width for mobile */
    }

    .page-blog__article-grid {
        grid-template-columns: 1fr;
    }

    .page-blog__card-image {
        height: 200px; /* Adjust card image height for mobile */
    }

    .page-blog__card-title {
        font-size: 1.2em;
    }

    .page-blog__cta-section {
        padding: 40px 15px;
    }

    .page-blog__cta-heading {
        font-size: 2em;
    }

    .page-blog__cta-description {
        font-size: 1em;
    }

    .page-blog__cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    /* Ensure content images are not smaller than 200px display size */
    .page-blog__content-image,
    .page-blog__content-image--small,
    .page-blog__card-image {
        min-width: 200px;
        min-height: 200px;
    }
}

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