/* style/trach-nhiem-ca-cuoc.css */

/* Base styles for the page */
.page-trach-nhiem-ca-cuoc {
    background-color: #0A0A0A; /* Page background */
    color: #FFF6D6; /* Main text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-trach-nhiem-ca-cuoc__hero-section {
    position: relative;
    padding-bottom: 50px; /* Space below content */
    display: flex;
    flex-direction: column; /* Image first, then content */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-trach-nhiem-ca-cuoc__hero-image-wrap {
    width: 100%;
    overflow: hidden;
}

.page-trach-nhiem-ca-cuoc__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the image for text contrast */
}

.page-trach-nhiem-ca-cuoc__hero-content {
    max-width: 900px;
    margin-top: 30px; /* Space between image and text */
    padding: 0 20px;
}

.page-trach-nhiem-ca-cuoc__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: bold;
    color: #FFD36B; /* Glow color for title */
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-trach-nhiem-ca-cuoc__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #FFF6D6;
}

.page-trach-nhiem-ca-cuoc__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-trach-nhiem-ca-cuoc__btn-primary,
.page-trach-nhiem-ca-cuoc__btn-secondary {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-trach-nhiem-ca-cuoc__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-trach-nhiem-ca-cuoc__btn-primary:hover {
    background: linear-gradient(180deg, #FFE08A 0%, #E8B42D 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-trach-nhiem-ca-cuoc__btn-secondary {
    background-color: transparent;
    color: #F2C14E;
    border: 2px solid #F2C14E;
}

.page-trach-nhiem-ca-cuoc__btn-secondary:hover {
    background-color: #F2C14E;
    color: #111111;
    transform: translateY(-2px);
}

/* Article Wrap & Sections */
.page-trach-nhiem-ca-cuoc__article-wrap {
    max-width: 1150px;
    margin: 50px auto;
    padding: 0 20px;
}

.page-trach-nhiem-ca-cuoc__section {
    background-color: #111111; /* Card BG color */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-trach-nhiem-ca-cuoc__section-title {
    font-size: 2.2rem;
    color: #F2C14E;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid #3A2A12;
    padding-bottom: 15px;
}

.page-trach-nhiem-ca-cuoc__sub-title {
    font-size: 1.5rem;
    color: #FFD36B;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 4px solid #F2C14E;
    padding-left: 15px;
}

.page-trach-nhiem-ca-cuoc p {
    margin-bottom: 15px;
    color: #FFF6D6;
}

/* Images within article */
.page-trach-nhiem-ca-cuoc__figure {
    margin: 30px auto;
    max-width: 680px; /* Recommended width for blog images */
    text-align: center;
}

.page-trach-nhiem-ca-cuoc__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin: 0 auto; /* Center image */
}

.page-trach-nhiem-ca-cuoc__figcaption {
    font-style: italic;
    font-size: 0.9rem;
    color: #CCC;
    margin-top: 10px;
}

/* Lists */
.page-trach-nhiem-ca-cuoc__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-trach-nhiem-ca-cuoc__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: #FFF6D6;
}

.page-trach-nhiem-ca-cuoc__list-item::before {
    content: '✅'; /* Checkmark for list items */
    position: absolute;
    left: 0;
    color: #F2C14E;
}

/* Special cards/boxes */
.page-trach-nhiem-ca-cuoc__warning-card {
    background-color: #2a1f0f; /* Slightly different dark shade */
    border-color: #F2C14E;
}

.page-trach-nhiem-ca-cuoc__promo-box {
    text-align: center;
    background-color: #1a1a1a;
    border-color: #FFD36B;
}

/* FAQ Section */
.page-trach-nhiem-ca-cuoc__faq-section {
    padding-bottom: 50px;
}

.page-trach-nhiem-ca-cuoc__faq-item {
    background-color: #1a1a1a; /* Slightly different dark shade for FAQ items */
    border: 1px solid #3A2A12;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden; /* For accordion effect */
}

.page-trach-nhiem-ca-cuoc__faq-question {
    padding: 20px;
    font-size: 1.2rem;
    color: #FFD36B;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    user-select: none;
}

.page-trach-nhiem-ca-cuoc__faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #F2C14E;
    transition: transform 0.3s ease;
}

.page-trach-nhiem-ca-cuoc__faq-item.active .page-trach-nhiem-ca-cuoc__faq-question::after {
    content: '-';
    transform: rotate(180deg);
}

.page-trach-nhiem-ca-cuoc__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    padding: 0 20px;
    color: #FFF6D6;
}

.page-trach-nhiem-ca-cuoc__faq-item.active .page-trach-nhiem-ca-cuoc__faq-answer {
    max-height: 500px; /* Sufficiently large to contain content */
    padding-bottom: 20px;
}

.page-trach-nhiem-ca-cuoc__faq-answer p {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-trach-nhiem-ca-cuoc__article-wrap {
        padding: 0 15px;
    }

    .page-trach-nhiem-ca-cuoc__section {
        padding: 25px;
    }

    .page-trach-nhiem-ca-cuoc__section-title {
        font-size: 2rem;
    }

    .page-trach-nhiem-ca-cuoc__sub-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    /* 1. Top section title + CTA */
    .page-trach-nhiem-ca-cuoc__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles --header-offset */
        padding-bottom: 30px;
    }

    .page-trach-nhiem-ca-cuoc__hero-content {
        margin-top: 20px;
        padding: 0 15px;
    }

    .page-trach-nhiem-ca-cuoc__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem); /* Adjust for smaller screens */
        margin-bottom: 15px;
    }

    .page-trach-nhiem-ca-cuoc__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-trach-nhiem-ca-cuoc__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    .page-trach-nhiem-ca-cuoc__btn-primary,
    .page-trach-nhiem-ca-cuoc__btn-secondary {
        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;
    }

    /* 2. Single column long text container */
    .page-trach-nhiem-ca-cuoc__article-wrap {
        margin: 30px auto;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-trach-nhiem-ca-cuoc__section {
        padding: 20px;
        margin-bottom: 30px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-trach-nhiem-ca-cuoc__section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .page-trach-nhiem-ca-cuoc__sub-title {
        font-size: 1.3rem;
        margin-top: 25px;
    }

    .page-trach-nhiem-ca-cuoc p {
        font-size: 0.95rem;
    }

    /* 3. General images and figures */
    .page-trach-nhiem-ca-cuoc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        display: block !important;
    }
    
    .page-trach-nhiem-ca-cuoc__figure {
        margin: 20px auto;
        padding: 0 10px;
        box-sizing: border-box;
    }

    /* 4. Buttons and button containers (already covered in top section CTA and general buttons) */

    /* 5. FAQ block */
    .page-trach-nhiem-ca-cuoc__faq-item {
        margin-bottom: 10px;
    }

    .page-trach-nhiem-ca-cuoc__faq-question {
        padding: 15px;
        font-size: 1.1rem;
    }

    .page-trach-nhiem-ca-cuoc__faq-answer {
        padding: 0 15px;
    }

    .page-trach-nhiem-ca-cuoc__faq-item.active .page-trach-nhiem-ca-cuoc__faq-answer {
        padding-bottom: 15px;
    }
}