/* style/game-guides.css */

/* Base styles for the page-game-guides scope */
.page-game-guides {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--black-color); /* Inherit from shared, assume dark */
}

/* Hero Section */
.page-game-guides__hero-section {
    position: relative;
    padding: 100px 20px 60px; /* Adjust padding-top for header offset on desktop */
    padding-top: var(--header-offset, 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #26A9E0; /* Brand primary color for hero background */
    color: #ffffff;
}

.page-game-guides__hero-content {
    max-width: 900px;
    z-index: 1;
    margin-bottom: 40px;
}

.page-game-guides__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-game-guides__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-game-guides__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.3; /* Subtle background image */
    z-index: 0;
}

.page-game-guides__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image for better text contrast */
}

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

/* Section Titles and Text Blocks */
.page-game-guides__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    color: inherit; /* Inherit color from parent section for contrast */
}

.page-game-guides__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: inherit; /* Inherit color from parent section for contrast */
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary,
.page-game-guides__btn-text {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't cause overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-game-guides__btn-primary {
    background-color: #EA7C07; /* Login/Register button color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

.page-game-guides__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
    border-color: #ffffff;
}

.page-game-guides__btn-text {
    background-color: transparent;
    color: #26A9E0;
    border: none;
    padding: 0;
    font-size: 1em;
    text-decoration: underline;
}

.page-game-guides__btn-text:hover {
    color: #1a7fb0;
}

/* Section Styling */
.page-game-guides__intro-section,
.page-game-guides__general-strategy,
.page-game-guides__faq-section {
    padding: 60px 0;
    color: #333333; /* Dark text for light background */
    background-color: #ffffff; /* White background */
}

.page-game-guides__game-categories,
.page-game-guides__video-section,
.page-game-guides__cta-bottom {
    padding: 60px 0;
    color: #ffffff; /* Light text for dark background */
    background-color: #26A9E0; /* Brand primary color for dark sections */
}

/* Game Categories Grid */
.page-game-guides__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-game-guides__card {
    background-color: #ffffff; /* White card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #333333; /* Dark text for card content */
}

.page-game-guides__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-game-guides__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-game-guides__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-game-guides__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #26A9E0; /* Brand color for card titles */
}

.page-game-guides__card-title a {
    color: #26A9E0;
    text-decoration: none;
}

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

.page-game-guides__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* General Strategy List */
.page-game-guides__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-game-guides__strategy-list li {
    background-color: #f9f9f9;
    border-left: 5px solid #26A9E0;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-game-guides__list-item-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-game-guides__content-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Video Section */
.page-game-guides__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-top: 30px;
    border-radius: 10px;
}

.page-game-guides__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.page-game-guides__video-caption {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    color: #ffffff;
}

/* FAQ Section */
.page-game-guides__faq-list {
    margin-top: 40px;
}

.page-game-guides__faq-item {
    background-color: #f9f9f9;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    background-color: #ffffff;
    color: #333333;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.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: #26A9E0;
}

.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 20px; /* Initial padding 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    background-color: #f9f9f9;
}

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

.page-game-guides__faq-answer p {
    margin: 0 0 10px 0;
}

.page-game-guides__faq-answer p:last-child {
    margin-bottom: 0;
}

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

@media (max-width: 768px) {
    .page-game-guides__hero-section {
        padding: var(--header-offset, 120px) 15px 40px; /* Apply header offset */
        flex-direction: column;
    }

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

    .page-game-guides__hero-description {
        font-size: 1em;
    }

    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .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__section-title {
        font-size: 1.8em;
    }

    .page-game-guides__text-block {
        font-size: 0.95em;
    }

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

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

    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-game-guides__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-game-guides video,
    .page-game-guides__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-game-guides__video-section,
    .page-game-guides__video-container,
    .page-game-guides__video-wrapper {
        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-guides__hero-title {
        font-size: 1.8em;
    }
    .page-game-guides__section-title {
        font-size: 1.5em;
    }
    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary {
        padding: 12px 20px;
    }
    .page-game-guides__card-title {
        font-size: 1.3em;
    }
    .page-game-guides__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-game-guides__faq-answer {
        padding: 0 15px;
    }
    .page-game-guides__faq-item.active .page-game-guides__faq-answer {
        padding: 15px 15px;
    }
}