/* style/game-guides.css */

.page-game-guides {
    font-family: Arial, sans-serif;
    color: #FFF6D6; /* Main text color for dark background */
    background-color: #0A0A0A; /* Page content background */
}

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

/* Hero Section */
.page-game-guides__hero-section {
    display: flex;
    flex-direction: column; /* Enforce image on top, text below */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding as body handles header offset */
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-game-guides__hero-image {
    width: 100%;
    max-width: 1200px; /* Adjust based on container width */
    height: auto;
    display: block;
    border-radius: 10px;
    margin-bottom: 30px;
    object-fit: cover;
}

.page-game-guides__main-title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    color: #FFD36B; /* Glow color for main title */
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure responsiveness */
}

.page-game-guides__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111; /* Dark text for bright button */
    border: none;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-game-guides__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-game-guides__btn-secondary:hover {
    background: #FFD36B;
    color: #111111;
}

.page-game-guides__button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    width: 100%; /* Ensure responsiveness */
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}


/* Content Area */
.page-game-guides__content-area {
    padding: 50px 0;
    background-color: #0A0A0A;
}

.page-game-guides__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #F2C14E; /* Main brand color for section titles */
    margin-bottom: 30px;
    text-align: center;
    padding-top: 20px;
}

.page-game-guides__content-area p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #FFF6D6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Card Grid */
.page-game-guides__grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 50px;
}

.page-game-guides__card {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    overflow: hidden;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: #FFF6D6;
}

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

.page-game-guides__card-title {
    font-size: 22px;
    font-weight: 600;
    color: #FFD36B;
    margin-bottom: 15px;
}

.page-game-guides__card p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; /* Make paragraphs take available space */
    max-width: none; /* Override content-area p max-width */
}

.page-game-guides__card .page-game-guides__btn-secondary {
    margin-top: auto; /* Push button to bottom */
    width: auto; /* Reset button width for card */
    padding: 10px 20px;
    font-size: 16px;
}

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

details.page-game-guides__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #3A2A12; /* Border */
    overflow: hidden;
    background: #111111; /* Card BG */
    color: #FFF6D6;
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question::-webkit-details-marker {
    display: none;
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}
.page-game-guides__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #FFF6D6;
}
.page-game-guides__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #FFD36B; /* Glow color for toggle */
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-game-guides__faq-item .page-game-guides__faq-answer {
    padding: 0 20px 20px;
    background: rgba(17, 17, 17, 0.8); /* Slightly darker for answer background */
    border-radius: 0 0 5px 5px;
    color: #FFF6D6;
}
.page-game-guides__faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    max-width: none;
}

/* CTA Section */
.page-game-guides__cta-section {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    padding: 50px 30px;
    text-align: center;
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-game-guides__cta-title {
    font-size: 32px;
    font-weight: 700;
    color: #F2C14E;
    margin-bottom: 20px;
}

.page-game-guides__cta-description {
    font-size: 18px;
    line-height: 1.6;
    color: #FFF6D6;
    margin-bottom: 30px;
}

/* General image responsive styles */
.page-game-guides img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Responsive styles --- */
@media (max-width: 1024px) {
    .page-game-guides__main-title {
        font-size: 38px;
    }
    .page-game-guides__section-title {
        font-size: 32px;
    }
    .page-game-guides__grid-3-cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .page-game-guides__card-title {
        font-size: 20px;
    }
    .page-game-guides__faq-qtext {
        font-size: 17px;
    }
    .page-game-guides__cta-title {
        font-size: 28px;
    }
}

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

    /* Hero Section */
    .page-game-guides__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 30px;
    }
    .page-game-guides__hero-image {
        margin-bottom: 20px;
    }
    .page-game-guides__main-title {
        font-size: 32px !important;
        margin-bottom: 15px;
    }
    .page-game-guides__description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    /* Buttons */
    .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;
        font-size: 16px;
    }
    .page-game-guides__button-group {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Content Area */
    .page-game-guides__content-area {
        padding: 30px 0;
    }
    .page-game-guides__section-title {
        font-size: 26px !important;
        margin-bottom: 20px;
    }
    .page-game-guides__content-area p {
        font-size: 15px;
    }

    /* Card Grid */
    .page-game-guides__grid-3-cols {
        grid-template-columns: 1fr !important; /* Single column for cards */
        gap: 20px;
        margin-top: 30px;
        margin-bottom: 30px;
    }
    .page-game-guides__card {
        padding: 20px;
    }
    .page-game-guides__card-image {
        height: 180px;
        margin-bottom: 15px;
    }
    .page-game-guides__card-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .page-game-guides__card p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    /* FAQ Section */
    details.page-game-guides__faq-item summary.page-game-guides__faq-question {
        padding: 15px;
    }
    .page-game-guides__faq-qtext {
        font-size: 16px;
    }
    .page-game-guides__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    details.page-game-guides__faq-item .page-game-guides__faq-answer {
        padding: 0 15px 15px;
    }
    .page-game-guides__faq-answer p {
        font-size: 15px;
    }

    /* CTA Section */
    .page-game-guides__cta-section {
        padding: 40px 20px;
        margin-top: 40px;
    }
    .page-game-guides__cta-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    .page-game-guides__cta-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    /* General image responsive styles for mobile */
    .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,
    .page-game-guides__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}