/* style/the-thao.css */
.page-the-thao {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg: #111111;
    --main-bg: #0A0A0A;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--main-bg); /* Ensuring consistency if body bg is not explicitly set by shared */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Shared container styling */
.page-the-thao__content-container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

/* Hero Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 60px;
    background-color: var(--main-bg); /* Ensure background is dark */
}

.page-the-thao__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 40px 16px;
    gap: 40px; /* Increased gap for better spacing */
    box-sizing: border-box;
}

.page-the-thao__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: var(--text-main); /* Light text on dark background */
}

.page-the-thao__hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary-color); /* Use a bright color for H1 */
}

.page-the-thao__hero-description {
    font-size: 1.125rem;
    margin-bottom: 30px;
    color: var(--text-main);
}

.page-the-thao__hero-image {
    flex: 1 1 45%;
    text-align: center;
    min-width: 300px;
}

.page-the-thao__hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.page-the-thao__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-tertiary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    flex-shrink: 0; /* Prevent shrinking */
}

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

.page-the-thao__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-the-thao__btn-secondary {
    background: transparent;
    color: var(--secondary-color); /* Bright text on dark background */
    border: 2px solid var(--secondary-color);
}

.page-the-thao__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--main-bg); /* Dark background on hover */
    transform: translateY(-2px);
}

.page-the-thao__btn-tertiary {
    background: var(--card-bg); /* Dark background for card buttons */
    color: var(--secondary-color); /* Bright text */
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 5px;
}

.page-the-thao__btn-tertiary:hover {
    background: var(--secondary-color);
    color: var(--main-bg);
}

/* Section Titles */
.page-the-thao__section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.page-the-thao__section-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-main);
}

/* Intro Section */
.page-the-thao__intro-section {
    padding: 60px 0;
    background-color: var(--main-bg);
}

.page-the-thao__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-the-thao__feature-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao__icon-box-media {
    width: 200px; /* Adjusted from 240px to 200px for better fit */
    height: 200px;
    aspect-ratio: 1/1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 15px var(--glow-color);
}

.page-the-thao__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.page-the-thao__feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-the-thao__feature-text {
    font-size: 1rem;
    color: var(--text-main);
}

/* Sports Categories Section */
.page-the-thao__sports-categories-section {
    padding: 60px 0;
    background-color: var(--main-bg);
}

.page-the-thao__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-the-thao__category-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-the-thao__category-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-the-thao__category-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 20px 20px 10px;
    color: var(--secondary-color);
}

.page-the-thao__category-card p {
    font-size: 1rem;
    margin: 0 20px 20px;
    color: var(--text-main);
    flex-grow: 1; /* Make paragraph take available space */
}

.page-the-thao__category-card .page-the-thao__btn-tertiary {
    align-self: flex-start; /* Align button to start */
    margin: 0 20px 20px;
}

/* Betting Guide Section */
.page-the-thao__betting-guide-section {
    padding: 60px 0;
    background-color: var(--main-bg);
}

.page-the-thao__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-the-thao__guide-step {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
}

.page-the-thao__step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #000000;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
    border: 2px solid var(--secondary-color);
}

.page-the-thao__step-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-the-thao__step-text {
    font-size: 1rem;
    color: var(--text-main);
}

.page-the-thao__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
.page-the-thao__faq-section {
    padding: 60px 0;
    background-color: var(--main-bg);
}

.page-the-thao__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    background: var(--card-bg);
    user-select: none;
    list-style: none; /* For details/summary */
}

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

.page-the-thao__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
    transform: rotate(45deg); /* Change + to X or rotate */
}

.page-the-thao__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.6;
}

.page-the-thao__faq-answer p {
    margin-bottom: 0;
}

/* Final CTA Section */
.page-the-thao__cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0A0A0A, #111111); /* Subtle gradient for variety */
    text-align: center;
}

.page-the-thao__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-the-thao__cta-section .page-the-thao__section-title {
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.page-the-thao__cta-section .page-the-thao__section-description {
    color: var(--text-main);
    margin-bottom: 40px;
}

/* Copyright Section */
.page-the-thao__copyright-section {
    padding: 20px 0;
    background-color: #000000; /* Even darker footer background */
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 246, 214, 0.7); /* Slightly muted text */
    border-top: 1px solid var(--border-color);
}

/* General image responsive style */
.page-the-thao img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .page-the-thao__hero-container {
        flex-direction: column-reverse; /* Image above content on smaller screens, per instruction */
        text-align: center;
    }

    .page-the-thao__hero-content {
        text-align: center;
        margin-top: 30px;
    }

    .page-the-thao__cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-the-thao__hero-section {
        padding-top: 10px !important; /* Fixed header spacing */
        padding-bottom: 40px;
    }
    .page-the-thao__hero-container {
        padding: 30px 15px;
        gap: 20px;
        flex-direction: column-reverse; /* Ensure image is above content */
    }
    .page-the-thao__hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    .page-the-thao__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .page-the-thao__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px; /* Add padding to container */
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary,
    .page-the-thao__btn-tertiary,
    .page-the-thao a[class*="button"],
    .page-the-thao 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; /* Ensure padding inside button */
        padding-right: 15px !important;
    }

    /* Intro Section - 3-column circular images */
    .page-the-thao__intro-section {
        padding: 40px 0;
    }
    .page-the-thao__content-container {
        padding: 30px 15px; /* Adjust padding for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-the-thao__features-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }
    .page-the-thao__icon-box-media {
        width: 150px; /* Smaller circular images */
        height: 150px;
        margin-bottom: 15px;
        border-width: 2px;
    }
    .page-the-thao__feature-title {
        font-size: 1.3rem;
    }
    .page-the-thao__feature-text {
        font-size: 0.95rem;
    }

    /* Sports Categories Section */
    .page-the-thao__sports-categories-section {
        padding: 40px 0;
    }
    .page-the-thao__categories-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }
    .page-the-thao__category-card h3 {
        font-size: 1.3rem;
        margin: 15px 15px 8px;
    }
    .page-the-thao__category-card p {
        font-size: 0.95rem;
        margin: 0 15px 15px;
    }
    .page-the-thao__category-card .page-the-thao__btn-tertiary {
        margin: 0 15px 15px;
    }
    .page-the-thao__category-image {
        height: 180px; /* Slightly smaller image height */
    }

    /* Betting Guide Section */
    .page-the-thao__betting-guide-section {
        padding: 40px 0;
    }
    .page-the-thao__guide-steps {
        grid-template-columns: 1fr; /* Single column layout */
    }
    .page-the-thao__guide-step {
        padding: 20px;
    }
    .page-the-thao__step-number {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    .page-the-thao__step-title {
        font-size: 1.2rem;
    }
    .page-the-thao__step-text {
        font-size: 0.95rem;
    }
    .page-the-thao__cta-center {
        margin-top: 30px;
    }

    /* FAQ Section */
    .page-the-thao__faq-section {
        padding: 40px 0;
    }
    .page-the-thao__faq-question {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    .page-the-thao__faq-toggle {
        font-size: 1.5rem;
    }
    .page-the-thao__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }

    /* Final CTA Section */
    .page-the-thao__cta-section {
        padding: 50px 0;
    }
    .page-the-thao__cta-section .page-the-thao__section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    .page-the-thao__cta-section .page-the-thao__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    /* General Image Responsiveness */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    /* Exception for circular images to maintain aspect ratio */
    .page-the-thao__icon-box-media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}