/* Base styles for the Hướng Dẫn Chơi page */
.page-huong-dan-choi {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background: var(--page-bg, #f5f5f5); /* Fallback to light gray if --page-bg not defined */
}

/* HERO Section */
.page-huong-dan-choi__hero-section {
    padding-top: 10px; /* Small top padding, main offset from body */
    padding-bottom: 40px;
    background: linear-gradient(180deg, #B71C1C 0%, #D32F2F 100%); /* Background for hero section */
    color: #FFF5E1; /* Light text for dark background */
}

.page-huong-dan-choi__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding: 40px 16px;
}

.page-huong-dan-choi__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
}

.page-huong-dan-choi__hero-title {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFF5E1;
    max-width: 600px;
}

.page-huong-dan-choi__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #FFF5E1;
    max-width: 600px;
}

.page-huong-dan-choi__hero-cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-huong-dan-choi__hero-image {
    flex: 1 1 45%;
    text-align: center;
}

.page-huong-dan-choi__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* General section styles */
.page-huong-dan-choi__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-huong-dan-choi__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #C91F17;
    text-align: center;
    margin-bottom: 20px;
}

.page-huong-dan-choi__section-description {
    font-size: 1.05em;
    color: #555555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Intro Section - Module 1 */
.page-huong-dan-choi__intro-section {
    background-color: #ffffff;
    padding: 60px 0;
}

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

.page-huong-dan-choi__feature-item {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-huong-dan-choi__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.page-huong-dan-choi__icon-box-media {
    width: 200px;
    height: 200px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #E53935;
    box-shadow: 0 0 15px rgba(229, 57, 53, 0.5);
}

.page-huong-dan-choi__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.page-huong-dan-choi__feature-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #C91F17;
    margin-bottom: 15px;
}

.page-huong-dan-choi__feature-text {
    font-size: 1em;
    color: #666666;
}

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

/* Guide Section */
.page-huong-dan-choi__guide-section {
    padding: 60px 0;
    background-color: #f0f0f0;
}

.page-huong-dan-choi__guide-step {
    margin-bottom: 60px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-huong-dan-choi__step-title {
    font-size: 1.8em;
    color: #C91F17;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

.page-huong-dan-choi__step-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.page-huong-dan-choi__step-content--reverse {
    flex-direction: row-reverse;
}

.page-huong-dan-choi__step-text {
    flex: 1 1 55%;
    min-width: 300px;
}

.page-huong-dan-choi__step-text p {
    margin-bottom: 15px;
    color: #333333;
}

.page-huong-dan-choi__step-image {
    flex: 1 1 35%;
    text-align: center;
}

.page-huong-dan-choi__step-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-huong-dan-choi__faq-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-huong-dan-choi__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-huong-dan-choi__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-huong-dan-choi__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.page-huong-dan-choi__faq-question:hover {
    background-color: #e5e5e5;
}

.page-huong-dan-choi__faq-qtext {
    flex-grow: 1;
    color: #C91F17;
}

.page-huong-dan-choi__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #E53935;
    transition: transform 0.3s ease;
}

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

.page-huong-dan-choi__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #555555;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
}

/* Buttons */
.page-huong-dan-choi__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-huong-dan-choi__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    color: #7A0E0E; /* Deep Red for text on gold button */
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(244, 211, 77, 0.4);
}

.page-huong-dan-choi__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(244, 211, 77, 0.6);
}

.page-huong-dan-choi__btn-secondary {
    background-color: transparent;
    color: #FFF5E1; /* Light text for dark background */
    border: 2px solid #FFF5E1;
}

.page-huong-dan-choi__btn-secondary:hover {
    background-color: #FFF5E1;
    color: #C91F17; /* Brand red text on light background */
    border-color: #C91F17;
    transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-huong-dan-choi__hero-title {
        font-size: 2.4em;
    }

    .page-huong-dan-choi__section-title {
        font-size: 2em;
    }

    .page-huong-dan-choi__guide-step {
        padding: 25px;
    }

    .page-huong-dan-choi__step-title {
        font-size: 1.6em;
    }

    .page-huong-dan-choi__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-huong-dan-choi__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-huong-dan-choi__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-huong-dan-choi__hero-container {
        flex-direction: column;
        text-align: center;
        padding: 30px 15px;
    }

    .page-huong-dan-choi__hero-content {
        order: 2;
        flex: 1 1 100%;
        min-width: unset;
    }

    .page-huong-dan-choi__hero-image {
        order: 1;
        flex: 1 1 100%;
        margin-bottom: 30px;
    }

    .page-huong-dan-choi__hero-title {
        font-size: 2em;
        margin-left: auto;
        margin-right: auto;
    }

    .page-huong-dan-choi__hero-description {
        font-size: 1em;
        margin-left: auto;
        margin-right: auto;
    }

    .page-huong-dan-choi__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    /* General Section & Container */
    .page-huong-dan-choi__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-huong-dan-choi__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-huong-dan-choi__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Intro Section - Module 1 */
    .page-huong-dan-choi__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-huong-dan-choi__icon-box-media {
        width: 150px;
        height: 150px;
        margin: 0 auto 15px;
    }

    .page-huong-dan-choi__feature-title {
        font-size: 1.3em;
    }

    .page-huong-dan-choi__feature-text {
        font-size: 0.95em;
    }

    /* Guide Section */
    .page-huong-dan-choi__guide-step {
        padding: 20px;
        margin-bottom: 40px;
    }

    .page-huong-dan-choi__step-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .page-huong-dan-choi__step-content {
        flex-direction: column;
        gap: 20px;
    }

    .page-huong-dan-choi__step-content--reverse {
        flex-direction: column;
    }

    .page-huong-dan-choi__step-text,
    .page-huong-dan-choi__step-image {
        flex: 1 1 100%;
        min-width: unset;
    }

    /* FAQ Section */
    .page-huong-dan-choi__faq-list {
        margin-top: 30px;
    }

    .page-huong-dan-choi__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-huong-dan-choi__faq-qtext {
        color: #C91F17;
    }

    .page-huong-dan-choi__faq-toggle {
        font-size: 1.3em;
    }

    .page-huong-dan-choi__faq-answer {
        padding: 10px 20px 15px;
        font-size: 0.95em;
    }

    /* Generic images for content area */
    .page-huong-dan-choi img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Buttons */
    .page-huong-dan-choi__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;
    }

    .page-huong-dan-choi__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
}