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

/* Base styles for the page content */
.page-resources-latest-game-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared, default to white */
}

/* Header offset for the main content or first section */
.page-resources-latest-game-guide__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Hero Section */
.page-resources-latest-game-guide__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff; /* White text for dark background */
    background-color: #017439; /* Brand primary color */
    padding: 80px 20px;
    overflow: hidden;
    min-height: 500px;
}

.page-resources-latest-game-guide__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    z-index: 1;
}

.page-resources-latest-game-guide__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-resources-latest-game-guide__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-resources-latest-game-guide__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

/* General Section Styling */
.page-resources-latest-game-guide__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff; /* Explicitly white background for content */
    color: #333333; /* Dark text for content */
}

.page-resources-latest-game-guide__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-resources-latest-game-guide__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

.page-resources-latest-game-guide__text-block {
    margin-bottom: 40px;
    font-size: 1.1em;
}

.page-resources-latest-game-guide__text-block p {
    margin-bottom: 15px;
}

/* Game Categories */
.page-resources-latest-game-guide__game-category {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-resources-latest-game-guide__game-subtitle {
    font-size: 2em;
    color: #017439;
    margin-bottom: 20px;
    text-align: center;
}

.page-resources-latest-game-guide__game-image,
.page-resources-latest-game-guide__content-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    display: block; /* Ensures proper spacing and max-width */
}

.page-resources-latest-game-guide__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    font-size: 1.05em;
}

.page-resources-latest-game-guide__list li {
    margin-bottom: 10px;
}

.page-resources-latest-game-guide__list ul { /* Nested lists */
    list-style: circle;
    margin-left: 20px;
    margin-top: 5px;
}

/* Buttons */
.page-resources-latest-game-guide__btn-primary,
.page-resources-latest-game-guide__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-resources-latest-game-guide__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
    margin: 10px;
}

.page-resources-latest-game-guide__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
    color: #ffffff;
}

.page-resources-latest-game-guide__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
    margin: 10px;
}

.page-resources-latest-game-guide__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

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

/* Video Section */
.page-resources-latest-game-guide__video-wrapper {
    margin: 40px auto;
    max-width: 900px;
    text-align: center;
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-resources-latest-game-guide__video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-resources-latest-game-guide__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer; /* Indicate clickability */
}

.page-resources-latest-game-guide__video-caption {
    font-style: italic;
    margin-bottom: 20px;
    color: #555555;
}

/* FAQ Section */
.page-resources-latest-game-guide__faq-list {
    max-width: 900px;
    margin: 0 auto 60px auto;
}

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

.page-resources-latest-game-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text */
    cursor: pointer;
    font-weight: bold;
    font-size: 1.15em;
    transition: background-color 0.3s ease;
}

.page-resources-latest-game-guide__faq-question:hover {
    background-color: #015f2e;
}

.page-resources-latest-game-guide__faq-heading {
    margin: 0;
    color: inherit; /* Inherit color from parent */
    flex-grow: 1;
}

.page-resources-latest-game-guide__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-resources-latest-game-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Adjust padding to match question */
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f9f9f9;
    color: #333333;
    font-size: 1em;
}

.page-resources-latest-game-guide__faq-answer p {
    padding: 15px 0; /* Add vertical padding to paragraph */
    margin: 0;
}

/* Active state for FAQ item */
.page-resources-latest-game-guide__faq-item.active .page-resources-latest-game-guide__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px; /* Apply padding when active */
}

.page-resources-latest-game-guide__faq-item.active .page-resources-latest-game-guide__faq-toggle {
    transform: rotate(45deg); /* Change + to X or rotate */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-latest-game-guide__hero-title {
        font-size: 3em;
    }
    .page-resources-latest-game-guide__hero-description {
        font-size: 1.2em;
    }
    .page-resources-latest-game-guide__section-title {
        font-size: 2em;
    }
    .page-resources-latest-game-guide__game-subtitle {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-resources-latest-game-guide__hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }
    .page-resources-latest-game-guide__hero-title {
        font-size: 2.2em;
    }
    .page-resources-latest-game-guide__hero-description {
        font-size: 1em;
    }
    .page-resources-latest-game-guide__content-area {
        padding: 40px 15px;
    }
    .page-resources-latest-game-guide__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources-latest-game-guide__game-subtitle {
        font-size: 1.6em;
    }
    .page-resources-latest-game-guide__btn-primary,
    .page-resources-latest-game-guide__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        width: 100% !important; /* Full width for buttons on mobile */
        margin: 10px 0;
    }
    .page-resources-latest-game-guide__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile specific image adaptation */
    .page-resources-latest-game-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile specific video adaptation */
    .page-resources-latest-game-guide video,
    .page-resources-latest-game-guide__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Video container mobile adaptation */
    .page-resources-latest-game-guide__video-wrapper,
    .page-resources-latest-game-guide__video-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    /* Ensure content containers also adapt */
    .page-resources-latest-game-guide__game-category,
    .page-resources-latest-game-guide__faq-list,
    .page-resources-latest-game-guide__text-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Fixed header offset for hero/video section if it's the first element */
    .page-resources-latest-game-guide__hero-section,
    .page-resources-latest-game-guide__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

@media (max-width: 480px) {
    .page-resources-latest-game-guide__hero-title {
        font-size: 1.8em;
    }
    .page-resources-latest-game-guide__hero-description {
        font-size: 0.9em;
    }
    .page-resources-latest-game-guide__section-title {
        font-size: 1.5em;
    }
    .page-resources-latest-game-guide__game-subtitle {
        font-size: 1.4em;
    }
    .page-resources-latest-game-guide__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-resources-latest-game-guide__faq-answer {
        padding: 0 20px;
    }
    .page-resources-latest-game-guide__faq-item.active .page-resources-latest-game-guide__faq-answer {
        padding: 10px 20px;
    }
}