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

/* Base styles for the page content, assuming body background is light */
.page-huong-dan {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--background-light); /* Ensure content area matches expected body background or has its own light background */
}

.page-huong-dan__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-huong-dan__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-huong-dan__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--text-dark);
}

/* Hero Section */
.page-huong-dan__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #007bb6 100%); /* Gradient for hero section */
    color: var(--text-light); /* Light text for dark background */
    padding-bottom: 40px;
}

.page-huong-dan__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 20px;
}

.page-huong-dan__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-huong-dan__hero-content-wrapper {
    max-width: 900px;
    padding: 0 20px;
}

.page-huong-dan__hero-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-huong-dan__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-huong-dan__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-huong-dan__btn-primary,
.page-huong-dan__btn-secondary,
.page-huong-dan__btn-inline,
.page-huong-dan__btn-outline {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-huong-dan__btn-primary {
    background-color: var(--button-login-color); /* Use specific login color for primary action */
    color: var(--text-light);
    border: 2px solid var(--button-login-color);
}

.page-huong-dan__btn-primary:hover {
    background-color: #e06c00;
    border-color: #e06c00;
    transform: translateY(-2px);
}

.page-huong-dan__btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

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

.page-huong-dan__btn-inline {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    margin-top: 15px;
}

.page-huong-dan__btn-inline:hover {
    background-color: #007bb6;
    border-color: #007bb6;
    transform: translateY(-2px);
}

.page-huong-dan__btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-top: 15px;
}

.page-huong-dan__btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.page-huong-dan__text-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-huong-dan__text-link:hover {
    color: #007bb6;
}

/* Section specific styling */
.page-huong-dan__intro-section,
.page-huong-dan__promo-section,
.page-huong-dan__faq-section {
    background-color: var(--background-light);
    color: var(--text-dark);
    padding: 60px 0;
}

.page-huong-dan__guide-section,
.page-huong-dan__games-overview,
.page-huong-dan__support-section,
.page-huong-dan__conclusion-section {
    background-color: var(--background-dark); /* Primary color as background for dark sections */
    color: var(--text-light);
    padding: 60px 0;
}

.page-huong-dan__guide-section .page-huong-dan__section-title,
.page-huong-dan__games-overview .page-huong-dan__section-title,
.page-huong-dan__support-section .page-huong-dan__section-title,
.page-huong-dan__conclusion-section .page-huong-dan__section-title {
    color: var(--text-light);
}

.page-huong-dan__guide-section .page-huong-dan__text-block,
.page-huong-dan__games-overview .page-huong-dan__text-block,
.page-huong-dan__support-section .page-huong-dan__text-block,
.page-huong-dan__conclusion-section .page-huong-dan__text-block {
    color: var(--text-light);
}

.page-huong-dan__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-huong-dan__guide-list li {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark bg sections */
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    counter-increment: guide-step;
    position: relative;
    padding-left: 70px;
    color: var(--text-light);
}

.page-huong-dan__guide-list li::before {
    content: "Bước " counter(guide-step);
    position: absolute;
    left: 20px;
    top: 20px;
    font-weight: bold;
    color: var(--button-login-color);
    font-size: 1.2em;
}

.page-huong-dan__guide-list li .page-huong-dan__list-title {
    margin-top: 0;
    font-size: 1.5em;
    color: var(--text-light);
}

.page-huong-dan__guide-list li p {
    margin-bottom: 10px;
    color: var(--text-light);
}

.page-huong-dan__sub-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 10px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-huong-dan__image-inline {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-huong-dan__game-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards have equal height */
    color: var(--text-light);
}

.page-huong-dan__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-huong-dan__game-card-title {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-light);
}

.page-huong-dan__game-card-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
    color: var(--text-light);
}

/* Promo List */
.page-huong-dan__promo-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 20px;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: var(--text-dark);
}

.page-huong-dan__promo-list li {
    margin-bottom: 10px;
}