/* style/resources-latest-game-guides.css */

/* Base styles for the page content */
.page-resources-latest-game-guides {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set for clarity, though body is white */
}

.page-resources-latest-game-guides__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-resources-latest-game-guides__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    background-color: #f8f8f8;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-resources-latest-game-guides__hero-content {
    max-width: 800px;
    z-index: 1;
    margin-bottom: 40px;
}

.page-resources-latest-game-guides__hero-title {
    font-size: 3.2em;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-resources-latest-game-guides__hero-description {
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 30px;
}

.page-resources-latest-game-guides__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    z-index: 0;
}

.page-resources-latest-game-guides__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Section Titles */
.page-resources-latest-game-guides__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
    font-weight: bold;
}

/* Text Blocks */
.page-resources-latest-game-guides__text-block {
    font-size: 1.1em;
    color: #333333;
    margin-bottom: 20px;
    text-align: justify;
}

/* Lists */
.page-resources-latest-game-guides__list {
    list-style: disc;
    padding-left: 40px;
    margin-bottom: 30px;
    color: #333333;
}

.page-resources-latest-game-guides__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* CTA Buttons */
.page-resources-latest-game-guides__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-resources-latest-game-guides__btn-primary {
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid transparent;
    margin-right: 15px;
}

.page-resources-latest-game-guides__btn-primary:hover {
    background-color: #005f2e;
    transform: translateY(-3px);
}

.page-resources-latest-game-guides__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-resources-latest-game-guides__btn-secondary:hover {
    background-color: #e0e0e0;
    transform: translateY(-3px);
}

.page-resources-latest-game-guides__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Game Categories / Guide Grid */
.page-resources-latest-game-guides__game-categories {
    padding: 60px 0;
    background-color: #f0fdf5; /* Light green background */
}

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

.page-resources-latest-game-guides__guide-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards have equal height */
}

.page-resources-latest-game-guides__guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-latest-game-guides__card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-height: 200px; /* Enforce minimum size */
}

.page-resources-latest-game-guides__card-title {
    font-size: 1.5em;
    color: #017439;
    padding: 20px 20px 10px;
    font-weight: bold;
}

.page-resources-latest-game-guides__card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.page-resources-latest-game-guides__card-title a:hover {
    color: #005f2e;
}

.page-resources-latest-game-guides__card-description {
    font-size: 1em;
    color: #555555;
    padding: 0 20px 15px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-resources-latest-game-guides__card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #f9f9f9;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    border-top: 1px solid #eee;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources-latest-game-guides__card-link:hover {
    background-color: #e0e0e0;
    color: #005f2e;
}

.page-resources-latest-game-guides__arrow {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.page-resources-latest-game-guides__card-link:hover .page-resources-latest-game-guides__arrow {
    transform: translateX(5px);
}


/* Money Management Section */
.page-resources-latest-game-guides__money-management {
    padding: 60px 0;
    background-color: #ffffff;
}

/* Promotions Section */
.page-resources-latest-game-guides__promotions-section {
    padding: 60px 0;
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
}

.page-resources-latest-game-guides__promotions-section .page-resources-latest-game-guides__section-title {
    color: #ffffff;
}

.page-resources-latest-game-guides__promotions-section .page-resources-latest-game-guides__text-block {
    color: #f0f0f0;
}

.page-resources-latest-game-guides__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-resources-latest-game-guides__promo-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-resources-latest-game-guides__promo-item:hover {
    transform: translateY(-5px);
}

.page-resources-latest-game-guides__promo-title {
    font-size: 1.8em;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources-latest-game-guides__promo-description {
    font-size: 1em;
    color: #e0e0e0;
}

/* Safety Section */
.page-resources-latest-game-guides__safety-section {
    padding: 60px 0;
    background-color: #f8fdfb; /* Very light green */
}

/* FAQ Section */
.page-resources-latest-game-guides__faq-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-resources-latest-game-guides__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-latest-game-guides__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.page-resources-latest-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #FFFFFF;
    cursor: pointer;
    font-size: 1.2em;
    color: #017439;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources-latest-game-guides__faq-question:hover {
    background-color: #f0f0f0;
}

.page-resources-latest-game-guides__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-resources-latest-game-guides__faq-item.active .page-resources-latest-game-guides__faq-toggle {
    transform: rotate(45deg); /* Plus to X */
}

.page-resources-latest-game-guides__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: #fdfdfd;
    color: #555555;
}

.page-resources-latest-game-guides__faq-item.active .page-resources-latest-game-guides__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px !important;
}

.page-resources-latest-game-guides__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin */
    font-size: 1em;
    line-height: 1.5;
}

/* CTA Section at bottom */
.page-resources-latest-game-guides__cta-section {
    padding: 80px 20px;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    text-align: center;
}

.page-resources-latest-game-guides__cta-section .page-resources-latest-game-guides__section-title {
    color: #FFFFFF;
    margin-top: 0;
}

.page-resources-latest-game-guides__cta-section .page-resources-latest-game-guides__text-block {
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources-latest-game-guides__hero-title {
        font-size: 2.8em;
    }

    .page-resources-latest-game-guides__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources-latest-game-guides__hero-section {
        flex-direction: column;
        padding-top: var(--header-offset, 120px) !important; /* Ensure spacing on mobile */
    }

    .page-resources-latest-game-guides__hero-content {
        margin-bottom: 30px;
    }

    .page-resources-latest-game-guides__hero-title {
        font-size: 2.2em;
    }

    .page-resources-latest-game-guides__hero-description {
        font-size: 1em;
    }

    .page-resources-latest-game-guides__section-title {
        font-size: 1.8em;
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .page-resources-latest-game-guides__text-block,
    .page-resources-latest-game-guides__list-item,
    .page-resources-latest-game-guides__promo-description,
    .page-resources-latest-game-guides__card-description,
    .page-resources-latest-game-guides__faq-answer p {
        font-size: 1em;
        line-height: 1.5;
    }

    .page-resources-latest-game-guides__cta-button {
        padding: 12px 20px;
        font-size: 1em;
        width: 100% !important; /* Ensure full width on mobile */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources-latest-game-guides__btn-primary {
        margin-right: 0;
        margin-bottom: 15px; /* Add space between stacked buttons */
    }

    .page-resources-latest-game-guides__button-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-resources-latest-game-guides__container {
        padding: 0 15px; /* Add horizontal padding to main containers */
    }

    .page-resources-latest-game-guides__guide-grid,
    .page-resources-latest-game-guides__promo-grid {
        grid-template-columns: 1fr; /* Single column layout */
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-resources-latest-game-guides__card-image {
        min-height: 200px; /* Ensure minimum size */
        height: auto; /* Allow auto height */
    }

    /* Mobile image responsiveness for all images */
    .page-resources-latest-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile video responsiveness for all videos */
    .page-resources-latest-game-guides video,
    .page-resources-latest-game-guides__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources-latest-game-guides__video-section,
    .page-resources-latest-game-guides__video-container,
    .page-resources-latest-game-guides__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-resources-latest-game-guides__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-resources-latest-game-guides__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-resources-latest-game-guides__hero-title {
        font-size: 1.8em;
    }

    .page-resources-latest-game-guides__section-title {
        font-size: 1.5em;
    }
}