/* Base Styles & Typography */
.page-blog-huong-dan-dang-ky-58win1 {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--accent-color, #f5f5f5);
}

.page-blog-huong-dan-dang-ky-58win1__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-blog-huong-dan-dang-ky-58win1__section {
    padding: 40px 0;
}

.page-blog-huong-dan-dang-ky-58win1__section-title {
    font-size: 32px;
    font-weight: bold;
    color: #017439;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.3;
}

.page-blog-huong-dan-dang-ky-58win1__section-title--white {
    color: #ffffff;
}

.page-blog-huong-dan-dang-ky-58win1__content-area {
    font-size: 16px;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
}

.page-blog-huong-dan-dang-ky-58win1__content-area--white-text {
    color: #ffffff;
}

.page-blog-huong-dan-dang-ky-58win1__article-body {
    max-width: 800px;
    margin: 0 auto;
}

.page-blog-huong-dan-dang-ky-58win1 p {
    margin-bottom: 1em;
}

.page-blog-huong-dan-dang-ky-58win1__list {
    list-style: disc inside;
    margin-bottom: 1em;
    padding-left: 20px;
}

.page-blog-huong-dan-dang-ky-58win1__list li {
    margin-bottom: 0.5em;
}

.page-blog-huong-dan-dang-ky-58win1__list--white-text li {
    color: #ffffff;
}

/* Hero Section */
.page-blog-huong-dan-dang-ky-58win1__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Rely on body for header offset, this is just a small top margin */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    background-color: #f5f5f5; /* Fallback for body var */
}

.page-blog-huong-dan-dang-ky-58win1__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.page-blog-huong-dan-dang-ky-58win1__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Desktop: cover to fill space */
    display: block;
}

.page-blog-huong-dan-dang-ky-58win1__hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding-top: 80px;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    padding: 40px;
    border-radius: 8px;
}

.page-blog-huong-dan-dang-ky-58win1__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFF00; /* Register and login font color */
}

.page-blog-huong-dan-dang-ky-58win1__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Buttons */
.page-blog-huong-dan-dang-ky-58win1__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-blog-huong-dan-dang-ky-58win1__cta-buttons--center {
    margin-top: 30px;
}

.page-blog-huong-dan-dang-ky-58win1__btn-primary,
.page-blog-huong-dan-dang-ky-58win1__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-blog-huong-dan-dang-ky-58win1__btn-primary {
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register and login font color */
    border: 2px solid #C30808;
}

.page-blog-huong-dan-dang-ky-58win1__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-blog-huong-dan-dang-ky-58win1__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register and login font color */
    border: 2px solid #FFFF00;
}

.page-blog-huong-dan-dang-ky-58win1__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

.page-blog-huong-dan-dang-ky-58win1__btn-secondary--white {
    color: #ffffff;
    border-color: #ffffff;
}

.page-blog-huong-dan-dang-ky-58win1__btn-secondary--white:hover {
    background-color: #ffffff;
    color: #017439;
}

/* Step-by-step Guide */
.page-blog-huong-dan-dang-ky-58win1__step-by-step {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.page-blog-huong-dan-dang-ky-58win1__step-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-blog-huong-dan-dang-ky-58win1__step-title {
    font-size: 24px;
    font-weight: 600;
    color: #017439;
    margin-bottom: 15px;
}

/* Images */
.page-blog-huong-dan-dang-ky-58win1__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 20px;
}

.page-blog-huong-dan-dang-ky-58win1__image--center {
    margin-left: auto;
    margin-right: auto;
}

/* Dark Background Section */
.page-blog-huong-dan-dang-ky-58win1__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

/* FAQ Section */
details.page-blog-huong-dan-dang-ky-58win1__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
    color: #333333;
}
details.page-blog-huong-dan-dang-ky-58win1__faq-item summary.page-blog-huong-dan-dang-ky-58win1__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-blog-huong-dan-dang-ky-58win1__faq-item summary.page-blog-huong-dan-dang-ky-58win1__faq-question::-webkit-details-marker {
    display: none;
}
details.page-blog-huong-dan-dang-ky-58win1__faq-item summary.page-blog-huong-dan-dang-ky-58win1__faq-question:hover {
    background: #f5f5f5;
}
.page-blog-huong-dan-dang-ky-58win1__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #017439;
}
.page-blog-huong-dan-dang-ky-58win1__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-blog-huong-dan-dang-ky-58win1__faq-item .page-blog-huong-dan-dang-ky-58win1__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

/* Responsive Styles */

/* General Mobile Adaptations */
@media (max-width: 1024px) {
    .page-blog-huong-dan-dang-ky-58win1__container {
        padding: 0 20px;
    }
    .page-blog-huong-dan-dang-ky-58win1__section-title {
        font-size: 28px;
    }
    .page-blog-huong-dan-dang-ky-58win1__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
}

@media (max-width: 849px) {
    .page-blog-huong-dan-dang-ky-58win1__hero-image img {
        object-fit: contain !important; /* Prevent cropping on smaller screens */
        aspect-ratio: unset !important; /* Allow natural aspect ratio */
    }
}

@media (max-width: 768px) {
    .page-blog-huong-dan-dang-ky-58win1 {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .page-blog-huong-dan-dang-ky-58win1__section {
        padding: 30px 0;
    }

    .page-blog-huong-dan-dang-ky-58win1__container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO Section */
    .page-blog-huong-dan-dang-ky-58win1__hero-section {
        padding-top: 10px; /* Small top padding, rely on body for header offset */
        padding-bottom: 30px;
        min-height: auto;
    }

    .page-blog-huong-dan-dang-ky-58win1__hero-content {
        padding: 25px;
    }

    .page-blog-huong-dan-dang-ky-58win1__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-blog-huong-dan-dang-ky-58win1__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* Section Titles */
    .page-blog-huong-dan-dang-ky-58win1__section-title {
        font-size: 24px;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    /* Article Body & Content Area */
    .page-blog-huong-dan-dang-ky-58win1__content-area,
    .page-blog-huong-dan-dang-ky-58win1__article-body {
        font-size: 15px;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
    }

    /* Images */
    .page-blog-huong-dan-dang-ky-58win1 img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-blog-huong-dan-dang-ky-58win1__step-item {
        padding: 20px;
    }

    .page-blog-huong-dan-dang-ky-58win1__step-title {
        font-size: 20px;
    }

    /* Buttons */
    .page-blog-huong-dan-dang-ky-58win1__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .page-blog-huong-dan-dang-ky-58win1__btn-primary,
    .page-blog-huong-dan-dang-ky-58win1__btn-secondary {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* FAQ Section */
    details.page-blog-huong-dan-dang-ky-58win1__faq-item summary.page-blog-huong-dan-dang-ky-58win1__faq-question {
        padding: 15px;
    }
    .page-blog-huong-dan-dang-ky-58win1__faq-qtext {
        font-size: 15px;
    }
    details.page-blog-huong-dan-dang-ky-58win1__faq-item .page-blog-huong-dan-dang-ky-58win1__faq-answer {
        padding: 0 15px 15px;
    }
}