/* style/8us-game-guides.css */

/* Base styles for the page content */
.page-8us-game-guides {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f5f5f5; /* Inherited from shared.css body, but good to ensure consistency */
}

/* Section styling */
.page-8us-game-guides__section {
    padding: 60px 20px;
    margin-bottom: 20px;
}

.page-8us-game-guides__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
}

.page-8us-game-guides__light-bg {
    background-color: #ffffff; /* White background for sections */
    color: #333333; /* Dark text */
}

/* Container for content width */
.page-8us-game-guides__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add some horizontal padding */
    box-sizing: border-box;
}

/* Hero Section */
.page-8us-game-guides__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 550px;
    overflow: hidden; /* Prevent content overflow */
}

.page-8us-game-guides__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-8us-game-guides__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-8us-game-guides__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent dark overlay for text readability */
    border-radius: 10px;
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.page-8us-game-guides__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-8us-game-guides__hero-description {
    font-size: 1.3em;
    margin-bottom: 35px;
}

.page-8us-game-guides__hero-cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General button styles */
.page-8us-game-guides__btn-primary,
.page-8us-game-guides__btn-secondary,
.page-8us-game-guides__btn-text-link {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
    cursor: pointer;
}

.page-8us-game-guides__btn-primary {
    background-color: #C30808; /* Red for primary action (Register/Login) */
    color: #FFFF00; /* Yellow text for primary button */
    border: 2px solid #C30808;
    box-shadow: 0 4px 10px rgba(195, 8, 8, 0.4);
}

.page-8us-game-guides__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
    transform: translateY(-2px);
}

.page-8us-game-guides__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand primary color for text */
    border: 2px solid #017439;
    box-shadow: 0 4px 10px rgba(0, 116, 57, 0.2);
}

.page-8us-game-guides__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2b;
    border-color: #005a2b;
    transform: translateY(-2px);
}

.page-8us-game-guides__btn-text-link {
    background: none;
    border: none;
    color: #017439;
    padding: 0;
    text-decoration: underline;
    font-size: 1em;
}

.page-8us-game-guides__btn-text-link:hover {
    color: #005a2b;
    text-decoration: none;
}

/* Section titles and descriptions */
.page-8us-game-guides__section-title {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 25px;
    color: #017439; /* Brand primary color */
    font-weight: 700;
}

.page-8us-game-guides__dark-section .page-8us-game-guides__section-title {
    color: #ffffff; /* White text for dark section titles */
}

.page-8us-game-guides__section-description {
    font-size: 1.15em;
    text-align: center;
    max-width: 850px;
    margin: 0 auto 50px auto;
    line-height: 1.7;
}

/* Grid layout for two columns */
.page-8us-game-guides__grid-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.page-8us-game-guides__grid-two-cols--reverse {
    grid-template-areas: "image text"; /* Reverse order for specific section */
}

.page-8us-game-guides__grid-two-cols--reverse .page-8us-game-guides__text-block {
    grid-area: text;
}

.page-8us-game-guides__grid-two-cols--reverse .page-8us-game-guides__image-wrapper {
    grid-area: image;
}

.page-8us-game-guides__text-block {
    font-size: 1.1em;
    line-height: 1.7;
}

.page-8us-game-guides__text-block p {
    margin-bottom: 18px;
}

.page-8us-game-guides__image-wrapper {
    text-align: center;
}

.page-8us-game-guides__image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Game Cards Grid */
.page-8us-game-guides__game-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.page-8us-game-guides__card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
    display: flex;
    flex-direction: column;
}

