/* style/game-guides.css */
.page-game-guides {
    color: #ffffff; /* Default text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-game-guides__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px);
    box-sizing: border-box;
}

.page-game-guides__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-game-guides__hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

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

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

.page-game-guides__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    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;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.page-game-guides__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

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

.page-game-guides__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #1e87c0;
    border-color: #1e87c0;
}

/* General Section Styles */
.page-game-guides__intro-section,
.page-game-guides__game-guides-section,
.page-game-guides__advanced-tips-section,
.page-game-guides__faq-section,
.page-game-guides__cta-section {
    padding: 80px 0;
}

.page-game-guides__dark-bg {
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-game-guides__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-game-guides__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section */
}

.page-game-guides__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: inherit; /* Inherit color from parent section */
}

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

.page-game-guides__feature-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-game-guides__feature-item img {
    width: 100%;
    height: auto;
    max-width: 250px;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-game-guides__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-game-guides__feature-text {
    font-size: 1em;
    color: #f0f0f0;
}

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

.page-game-guides__game-card {
    background: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #333333;
}

.page-game-guides__game-card:hover {
    transform: translateY(-5px);
}

.page-game-guides__card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.page-game-guides__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-game-guides__card-title {
    font-size: 1.4em;
    padding: 15px 20px 10px;
    color: #26A9E0;
}

.page-game-guides__card-text {
    font-size: 0.95em;
    padding: 0 20px 20px;
    color: #555555;
}

/* Advanced Tips List */
.page-game-guides__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.page-game-guides__tip-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-game-guides__tip-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-game-guides__tip-text {
    font-size: 1em;
    color: #f0f0f0;
}

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

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

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    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;
}

.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, padding 0.3s ease;
    color: #555555;
}

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

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

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

@media (max-width: 768px) {
    .page-game-guides {
        font-size: 16px;
        line-height: 1.6;
    }

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

    .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 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-game-guides__section-title {
        font-size: 2em;
    }

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

    .page-game-guides__intro-section,
    .page-game-guides__game-guides-section,
    .page-game-guides__advanced-tips-section,
    .page-game-guides__faq-section,
    .page-game-guides__cta-section {
        padding: 40px 0;
    }

    .page-game-guides__features-grid,
    .page-game-guides__game-cards-grid,
    .page-game-guides__tips-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-game-guides__feature-item,
    .page-game-guides__game-card,
    .page-game-guides__tip-item,
    .page-game-guides__faq-item,
    .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__card-image {
        height: 200px; /* Adjust height for mobile cards */
    }

    .page-game-guides__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-game-guides__faq-answer {
        padding: 0 20px;
    }

    .page-game-guides__faq-item.active .page-game-guides__faq-answer {
        padding: 15px 20px;
    }
}

@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.8em;
    }
}