/* style/game-guides.css */
:root {
    --primary-color: #0A2463;
    --secondary-color: #FFD700;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --dark-bg-1: #0d0d0d; /* Assuming this is from shared.css */
    --light-bg-1: #f1f3f5;
    --accent-color: #FF8C42;
}

.page-game-guides {
    font-family: 'Arial', sans-serif;
    color: var(--text-color-light); /* Default text color for the main page content on dark body background */
    background-color: var(--dark-bg-1); /* Inherited from body */
}

/* Fixed Nav Bar Spacing - Desktop */
.page-game-guides__hero-banner {
    padding-top: 180px; /* Adjust based on actual fixed header height */
    padding-bottom: 60px;
}

/* General Section Styling */
.page-game-guides__section {
    padding: 60px 0;
}

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

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

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

.page-game-guides__hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-game-guides__hero-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.page-game-guides__hero-content {
    position: relative;
    z-index: 2;
}

.page-game-guides__main-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--secondary-color);
}

.page-game-guides__hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-guides__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

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

.page-game-guides__text-block {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-color-dark);
}

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

.page-game-guides__highlight {
    font-weight: bold;
    color: var(--accent-color);
}

.page-game-guides__dark-section .page-game-guides__highlight {
    color: var(--secondary-color);
}

/* CTA Buttons */
.page-game-guides__cta-button {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__btn-primary {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--primary-color);
    border: none;
}

.page-game-guides__btn-primary:hover {
    background: linear-gradient(135deg, #FFA500, #FFC107);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-game-guides__btn-secondary {
    background: var(--primary-color);
    color: var(--text-color-light);
    border: 2px solid var(--secondary-color);
}

.page-game-guides__btn-secondary:hover {
    background: #071a47;
    border-color: #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-game-guides__card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-game-guides__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-game-guides__card-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-game-guides__card-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* List Styling */
.page-game-guides__list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    color: var(--text-color-dark);
}

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

.page-game-guides__list-item {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    font-size: 16px;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: var(--text-color-dark);
}

.page-game-guides__list-item strong {
    color: var(--primary-color);
    margin-right: 10px;
    flex-shrink: 0;
}

.page-game-guides__dark-section .page-game-guides__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color-light);
}

.page-game-guides__dark-section .page-game-guides__list-item strong {
    color: var(--secondary-color);
}

.page-game-guides__list-item::before {
    content: '✅';
    margin-right: 10px;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

/* FAQ Section */
.page-game-guides__faq-section {
    background-color: var(--light-bg-1);
    color: var(--text-color-dark);
}

.page-game-guides__faq-list {
    margin-top: 40px;
}

.page-game-guides__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-game-guides__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-game-guides__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-game-guides__faq-question:active {
    background: #eeeeee;
}

.page-game-guides__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color);
}

.page-game-guides__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-game-guides__faq-item.active .page-game-guides__faq-toggle {
    color: var(--accent-color);
    transform: rotate(180deg);
}

/* Links within text */
.page-game-guides a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-game-guides a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-game-guides__dark-section a {
    color: var(--secondary-color);
}

.page-game-guides__dark-section a:hover {
    color: var(--text-color-light);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-guides__main-title {
        font-size: 36px;
    }
    .page-game-guides__section-title {
        font-size: 30px;
    }
    .page-game-guides__hero-description {
        font-size: 16px;
    }
    .page-game-guides__text-block, .page-game-guides__card-description, .page-game-guides__list-item {
        font-size: 15px;
    }
    .page-game-guides__card-title {
        font-size: 22px;
    }
    .page-game-guides__card-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-game-guides__hero-banner {
        padding-top: 140px !important; /* Mobile: Adjust for fixed header */
        padding-bottom: 40px;
    }
    .page-game-guides__section {
        padding: 40px 0;
    }
    .page-game-guides__container {
        padding: 0 15px;
    }
    .page-game-guides__main-title {
        font-size: 28px;
    }
    .page-game-guides__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .page-game-guides__hero-image {
        margin-bottom: 30px;
    }
    .page-game-guides__hero-description {
        font-size: 15px;
    }
    .page-game-guides__cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-game-guides__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-game-guides__card {
        padding: 25px;
    }
    .page-game-guides__card-image {
        height: 160px;
    }
    .page-game-guides__card-title {
        font-size: 20px;
    }
    .page-game-guides__list-item {
        font-size: 14px;
        padding: 12px 15px;
    }
    .page-game-guides__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-game-guides__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-game-guides__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-game-guides__faq-answer {
        padding: 0 15px;
    }
    .page-game-guides__faq-item.active .page-game-guides__faq-answer {
        padding: 15px !important;
    }

    /* Ensure all images are responsive and prevent overflow */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !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;
    }
}