/* style/game-rules.css */

/* Base styles for the page content, considering body background is #0a0a0a (dark) */
.page-game-rules {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background */
    padding-bottom: 60px; /* Space for footer */
}

/* Container for content sections to center and limit width */
.page-game-rules__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-game-rules__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #0a0a0a; /* Match body background */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-game-rules__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin-bottom: 30px; /* Space between image and text content */
    border-radius: 10px;
}

.page-game-rules__hero-content {
    max-width: 900px;
    width: 100%;
    z-index: 1;
    color: #ffffff; /* Ensure text is visible on dark background */
}

.page-game-rules__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for emphasis */
    line-height: 1.2;
}

.page-game-rules__hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #f0f0f0; /* Slightly off-white for body text */
}

/* Call to Action Buttons */
.page-game-rules__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.page-game-rules__btn-primary,
.page-game-rules__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow on mobile */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-game-rules__btn-primary {
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-game-rules__btn-primary:hover {
    background-color: #1a8cc7;
    border-color: #1a8cc7;
    transform: translateY(-2px);
}

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

.page-game-rules__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-game-rules__btn-text-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
    transition: color 0.3s ease;
}

.page-game-rules__btn-text-link:hover {
    color: #1a8cc7;
    text-decoration: underline;
}

/* General Section Styling */
.page-game-rules__introduction-section,
.page-game-rules__general-principles,
.page-game-rules__specific-rules,
.page-game-rules__fairplay-security,
.page-game-rules__responsible-gambling,
.page-game-rules__terms-dispute,
.page-game-rules__conclusion-section {
    padding: 40px 0;
    background-color: #0a0a0a; /* Match body background */
    color: #ffffff; /* Light text */
}

.page-game-rules__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    position: relative;
}

.page-game-rules__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #EA7C07; /* Login color for accent */
    border-radius: 2px;
}

.page-game-rules__category-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: #ffffff; /* White text for sub-titles */
    margin-top: 30px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 5px solid #26A9E0; /* Accent border */
}

.page-game-rules__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #f0f0f0; /* Slightly off-white for readability */
}

.page-game-rules__list {
    list-style-type: disc;
    padding-left: 40px;
    margin-bottom: 20px;
    color: #f0f0f0; /* List text color */
}

.page-game-rules__list-item {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.page-game-rules__list-item strong {
    color: #26A9E0; /* Emphasize strong text with brand color */
}

.page-game-rules__image-content {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin: 30px auto;
    display: block;
}

/* Specific Game Category Styling */
.page-game-rules__game-category {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards/sections */
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* FAQ Section (if applicable, using DETAILS/SUMMARY) */
.page-game-rules__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-game-rules__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    background-color: rgba(38, 169, 224, 0.2); /* Slightly transparent brand color */
    list-style: none; /* Hide default marker */
}

.page-game-rules__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-game-rules__faq-qtext {
    flex-grow: 1;
    color: #ffffff;
}

.page-game-rules__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: #26A9E0;
    font-weight: 300;
    margin-left: 15px;
}

.page-game-rules__faq-answer {
    padding: 20px;
    font-size: 1.1rem;
    color: #f0f0f0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-rules__hero-section {
        padding: 40px 20px;
        padding-top: 10px;
    }

    .page-game-rules__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-game-rules__hero-description {
        font-size: 1.1rem;
    }

    .page-game-rules__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }

    .page-game-rules__category-title {
        font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    }
}

@media (max-width: 768px) {
    .page-game-rules__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important; /* body handles header offset */
    }

    .page-game-rules__hero-image {
        margin-bottom: 20px;
    }

    .page-game-rules__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-game-rules__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-game-rules__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-game-rules__btn-primary,
    .page-game-rules__btn-secondary {
        padding: 12px 20px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-game-rules__container {
        padding: 0 15px;
    }

    .page-game-rules__introduction-section,
    .page-game-rules__general-principles,
    .page-game-rules__specific-rules,
    .page-game-rules__fairplay-security,
    .page-game-rules__responsible-gambling,
    .page-game-rules__terms-dispute,
    .page-game-rules__conclusion-section {
        padding: 30px 0;
    }

    .page-game-rules__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }

    .page-game-rules__category-title {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .page-game-rules__text-block,
    .page-game-rules__list-item,
    .page-game-rules__faq-item summary,
    .page-game-rules__faq-answer {
        font-size: 1rem;
    }

    .page-game-rules__list {
        padding-left: 25px;
    }

    /* Mobile image 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__card,
    .page-game-rules__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-game-rules__hero-section {
        padding: 20px 10px;
        padding-top: 10px !important;
    }

    .page-game-rules__main-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .page-game-rules__hero-description {
        font-size: 0.95rem;
    }

    .page-game-rules__cta-buttons {
        gap: 10px;
    }

    .page-game-rules__btn-primary,
    .page-game-rules__btn-secondary {
        padding: 10px 15px;
        font-size: 0.95rem;
    }

    .page-game-rules__section-title {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
    }

    .page-game-rules__category-title {
        font-size: clamp(1.1rem, 5vw, 1.4rem);
    }
}