.page-the-thao {
    font-family: 'Arial', sans-serif;
    color: #FFF6D6; /* Main text color for dark background */
    background-color: #0A0A0A; /* Page background, assumes shared.css sets body background to this or similar dark color */
}

/* Hero Section */
.page-the-thao__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column; /* Image then text */
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: #0A0A0A;
}

.page-the-thao__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Max height for hero image wrapper */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-the-thao__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Desktop: cover to fill space */
}

.page-the-thao__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any potential background layers */
}

.page-the-thao__hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFD36B; /* Glow color for title */
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.6);
}

.page-the-thao__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #FFF6D6;
}

.page-the-thao__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* General Section Styling */
.page-the-thao__section {
    padding: 60px 20px;
    background-color: #0A0A0A;
    border-top: 1px solid #3A2A12; /* Border from palette */
}

.page-the-thao__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Consistent padding for content */
    box-sizing: border-box;
}

.page-the-thao__section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: #F2C14E; /* Main brand color for section titles */
    text-shadow: 0 0 5px rgba(242, 193, 78, 0.4);
}

.page-the-thao__content-area {
    line-height: 1.7;
    font-size: 1rem;
    color: #FFF6D6;
    max-width: 900px;
    margin: 0 auto;
}

.page-the-thao__content-area p {
    margin-bottom: 1.2em;
}

.page-the-thao__content-area strong {
    color: #FFD36B;
}

.page-the-thao__image-text-block {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 40px 0;
    background-color: #111111; /* Card BG color */
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #3A2A12;
}

.page-the-thao__image-text-block--reverse {
    flex-direction: row-reverse;
}

.page-the-thao__content-image {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.page-the-thao__image-text-block p {
    flex: 1;
    margin-bottom: 0;
}

/* Bet Type Cards */
.page-the-thao__bet-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-the-thao__bet-card {
    background-color: #111111; /* Card BG color */
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #3A2A12;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-the-thao__card-title {
    font-size: 1.5rem;
    color: #F2C14E;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-the-thao__bet-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #FFF6D6;
    margin-bottom: 0;
}

/* Guide List */
.page-the-thao__guide-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
}

.page-the-thao__guide-list li {
    background-color: #111111;
    border: 1px solid #3A2A12;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #FFF6D6;
    position: relative;
    padding-left: 60px; /* Space for step number */
}

.page-the-thao__guide-list li:last-child {
    margin-bottom: 0;
}

.page-the-thao__guide-list li::before {
    content: "Bước " counter(step);
    counter-increment: step;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #F2C14E;
    color: #0A0A0A; /* Dark text on brand color */
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Promotion Section */
.page-the-thao__promo-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
}

.page-the-thao__promo-list li {
    background-color: #111111;
    border: 1px solid #3A2A12;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #FFF6D6;
}

.page-the-thao__promo-list li strong {
    color: #F2C14E;
}

.page-the-thao__image-card {
    background-color: #111111;
    border: 1px solid #3A2A12;
    border-radius: 8px;
    padding: 20px;
    margin: 40px auto;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__image-caption {
    font-style: italic;
    font-size: 0.9rem;
    color: #AAA;
    margin-bottom: 0;
}

/* Why Choose Section */
.page-the-thao__advantage-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.page-the-thao__advantage-list li {
    background-color: #111111;
    border: 1px solid #3A2A12;
    border-radius: 8px;
    padding: 20px 25px;
    font-size: 1.05rem;
    color: #FFF6D6;
    position: relative;
    padding-left: 50px;
}

.page-the-thao__advantage-list li::before {
    content: "✓";
    position: absolute;
    left: 20px;
    top: 20px;
    color: #FFD36B; /* Glow color for checkmark */
    font-weight: bold;
    font-size: 1.2rem;
}

/* Buttons */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    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 button doesn't overflow container */
}

