/* style/huong-dan-choi-game-bai.css */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --background-dark: #08160F;
    --card-background: #11271B;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-huong-dan-choi-game-bai {
    font-family: Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--background-dark); /* Ensure text is light on dark body background */
    line-height: 1.6;
}

.page-huong-dan-choi-game-bai__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-huong-dan-choi-game-bai__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-huong-dan-choi-game-bai__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-huong-dan-choi-game-bai__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main);
}

.page-huong-dan-choi-game-bai__text-block a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-huong-dan-choi-game-bai__text-block a:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-huong-dan-choi-game-bai__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--card-background);
    position: relative;
    overflow: hidden;
}

.page-huong-dan-choi-game-bai__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for desktop */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-huong-dan-choi-game-bai__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-huong-dan-choi-game-bai__hero-content {
    padding: 40px 20px;
    text-align: center;
    max-width: 900px;
    z-index: 1;
    position: relative; /* Ensure content is above any potential background effects */
}

.page-huong-dan-choi-game-bai__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Use clamp for H1 */
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-huong-dan-choi-game-bai__hero-description {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-huong-dan-choi-game-bai__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-huong-dan-choi-game-bai__btn-primary,
.page-huong-dan-choi-game-bai__btn-secondary,
.page-huong-dan-choi-game-bai__game-btn,
.page-huong-dan-choi-game-bai__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-huong-dan-choi-game-bai__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-huong-dan-choi-game-bai__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-huong-dan-choi-game-bai__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-huong-dan-choi-game-bai__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--background-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-huong-dan-choi-game-bai__intro-section,
.page-huong-dan-choi-game-bai__promo-section,
.page-huong-dan-choi-game-bai__conclusion-section {
    padding: 60px 0;
}

.page-huong-dan-choi-game-bai__dark-section {
    background-color: var(--card-background);
}

/* Game Types Section */
.page-huong-dan-choi-game-bai__game-types-section {
    padding: 60px 0;
    background-color: var(--background-dark);
}

.page-huong-dan-choi-game-bai__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-huong-dan-choi-game-bai__game-tile {
    background-color: var(--card-background);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.page-huong-dan-choi-game-bai__game-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-huong-dan-choi-game-bai__game-image {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 2px solid var(--primary-color);
}

.page-huong-dan-choi-game-bai__game-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 10px;
}

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

.page-huong-dan-choi-game-bai__game-btn {
    background: var(--button-gradient);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1em;
    max-width: calc(100% - 40px); /* Adjust for padding */
}

.page-huong-dan-choi-game-bai__game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-huong-dan-choi-game-bai__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Guide Steps Section */
.page-huong-dan-choi-game-bai__guide-steps-section {
    padding: 60px 0;
}

.page-huong-dan-choi-game-bai__step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-huong-dan-choi-game-bai__step-item {
    background-color: var(--background-dark);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-huong-dan-choi-game-bai__step-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    min-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid var(--primary-color);
}

.page-huong-dan-choi-game-bai__step-title {
    font-size: 1.6em;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-huong-dan-choi-game-bai__step-description {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-huong-dan-choi-game-bai__btn-link {
    background: var(--button-gradient);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 1em;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: calc(100% - 50px); /* Adjust for padding */
}

.page-huong-dan-choi-game-bai__btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Tips Section */
.page-huong-dan-choi-game-bai__tips-section {
    padding: 60px 0;
    background-color: var(--background-dark);
}

.page-huong-dan-choi-game-bai__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-huong-dan-choi-game-bai__tip-item {
    background-color: var(--card-background);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-huong-dan-choi-game-bai__tip-title {
    font-size: 1.4em;
    color: var(--gold-color);
    margin-bottom: 15px;
    text-align: center;
}

.page-huong-dan-choi-game-bai__tip-description {
    font-size: 1em;
    color: var(--text-secondary);
    text-align: justify;
}

/* FAQ Section */
.page-huong-dan-choi-game-bai__faq-section {
    padding: 60px 0;
    background-color: var(--background-dark);
}

.page-huong-dan-choi-game-bai__faq-list {
    margin-top: 40px;
}

.page-huong-dan-choi-game-bai__faq-item {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-huong-dan-choi-game-bai__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main);
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--border-color);
}

.page-huong-dan-choi-game-bai__faq-item summary::-webkit-details-marker,
.page-huong-dan-choi-game-bai__faq-item summary::marker {
    display: none;
}

.page-huong-dan-choi-game-bai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-huong-dan-choi-game-bai__faq-qtext {
    flex-grow: 1;
    color: var(--text-main);
}

.page-huong-dan-choi-game-bai__faq-toggle {
    font-size: 1.5em;
    margin-left: 20px;
    color: var(--gold-color);
    transition: transform 0.3s ease;
}

.page-huong-dan-choi-game-bai__faq-item[open] .page-huong-dan-choi-game-bai__faq-toggle {
    transform: rotate(45deg);
}

.page-huong-dan-choi-game-bai__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--text-secondary);
    background-color: var(--card-background);
}

