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

/* General page styling */
.page-the-thao-luat-ca-cuoc {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color from custom palette */
    background-color: var(--deep-navy); /* Body background from shared */
    line-height: 1.6;
    font-size: 1rem;
}

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

/* Hero Section */
.page-the-thao-luat-ca-cuoc__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 50px;
    text-align: center;
    background-color: var(--card-bg); /* Use a dark background for this section */
    color: var(--text-main); /* Ensure light text on dark background */
}

.page-the-thao-luat-ca-cuoc__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gold); /* Use gold for emphasis */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao-luat-ca-cuoc__description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
}

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

.page-the-thao-luat-ca-cuoc__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    min-width: 180px; /* Ensure a minimum width for buttons */
}

.page-the-thao-luat-ca-cuoc__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #ffffff; /* White text on blue gradient */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao-luat-ca-cuoc__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-the-thao-luat-ca-cuoc__btn-secondary {
    background-color: transparent;
    color: var(--gold); /* Gold text */
    border: 2px solid var(--gold); /* Gold border */
}

.page-the-thao-luat-ca-cuoc__btn-secondary:hover {
    background-color: rgba(242, 193, 78, 0.1); /* Light gold background on hover */
    transform: translateY(-2px);
}

/* Content Section */
.page-the-thao-luat-ca-cuoc__content-section {
    padding: 60px 0;
    background-color: var(--deep-navy); /* Match body background */
    color: var(--text-main); /* Light text on dark background */
}

.page-the-thao-luat-ca-cuoc__article-wrap {
    max-width: 900px; /* Article content width */
    margin: 0 auto;
    padding: 0 20px;
}

.page-the-thao-luat-ca-cuoc__article h2,
.page-the-thao-luat-ca-cuoc__article h3 {
    color: var(--gold);
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-the-thao-luat-ca-cuoc__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
}

.page-the-thao-luat-ca-cuoc__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 600;
}

.page-the-thao-luat-ca-cuoc__article p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.page-the-thao-luat-ca-cuoc__article ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.page-the-thao-luat-ca-cuoc__article ul li {
    margin-bottom: 8px;
}

/* Images within article */
.page-the-thao-luat-ca-cuoc__figure {
    margin: 30px 0;
    text-align: center;
    background-color: var(--card-bg); /* Dark background for figure */
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
}

.page-the-thao-luat-ca-cuoc__figure img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    margin: 0 auto 10px auto;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-the-thao-luat-ca-cuoc__figcaption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* Promo Box */
.page-the-thao-luat-ca-cuoc__promo-box {
    background-color: var(--card-bg); /* Dark background */
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-the-thao-luat-ca-cuoc__promo-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--gold);
    margin-bottom: 15px;
}

.page-the-thao-luat-ca-cuoc__promo-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* FAQ Section */
.page-the-thao-luat-ca-cuoc__faq-section {
    margin-top: 40px;
    border-top: 1px solid var(--divider);
    padding-top: 20px;
}

.page-the-thao-luat-ca-cuoc__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-the-thao-luat-ca-cuoc__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: rgba(29, 95, 209, 0.1); /* Slight accent */
    border-bottom: 1px solid var(--divider);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-the-thao-luat-ca-cuoc__faq-question::-webkit-details-marker {
    display: none;
}

.page-the-thao-luat-ca-cuoc__faq-question:hover {
    background-color: rgba(29, 95, 209, 0.2);
}

.page-the-thao-luat-ca-cuoc__faq-qtext {
    flex-grow: 1;
}

.page-the-thao-luat-ca-cuoc__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold);
}

.page-the-thao-luat-ca-cuoc__faq-item[open] .page-the-thao-luat-ca-cuoc__faq-toggle {
    content: "-";
    transform: rotate(0deg); /* Reset rotation */
}

.page-the-thao-luat-ca-cuoc__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--divider);
    background-color: var(--card-bg);
}

.page-the-thao-luat-ca-cuoc__faq-answer p:last-child {
    margin-bottom: 0;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-the-thao-luat-ca-cuoc__main-title {
        font-size: clamp(2rem, 4.5vw, 2.8rem);
    }
    .page-the-thao-luat-ca-cuoc__description {
        font-size: 1.05rem;
    }
    .page-the-thao-luat-ca-cuoc__section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    }
    .page-the-thao-luat-ca-cuoc__sub-title {
        font-size: clamp(1.3rem, 2.8vw, 1.6rem);
    }
    .page-the-thao-luat-ca-cuoc__btn {
        padding: 10px 25px;
        font-size: 1rem;
    }
    .page-the-thao-luat-ca-cuoc__promo-title {
        font-size: clamp(1.4rem, 3.5vw, 2rem);
    }
    .page-the-thao-luat-ca-cuoc__promo-text {
        font-size: 1rem;
    }
    .page-the-thao-luat-ca-cuoc__faq-question {
        font-size: 1.05rem;
        padding: 15px 20px;
    }
    .page-the-thao-luat-ca-cuoc__faq-answer {
        padding: 12px 20px 15px 20px;
    }
}

/* Mobile responsive styles for @media (max-width: 768px) */
@media (max-width: 768px) {
    /* General adjustments for mobile */
    .page-the-thao-luat-ca-cuoc {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-the-thao-luat-ca-cuoc__container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 1. Top section title + CTA (checklist item) */
    .page-the-thao-luat-ca-cuoc__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 30px;
    }

    .page-the-thao-luat-ca-cuoc__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust H1 for smaller screens */
        margin-bottom: 15px;
    }

    .page-the-thao-luat-ca-cuoc__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

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

    /* 4. Buttons and button containers (checklist item) */
    .page-the-thao-luat-ca-cuoc__btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px !important; /* Adjust padding for mobile */
        font-size: 1rem !important;
        min-width: unset; /* Remove min-width for full flexibility */
    }

    /* 2. Single column long text container (checklist item) */
    .page-the-thao-luat-ca-cuoc__content-section {
        padding: 40px 0;
    }

    .page-the-thao-luat-ca-cuoc__article-wrap {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-the-thao-luat-ca-cuoc__article h2,
    .page-the-thao-luat-ca-cuoc__article h3 {
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-the-thao-luat-ca-cuoc__section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .page-the-thao-luat-ca-cuoc__sub-title {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
    }

    /* 3. Generic images and figure (checklist item) */
    .page-the-thao-luat-ca-cuoc__figure {
        margin: 20px 0;
        padding: 10px;
    }

    .page-the-thao-luat-ca-cuoc__figure img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure minimum size is still met */
        min-height: 200px !important; /* Ensure minimum size is still met */
    }

    .page-the-thao-luat-ca-cuoc__figcaption {
        font-size: 0.9rem;
    }

    .page-the-thao-luat-ca-cuoc__promo-box {
        padding: 20px;
        margin-top: 30px;
    }

    .page-the-thao-luat-ca-cuoc__promo-title {
        font-size: clamp(1.3rem, 6vw, 2rem);
    }

    .page-the-thao-luat-ca-cuoc__promo-text {
        font-size: 0.95rem;
    }

    /* 5. Registration tutorial and FAQ block (checklist item) */
    .page-the-thao-luat-ca-cuoc__faq-section {
        margin-top: 30px;
        padding-top: 15px;
    }

    .page-the-thao-luat-ca-cuoc__faq-question {
        font-size: 1rem;
        padding: 15px 18px;
    }

    .page-the-thao-luat-ca-cuoc__faq-answer {
        padding: 12px 18px 15px 18px;
    }
}