/* style/game-guides.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không thêm padding-top vào đây */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #ffffff;
    --background-dark: #26A9E0;
    --button-login: #EA7C07;
}

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

/* Hero Section */
.page-game-guides__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 10px 20px 60px 20px; /* Small top padding, more bottom padding */
    box-sizing: border-box;
    overflow: hidden; /* Ensure no overflow */
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and content */
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-game-guides__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 30px;
    border-radius: 8px;
    background-color: var(--background-light); /* Explicit background for text block */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: -40px; /* Slightly overlap with image for visual flow */
    position: relative;
    z-index: 1;
}

.page-game-guides__main-title {
    font-size: clamp(2rem, 4vw, 2.8rem); /* Use clamp for H1 font-size */
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.page-game-guides__intro-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.page-game-guides__cta-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

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

.page-game-guides__btn-primary:hover {
    background-color: #1e8ac7; /* Darker shade of #26A9E0 */
    transform: translateY(-2px);
}

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

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

/* General Section Styling */
.page-game-guides__section {
    padding: 60px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

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

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

.page-game-guides__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%; /* Ensure container takes full width on smaller screens */
    box-sizing: border-box;
}

.page-game-guides__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

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

.page-game-guides__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

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

.page-game-guides__text-block p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: inherit; /* Inherit color from parent section */
}

.page-game-guides__link-inline {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-game-guides__dark-section .page-game-guides__link-inline {
    color: var(--secondary-color); /* Light color for links on dark background */
}

.page-game-guides__link-inline:hover {
    text-decoration: underline;
}

.page-game-guides__grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-game-guides__image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.page-game-guides__image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Strategy Cards */
.page-game-guides__strategy-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark section */
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-game-guides__strategy-card:last-child {
    margin-bottom: 0;
}

.page-game-guides__card-title {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 600;
}

.page-game-guides__link-card {
    color: inherit; /* Inherit color from parent */
    text-decoration: none;
}

.page-game-guides__link-card:hover {
    text-decoration: underline;
}

.page-game-guides__card-image {
    width: 100%;
    max-width: 600px; /* Max width for card images */
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-game-guides__card-content p {
    margin-bottom: 15px;
    color: var(--text-light);
}

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

.page-game-guides__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

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

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--primary-color);
    position: relative;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-question {
    border-bottom: 1px solid #e0e0e0;
}

.page-game-guides__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
}

.page-game-guides__faq-item summary {
    list-style: none; /* Hide default marker */
}

.page-game-guides__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-game-guides__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1rem;
    color: var(--text-dark);
}

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

/* CTA Bottom Section */
.page-game-guides__cta-bottom {
    text-align: center;
    padding: 80px 20px;
}

.page-game-guides__cta-bottom .page-game-guides__section-title {
    margin-bottom: 20px;
}

.page-game-guides__cta-bottom .page-game-guides__intro-text {
    color: var(--text-light);
    margin-bottom: 30px;
}

.page-game-guides__cta-buttons {
    display: flex;
    flex-direction: column; /* Default to column for single button or stacked */
    align-items: center;
    gap: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-guides__grid-two-columns {
        grid-template-columns: 1fr;
    }
    .page-game-guides__hero-content {
        margin-top: -20px;
    }
}

@media (max-width: 768px) {
    .page-game-guides__hero-section {
        padding: 10px 15px 40px 15px;
    }

    .page-game-guides__hero-content {
        padding: 20px;
        margin-top: -30px;
    }

    .page-game-guides__section {
        padding: 40px 15px;
    }

    .page-game-guides__section-title {
        margin-bottom: 30px;
    }

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

    .page-game-guides__hero-image-wrapper,
    .page-game-guides__image-wrapper,
    .page-game-guides__strategy-card,
    .page-game-guides__container,
    .page-game-guides__faq-section,
    .page-game-guides__cta-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Buttons responsiveness */
    .page-game-guides__cta-button,
    .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; /* Add padding to prevent text touching edges */
        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 {
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

    /* FAQ */
    .page-game-guides__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-game-guides__faq-answer {
        padding: 10px 20px 15px 20px;
    }
}