/* style/the-thao-cac-mon-ca-cuoc.css */

:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg: #111111;
    --bg-color: #0A0A0A;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-the-thao-cac-mon-ca-cuoc {
    color: var(--text-main-color); /* Body background is dark, so text is light */
    background-color: var(--bg-color);
    font-family: Arial, sans-serif;
}

.page-the-thao-cac-mon-ca-cuoc__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.page-the-thao-cac-mon-ca-cuoc__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
    padding-bottom: 40px;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.page-the-thao-cac-mon-ca-cuoc__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-the-thao-cac-mon-ca-cuoc__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-the-thao-cac-mon-ca-cuoc__hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 900px;
    margin-top: 20px;
}

.page-the-thao-cac-mon-ca-cuoc__main-title {
    font-size: clamp(2em, 4vw, 3.2em);
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-the-thao-cac-mon-ca-cuoc__hero-description {
    font-size: 1.1em;
    color: var(--text-main-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-the-thao-cac-mon-ca-cuoc__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.page-the-thao-cac-mon-ca-cuoc__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-the-thao-cac-mon-ca-cuoc__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

.page-the-thao-cac-mon-ca-cuoc__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.2);
}

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

.page-the-thao-cac-mon-ca-cuoc__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    border-radius: 5px;
}

.page-the-thao-cac-mon-ca-cuoc__btn-small:hover {
    opacity: 0.9;
}

/* General Section Styling */
.page-the-thao-cac-mon-ca-cuoc__introduction-section,
.page-the-thao-cac-mon-ca-cuoc__sports-categories,
.page-the-thao-cac-mon-ca-cuoc__guide-section,
.page-the-thao-cac-mon-ca-cuoc__promotions-section,
.page-the-thao-cac-mon-ca-cuoc__tips-section,
.page-the-thao-cac-mon-ca-cuoc__support-section,
.page-the-thao-cac-mon-ca-cuoc__faq-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.page-the-thao-cac-mon-ca-cuoc__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

.page-the-thao-cac-mon-ca-cuoc__text-block {
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text-main-color);
    margin-bottom: 20px;
    text-align: justify;
}

/* Sports Categories Grid */
.page-the-thao-cac-mon-ca-cuoc__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-the-thao-cac-mon-ca-cuoc__category-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.page-the-thao-cac-mon-ca-cuoc__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.4);
}

.page-the-thao-cac-mon-ca-cuoc__category-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-the-thao-cac-mon-ca-cuoc__card-title {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-the-thao-cac-mon-ca-cuoc__card-description {
    font-size: 0.95em;
    color: var(--text-main-color);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: justify;
}

/* Guide List */
.page-the-thao-cac-mon-ca-cuoc__guide-list,
.page-the-thao-cac-mon-ca-cuoc__promo-list,
.page-the-thao-cac-mon-ca-cuoc__tips-list,
.page-the-thao-cac-mon-ca-cuoc__support-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-the-thao-cac-mon-ca-cuoc__guide-list li,
.page-the-thao-cac-mon-ca-cuoc__promo-list li,
.page-the-thao-cac-mon-ca-cuoc__support-list li {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    color: var(--text-main-color);
}

.page-the-thao-cac-mon-ca-cuoc__list-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-the-thao-cac-mon-ca-cuoc__guide-list p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-main-color);
}

/* Promotions List */
.page-the-thao-cac-mon-ca-cuoc__promo-list li {
    font-size: 1.1em;
    line-height: 1.8;
    position: relative;
    padding-left: 35px;
}

.page-the-thao-cac-mon-ca-cuoc__promo-list li::before {
    content: '⭐';
    position: absolute;
    left: 10px;
    color: var(--primary-color);
}

/* Tips Section */
.page-the-thao-cac-mon-ca-cuoc__tips-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 auto 30px auto;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-the-thao-cac-mon-ca-cuoc__tips-list {
    margin-top: 30px;
}

