/* CSS cho trang Hướng dẫn & Mẹo Chơi Game (game-guides.css) */

/* Biến CSS tùy chỉnh từ thiết kế */
:root {
    --page-game-guides-primary-color: #11A84E;
    --page-game-guides-secondary-color: #22C768;
    --page-game-guides-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-game-guides-card-bg: #11271B;
    --page-game-guides-background: #08160F;
    --page-game-guides-text-main: #F2FFF6;
    --page-game-guides-text-secondary: #A7D9B8;
    --page-game-guides-border-color: #2E7A4E;
    --page-game-guides-glow: #57E38D;
    --page-game-guides-gold: #F2C14E;
    --page-game-guides-divider: #1E3A2A;
    --page-game-guides-deep-green: #0A4B2C;
}

/* Tổng thể trang và các phần tử chung */
.page-game-guides {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-game-guides-text-main); /* Mặc định cho các phần tử trên nền tối */
    background-color: var(--page-game-guides-background);
}

/* Phần Hero Section */
.page-game-guides__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px; /* 10px top padding for initial section */
    color: var(--page-game-guides-text-main);
    overflow: hidden;
    text-align: center;
}

.page-game-guides__hero-image-container {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    position: relative;
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
}

.page-game-guides__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin-top: 40px; /* Space below image */
    padding: 0 20px;
}

.page-game-guides__main-title {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--page-game-guides-gold);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    text-align: center;
}

.page-game-guides__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--page-game-guides-text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Các nút chung */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary,
.page-game-guides__card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-game-guides__btn-primary {
    background: var(--page-game-guides-button-gradient);
    color: var(--page-game-guides-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-game-guides__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

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

/* Các phần tử container và tiêu đề chung */
.page-game-guides__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-game-guides__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    color: var(--page-game-guides-gold);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-game-guides__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--page-game-guides-primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-game-guides__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--page-game-guides-text-secondary);
    text-align: justify;
}

/* Phần Intro Section */
.page-game-guides__intro-section {
    background: var(--page-game-guides-background);
    color: var(--page-game-guides-text-main);
    padding: 60px 0;
}

/* Phần Guides List (Cards) */
.page-game-guides__guides-list {
    background: var(--page-game-guides-background);
    padding: 60px 0;
}

.page-game-guides__grid-3-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-game-guides__card {
    background: var(--page-game-guides-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--page-game-guides-border-color);
}

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

.page-game-guides__card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.page-game-guides__card:hover .page-game-guides__card-image {
    filter: brightness(1);
}

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

.page-game-guides__card-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--page-game-guides-text-main);
    line-height: 1.3;
}

.page-game-guides__card-description {
    font-size: 0.95em;
    color: var(--page-game-guides-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-game-guides__card-button {
    background: var(--page-game-guides-primary-color);
    color: var(--page-game-guides-text-main);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1em;
    align-self: flex-start;
    width: 100%;
}

.page-game-guides__card-button:hover {
    background: var(--page-game-guides-secondary-color);
}

/* Phần General Rules Section */
.page-game-guides__general-rules {
    background: var(--page-game-guides-background);
    color: var(--page-game-guides-text-main);
    padding: 60px 0;
}

.page-game-guides__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.page-game-guides__text-column {
    flex: 1;
}

.page-game-guides__list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.page-game-guides__list li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
    color: var(--page-game-guides-text-secondary);
}

.page-game-guides__list li::before {
    content: '✅'; /* Hoặc biểu tượng tùy chỉnh */
    position: absolute;
    left: 0;
    color: var(--page-game-guides-primary-color);
    font-size: 1.2em;
    line-height: 1;
}

.page-game-guides__image-column {
    flex: 0 0 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-game-guides__content-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.9);
}

/* Phần FAQ Section */
.page-game-guides__faq-section {
    background: var(--page-game-guides-background);
    padding: 60px 0;
    color: var(--page-game-guides-text-main);
}

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

details.page-game-guides__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--page-game-guides-border-color);
    overflow: hidden;
    background: var(--page-game-guides-card-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

details.page-game-guides__faq-item summary.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    color: var(--page-game-guides-text-main);
}

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: var(--page-game-guides-deep-green);
}

.page-game-guides__faq-qtext {
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--page-game-guides-text-main);
}

.page-game-guides__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--page-game-guides-primary-color);
    flex-shrink: 0;
    margin-left: 20px;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

details.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
    transform: rotate(45deg);
}

details.page-game-guides__faq-item .page-game-guides__faq-answer {
    padding: 0 25px 25px;
    background: var(--page-game-guides-deep-green);
    border-radius: 0 0 10px 10px;
    color: var(--page-game-guides-text-secondary);
}

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

/* Phần CTA Section */
.page-game-guides__cta-section {
    background: var(--page-game-guides-background);
    padding: 60px 0;
    text-align: center;
    color: var(--page-game-guides-text-main);
}

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

/* Responsive Design */

/* @media (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-game-guides__main-title {
        font-size: 2.8em;
    }

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

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

    .page-game-guides__grid-3-columns {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .page-game-guides__card-image {
        height: 200px;
    }

    .page-game-guides__image-column {
        flex: 0 0 350px;
    }

    .page-game-guides__faq-qtext {
        font-size: 1.1em;
    }
}

/* @media (max-width: 768px) */
@media (max-width: 768px) {
    /* Top section padding */
    .page-game-guides__hero-section {
        padding-top: 10px; /* Adjusting for shared header offset */
        padding-bottom: 40px;
    }

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

    .page-game-guides__main-title {
        font-size: 2em;
        margin-bottom: 10px;
    }

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

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

    /* Buttons responsive */
    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary,
    .page-game-guides__card-button {
        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__hero-cta-buttons,
    .page-game-guides__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Force vertical stack for multiple buttons */
        gap: 10px;
    }

    .page-game-guides__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding: 0 15px;
    }

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

    /* General content images responsive */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-game-guides__intro-section .page-game-guides__container,
    .page-game-guides__guides-list .page-game-guides__container,
    .page-game-guides__general-rules .page-game-guides__container,
    .page-game-guides__faq-section .page-game-guides__container,
    .page-game-guides__cta-section .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__grid-3-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-game-guides__card-image {
        height: 180px;
    }

    .page-game-guides__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-game-guides__image-column {
        flex: 1 1 auto;
        width: 100%;
    }

    details.page-game-guides__faq-item summary.page-game-guides__faq-question {
        padding: 15px 20px;
    }

    .page-game-guides__faq-qtext {
        font-size: 1em;
    }

    .page-game-guides__faq-toggle {
        font-size: 24px;
        margin-left: 15px;
        width: 25px;
    }

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