/* Biến màu sắc */
:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg: #FFFFFF;
    --background-color: #F4F7FB;
    --text-main: #1F2D3D;
    --text-black: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}

/* Base styles for the page-the-thao content */
.page-the-thao {
    font-family: 'Arial', sans-serif;
    color: var(--text-main);
    background-color: var(--background-color);
    line-height: 1.6;
}

/* General section padding */
.page-the-thao__section {
    padding: 60px 0;
}

.page-the-thao__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-the-thao__text-center {
    text-align: center;
}

.page-the-thao__section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.2;
}

.page-the-thao__section-title--light {
    color: var(--card-bg);
}

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

.page-the-thao__text-block--light {
    color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.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: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-the-thao__btn-primary {
    background: var(--button-gradient);
    color: var(--card-bg);
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-the-thao__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

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

.page-the-thao__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--card-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.2);
}

.page-the-thao__btn-small {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
}

/* Hero Section */
.page-the-thao__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    background-color: var(--primary-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.page-the-thao__hero-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 30px;
}

.page-the-thao__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%;
}

.page-the-thao__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 15px 60px;
    box-sizing: border-box;
}

.page-the-thao__main-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: var(--card-bg);
    margin-bottom: 20px;
    line-height: 1.1;
}

.page-the-thao__hero-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Dark Section */
.page-the-thao__dark-section {
    background-color: var(--primary-color);
    color: var(--card-bg);
}

/* Features Grid (Why Choose Section) */
.page-the-thao__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-the-thao__feature-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-the-thao__feature-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--card-bg);
    margin-bottom: 15px;
}

.page-the-thao__feature-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.page-the-thao__feature-image-wrapper {
    text-align: center;
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-the-thao__feature-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-the-thao__sport-card {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-the-thao__sport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-the-thao__sport-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
    max-width: 100%;
}

.page-the-thao__card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 15px;
    padding: 0 20px;
}

.page-the-thao__card-title a {
    color: var(--text-black);
    text-decoration: none;
}

.page-the-thao__card-title a:hover {
    color: var(--primary-color);
}

.page-the-thao__card-description {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 20px;
    flex-grow: 1;
    padding: 0 20px;
}

.page-the-thao__sport-card .page-the-thao__btn-primary {
    margin: 0 auto 20px auto;
}

/* Guides & Tips Section */
.page-the-thao__guide-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-the-thao__guide-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-the-thao__guide-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 10px;
}

.page-the-thao__guide-item p {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 0;
}

.page-the-thao__guide-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-the-thao__guide-item a:hover {
    text-decoration: underline;
}

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