.page-8us-game-guides__card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.page-8us-game-guides__card-image {
    width: 100%;
    height: 280px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-8us-game-guides__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-8us-game-guides__card-title {
    font-size: 1.6em;
    margin-bottom: 12px;
    color: #017439;
    font-weight: 600;
}

.page-8us-game-guides__card-title a {
    color: #017439;
    text-decoration: none;
}

.page-8us-game-guides__card-title a:hover {
    text-decoration: underline;
}

.page-8us-game-guides__card-text {
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

/* List styles */
.page-8us-game-guides__list {
    list-style: none;
    padding: 0;
    margin: 0 auto 50px auto;
    max-width: 950px;
}

.page-8us-game-guides__list-item {
    background-color: #f9f9f9;
    border-left: 6px solid #017439;
    padding: 20px 25px;
    margin-bottom: 18px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.07);
    font-size: 1.1em;
    line-height: 1.6;
}

.page-8us-game-guides__list-item strong {
    color: #017439;
}

.page-8us-game-guides__list-item a {
    color: #017439;
    text-decoration: none;
}

.page-8us-game-guides__list-item a:hover {
    text-decoration: underline;
}

/* Centered CTA buttons */
.page-8us-game-guides__cta-buttons--center {
    text-align: center;
    margin-top: 50px;
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

/* FAQ Section */
.page-8us-game-guides__faq-list {
    max-width: 950px;
    margin: 0 auto;
}

.page-8us-game-guides__faq-item {
    background-color: #ffffff;
    margin-bottom: 18px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.page-8us-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
    color: #017439; /* Brand primary color */
}

.page-8us-game-guides__faq-question:hover {
    background-color: #e5e5e5;
}

.page-8us-game-guides__faq-question h3 {
    margin: 0;
    font-size: 1.3em;
    color: inherit; /* Inherit color from parent */
    font-weight: 600;
}

.page-8us-game-guides__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: #017439;
}

.page-8us-game-guides__faq-item.active .page-8us-game-guides__faq-toggle {
    transform: rotate(45deg);
}

.page-8us-game-guides__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #333333;
    line-height: 1.6;
}

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

.page-8us-game-guides__faq-answer p {
    margin: 0;
}

.page-8us-game-guides__faq-answer a {
    color: #017439;
    text-decoration: none;
}

.page-8us-game-guides__faq-answer a:hover {
    text-decoration: underline;
}

/* Specific styling for links within text blocks */
.page-8us-game-guides__text-block a,
.page-8us-game-guides__faq-answer a {
    color: #017439; /* Brand primary for links */
    text-decoration: underline;
}

.page-8us-game-guides__text-block a:hover,
.page-8us-game-guides__faq-answer a:hover {
    color: #005a2b; /* Slightly darker on hover */
}

/* Ensure all images and videos do not have filters */
.page-8us-game-guides img,
.page-8us-game-guides video {
    filter: none !important;
}

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

    .page-8us-game-guides__section-title {
        font-size: 2.2em;
    }

    .page-8us-game-guides__grid-two-cols {
        grid-template-columns: 1fr;
    }

    .page-8us-game-guides__grid-two-cols--reverse {
        grid-template-areas: unset; /* Reset order for mobile */
    }

    .page-8us-game-guides__hero-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-8us-game-guides__section {
        padding: 40px 15px;
    }

    .page-8us-game-guides__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }

    .page-8us-game-guides__hero-title {
        font-size: 2.2em;
    }

    .page-8us-game-guides__hero-description {
        font-size: 1.1em;
    }

    .page-8us-game-guides__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-8us-game-guides__btn-primary,
    .page-8us-game-guides__btn-secondary,
    .page-8us-game-guides a[class*="button"],
    .page-8us-game-guides a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .page-8us-game-guides__cta-buttons,
    .page-8us-game-guides__button-group,
    .page-8us-game-guides__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-8us-game-guides__cta-buttons--center {
        flex-direction: column;
    }

    .page-8us-game-guides__section-title {
        font-size: 1.9em;
    }

    .page-8us-game-guides__image,
    .page-8us-game-guides__hero-image,
    .page-8us-game-guides__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure no image is smaller than 200px display size */
    .page-8us-game-guides img:not(.page-8us-game-guides__hero-image) {
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-8us-game-guides__image-wrapper,
    .page-8us-game-guides__card,
    .page-8us-game-guides__container,
    .page-8us-game-guides__game-cards-grid,
    .page-8us-game-guides__faq-list,
    .page-8us-game-guides__hero-section .page-8us-game-guides__hero-content,
    .page-8us-game-guides__text-block,
    .page-8us-game-guides__list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .page-8us-game-guides__card-image {
        height: 200px;
    }

    .page-8us-game-guides__faq-question {
        padding: 15px;
    }

    .page-8us-game-guides__faq-answer {
        padding: 0 15px;
    }

    .page-8us-game-guides__faq-item.active .page-8us-game-guides__faq-answer {
        padding: 15px !important;
    }

    .page-8us-game-guides__list-item {
        padding: 15px 20px;
    }
}