/* style/the-thao-huong-dan-dat-cuoc.css */

/* Custom CSS Variables (for consistency with brand colors) */
:root {
    --page-primary-color: #113B7A;
    --page-secondary-color: #1D5FD1;
    --page-text-main: #F3F8FF;
    --page-text-secondary: #AFC4E8;
    --page-card-bg: #10233F;
    --page-border-color: #244D84;
    --page-glow-color: #4FA8FF;
    --page-gold-color: #F2C14E;
    --page-divider-color: #1B3357;
    --page-deep-navy: #08162B;
    --page-button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

/* Base styles for the page content, assuming body has a dark background from shared.css */
.page-the-thao-huong-dan-dat-cuoc {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-text-main); /* Light text on dark body background */
    background-color: transparent; /* Rely on body background from shared.css */
}

.page-the-thao-huong-dan-dat-cuoc__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* HERO Section */
.page-the-thao-huong-dan-dat-cuoc__hero-section {
    padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
    padding-bottom: 60px;
    text-align: center;
    background-color: var(--page-deep-navy); /* Darker background for hero */
    position: relative;
    overflow: hidden;
}

.page-the-thao-huong-dan-dat-cuoc__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-the-thao-huong-dan-dat-cuoc__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: var(--page-gold-color); /* Gold color for main title */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

.page-the-thao-huong-dan-dat-cuoc__intro-text {
    font-size: 1.15em;
    color: var(--page-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao-huong-dan-dat-cuoc__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Button Base Styles */
.page-the-thao-huong-dan-dat-cuoc__btn-primary,
.page-the-thao-huong-dan-dat-cuoc__btn-secondary,
.page-the-thao-huong-dan-dat-cuoc a[class*="btn"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    max-width: 100%; /* Ensure buttons don't overflow their container */
}

/* Primary Button */
.page-the-thao-huong-dan-dat-cuoc__btn-primary {
    background: var(--page-button-gradient);
    color: var(--page-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4);
}

.page-the-thao-huong-dan-dat-cuoc__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 115, 246, 0.6);
}

/* Secondary Button */
.page-the-thao-huong-dan-dat-cuoc__btn-secondary {
    background-color: transparent;
    color: var(--page-gold-color);
    border: 2px solid var(--page-gold-color);
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.2);
}

.page-the-thao-huong-dan-dat-cuoc__btn-secondary:hover {
    background-color: rgba(242, 193, 78, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(242, 193, 78, 0.4);
}

/* Article Content Wrapper */
.page-the-thao-huong-dan-dat-cuoc__article-wrap {
    max-width: 1150px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* General Section Styles */
.page-the-thao-huong-dan-dat-cuoc__section {
    background-color: var(--page-card-bg); /* Card BG for sections */
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-border-color);
}

.page-the-thao-huong-dan-dat-cuoc__section-title {
    font-size: 2.2em;
    color: var(--page-gold-color);
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.page-the-thao-huong-dan-dat-cuoc__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--page-gold-color);
    border-radius: 2px;
}

.page-the-thao-huong-dan-dat-cuoc__sub-title {
    font-size: 1.6em;
    color: var(--page-text-main);
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 10px;
    border-left: 5px solid var(--page-gold-color);
    padding-left: 15px;
}

.page-the-thao-huong-dan-dat-cuoc p {
    margin-bottom: 15px;
    color: var(--page-text-secondary);
}

.page-the-thao-huong-dan-dat-cuoc strong {
    color: var(--page-text-main);
}

.page-the-thao-huong-dan-dat-cuoc__list {
    list-style-type: disc;
    padding-left: 30px;
    margin-bottom: 20px;
    color: var(--page-text-secondary);
}

.page-the-thao-huong-dan-dat-cuoc__list li {
    margin-bottom: 8px;
    color: var(--page-text-secondary);
}

.page-the-thao-huong-dan-dat-cuoc__figure {
    margin: 30px 0;
    text-align: center;
    background-color: var(--page-deep-navy);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--page-border-color);
}

.page-the-thao-huong-dan-dat-cuoc__image {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin: 0 auto;
}