.page-the-thao-cac-mon-ca-cuoc__tips-list li {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    color: var(--text-main-color);
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.page-the-thao-cac-mon-ca-cuoc__tips-list li strong {
    color: var(--secondary-color);
    font-weight: 700;
}

/* Support List */
.page-the-thao-cac-mon-ca-cuoc__support-list li {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-the-thao-cac-mon-ca-cuoc__support-list li::before {
    content: '📞'; /* Example icon */
    font-size: 1.5em;
    color: var(--primary-color);
    flex-shrink: 0;
}

.page-the-thao-cac-mon-ca-cuoc__support-list li:nth-child(2)::before { content: '💬'; }
.page-the-thao-cac-mon-ca-cuoc__support-list li:nth-child(3)::before { content: '📱'; }

/* FAQ Section */
.page-the-thao-cac-mon-ca-cuoc__faq-list {
    margin-top: 30px;
}

.page-the-thao-cac-mon-ca-cuoc__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.page-the-thao-cac-mon-ca-cuoc__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--secondary-color);
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-bottom: 1px solid var(--border-color);
}

.page-the-thao-cac-mon-ca-cuoc__faq-question:hover {
    background-color: rgba(var(--primary-color-rgb), 0.2);
}

.page-the-thao-cac-mon-ca-cuoc__faq-item[open] .page-the-thao-cac-mon-ca-cuoc__faq-question {
    border-bottom: 1px solid var(--border-color);
}

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

.page-the-thao-cac-mon-ca-cuoc__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.page-the-thao-cac-mon-ca-cuoc__faq-item[open] .page-the-thao-cac-mon-ca-cuoc__faq-toggle {
    content: '−';
}

.page-the-thao-cac-mon-ca-cuoc__faq-answer {
    padding: 20px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-main-color);
}

