/* Base styles for the Hướng dẫn page */
.page-huong-dan {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--body-bg-color, #ffffff); /* Inherit from shared or default to white */
}

.page-huong-dan__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-huong-dan__section-title,
.page-huong-dan__cta-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-huong-dan__section-description,
.page-huong-dan__cta-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

.page-huong-dan__text-link {
    color: #017439;
    text-decoration: underline;
}

/* Hero Section */
.page-huong-dan__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: #f5f5f5;
}

.page-huong-dan__hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    justify-content: center;
    max-width: 1170px;
    margin: 0 auto;
    padding: 20px 16px;
    box-sizing: border-box;
}

.page-huong-dan__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: left;
}

.page-huong-dan__hero-title {
    font-size: 3em;
    font-weight: 800;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.1;
}

.page-huong-dan__hero-description {
    font-size: 1.2em;
    color: #333333;
    margin-bottom: 30px;
}

.page-huong-dan__hero-image {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
}

.page-huong-dan__hero-side-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* CTA Buttons */
.page-huong-dan__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
    justify-content: flex-start;
}

.page-huong-dan__btn-primary,
.page-huong-dan__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-huong-dan__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-huong-dan__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-huong-dan__btn-secondary {
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-huong-dan__btn-secondary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-huong-dan__btn-small {
    padding: 10px 20px;
    font-size: 1em;
}

/* Intro Section */
.page-huong-dan__intro-section {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-huong-dan__icon-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.page-huong-dan__icon-box {
    flex: 1 1 300px;
    max-width: 350px;
    text-align: center;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-huong-dan__icon-box:hover {
    transform: translateY(-5px);
}

.page-huong-dan__icon-box-media {
    width: 240px;
    height: 240px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #017439;
    box-shadow: 0 0 0 8px rgba(1, 116, 57, 0.2);
}

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

.page-huong-dan__icon-box-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    margin-bottom: 10px;
}

.page-huong-dan__icon-box-text {
    font-size: 1em;
    color: #555555;
}

/* Guide Section */
.page-huong-dan__guide-section {
    background-color: #017439;
    color: #ffffff;
    padding: 60px 0;
}

.page-huong-dan__guide-section .page-huong-dan__section-title {
    color: #ffffff;
}

.page-huong-dan__guide-section .page-huong-dan__section-description {
    color: #f0f0f0;
}

.page-huong-dan__guide-step {
    margin-bottom: 60px;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-huong-dan__guide-step-title {
    font-size: 2em;
    font-weight: bold;
    color: #FFFF00; /* Highlight color for step titles */
    margin-bottom: 25px;
    text-align: center;
}

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

.page-huong-dan__guide-step--reverse .page-huong-dan__guide-step-content {
    flex-direction: row-reverse;
}

.page-huong-dan__guide-step-text {
    flex: 1 1 45%;
    min-width: 300px;
    color: #ffffff;
}

.page-huong-dan__guide-step-text p {
    margin-bottom: 15px;
}

.page-huong-dan__guide-step-text ol,
.page-huong-dan__guide-step-text ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.page-huong-dan__guide-step-text li {
    margin-bottom: 8px;
}

.page-huong-dan__guide-step-image {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
}

.page-huong-dan__guide-step-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Game Intro Section */
.page-huong-dan__game-intro-section {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

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

.page-huong-dan__game-card {
    display: block;
    background-color: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #333333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-huong-dan__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-huong-dan__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-huong-dan__game-card-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #017439;
    padding: 15px 20px 5px;
}

.page-huong-dan__game-card-text {
    font-size: 0.95em;
    color: #555555;
    padding: 0 20px 20px;
}

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

.page-huong-dan__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.page-huong-dan__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.page-huong-dan__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #333333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fcfcfc;
}

.page-huong-dan__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-huong-dan__faq-item[open] summary {
    background-color: #f0f0f0;
    color: #017439;
}

.page-huong-dan__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-huong-dan__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: #555555;
    line-height: 1.6;
}

/* Final CTA Section */
.page-huong-dan__cta-section {
    background-color: #017439;
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.page-huong-dan__cta-container {
    max-width: 900px;
}

.page-huong-dan__cta-title {
    color: #ffffff;
    margin-bottom: 25px;
}

.page-huong-dan__cta-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-huong-dan__cta-section .page-huong-dan__cta-buttons {
    justify-content: center;
}

/* General image and container responsiveness */
.page-huong-dan img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-huong-dan__section,
.page-huong-dan__card,
.page-huong-dan__container,
.page-huong-dan__icon-box,
.page-huong-dan__guide-step {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
    .page-huong-dan__hero-title {
        font-size: 2.5em;
    }

    .page-huong-dan__section-title,
    .page-huong-dan__cta-title {
        font-size: 2em;
    }

    .page-huong-dan__guide-step-title {
        font-size: 1.8em;
    }

    .page-huong-dan__icon-box-media {
        width: 200px;
        height: 200px;
    }
}

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

    .page-huong-dan__hero-container {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
        gap: 20px;
    }

    .page-huong-dan__hero-content {
        text-align: center;
        min-width: unset;
    }

    .page-huong-dan__hero-title {
        font-size: 2em !important;
    }

    .page-huong-dan__hero-description {
        font-size: 1em;
    }

    .page-huong-dan__hero-image {
        min-width: unset;
    }

    .page-huong-dan__cta-buttons {
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-huong-dan__btn-primary,
    .page-huong-dan__btn-secondary,
    .page-huong-dan a[class*="button"],
    .page-huong-dan 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;
    }

    /* Intro Section (Module 1 three-column) */
    .page-huong-dan__intro-section {
        padding: 40px 0;
    }

    .page-huong-dan__icon-boxes {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }

    .page-huong-dan__icon-box {
        max-width: 100%;
        padding: 20px;
    }

    .page-huong-dan__icon-box-media {
        width: 150px !important;
        height: 150px !important;
        border-width: 2px;
        box-shadow: 0 0 0 4px rgba(1, 116, 57, 0.2);
    }

    /* Guide Section */
    .page-huong-dan__guide-section {
        padding: 40px 0;
    }

    .page-huong-dan__guide-step {
        margin-bottom: 40px;
        padding: 20px;
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-huong-dan__guide-step-title {
        font-size: 1.5em !important;
        margin-bottom: 15px;
    }

    .page-huong-dan__guide-step-content,
    .page-huong-dan__guide-step--reverse .page-huong-dan__guide-step-content {
        flex-direction: column;
        gap: 20px;
    }

    .page-huong-dan__guide-step-text,
    .page-huong-dan__guide-step-image {
        min-width: unset;
        width: 100%;
    }

    /* Game Intro Section */
    .page-huong-dan__game-intro-section {
        padding: 40px 0;
    }

    .page-huong-dan__game-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-huong-dan__game-card img {
        
    }

    /* FAQ Section */
    .page-huong-dan__faq-section {
        padding: 40px 0;
    }

    .page-huong-dan__faq-list {
        margin: 20px auto 0;
        padding: 0 15px;
    }

    .page-huong-dan__faq-item summary {
        padding: 15px;
        font-size: 1em;
    }

    .page-huong-dan__faq-answer {
        padding: 0 15px 15px;
    }

    /* Final CTA Section */
    .page-huong-dan__cta-section {
        padding: 50px 0;
    }

    .page-huong-dan__cta-title {
        font-size: 1.8em !important;
        margin-bottom: 20px;
    }

    .page-huong-dan__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    /* General image responsiveness */
    .page-huong-dan img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Content area padding */
    .page-huong-dan__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-huong-dan__section,
    .page-huong-dan__card,
    .page-huong-dan__container,
    .page-huong-dan__icon-box,
    .page-huong-dan__guide-step {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-huong-dan__icon-box-media {
        /* Specific override to maintain circular aspect */
        width: 150px;
        height: 150px;
        margin-left: auto;
        margin-right: auto;
        flex-shrink: 0;
    }

    .page-huong-dan__icon-box-media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }
}