/* Promotions Section */
.page-the-thao__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-the-thao__promo-item {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-the-thao__promo-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-the-thao__promo-description {
    font-size: 16px;
    color: var(--text-main);
}

.page-the-thao__promo-image-wrapper {
    text-align: center;
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-the-thao__promo-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Bottom CTA Section */
.page-the-thao__cta-section-bottom {
    padding: 80px 0;
    background-color: var(--background-color);
}

.page-the-thao__bottom-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
}
details.page-the-thao__faq-item summary.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-the-thao__faq-item summary.page-the-thao__faq-question::-webkit-details-marker {
  display: none;
}
details.page-the-thao__faq-item summary.page-the-thao__faq-question:hover {
  background: #f5f5f5;
}
.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-black);
}
.page-the-thao__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-main);
  font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-the-thao__hero-content {
        padding-bottom: 40px;
    }
    .page-the-thao__hero-description {
        font-size: 18px;
    }
    .page-the-thao__section {
        padding: 40px 0;
    }
    .page-the-thao__section-title {
        font-size: clamp(24px, 3.5vw, 36px);
    }
    .page-the-thao__text-block {
        font-size: 16px;
    }
    .page-the-thao__features-grid,
    .page-the-thao__sports-grid,
    .page-the-thao__promo-grid {
        gap: 20px;
    }
    .page-the-thao__sport-card img {
        height: 200px;
    }
    .page-the-thao__card-title {
        font-size: 20px;
    }
    .page-the-thao__faq-qtext {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-the-thao__hero-section {
        padding-top: 10px;
        min-height: auto;
    }
    .page-the-thao__hero-image img {
        object-fit: contain !important;
        aspect-ratio: unset !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-the-thao__hero-content {
        padding: 0 15px 30px;
    }
    .page-the-thao__main-title {
        font-size: clamp(30px, 8vw, 40px);
        margin-bottom: 15px;
    }
    .page-the-thao__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-the-thao__hero-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-the-thao__btn-primary, .page-the-thao__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General sections and containers */
    .page-the-thao__section {
        padding: 30px 0;
    }
    .page-the-thao__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-the-thao__section-title {
        font-size: clamp(22px, 6vw, 32px);
        margin-bottom: 20px;
    }
    .page-the-thao__text-block {
        font-size: 15px;
        text-align: left;
        margin-bottom: 15px;
    }

    /* Decorative main title + long text SEO area */
    /* These classes are not explicitly used in HTML for this page, but as per requirement, if they were, they would follow this pattern */
    .page-the-thao__section-title-wrap,
    .page-the-thao__article-body,
    .page-the-thao__article-figure {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
        text-align: left; /* Changed to left for mobile readability */
    }
    .page-the-thao__article-body p,
    .page-the-thao__article-body li {
        font-size: 15px;
        line-height: 1.6;
    }

    /* Features Grid */
    .page-the-thao__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-the-thao__feature-item {
        padding: 20px;
    }
    .page-the-thao__feature-title {
        font-size: 20px;
    }
    .page-the-thao__feature-image-wrapper img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }

    /* Product display area (Popular Sports cards) */
    .page-the-thao__sports-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
        gap: 15px;
        overflow-x: hidden;
        padding: 0 10px;
    }
    .page-the-thao__sport-card {
        padding-bottom: 15px;
    }
    .page-the-thao__sport-card img {
        
        margin-bottom: 10px;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    .page-the-thao__card-title {
        font-size: 18px;
        margin-bottom: 10px;
        padding: 0 10px;
    }
    .page-the-thao__card-description {
        font-size: 14px;
        margin-bottom: 15px;
        padding: 0 10px;
    }
    .page-the-thao__sport-card .page-the-thao__btn-primary {
        padding: 8px 15px;
        font-size: 14px;
    }

    /* Guides & Tips Section */
    .page-the-thao__guide-item {
        padding: 20px;
    }
    .page-the-thao__guide-title {
        font-size: 18px;
    }
    .page-the-thao__guide-item p {
        font-size: 15px;
    }

    /* Promotions Section */
    .page-the-thao__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-the-thao__promo-item {
        padding: 20px;
    }
    .page-the-thao__promo-title {
        font-size: 20px;
    }
    .page-the-thao__promo-image-wrapper img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }

    /* Bottom CTA Section */
    .page-the-thao__cta-section-bottom {
        padding: 50px 0;
    }
    .page-the-thao__bottom-cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* FAQ Section */
    details.page-the-thao__faq-item summary.page-the-thao__faq-question { padding: 15px; }
    .page-the-thao__faq-qtext { font-size: 16px; }
    .page-the-thao__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    details.page-the-thao__faq-item .page-the-thao__faq-answer {
        padding: 0 15px 15px;
        font-size: 15px;
    }

    /* Generic image and container rules for mobile */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        display: block;
    }

    .page-the-thao__section,
    .page-the-thao__card,
    .page-the-thao__container,
    .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;
    }
    .page-the-thao__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

/* Ensure content area images are not too small */
.page-the-thao img {
    min-width: 200px;
    min-height: 200px;
}

.page-the-thao__sport-card img {
    min-width: unset; /* Override for specific card images */
    min-height: unset;
}

@media (max-width: 768px) {
    .page-the-thao__sport-card img {
        min-width: unset;
        min-height: unset;
    }
    .page-the-thao__sports-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Allow smaller cards on very small screens */
    }
}