/* style/huong-dan-choi-tai-xiu.css */

/* Base styles for the page */
.page-huong-dan-choi-tai-xiu {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF5E1; /* Text Main */
    background-color: #B71C1C; /* Background */
}

.page-huong-dan-choi-tai-xiu__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Hero Section */
.page-huong-dan-choi-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding, main offset from body */
    padding-bottom: 60px;
    background-color: #D32F2F; /* Card BG */
    position: relative;
    overflow: hidden;
}

.page-huong-dan-choi-tai-xiu__hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
}

.page-huong-dan-choi-tai-xiu__hero-content {
    flex: 1;
    min-width: 45%;
    color: #FFF5E1; /* Text Main */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-huong-dan-choi-tai-xiu__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFD86A; /* Using a gold for H1 for emphasis */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

.page-huong-dan-choi-tai-xiu__intro-text {
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 700px;
}

.page-huong-dan-choi-tai-xiu__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-huong-dan-choi-tai-xiu__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure button does not exceed container width */
}

.page-huong-dan-choi-tai-xiu__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button Gold Gradient */
    color: #7A0E0E; /* Deep Red for text on gold button */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-huong-dan-choi-tai-xiu__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-huong-dan-choi-tai-xiu__btn-secondary {
    background-color: transparent;
    color: #FFD86A; /* Gold text */
    border: 2px solid #FFD86A; /* Gold border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-huong-dan-choi-tai-xiu__btn-secondary:hover {
    background-color: rgba(255, 216, 106, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-huong-dan-choi-tai-xiu__hero-image {
    flex: 1;
    min-width: 45%;
    text-align: center;
}

.page-huong-dan-choi-tai-xiu__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center image if it doesn't take full width */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

/* Content Area */
.page-huong-dan-choi-tai-xiu__content-area {
    padding: 60px 0;
    background-color: #B71C1C; /* Background */
}

.page-huong-dan-choi-tai-xiu__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #FFD86A; /* Gold */
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-huong-dan-choi-tai-xiu__table-of-contents {
    list-style: none;
    padding: 0;
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
}

.page-huong-dan-choi-tai-xiu__table-of-contents li a {
    text-decoration: none;
    color: #FFF5E1; /* Text Main */
    font-weight: 600;
    padding: 8px 15px;
    background-color: #C91F17; /* Main color */
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: block;
}

.page-huong-dan-choi-tai-xiu__table-of-contents li a:hover {
    background-color: #E53935; /* Accent color */
    color: #FFD86A; /* Gold */
}

.page-huong-dan-choi-tai-xiu__article {
    background-color: #D32F2F; /* Card BG */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-huong-dan-choi-tai-xiu__article-heading {
    font-size: 1.8rem;
    color: #FFD86A; /* Gold */
    margin-top: 30px;
    margin-bottom: 20px;
    border-bottom: 2px solid #F2B544; /* Border color */
    padding-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-huong-dan-choi-tai-xiu__article p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #FFF5E1; /* Text Main */
}

.page-huong-dan-choi-tai-xiu__article a {
    color: #FFD86A; /* Gold for links within content */
    text-decoration: underline;
}

.page-huong-dan-choi-tai-xiu__article a:hover {
    color: #F4D34D; /* Gold hover */
}

.page-huong-dan-choi-tai-xiu__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #FFF5E1; /* Text Main */
}

.page-huong-dan-choi-tai-xiu__list li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.page-huong-dan-choi-tai-xiu__list li strong {
    color: #FFD86A; /* Gold for strong text */
}

.page-huong-dan-choi-tai-xiu__article-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

.page-huong-dan-choi-tai-xiu__cta-center {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column; /* Default to column for mobile */
    align-items: center;
    gap: 15px;
}

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

.page-huong-dan-choi-tai-xiu__faq-item {
    background-color: #C91F17; /* Main color for FAQ item background */
    border: 1px solid #E53935; /* Accent color border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-huong-dan-choi-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #FFD86A; /* Gold for FAQ question */
    cursor: pointer;
    background-color: #7A0E0E; /* Deep Red for question background */
    transition: background-color 0.3s ease;
}