.page-the-thao-huong-dan-dat-cuoc__figcaption {
    font-size: 0.9em;
    color: var(--page-text-secondary);
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--page-border-color);
}

/* FAQ Section Styling (as text blocks, not accordion) */
.page-the-thao-huong-dan-dat-cuoc__faq-section {
    /* Inherits general section styles */
}

.page-the-thao-huong-dan-dat-cuoc__faq-question {
    font-size: 1.4em;
    color: var(--page-text-main);
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
    padding: 15px 20px;
    background-color: var(--page-deep-navy);
    border: 1px solid var(--page-border-color);
    border-radius: 8px;
    cursor: default; /* Not an interactive accordion */
}

.page-the-thao-huong-dan-dat-cuoc__faq-answer {
    padding: 10px 20px 20px 20px;
    color: var(--page-text-secondary);
    background-color: rgba(16, 35, 63, 0.7); /* Slightly lighter than card bg */
    border-left: 1px solid var(--page-border-color);
    border-right: 1px solid var(--page-border-color);
    border-bottom: 1px solid var(--page-border-color);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    margin-top: -10px; /* Overlap with question for visual continuity */
    margin-bottom: 20px;
}

.page-the-thao-huong-dan-dat-cuoc__faq-answer p {
    margin-bottom: 0;
}


/* Responsive Design */

/* Tablet and Mobile */
@media (max-width: 1024px) {
    .page-the-thao-huong-dan-dat-cuoc__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }

    .page-the-thao-huong-dan-dat-cuoc__intro-text {
        font-size: 1em;
    }

    .page-the-thao-huong-dan-dat-cuoc__section {
        padding: 30px;
    }

    .page-the-thao-huong-dan-dat-cuoc__section-title {
        font-size: 2em;
    }

    .page-the-thao-huong-dan-dat-cuoc__sub-title {
        font-size: 1.4em;
    }

    .page-the-thao-huong-dan-dat-cuoc__faq-question {
        font-size: 1.3em;
    }
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
    /* 1. Top section title + CTA */
    .page-the-thao-huong-dan-dat-cuoc__hero-section {
        padding-top: 10px !important; /* Small top padding, relying on body padding-top for header offset */
        padding-bottom: 40px;
    }

    .page-the-thao-huong-dan-dat-cuoc__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 10px;
    }

    .page-the-thao-huong-dan-dat-cuoc__intro-text {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

    .page-the-thao-huong-dan-dat-cuoc__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px; /* Add padding to container */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* 4. Buttons and button containers */
    .page-the-thao-huong-dan-dat-cuoc__btn-primary,
    .page-the-thao-huong-dan-dat-cuoc__btn-secondary,
    .page-the-thao-huong-dan-dat-cuoc 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;
    }

    /* 2. Single column long text container */
    .page-the-thao-huong-dan-dat-cuoc__article-wrap {
        margin: 20px auto;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-the-thao-huong-dan-dat-cuoc__section,
    .page-the-thao-huong-dan-dat-cuoc__container {
        padding: 20px;
        margin-bottom: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-the-thao-huong-dan-dat-cuoc__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-the-thao-huong-dan-dat-cuoc__sub-title {
        font-size: 1.3em;
        margin-top: 25px;
        margin-bottom: 10px;
        padding-left: 10px;
    }

    .page-the-thao-huong-dan-dat-cuoc p,
    .page-the-thao-huong-dan-dat-cuoc__list li {
        font-size: 0.95em;
    }

    .page-the-thao-huong-dan-dat-cuoc__list {
        padding-left: 20px;
    }

    /* 3. General images and figure */
    .page-the-thao-huong-dan-dat-cuoc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-the-thao-huong-dan-dat-cuoc__figure {
        margin: 20px 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-the-thao-huong-dan-dat-cuoc__figcaption {
        font-size: 0.85em;
        padding: 10px;
    }

    /* 5. Registration tutorial and FAQ sections */
    .page-the-thao-huong-dan-dat-cuoc__faq-question {
        font-size: 1.2em;
        padding: 12px 15px;
        margin-top: 20px;
    }

    .page-the-thao-huong-dan-dat-cuoc__faq-answer {
        padding: 8px 15px 15px 15px;
        margin-bottom: 15px;
    }
}