/* style/the-thao.css */

:root {
    --color-primary: #C91F17;
    --color-secondary: #E53935;
    --color-text-main: #FFF5E1;
    --color-card-bg: #D32F2F;
    --color-background-main: #B71C1C;
    --color-button-gradient-start: #FFD86A;
    --color-button-gradient-end: #E6B800;
    --color-border-gold: #F2B544;
    --color-glow: #FFCC66;
    --color-gold: #F4D34D;
    --color-deep-red: #7A0E0E;
}

.page-the-thao {
    background-color: var(--color-background-main);
    color: var(--color-text-main);
    font-family: Arial, sans-serif;
}

.page-the-thao__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-the-thao__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-text-main);
    line-height: 1.2;
}

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

/* Hero Section */
.page-the-thao__hero-section {
    padding-top: 10px; /* Fixed header spacing */
    padding-bottom: 60px;
    background-color: var(--color-background-main);
    position: relative;
    overflow: hidden;
}

.page-the-thao__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 16px;
    box-sizing: border-box;
}

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

.page-the-thao__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em);
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-the-thao__hero-description {
    font-size: 1.1em;
    color: var(--color-text-main);
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: nowrap;
    word-wrap: normal;
}

.page-the-thao__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-deep-red);
    border: 2px solid var(--color-button-gradient-start);
}

.page-the-thao__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-the-thao__btn-secondary {
    background: var(--color-card-bg);
    color: var(--color-text-main);
    border: 2px solid var(--color-button-gradient-start);
}

.page-the-thao__btn-secondary:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 31, 23, 0.4);
}

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

.page-the-thao__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-the-thao__intro-section {
    background-color: var(--color-deep-red);
    padding: 80px 0;
}

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

.page-the-thao__feature-item {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-the-thao__icon-box-media {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-button-gradient-start);
    box-shadow: 0 0 15px rgba(255, 216, 106, 0.5);
}

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

.page-the-thao__feature-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--color-text-main);
    margin-bottom: 10px;
}

.page-the-thao__feature-text {
    font-size: 1em;
    color: var(--color-text-main);
    line-height: 1.6;
}

/* Sports Types Section */
.page-the-thao__sports-types-section {
    background-color: var(--color-background-main);
    padding: 80px 0;
}

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

.page-the-thao__sports-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-the-thao__sports-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-the-thao__sports-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-the-thao__sports-card-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--color-text-main);
    margin-bottom: 10px;
}

.page-the-thao__sports-card-text {
    font-size: 0.95em;
    color: var(--color-text-main);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-the-thao__btn-text {
    color: var(--color-button-gradient-start);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.page-the-thao__btn-text:hover {
    color: var(--color-gold);
}

.page-the-thao__arrow {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.page-the-thao__btn-text:hover .page-the-thao__arrow {
    transform: translateX(5px);
}

/* Promo Section */
.page-the-thao__promo-section {
    background-color: var(--color-deep-red);
    padding: 80px 0;
}

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

.page-the-thao__promo-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-the-thao__promo-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-the-thao__promo-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-the-thao__promo-card-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--color-text-main);
    margin-bottom: 10px;
}

.page-the-thao__promo-card-text {
    font-size: 0.95em;
    color: var(--color-text-main);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Guide Section */
.page-the-thao__guide-section {
    background-color: var(--color-background-main);
    padding: 80px 0;
}

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

.page-the-thao__guide-step-item {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-the-thao__guide-step-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-the-thao__guide-step-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--color-button-gradient-start);
    margin-bottom: 10px;
}

.page-the-thao__guide-step-text {
    font-size: 1em;
    color: var(--color-text-main);
    line-height: 1.6;
}

/* FAQ Section */
.page-the-thao__faq-section {
    background-color: var(--color-deep-red);
    padding: 80px 0;
}

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

.page-the-thao__faq-item {
    background-color: var(--color-card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-question {
    background-color: var(--color-primary);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.page-the-thao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-text-main);
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: background-color 0.3s ease;
}

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

.page-the-thao__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-the-thao__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--color-button-gradient-start);
}

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

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-the-thao__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-the-thao__hero-content {
        text-align: center;
    }

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

    .page-the-thao__main-title {
        font-size: 3em;
    }

    .page-the-thao__feature-grid,
    .page-the-thao__sports-grid,
    .page-the-thao__promo-grid,
    .page-the-thao__guide-steps {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-the-thao__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-the-thao__hero-container {
        padding: 30px 15px;
        gap: 20px;
    }

    .page-the-thao__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-the-thao__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-the-thao__cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
        gap: 10px;
    }

    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Intro Section */
    .page-the-thao__intro-section,
    .page-the-thao__sports-types-section,
    .page-the-thao__promo-section,
    .page-the-thao__guide-section,
    .page-the-thao__faq-section {
        padding: 40px 0;
    }

    .page-the-thao__content-area {
        padding: 20px 15px;
    }

    .page-the-thao__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-the-thao__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-the-thao__feature-grid,
    .page-the-thao__sports-grid,
    .page-the-thao__promo-grid,
    .page-the-thao__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-the-thao__icon-box-media {
        width: 150px;
        height: 150px;
        margin-bottom: 15px;
    }

    .page-the-thao__feature-title {
        font-size: 1.3em;
    }

    .page-the-thao__feature-text {
        font-size: 0.9em;
    }

    /* Sports Card */
    .page-the-thao__sports-card-image {
        height: 180px;
    }

    .page-the-thao__sports-card-title {
        font-size: 1.2em;
    }

    .page-the-thao__sports-card-text {
        font-size: 0.9em;
    }

    /* Promo Card */
    .page-the-thao__promo-card-image {
        height: 180px;
    }

    .page-the-thao__promo-card-title {
        font-size: 1.2em;
    }

    .page-the-thao__promo-card-text {
        font-size: 0.9em;
    }

    /* Guide Steps */
    .page-the-thao__guide-step-item {
        padding: 20px;
    }

    .page-the-thao__guide-step-image {
        max-width: 90%;
    }

    .page-the-thao__guide-step-title {
        font-size: 1.3em;
    }

    .page-the-thao__guide-step-text {
        font-size: 0.9em;
    }

    /* FAQ */
    .page-the-thao__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-the-thao__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }

    /* General image and container responsiveness */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-the-thao__section,
    .page-the-thao__card,
    .page-the-thao__container,
    .page-the-thao__hero-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}