.page-the-thao__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #0A0A0A; /* Dark text on gradient button */
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-the-thao__btn-primary:hover {
    background: linear-gradient(180deg, #FFE890 0%, #EEB43A 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-the-thao__btn-secondary {
    background-color: transparent;
    color: #F2C14E; /* Brand color text */
    border: 2px solid #F2C14E;
}

.page-the-thao__btn-secondary:hover {
    background-color: #F2C14E;
    color: #0A0A0A; /* Dark text on brand color hover */
    transform: translateY(-2px);
}

.page-the-thao__cta-buttons--centered {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger radius */
  border: 1px solid #3A2A12; /* Border from palette */
  overflow: hidden;
  background: #111111; /* Card BG color */
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
details.page-the-thao__faq-item summary.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Increased padding */
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: #FFF6D6;
}
details.page-the-thao__faq-item summary.page-the-thao__faq-question::-webkit-details-marker {
  display: none;
}
details.page-the-thao__faq-item summary.page-the-thao__faq-question:hover {
  background: rgba(242, 193, 78, 0.1); /* Slight hover effect with brand color */
}
.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 1.1rem; /* Slightly larger font */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF6D6;
}
.page-the-thao__faq-toggle {
  font-size: 28px; /* Larger toggle icon */
  font-weight: bold;
  color: #F2C14E; /* Brand color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px; /* Larger hit area */
  height: 32px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
details.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect, or just change text to '-' */
}
details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 25px 25px; /* Consistent padding */
  background: #111111;
  border-radius: 0 0 8px 8px;
  color: #FFF6D6;
  font-size: 1rem;
  line-height: 1.6;
}
.page-the-thao__faq-answer p {
    margin-bottom: 0;
}

/* Image optimization rules */
.page-the-thao img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-the-thao__hero-content {
        padding: 0 30px;
    }
    .page-the-thao__hero-title {
        font-size: clamp(2.2rem, 4.5vw, 3rem);
    }
    .page-the-thao__hero-description {
        font-size: 1rem;
    }
    .page-the-thao__section-title {
        font-size: clamp(1.8rem, 3.8vw, 2.5rem);
    }
    .page-the-thao__content-image {
        max-width: 40%; /* Adjust for slightly smaller screens */
    }
    .page-the-thao__bet-cards-grid {
        gap: 20px;
    }
    .page-the-thao__advantage-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}


@media (max-width: 768px) {
    /* General Mobile Padding */
    .page-the-thao__container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-the-thao__section {
        padding: 40px 0;
    }
    .page-the-thao__content-area {
        padding: 0 10px;
    }

    /* HERO Section */
    .page-the-thao__hero-section {
        padding-top: 10px;
        padding-bottom: 40px;
    }
    .page-the-thao__hero-image-wrapper {
        max-height: 400px;
    }
    .page-the-thao__hero-image {
        object-fit: contain !important;
        aspect-ratio: unset !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-the-thao__hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        padding: 0 10px;
    }
    .page-the-thao__hero-description {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    .page-the-thao__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* General Images and Containers */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-the-thao__section,
    .page-the-thao__card,
    .page-the-thao__container,
    .page-the-thao__image-text-block,
    .page-the-thao__image-card,
    .page-the-thao__bet-cards-grid,
    .page-the-thao__guide-list,
    .page-the-thao__promo-list,
    .page-the-thao__advantage-list,
    .page-the-thao__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Section Titles */
    .page-the-thao__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 30px;
        padding: 0 10px;
    }

    /* Image-Text Block */
    .page-the-thao__image-text-block,
    .page-the-thao__image-text-block--reverse {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        margin: 30px 0;
    }
    .page-the-thao__content-image {
        max-width: 100%;
        width: 100%;
    }

    /* Bet Type Cards Grid */
    .page-the-thao__bet-cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .page-the-thao__bet-card {
        padding: 20px;
    }
    .page-the-thao__card-title {
        font-size: 1.2rem;
    }
    .page-the-thao__bet-card p {
        font-size: 0.9rem;
    }

    /* Guide List & Promo List */
    .page-the-thao__guide-list,
    .page-the-thao__promo-list {
        margin: 30px auto;
        padding: 0;
    }
    .page-the-thao__guide-list li,
    .page-the-thao__promo-list li,
    .page-the-thao__advantage-list li {
        font-size: 0.95rem;
        padding: 15px 15px 15px 50px;
        margin-bottom: 10px;
    }
    .page-the-thao__guide-list li::before {
        left: 15px;
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    .page-the-thao__advantage-list li::before {
        left: 15px;
        top: 15px;
        font-size: 1rem;
    }

    /* FAQ Section */
    details.page-the-thao__faq-item {
        margin-bottom: 10px;
    }
    details.page-the-thao__faq-item summary.page-the-thao__faq-question {
        padding: 15px 20px;
    }
    .page-the-thao__faq-qtext {
        font-size: 1rem;
    }
    .page-the-thao__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    details.page-the-thao__faq-item .page-the-thao__faq-answer {
        padding: 0 20px 20px;
        font-size: 0.95rem;
    }
}