/* style/game-rules.css */

/* Base styles for the game rules page */
.page-game-rules {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

.page-game-rules__section {
    padding: 60px 20px;
    margin-bottom: 0; /* Remove default margin */
}

.page-game-rules__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Hero Section */
.page-game-rules__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-game-rules__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-game-rules__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-game-rules__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
}

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

.page-game-rules__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

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

/* General Section Styling */
.page-game-rules__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for section titles */
    margin-bottom: 30px;
    text-align: center;
}

.page-game-rules__section-title--light {
    color: #ffffff;
}

.page-game-rules__sub-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-game-rules__sub-title--light {
    color: #ffffff;
}

.page-game-rules__heading-4 {
    font-size: 1.4em;
    color: #FFD700;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-game-rules__heading-4--light {
    color: #ffffff;
}

.page-game-rules__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-game-rules__text-block--light {
    color: #ffffff;
}

.page-game-rules__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-rules ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-game-rules li {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #f0f0f0;
}

/* Dark background sections */
.page-game-rules__dark-bg {
    background-color: #8B0000; /* Auxiliary color for contrast */
    color: #ffffff;
}

/* Buttons */
.page-game-rules__btn-primary,
.page-game-rules__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    text-align: center;
}

.page-game-rules__btn-primary {
    background-color: #FFD700;
    color: #8B0000;
    border: 2px solid #FFD700;
}

.page-game-rules__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: #8B0000;
}

.page-game-rules__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-game-rules__btn-secondary:hover {
    background-color: #FFD700;
    color: #8B0000;
}

/* Video Section */
.page-game-rules__video-section {
    position: relative;
    padding-top: 60px; /* Default desktop padding, header offset handled by hero */
    padding-bottom: 60px;
    text-align: center;
}

.page-game-rules__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Max width for video */
    margin: 30px auto 0;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-game-rules__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer; /* Indicate clickable */
}

.page-game-rules__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Make sure it's above the video for click */
    background: transparent; /* Invisible overlay */
    cursor: pointer;
}

/* FAQ Section */
.page-game-rules__faq-section {
    background-color: #0a0a0a; /* Ensure dark background for FAQ */
    color: #ffffff;
}

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

.page-game-rules__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-game-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08); /* Even lighter for question header */
    transition: background-color 0.3s ease;
}

.page-game-rules__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.page-game-rules__faq-heading {
    margin: 0;
    font-size: 1.2em;
    color: #FFD700; /* Gold for FAQ question */
}

.page-game-rules__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFD700;
    transition: transform 0.3s ease;
}

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

.page-game-rules__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-game-rules__faq-item.active .page-game-rules__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 20px; /* Adjust padding for expanded state */
}

.page-game-rules__faq-answer .page-game-rules__text-block {
    margin-bottom: 0; /* No bottom margin for text inside answer */
}

/* CTA Section */
.page-game-rules__cta-section {
    text-align: center;
    background-color: #0a0a0a; /* Body background color */
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-game-rules__cta-container {
    max-width: 900px;
}

.page-game-rules__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-rules__main-title {
        font-size: 2.8em;
    }
    .page-game-rules__section-title {
        font-size: 2.2em;
    }
    .page-game-rules__sub-title {
        font-size: 1.6em;
    }
    .page-game-rules__heading-4 {
        font-size: 1.3em;
    }
    .page-game-rules__hero-section {
        height: 60vh;
    }
}

@media (max-width: 768px) {
    .page-game-rules__hero-section {
        height: auto; /* Allow height to adjust */
        min-height: 50vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
    }
    .page-game-rules__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-game-rules__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-game-rules__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-game-rules__section {
        padding: 40px 15px;
    }
    .page-game-rules__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-game-rules__sub-title {
        font-size: 1.4em;
        margin-top: 30px;
    }
    .page-game-rules__heading-4 {
        font-size: 1.2em;
        margin-top: 20px;
    }
    .page-game-rules__text-block,
    .page-game-rules li {
        font-size: 0.95em;
    }

    /* Images responsiveness */
    .page-game-rules img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-rules__section,
    .page-game-rules__container,
    .page-game-rules__video-section,
    .page-game-rules__video-wrapper,
    .page-game-rules__cta-buttons,
    .page-game-rules__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-game-rules__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }}