/* style/game-guides.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-dark: #000000; /* Body background from shared.css */
    --btn-register: #C30808;
    --btn-login: #C30808;
    --font-register-login: #FFFF00;
}

.page-game-guides {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark); /* Ensure consistency if section background is transparent */
}

/* Fixed header offset */
.page-game-guides__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply offset to the first content section */
}

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

/* Hero Section */
.page-game-guides__hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.page-game-guides__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-bottom: 40px;
}

.page-game-guides__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--text-light);
}

.page-game-guides__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
    color: var(--text-light);
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-game-guides__introduction-section,
.page-game-guides__sports-betting-section,
.page-game-guides__casino-section,
.page-game-guides__slots-fishing-section,
.page-game-guides__cockfighting-section,
.page-game-guides__safety-section,
.page-game-guides__faq-section {
    padding: 80px 0;
}

.page-game-guides__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-game-guides__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-game-guides__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
    font-weight: bold;
}

.page-game-guides__light-bg .page-game-guides__section-title {
    color: var(--primary-color);
}

.page-game-guides__dark-section .page-game-guides__section-title {
    color: var(--text-light);
}

.page-game-guides__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.7;
}

.page-game-guides__text-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-game-guides__dark-section .page-game-guides__text-link {
    color: var(--font-register-login); /* Use yellow for links on dark background */
}

.page-game-guides__text-link:hover {
    opacity: 0.8;
}

/* Content Grid */
.page-game-guides__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.page-game-guides__content-grid--reverse {
    grid-template-columns: 1fr 1fr;
}

.page-game-guides__image-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__content-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-game-guides__text-content {
    padding: 20px 0;
}

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__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;
    margin-top: 20px;
    border: 2px solid transparent;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-game-guides__btn-primary {
    background-color: var(--btn-register);
    color: var(--font-register-login);
    border-color: var(--btn-register);
}

.page-game-guides__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-game-guides__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-game-guides__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

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

.page-game-guides__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-dark);
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
    color: var(--primary-color);
}

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

.page-game-guides__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

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

.page-game-guides__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: var(--secondary-color);
}

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

.page-game-guides__faq-answer p {
    margin: 0;
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-guides__hero-title {
        font-size: 2.8em;
    }
    .page-game-guides__hero-description {
        font-size: 1.1em;
    }
    .page-game-guides__section-title {
        font-size: 2em;
    }
    .page-game-guides__content-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .page-game-guides__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }
    .page-game-guides__hero-title {
        font-size: 2em;
    }
    .page-game-guides__hero-description {
        font-size: 1em;
    }
    .page-game-guides__introduction-section,
    .page-game-guides__sports-betting-section,
    .page-game-guides__casino-section,
    .page-game-guides__slots-fishing-section,
    .page-game-guides__cockfighting-section,
    .page-game-guides__safety-section,
    .page-game-guides__faq-section {
        padding: 50px 0;
    }
    .page-game-guides__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-game-guides__content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-game-guides__content-grid--reverse {
        grid-template-columns: 1fr;
    }
    .page-game-guides__content-grid--reverse .page-game-guides__image-wrapper {
        order: -1; /* Image first on mobile */
    }
    .page-game-guides__text-block {
        font-size: 1em;
    }
    .page-game-guides__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-game-guides__faq-answer {
        padding: 0 20px;
    }
    .page-game-guides__faq-item.active .page-game-guides__faq-answer {
        padding: 15px 20px 20px;
    }

    /* Mobile image responsiveness */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsiveness */
    .page-game-guides video,
    .page-game-guides__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile button responsiveness */
    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary,
    .page-game-guides a[class*="button"],
    .page-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;
        padding-right: 15px;
    }
    
    .page-game-guides__cta-buttons,
    .page-game-guides__button-group,
    .page-game-guides__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-game-guides__cta-buttons {
        display: flex;
        flex-direction: column; 
    }

    /* Ensure containers are responsive */
    .page-game-guides__container,
    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__hero-section,
    .page-game-guides__introduction-section,
    .page-game-guides__sports-betting-section,
    .page-game-guides__casino-section,
    .page-game-guides__slots-fishing-section,
    .page-game-guides__cockfighting-section,
    .page-game-guides__safety-section,
    .page-game-guides__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-game-guides__hero-title {
        font-size: 1.8em;
    }
    .page-game-guides__hero-description {
        font-size: 0.9em;
    }
    .page-game-guides__section-title {
        font-size: 1.5em;
    }
    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
}