/* style/ththao.css */

/* Custom Colors */
:root {
    --ththao-bg-color: #08160F;
    --ththao-card-bg-color: #11271B;
    --ththao-text-main-color: #F2FFF6;
    --ththao-text-secondary-color: #A7D9B8;
    --ththao-border-color: #2E7A4E;
    --ththao-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --ththao-glow-color: #57E38D;
    --ththao-gold-color: #F2C14E;
    --ththao-divider-color: #1E3A2A;
    --ththao-deep-green-color: #0A4B2C;
}

.page-ththao {
    background-color: var(--ththao-bg-color);
    color: var(--ththao-text-main-color);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-ththao__dark-bg {
    background-color: var(--ththao-bg-color);
    color: var(--ththao-text-main-color);
}

.page-ththao__card {
    background-color: var(--ththao-card-bg-color);
    border: 1px solid var(--ththao-border-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-ththao__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-ththao__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--ththao-gold-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
    position: relative;
}

.page-ththao__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--ththao-glow-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-ththao__text-block {
    font-size: 1.1em;
    color: var(--ththao-text-secondary-color);
    text-align: justify;
    margin-bottom: 20px;
}

.page-ththao__btn-primary,
.page-ththao__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.page-ththao__btn-primary {
    background: var(--ththao-btn-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

.page-ththao__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(42, 209, 111, 0.6);
}

.page-ththao__btn-secondary {
    background-color: transparent;
    color: var(--ththao-glow-color);
    border: 2px solid var(--ththao-glow-color);
}

.page-ththao__btn-secondary:hover {
    background-color: var(--ththao-glow-color);
    color: var(--ththao-bg-color);
    transform: translateY(-2px);
}

.page-ththao__btn-text {
    color: var(--ththao-glow-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-ththao__btn-text:hover {
    color: var(--ththao-gold-color);
    text-decoration: underline;
}

/* Hero Section */
.page-ththao__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    min-height: 600px;
}

.page-ththao__hero-image-wrapper {
    width: 100%;
    position: relative;
    order: 1; /* Image first */
}

.page-ththao__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image for text readability */
}

.page-ththao__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box;
    order: 2; /* Content after image in DOM, but visually layered */
}

.page-ththao__main-title {
    font-size: clamp(2.5em, 5vw, 3.8em);
    color: var(--ththao-gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.page-ththao__hero-description {
    font-size: 1.2em;
    color: var(--ththao-text-main-color);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

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

/* Introduction Section */
.page-ththao__introduction-section {
    padding: 80px 0;
    text-align: center;
}

/* Sports List Section */
.page-ththao__sports-list-section {
    padding: 80px 0;
    background-color: var(--ththao-bg-color);
}

.page-ththao__sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-ththao__sport-card .page-ththao__card-title {
    font-size: 1.5em;
    color: var(--ththao-glow-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-ththao__sport-card .page-ththao__card-description {
    font-size: 1em;
    color: var(--ththao-text-secondary-color);
    margin-bottom: 15px;
}

/* Live Betting Section */
.page-ththao__live-betting-section {
    padding: 80px 0;
}

.page-ththao__live-betting-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.page-ththao__live-betting-content,
.page-ththao__live-betting-image-wrapper {
    flex: 1;
}

.page-ththao__live-betting-content .page-ththao__section-title {
    text-align: left;
    margin-bottom: 25px;
    padding-top: 0;
}

.page-ththao__live-betting-content .page-ththao__section-title::after {
    margin-left: 0;
}

.page-ththao__live-betting-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* How-To Section */
.page-ththao__how-to-section {
    padding: 80px 0;
    background-color: var(--ththao-bg-color);
}

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

.page-ththao__step-card .page-ththao__card-title {
    font-size: 1.6em;
    color: var(--ththao-gold-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-ththao__step-card .page-ththao__card-description {
    font-size: 1em;
    color: var(--ththao-text-secondary-color);
    margin-bottom: 20px;
}

.page-ththao__step-card .page-ththao__btn-primary,
.page-ththao__step-card .page-ththao__btn-secondary {
    width: 100%;
    margin-top: auto; /* Push buttons to bottom */
}

/* Promotions Section */
.page-ththao__promotions-section {
    padding: 80px 0;
}

.page-ththao__promotions-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.page-ththao__promotions-content,
.page-ththao__promotions-image-wrapper {
    flex: 1;
}

.page-ththao__promotions-content .page-ththao__section-title {
    text-align: left;
    margin-bottom: 25px;
    padding-top: 0;
}

.page-ththao__promotions-content .page-ththao__section-title::after {
    margin-left: 0;
}

.page-ththao__promotions-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Support Section */
.page-ththao__support-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--ththao-bg-color);
}

/* FAQ Section */
.page-ththao__faq-section {
    padding: 80px 0;
}

.page-ththao__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-ththao__faq-item {
    background-color: var(--ththao-card-bg-color);
    border: 1px solid var(--ththao-border-color);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-ththao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--ththao-text-main-color);
    cursor: pointer;
    position: relative;
    list-style: none; /* For details/summary */
}

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

.page-ththao__faq-toggle {
    font-size: 1.5em;
    color: var(--ththao-glow-color);
    margin-left: 15px;
}

.page-ththao__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--ththao-text-secondary-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-ththao__faq-item[open] .page-ththao__faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding-top: 10px;
}

.page-ththao__faq-item.active .page-ththao__faq-answer {
    max-height: 2000px !important; /* For JS fallback */
    padding-top: 10px;
}

.page-ththao__faq-item.active .page-ththao__faq-toggle {
    content: '−';
}

.page-ththao__faq-button {
    margin-top: 30px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Responsible Gaming Section */
.page-ththao__responsible-gaming-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--ththao-bg-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-ththao__hero-content {
        max-width: 90%;
    }
    .page-ththao__main-title {
        font-size: clamp(2.2em, 4.5vw, 3.2em);
    }
    .page-ththao__hero-description {
        font-size: 1.1em;
    }
    .page-ththao__live-betting-container,
    .page-ththao__promotions-container {
        flex-direction: column;
        text-align: center;
    }
    .page-ththao__live-betting-content .page-ththao__section-title,
    .page-ththao__promotions-content .page-ththao__section-title {
        text-align: center;
    }
    .page-ththao__live-betting-content .page-ththao__section-title::after,
    .page-ththao__promotions-content .page-ththao__section-title::after {
        margin-left: auto;
        margin-right: auto;
    }
    .page-ththao__live-betting-image-wrapper,
    .page-ththao__promotions-image-wrapper {
        order: -1; /* Image appears above content on smaller screens */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-ththao__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-ththao__hero-section {
        min-height: 500px;
        padding-bottom: 40px;
    }
    .page-ththao__main-title {
        font-size: clamp(2em, 7vw, 2.8em);
    }
    .page-ththao__hero-description {
        font-size: 1em;
    }
    .page-ththao__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-ththao__btn-primary,
    .page-ththao__btn-secondary {
        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;
    }
    .page-ththao__hero-buttons,
    .page-ththao__cta-buttons,
    .page-ththao__button-group,
    .page-ththao__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-ththao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-ththao__section,
    .page-ththao__card,
    .page-ththao__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-ththao__hero-section {
        padding-top: 10px !important;
    }
    .page-ththao__video-section {
        padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    }
    .page-ththao video,
    .page-ththao__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-ththao__video-section,
    .page-ththao__video-container,
    .page-ththao__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-ththao__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
    .page-ththao__introduction-section,
    .page-ththao__sports-list-section,
    .page-ththao__live-betting-section,
    .page-ththao__how-to-section,
    .page-ththao__promotions-section,
    .page-ththao__support-section,
    .page-ththao__faq-section,
    .page-ththao__responsible-gaming-section {
        padding: 40px 0;
    }
    .page-ththao p,
    .page-ththao li {
      font-size: 16px;
      line-height: 1.6;
    }
    .page-ththao__card {
      padding: 20px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}

@media (max-width: 480px) {
    .page-ththao__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }
    .page-ththao__hero-description {
        font-size: 0.95em;
    }
    .page-ththao__section-title {
        font-size: 1.8em;
    }
    .page-ththao__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-ththao__faq-answer {
        padding: 0 20px 15px;
    }
}

/* Ensure image color filters are not applied */
.page-ththao img {
    filter: none; /* Override any potential global filters */
}

.page-ththao__hero-image { /* Specific filter for hero background only */
    filter: brightness(0.6);
}

/* Contrast fixes for specific elements if needed - based on custom colors */
.page-ththao__dark-bg {
    color: var(--ththao-text-main-color);
    background: var(--ththao-bg-color);
}

.page-ththao__card {
    color: var(--ththao-text-main-color);
    background: var(--ththao-card-bg-color);
}

.page-ththao__btn-primary {
    color: #ffffff;
}

.page-ththao__btn-secondary {
    color: var(--ththao-glow-color);
}

.page-ththao__text-block {
    color: var(--ththao-text-secondary-color);
}