/* style/ththao.css */

/* Color variables for easier management and contrast */
:root {
    --main-color: #11A84E;
    --accent-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg-color: #11271B;
    --background-color: #08160F;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* Base styles for the page content, using brand colors and ensuring contrast */
.page-ththao {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* #F2FFF6 */
    background-color: var(--background-color); /* #08160F */
    line-height: 1.6;
    font-size: 16px;
}

.page-ththao__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-ththao__hero-section,
.page-ththao__why-choose-us-section,
.page-ththao__sports-categories-section,
.page-ththao__live-betting-section,
.page-ththao__promotions-section,
.page-ththao__how-to-start-section,
.page-ththao__responsible-gambling-section,
.page-ththao__faq-section,
.page-ththao__contact-cta-section {
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.page-ththao__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Ensure it takes up significant viewport height */
    color: var(--text-main-color);
}

.page-ththao__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.2; /* Subtle overlay to make text more readable */
}

.page-ththao__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(17, 39, 27, 0.7); /* Card BG with transparency for readability */
    border-radius: 10px;
}

.page-ththao__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: bold;
    color: var(--gold-color); /* #F2C14E */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-ththao__hero-description {
    font-size: 1.2rem;
    color: var(--text-main-color); /* #F2FFF6 */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-ththao__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.page-ththao__btn-primary,
.page-ththao__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-ththao__btn-primary {
    background: var(--button-gradient); /* linear-gradient(180deg, #2AD16F 0%, #13994A 100%) */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-ththao__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-ththao__btn-secondary {
    background-color: transparent;
    color: var(--gold-color); /* #F2C14E */
    border: 2px solid var(--gold-color); /* #F2C14E */
}

.page-ththao__btn-secondary:hover {
    background-color: var(--gold-color); /* #F2C14E */
    color: var(--card-bg-color); /* #11271B */
    transform: translateY(-2px);
}

.page-ththao__btn-text {
    color: var(--gold-color); /* #F2C14E */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.page-ththao__btn-text:hover {
    color: var(--glow-color); /* #57E38D */
}

.page-ththao__arrow {
    font-size: 1.2em;
    line-height: 1;
}

/* Section titles and descriptions */
.page-ththao__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--gold-color); /* #F2C14E */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.page-ththao__section-description {
    font-size: 1.1rem;
    color: var(--text-secondary-color); /* #A7D9B8 */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Dark section background */
.page-ththao__dark-section {
    background-color: var(--card-bg-color); /* #11271B */
}

/* Grid layouts */
.page-ththao__features-grid,
.page-ththao__categories-grid,
.page-ththao__promotions-grid,
.page-ththao__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Cards */
.page-ththao__card {
    background-color: var(--card-bg-color); /* #11271B */
    border: 1px solid var(--border-color); /* #2E7A4E */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main-color); /* #F2FFF6 */
}

.page-ththao__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-ththao__card-title {
    font-size: 1.5rem;
    color: var(--gold-color); /* #F2C14E */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-ththao__card-text {
    font-size: 1rem;
    color: var(--text-secondary-color); /* #A7D9B8 */
    flex-grow: 1; /* Allow text to grow and push button to bottom */
    margin-bottom: 20px;
}

.page-ththao__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color); /* #2E7A4E */
}

/* Specific sections */
.page-ththao__live-betting-section .page-ththao__container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-ththao__live-betting-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.page-ththao__live-betting-image {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--glow-color); /* #57E38D */
    box-shadow: 0 0 20px rgba(87, 227, 141, 0.5);
}

.page-ththao__live-betting-text {
    flex: 1;
    min-width: 300px;
    max-width: 45%;
}

.page-ththao__live-betting-text .page-ththao__card-title {
    font-size: 1.3rem;
    color: var(--text-main-color); /* #F2FFF6 */
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-ththao__live-betting-text .page-ththao__card-text {
    font-size: 1rem;
    color: var(--text-secondary-color); /* #A7D9B8 */
    margin-bottom: 20px;
}

.page-ththao__step-card .page-ththao__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--button-gradient); /* linear-gradient(180deg, #2AD16F 0%, #13994A 100%) */
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    border: 2px solid var(--glow-color); /* #57E38D */
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.4);
}

.page-ththao__responsible-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 700px;
    text-align: left;
}

.page-ththao__responsible-list li {
    background-color: var(--card-bg-color); /* #11271B */
    border: 1px solid var(--border-color); /* #2E7A4E */
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-main-color); /* #F2FFF6 */
    position: relative;
    padding-left: 45px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-ththao__responsible-list li::before {
    content: '✓';
    color: var(--glow-color); /* #57E38D */
    font-weight: bold;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
}

