/* style/the-thao.css */

:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --text-main-color: #1F2D3D;
    --text-dark-color: #000000;
    --bg-card-color: #FFFFFF;
    --bg-page-color: #F4F7FB;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-the-thao {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color);
    background-color: var(--bg-page-color); /* Default light background */
}

.page-the-thao__dark-section {
    background: var(--primary-color);
    color: #ffffff;
}

.page-the-thao__light-bg {
    background-color: var(--bg-page-color);
    color: var(--text-main-color);
}

.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
}

.page-the-thao__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 20px 15px;
}

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

.page-the-thao__main-title {
    font-size: 3.2em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-the-thao__description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-the-thao__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

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

.page-the-thao__hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-tertiary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-the-thao__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-the-thao__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--glow-color);
}

.page-the-thao__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-the-thao__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-the-thao__btn-tertiary {
    background: var(--secondary-color);
    color: #ffffff;
    border: 2px solid transparent;
    padding: 10px 20px;
    font-size: 0.95em;
}

.page-the-thao__btn-tertiary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.page-the-thao__content-area,
.page-the-thao__highlight-section,
.page-the-thao__guide-section,
.page-the-thao__promo-section,
.page-the-thao__faq-section,
.page-the-thao__conclusion-section {
    padding: 60px 15px;
    overflow: hidden;
}

.page-the-thao__section-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-main-color);
}

.page-the-thao__dark-section .page-the-thao__section-title {
    color: #ffffff;
}

.page-the-thao__text-block {
    max-width: 900px;
    margin: 0 auto 20px;
    font-size: 1.1em;
    line-height: 1.7;
    text-align: justify;
}

.page-the-thao__highlight-section .page-the-thao__section-title,
.page-the-thao__highlight-section .page-the-thao__text-block {
    color: #ffffff;
}

.page-the-thao__highlight-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
}

.page-the-thao__highlight-content {
    flex: 1 1 45%;
    min-width: 300px;
}

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

.page-the-thao__highlight-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-the-thao__sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto;
}

.page-the-thao__sport-item {
    background: var(--bg-card-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-the-thao__sport-item:hover {
    transform: translateY(-5px);
}

.page-the-thao__sport-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-the-thao__content-area img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-the-thao__guide-container {
    max-width: 1000px;
    margin: 0 auto;
}

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

.page-the-thao__step-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-the-thao__step-number {
    font-size: 3em;
    font-weight: 700;
    color: var(--secondary-color);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.page-the-thao__step-title {
    font-size: 1.6em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.page-the-thao__step-item p {
    font-size: 1em;
    line-height: 1.6;
    color: #f0f0f0;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.page-the-thao__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto;
}

.page-the-thao__tip-card {
    background: var(--bg-card-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease;
    color: var(--text-main-color);
}

.page-the-thao__tip-card:hover {
    transform: translateY(-5px);
}

.page-the-thao__tip-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-the-thao__promo-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.page-the-thao__promo-section .page-the-thao__description {
    color: #f0f0f0;
}

.page-the-thao__promo-section .page-the-thao__btn-primary {
    margin-top: 30px;
}

.page-the-thao__promo-section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-the-thao__faq-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.page-the-thao__faq-list {
    margin-top: 40px;
    text-align: left;
}

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

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: var(--bg-card-color);
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--text-main-color);
    list-style: none;
}

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

.page-the-thao__faq-question:hover {
    background-color: #f9f9f9;
}

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
    transform: rotate(45deg);
}

.page-the-thao__faq-answer {
    padding: 15px 25px 20px;
    background-color: #fdfdfd;
    border-top: 1px solid var(--border-color);
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main-color);
}

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

.page-the-thao__faq-section .page-the-thao__btn-secondary {
    margin-top: 40px;
}

.page-the-thao__conclusion-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.page-the-thao__conclusion-section .page-the-thao__section-title,
.page-the-thao__conclusion-section .page-the-thao__description {
    color: #ffffff;
}

.page-the-thao__conclusion-section .page-the-thao__btn-primary {
    margin-top: 30px;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
    .page-the-thao__main-title {
        font-size: 2.8em;
    }
    .page-the-thao__section-title {
        font-size: 2.2em;
    }
    .page-the-thao__hero-container,
    .page-the-thao__highlight-container {
        flex-direction: column;
        text-align: center;
    }
    .page-the-thao__hero-content,
    .page-the-thao__highlight-content {
        flex: 1 1 100%;
        text-align: center;
    }
    .page-the-thao__cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-the-thao__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }
    .page-the-thao__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-the-thao__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-the-thao__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-the-thao__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .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;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-the-thao__cta-buttons,
    .page-the-thao__button-group,
    .page-the-thao__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-the-thao__content-area,
    .page-the-thao__highlight-section,
    .page-the-thao__guide-section,
    .page-the-thao__promo-section,
    .page-the-thao__faq-section,
    .page-the-thao__conclusion-section {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-the-thao__text-block {
        font-size: 0.95em;
        text-align: left;
    }
    .page-the-thao__sports-grid,
    .page-the-thao__steps-grid,
    .page-the-thao__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-the-thao__sport-item,
    .page-the-thao__step-item,
    .page-the-thao__tip-card,
    .page-the-thao__faq-item {
        padding: 20px;
    }
    .page-the-thao__sport-title,
    .page-the-thao__tip-title {
        font-size: 1.3em;
    }
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto;
    }
    .page-the-thao__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-the-thao__faq-answer {
        padding: 10px 20px 15px;
    }
    .page-the-thao__step-number {
        font-size: 2.5em;
        top: 5px;
        left: 10px;
    }
    .page-the-thao__step-title {
        font-size: 1.4em;
    }
}