.page-huong-dan-choi-tai-xiu__faq-question:hover {
    background-color: #E53935; /* Accent color on hover */
}

.page-huong-dan-choi-tai-xiu__faq-qtext {
    flex-grow: 1;
}

.page-huong-dan-choi-tai-xiu__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #FFD86A; /* Gold */
}

.page-huong-dan-choi-tai-xiu__faq-item[open] .page-huong-dan-choi-tai-xiu__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-huong-dan-choi-tai-xiu__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #FFF5E1; /* Text Main */
    background-color: #C91F17; /* Main color for answer background */
}

/* For details tag, hide default marker */
.page-huong-dan-choi-tai-xiu__faq-item summary {
    list-style: none;
}
.page-huong-dan-choi-tai-xiu__faq-item summary::-webkit-details-marker {
    display: none;
}

/* Responsive Styles */
@media (min-width: 769px) {
    .page-huong-dan-choi-tai-xiu__cta-center {
        flex-direction: row; /* Row for desktop */
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .page-huong-dan-choi-tai-xiu__hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .page-huong-dan-choi-tai-xiu__hero-content,
    .page-huong-dan-choi-tai-xiu__hero-image {
        min-width: 100%;
    }
    .page-huong-dan-choi-tai-xiu__cta-buttons {
        justify-content: center;
    }
    .page-huong-dan-choi-tai-xiu__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-huong-dan-choi-tai-xiu__hero-section {
        padding-top: 10px !important; /* Small top padding, main offset from body */
        padding-bottom: 40px;
    }
    .page-huong-dan-choi-tai-xiu__hero-container {
        padding: 20px 0;
        gap: 20px;
    }
    .page-huong-dan-choi-tai-xiu__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-huong-dan-choi-tai-xiu__intro-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-huong-dan-choi-tai-xiu__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%; /* Ensure container takes full width */
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to container */
    }
    .page-huong-dan-choi-tai-xiu__btn {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-huong-dan-choi-tai-xiu__hero-side-image {
        min-width: 200px !important;
        min-height: 200px !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Table of Contents */
    .page-huong-dan-choi-tai-xiu__table-of-contents {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 30px;
    }
    .page-huong-dan-choi-tai-xiu__table-of-contents li a {
        padding: 10px 15px;
        font-size: 0.9rem;
        text-align: center;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    /* Content Area */
    .page-huong-dan-choi-tai-xiu__content-area {
        padding: 40px 0;
    }
    .page-huong-dan-choi-tai-xiu__container {
        padding: 0 15px !important; /* Add padding to main content container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-huong-dan-choi-tai-xiu__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-huong-dan-choi-tai-xiu__article {
        padding: 25px;
    }
    .page-huong-dan-choi-tai-xiu__article-heading {
        font-size: 1.5rem;
        margin-top: 25px;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }
    .page-huong-dan-choi-tai-xiu__article p,
    .page-huong-dan-choi-tai-xiu__list li {
        font-size: 0.95rem;
    }
    .page-huong-dan-choi-tai-xiu__list {
        margin-left: 20px;
    }

    /* Images in content */
    .page-huong-dan-choi-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure min size is maintained */
        min-height: 200px !important;
    }

    /* CTA center buttons */
    .page-huong-dan-choi-tai-xiu__cta-center {
        flex-direction: column;
        gap: 10px;
        margin-top: 30px;
        width: 100%; /* Ensure container takes full width */
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px !important; /* Add padding to container */
    }

    /* FAQ Section */
    .page-huong-dan-choi-tai-xiu__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-huong-dan-choi-tai-xiu__faq-answer {
        padding: 0 20px 15px;
    }
    .page-huong-dan-choi-tai-xiu__faq-toggle {
        font-size: 1.3rem;
    }
}