/* style/th-thao.css */
:root {
    --primary-color: #FF4500; /* Cam đỏ năng động */
    --secondary-color: #00BFFF; /* Xanh da trời công nghệ */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f5f5f5;
    --bg-dark: #222222;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
}

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

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

.page-th-thao .section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-th-thao .section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.page-th-thao .highlight {
    color: var(--primary-color);
    font-weight: bold;
}

/* Hero Section */
.page-th-thao .hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.9), rgba(0, 191, 255, 0.9)); /* Overlay for text readability */
    color: var(--text-light);
}

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

.page-th-thao .hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-th-thao .hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-th-thao .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
    padding: 30px;
    border-radius: 10px;
}

.page-th-thao .hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-th-thao .hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-th-thao .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

/* Intro Section */
.page-th-thao .intro-section {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.page-th-thao .intro-section p {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
}

.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: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-th-thao .feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

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

/* Sports Categories Section */
.page-th-thao .sports-categories {
    padding: 80px 0;
    background-color: var(--bg-light);
}

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

.page-th-thao .category-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-th-thao .category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-th-thao .category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.page-th-thao .card-title {
    font-size: 1.6em;
    color: var(--primary-color);
    padding: 15px 20px 10px;
    margin: 0;
}

.page-th-thao .card-title a {
    color: inherit;
    text-decoration: none;
}

.page-th-thao .card-title a:hover {
    text-decoration: underline;
}

.page-th-thao .category-card p {
    padding: 0 20px 15px;
    font-size: 1em;
    flex-grow: 1;
}

.page-th-thao .card-link {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Push to bottom */
}

.page-th-thao .card-link:hover {
    background: var(--primary-color);
}

/* Benefits Section */
.page-th-thao .benefits-section {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.page-th-thao .benefit-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-th-thao .benefit-item {
    text-align: center;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-th-thao .benefit-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-th-thao .benefit-item h3 {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

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

/* How-To-Bet Section */
.page-th-thao .how-to-bet-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.page-th-thao .step-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    counter-reset: step-counter;
}

.page-th-thao .step-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
}

.page-th-thao .step-number {
    counter-increment: step-counter;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-th-thao .step-item h3 a {
    color: inherit;
    text-decoration: none;
}

.page-th-thao .step-item h3 a:hover {
    text-decoration: underline;
}

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

/* Promotions Section */
.page-th-thao .promotions-section {
    padding: 80px 0;
    background-color: var(--card-bg);
}

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

.page-th-thao .promo-card {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-th-thao .promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-th-thao .promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.page-th-thao .promo-card .card-title {
    font-size: 1.6em;
    color: var(--secondary-color);
    padding: 15px 20px 10px;
    margin: 0;
}

.page-th-thao .promo-card p {
    padding: 0 20px 15px;
    font-size: 1em;
    flex-grow: 1;
}

.page-th-thao .promo-card .card-link {
    background: var(--primary-color);
    border-radius: 0 0 8px 8px;
}

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

/* FAQ Section */
.page-th-thao .faq-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.page-th-thao .faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--text-dark);
}

.faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Đủ lớn để chứa nội dung */
    padding: 20px 25px;
    border: 1px solid var(--border-color);
    border-top: none;
}

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

.faq-answer p {
    margin-bottom: 15px;
    font-size: 1em;
    color: var(--text-dark);
}

.page-th-thao .faq-link {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.page-th-thao .faq-link:hover {
    background: var(--primary-color);
}

/* Blog Section */
.page-th-thao .blog-section {
    padding: 80px 0;
    background-color: var(--card-bg);
}

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

.page-th-thao .blog-card {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-th-thao .blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-th-thao .blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.page-th-thao .blog-card .card-title {
    font-size: 1.4em;
    color: var(--primary-color);
    padding: 15px 20px 10px;
    margin: 0;
}

.page-th-thao .blog-card p {
    padding: 0 20px 15px;
    font-size: 1em;
    flex-grow: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-th-thao .hero-title {
        font-size: 2.8em;
    }
    .page-th-thao .hero-description {
        font-size: 1.1em;
    }
    .page-th-thao .section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-th-thao .hero-section {
        padding: 40px 15px;
    }
    .page-th-thao .hero-content {
        padding: 20px;
    }
    .page-th-thao .hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-th-thao .hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-th-thao .cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-th-thao .section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-th-thao .intro-section, .page-th-thao .sports-categories, .page-th-thao .benefits-section, .page-th-thao .how-to-bet-section, .page-th-thao .promotions-section, .page-th-thao .faq-section, .page-th-thao .blog-section {
        padding: 50px 0;
    }
    .page-th-thao .feature-item, .page-th-thao .category-card, .page-th-thao .benefit-item, .page-th-thao .step-item, .page-th-thao .promo-card, .page-th-thao .blog-card {
        padding: 20px;
    }
    .page-th-thao .feature-icon, .page-th-thao .benefit-icon {
        width: 80px;
        height: 80px;
    }
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
    .faq-toggle {
        font-size: 1.5em;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-th-thao .hero-title {
        font-size: 1.8em;
    }
    .page-th-thao .hero-description {
        font-size: 0.9em;
    }
    .page-th-thao .section-title {
        font-size: 1.5em;
    }
    .page-th-thao .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }
    .page-th-thao .step-item h3 {
        margin-top: 25px;
        font-size: 1.3em;
    }
    .page-th-thao .promo-card .card-title, .page-th-thao .blog-card .card-title {
        font-size: 1.3em;
    }
}