.page-huong-dan-choi-game-bai__faq-answer p {
    margin: 0;
    color: var(--text-secondary);
}

/* Conclusion Section */
.page-huong-dan-choi-game-bai__conclusion-section {
    padding-bottom: 80px;
}

/* General Image Styling */
.page-huong-dan-choi-game-bai img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-huong-dan-choi-game-bai__container {
        padding: 20px 30px;
    }

    .page-huong-dan-choi-game-bai__section-title {
        font-size: 2em;
    }

    .page-huong-dan-choi-game-bai__hero-content {
        padding: 30px 20px;
    }

    .page-huong-dan-choi-game-bai__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }

    .page-huong-dan-choi-game-bai__hero-description {
        font-size: 1.1em;
    }

    .page-huong-dan-choi-game-bai__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }

    .page-huong-dan-choi-game-bai__game-image {
        width: 200px;
        height: 200px;
    }

    .page-huong-dan-choi-game-bai__step-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .page-huong-dan-choi-game-bai__tips-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .page-huong-dan-choi-game-bai__faq-item summary {
        padding: 18px 20px;
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-huong-dan-choi-game-bai {
        font-size: 16px; /* Mobile increased font size */
        line-height: 1.6; /* Mobile increased line height */
    }

    .page-huong-dan-choi-game-bai__container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero Section */
    .page-huong-dan-choi-game-bai__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
    }

    .page-huong-dan-choi-game-bai__hero-image-wrapper {
        max-height: none;
    }

    .page-huong-dan-choi-game-bai__hero-image {
        object-fit: contain !important; /* Mobile main image contain, no cropping */
        aspect-ratio: unset !important;
        max-height: none !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-huong-dan-choi-game-bai__hero-content {
        padding: 25px 15px;
    }

    .page-huong-dan-choi-game-bai__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-huong-dan-choi-game-bai__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-huong-dan-choi-game-bai__cta-buttons {
        flex-direction: column; /* Buttons stack vertically on mobile */
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Buttons and Button Containers */
    .page-huong-dan-choi-game-bai__btn-primary,
    .page-huong-dan-choi-game-bai__btn-secondary,
    .page-huong-dan-choi-game-bai__game-btn,
    .page-huong-dan-choi-game-bai__btn-link {
        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-huong-dan-choi-game-bai__cta-center {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Game Grid */
    .page-huong-dan-choi-game-bai__game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        overflow-x: hidden;
    }

    .page-huong-dan-choi-game-bai__game-image {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1/1;
        object-fit: cover;
        min-height: 200px;
    }

    /* General Images and Containers */
    .page-huong-dan-choi-game-bai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-huong-dan-choi-game-bai__intro-section,
    .page-huong-dan-choi-game-bai__game-types-section,
    .page-huong-dan-choi-game-bai__guide-steps-section,
    .page-huong-dan-choi-game-bai__tips-section,
    .page-huong-dan-choi-game-bai__promo-section,
    .page-huong-dan-choi-game-bai__faq-section,
    .page-huong-dan-choi-game-bai__conclusion-section {
        padding: 40px 0;
    }

    .page-huong-dan-choi-game-bai__text-block {
        font-size: 0.95em;
        text-align: left;
    }

    /* Step Grid */
    .page-huong-dan-choi-game-bai__step-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-huong-dan-choi-game-bai__step-image {
        min-height: 200px;
    }

    /* Tips List */
    .page-huong-dan-choi-game-bai__tips-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-huong-dan-choi-game-bai__tip-description {
        text-align: left;
    }

    /* FAQ */
    .page-huong-dan-choi-game-bai__faq-item summary {
        padding: 15px 15px;
        font-size: 1em;
    }

    .page-huong-dan-choi-game-bai__faq-answer {
        padding: 15px 15px;
    }
}