/* style/th-thao.css */
:root {
    --primary-color: #0A1931;
    --secondary-color: #FFD700;
    --accent-color: #32CD32;
    --text-light: #f0f0f0;
    --text-dark: #333333;
    --bg-light: #ffffff;
    --bg-dark: #1a2a44;
}

.page-th-thao {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

.page-th-thao a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-th-thao a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-th-thao-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-th-thao-section {
    padding: 60px 0;
    text-align: center;
}

.page-th-thao-section:nth-of-type(odd) {
    background-color: var(--bg-light);
}

.page-th-thao-section:nth-of-type(even) {
    background-color: #f8f8f8;
}

.page-th-thao h1,
.page-th-thao h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-th-thao h1 {
    font-size: 2.8em;
    color: var(--text-light);
}

.page-th-thao h2 {
    font-size: 2.2em;
}

.page-th-thao h3 {
    color: var(--primary-color);
    font-size: 1.6em;
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-th-thao p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

/* Hero Section */
.page-th-thao-hero {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1c3c66 100%); /* Fallback for image load */
}

.page-th-thao-hero-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.page-th-thao-hero-image {
    width: 100%;
    height: 500px; /* Fixed height for visual impact */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.page-th-thao-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
    margin-top: -80px; /* Overlap with image for integrated look */
}

.page-th-thao-hero-content h1 {
    font-size: 3.5em;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.page-th-thao-hero-content p {
    font-size: 1.2em;
    color: var(--text-light);
    max-width: 800px;
    margin: 20px auto;
}

.page-th-thao-hero-content p a {
    color: var(--secondary-color);
    font-weight: bold;
}

.page-th-thao-hero-content p a:hover {
    color: var(--accent-color);
}

.page-th-thao-cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 18px 45px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
}

.page-th-thao-cta-button:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Why Choose Section */
.page-th-thao-why-choose h2,
.page-th-thao-bet-types h2,
.page-th-thao-guide h2,
.page-th-thao-promotions h2,
.page-th-thao-mobile h2,
.page-th-thao-faq h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.page-th-thao-feature-item {
    background-color: var(--bg-light);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-th-thao-feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-th-thao-feature-item h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-th-thao-feature-image {
    width: 100%;
    height: 250px; /* Maintain aspect ratio and minimum size */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-th-thao-feature-item p {
    font-size: 1em;
    color: var(--text-dark);
    flex-grow: 1;
}

.page-th-thao-feature-item p a {
    color: var(--primary-color);
    font-weight: bold;
}

/* Bet Types Section */
.page-th-thao-bet-types {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-th-thao-bet-types h2 {
    color: var(--secondary-color);
}

.page-th-thao-bet-types p {
    color: var(--text-light);
}

.page-th-thao-bet-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-th-thao-bet-type-item {
    background-color: var(--primary-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.page-th-thao-bet-type-item h3 {
    color: var(--secondary-color);
    margin-top: 0;
}

.page-th-thao-bet-type-item p {
    color: var(--text-light);
    font-size: 1em;
}

.page-th-thao-bet-type-item p a {
    color: var(--secondary-color);
    font-weight: bold;
}

/* Guide Section */
.page-th-thao-steps {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-th-thao-steps li {
    background-color: var(--bg-light);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    counter-increment: step-counter;
    position: relative;
    padding-left: 70px;
}

.page-th-thao-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
}

.page-th-thao-steps li h3 {
    margin-top: 0;
    font-size: 1.4em;
    color: var(--primary-color);
}

.page-th-thao-steps li p {
    font-size: 1em;
    color: var(--text-dark);
}

.page-th-thao-steps li p a {
    color: var(--primary-color);
    font-weight: bold;
}

/* Promotions Section */
.page-th-thao-promotions {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-th-thao-promotions h2 {
    color: var(--secondary-color);
}

.page-th-thao-promotions p {
    color: var(--text-light);
}

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

.page-th-thao-promotion-card {
    background-color: var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-th-thao-promotion-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-th-thao-promotion-image {
    width: 100%;
    height: 220px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    border-bottom: 3px solid var(--secondary-color);
}

.page-th-thao-promotion-card h3 {
    color: var(--secondary-color);
    font-size: 1.5em;
    margin: 20px 15px 10px;
}

.page-th-thao-promotion-card p {
    color: var(--text-light);
    font-size: 1em;
    padding: 0 15px 20px;
    flex-grow: 1;
}

.page-th-thao-promotion-card p a {
    color: var(--secondary-color);
    font-weight: bold;
}

.page-th-thao-promo-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.page-th-thao-promo-button:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Mobile Experience Section */
.page-th-thao-mobile-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-th-thao-mobile-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-th-thao-mobile-text {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.page-th-thao-mobile-text p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.page-th-thao-mobile-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-th-thao-mobile-text ul li {
    font-size: 1em;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: var(--text-dark);
}

.page-th-thao-mobile-text ul li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.page-th-thao-mobile-text a {
    margin-top: 20px;
}

/* FAQ Section */
.page-th-thao-faq {
    background-color: #f8f8f8;
}

.page-th-thao-faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: var(--bg-light);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--bg-light);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f5f5f5;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.25em;
    color: var(--primary-color);
    flex-grow: 1;
}

.faq-question h3 a {
    color: var(--primary-color);
    font-weight: bold;
}

.faq-question h3 a:hover {
    text-decoration: none;
    color: var(--secondary-color);
}

.faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--secondary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #f9f9f9;
    color: var(--text-dark);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
}

.faq-answer p {
    margin: 0;
    font-size: 1em;
}

.faq-answer p a {
    color: var(--primary-color);
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-th-thao-hero-image {
        height: 400px;
    }
    .page-th-thao-hero-content {
        margin-top: -60px;
    }
    .page-th-thao-hero-content h1 {
        font-size: 2.8em;
    }
    .page-th-thao h2 {
        font-size: 2em;
    }
    .page-th-thao h3 {
        font-size: 1.4em;
    }
    .page-th-thao-cta-button {
        padding: 15px 35px;
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-th-thao-section {
        padding: 40px 0;
    }
    .page-th-thao-hero {
        padding: 60px 15px;
    }
    .page-th-thao-hero-image {
        height: 300px;
    }
    .page-th-thao-hero-content {
        padding: 15px;
        margin-top: -40px;
    }
    .page-th-thao-hero-content h1 {
        font-size: 2.2em;
    }
    .page-th-thao-hero-content p {
        font-size: 1em;
    }
    .page-th-thao-cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-th-thao-features-grid,
    .page-th-thao-bet-types-grid,
    .page-th-thao-promotions-grid {
        grid-template-columns: 1fr;
    }
    .page-th-thao-feature-item,
    .page-th-thao-bet-type-item,
    .page-th-thao-promotion-card {
        padding: 20px;
    }
    .page-th-thao-steps li {
        padding-left: 60px;
    }
    .page-th-thao-steps li::before {
        width: 35px;
        height: 35px;
        font-size: 1.3em;
        left: 15px;
        top: 15px;
    }
    .page-th-thao-mobile-content {
        flex-direction: column;
        text-align: center;
    }
    .page-th-thao-mobile-text {
        min-width: unset;
    }
    .page-th-thao-mobile-text ul {
        text-align: left;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
    .faq-toggle {
        font-size: 20px;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-th-thao h1 {
        font-size: 1.8em;
    }
    .page-th-thao h2 {
        font-size: 1.6em;
    }
    .page-th-thao h3 {
        font-size: 1.2em;
    }
    .page-th-thao-hero-image {
        height: 200px;
    }
    .page-th-thao-hero-content {
        margin-top: -20px;
    }
    .page-th-thao-hero-content p {
        font-size: 0.9em;
    }
    .page-th-thao-cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-th-thao-steps li {
        padding-left: 50px;
    }
    .page-th-thao-steps li::before {
        width: 30px;
        height: 30px;
        font-size: 1.1em;
        left: 10px;
        top: 10px;
    }
}