/* Global image and container responsiveness */
.page-the-thao-cac-mon-ca-cuoc img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-the-thao-cac-mon-ca-cuoc__container,
.page-the-thao-cac-mon-ca-cuoc__cta-buttons,
.page-the-thao-cac-mon-ca-cuoc__category-grid,
.page-the-thao-cac-mon-ca-cuoc__guide-list,
.page-the-thao-cac-mon-ca-cuoc__promo-list,
.page-the-thao-cac-mon-ca-cuoc__tips-list,
.page-the-thao-cac-mon-ca-cuoc__support-list,
.page-the-thao-cac-mon-ca-cuoc__faq-list {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Media Queries for Responsive Design */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-the-thao-cac-mon-ca-cuoc__container {
        padding: 0 25px;
    }

    .page-the-thao-cac-mon-ca-cuoc__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }

    .page-the-thao-cac-mon-ca-cuoc__section-title {
        font-size: 2em;
    }

    .page-the-thao-cac-mon-ca-cuoc__category-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-the-thao-cac-mon-ca-cuoc__hero-image-wrapper {
        max-height: 500px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-the-thao-cac-mon-ca-cuoc__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-the-thao-cac-mon-ca-cuoc__hero-image-wrapper {
        max-height: 300px;
    }

    .page-the-thao-cac-mon-ca-cuoc__hero-image {
        object-fit: contain !important; /* Hero mobile: contain, not cover */
        aspect-ratio: unset !important;
        max-height: none !important;
    }

    .page-the-thao-cac-mon-ca-cuoc__hero-content {
        padding: 15px;
        margin-top: 10px;
    }

    .page-the-thao-cac-mon-ca-cuoc__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em);
        margin-bottom: 10px;
    }

    .page-the-thao-cac-mon-ca-cuoc__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-the-thao-cac-mon-ca-cuoc__cta-buttons {
        flex-direction: column !important; /* Buttons stack vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-the-thao-cac-mon-ca-cuoc__btn-primary,
    .page-the-thao-cac-mon-ca-cuoc__btn-secondary,
    .page-the-thao-cac-mon-ca-cuoc__btn-small,
    .page-the-thao-cac-mon-ca-cuoc a[class*="button"],
    .page-the-thao-cac-mon-ca-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 !important;
        padding-right: 15px !important;
    }

    .page-the-thao-cac-mon-ca-cuoc__introduction-section,
    .page-the-thao-cac-mon-ca-cuoc__sports-categories,
    .page-the-thao-cac-mon-ca-cuoc__guide-section,
    .page-the-thao-cac-mon-ca-cuoc__promotions-section,
    .page-the-thao-cac-mon-ca-cuoc__tips-section,
    .page-the-thao-cac-mon-ca-cuoc__support-section,
    .page-the-thao-cac-mon-ca-cuoc__faq-section {
        padding: 40px 0;
    }

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

    .page-the-thao-cac-mon-ca-cuoc__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-the-thao-cac-mon-ca-cuoc__text-block {
        font-size: 0.95em;
    }

    .page-the-thao-cac-mon-ca-cuoc__category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-the-thao-cac-mon-ca-cuoc__category-card {
        padding: 20px;
    }

    .page-the-thao-cac-mon-ca-cuoc__category-image {
        height: 200px;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-the-thao-cac-mon-ca-cuoc__card-title {
        font-size: 1.4em;
    }

    .page-the-thao-cac-mon-ca-cuoc__card-description {
        font-size: 0.9em;
    }

    .page-the-thao-cac-mon-ca-cuoc__guide-list li,
    .page-the-thao-cac-mon-ca-cuoc__promo-list li,
    .page-the-thao-cac-mon-ca-cuoc__tips-list li,
    .page-the-thao-cac-mon-ca-cuoc__support-list li {
        padding: 20px;
        margin-bottom: 15px;
    }

    .page-the-thao-cac-mon-ca-cuoc__list-title {
        font-size: 1.2em;
    }

    .page-the-thao-cac-mon-ca-cuoc__tips-image {
        margin-bottom: 20px;
    }

    .page-the-thao-cac-mon-ca-cuoc__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-the-thao-cac-mon-ca-cuoc__faq-answer {
        padding: 15px;
        font-size: 0.95em;
    }

    /* Ensure all images within content areas are responsive */
    .page-the-thao-cac-mon-ca-cuoc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* No winner list or blog load more specific rules as this is not homepage */
}

/* General image sizing rules for content area, minimum 200x200 */
.page-the-thao-cac-mon-ca-cuoc__category-image,
.page-the-thao-cac-mon-ca-cuoc__tips-image {
    min-width: 200px;
    min-height: 200px;
}

/* Contrast Fixes */
.page-the-thao-cac-mon-ca-cuoc__dark-bg {
  color: #ffffff; /* Deep dark background, use light text */
  background: var(--bg-color);
}

.page-the-thao-cac-mon-ca-cuoc__light-bg {
  color: #333333; /* Light background, use dark text */
  background: #ffffff;
}

.page-the-thao-cac-mon-ca-cuoc__medium-bg {
  color: #000000; /* Medium background, default dark text */
  background: var(--secondary-color);
}

/* Ensure text on card background has good contrast */
.page-the-thao-cac-mon-ca-cuoc__category-card,
.page-the-thao-cac-mon-ca-cuoc__guide-list li,
.page-the-thao-cac-mon-ca-cuoc__promo-list li,
.page-the-thao-cac-mon-ca-cuoc__tips-list li,
.page-the-thao-cac-mon-ca-cuoc__support-list li,
.page-the-thao-cac-mon-ca-cuoc__faq-item {
    color: var(--text-main-color); /* #FFF6D6 on #111111 provides good contrast */
}

.page-the-thao-cac-mon-ca-cuoc__faq-question {
    background-color: rgba(242, 193, 78, 0.1); /* Primary color with transparency */
    color: var(--secondary-color); /* #FFD36B on rgba(242, 193, 78, 0.1) provides good contrast */
}