.page-ththao__text-center {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.page-ththao__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-ththao__faq-item {
    background-color: var(--card-bg-color); /* #11271B */
    border: 1px solid var(--border-color); /* #2E7A4E */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-ththao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--gold-color); /* #F2C14E */
    background-color: var(--card-bg-color); /* #11271B */
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-ththao__faq-question::-webkit-details-marker {
    display: none;
}

.page-ththao__faq-question:hover {
    background-color: var(--deep-green-color); /* #0A4B2C */
}

.page-ththao__faq-qtext {
    flex-grow: 1;
}

.page-ththao__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--glow-color); /* #57E38D */
    margin-left: 20px;
}

.page-ththao__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--text-secondary-color); /* #A7D9B8 */
    line-height: 1.7;
}

/* Contact CTA Section */
.page-ththao__contact-cta-section {
    background-color: var(--background-color); /* #08160F */
}

/* Contrast safety for text on dark backgrounds (which is the main theme here) */
.page-ththao__dark-bg {
  color: var(--text-main-color); /* #F2FFF6 */
  background: var(--card-bg-color); /* #11271B */
}

.page-ththao__light-bg { /* Not primarily used, but for safety */
  color: #333333;
  background: #ffffff;
}

/* Ensure text in content areas is readable */
.page-ththao__content-area p,
.page-ththao__content-area li,
.page-ththao__card p,
.page-ththao__responsible-list li {
  color: var(--text-secondary-color); /* #A7D9B8 */
}

/* Specific overrides for strong contrast */
.page-ththao__section-title,
.page-ththao__main-title,
.page-ththao__card-title {
  color: var(--gold-color); /* #F2C14E */
}
.page-ththao__btn-primary {
  color: #ffffff;
}
.page-ththao__btn-secondary {
  color: var(--gold-color);
}
.page-ththao__btn-secondary:hover {
  color: var(--card-bg-color);
}

/* Ensure any image within content area respects minimum size if it's not small icon */
.page-ththao__container img,
.page-ththao__card-image,
.page-ththao__live-betting-image {
    min-width: 200px;
    min-height: 200px;
    display: block; /* to ensure max-width and height auto works correctly */
}

/* Desktop video width for flex layout, if video were present */
.page-ththao__video-container {
    width: 100%; /* Explicitly setting width for desktop flex scenarios */
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-ththao__hero-section {
        min-height: 60vh;
    }

    .page-ththao__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .page-ththao__hero-description {
        font-size: 1.1rem;
    }

    .page-ththao__live-betting-content {
        flex-direction: column;
        text-align: center;
    }

    .page-ththao__live-betting-image,
    .page-ththao__live-betting-text {
        max-width: 100%;
        min-width: unset;
    }
    .page-ththao__live-betting-text {
        text-align: center;
    }
    .page-ththao__live-betting-text .page-ththao__card-title {
        text-align: center;
    }
    .page-ththao__live-betting-text .page-ththao__card-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-ththao {
        font-size: 15px;
    }

    .page-ththao__hero-section,
    .page-ththao__why-choose-us-section,
    .page-ththao__sports-categories-section,
    .page-ththao__live-betting-section,
    .page-ththao__promotions-section,
    .page-ththao__how-to-start-section,
    .page-ththao__responsible-gambling-section,
    .page-ththao__faq-section,
    .page-ththao__contact-cta-section {
        padding: 40px 0;
    }

    .page-ththao__container {
        padding: 0 15px;
        max-width: 100% !important; /* Ensure container respects full width */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-ththao__hero-content {
        padding: 15px;
    }

    .page-ththao__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-ththao__hero-description {
        font-size: 1rem;
    }

    .page-ththao__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-ththao__btn-primary,
    .page-ththao__btn-secondary {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-ththao__section-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }

    .page-ththao__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-ththao__features-grid,
    .page-ththao__categories-grid,
    .page-ththao__promotions-grid,
    .page-ththao__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-ththao__card {
        padding: 20px;
    }

    .page-ththao__card-title {
        font-size: 1.3rem;
    }

    .page-ththao__card-text {
        font-size: 0.95rem;
    }

    .page-ththao__card-image {
        height: 180px;
    }

    /* Images responsiveness */
    .page-ththao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Video responsiveness - No video on this page, but keeping rules for safety */
    .page-ththao video,
    .page-ththao__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-ththao__video-section {
        padding-top: 10px !important;
    }

    .page-ththao__video-container,
    .page-ththao__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
      padding-left: 15px;
      padding-right: 15px;
    }

    .page-ththao__responsible-list li {
        font-size: 1rem;
        padding: 12px 15px 12px 40px;
    }
    .page-ththao__responsible-list li::before {
        left: 10px;
        font-size: 1.1rem;
    }

    .page-ththao__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

    .page-ththao__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }
}