:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg-color: #10233F;
    --text-main-color: #F3F8FF;
    --text-secondary-color: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy-color: #08162B;
}

/* Base styles for the Thể thao page */
.page-the-thao {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-secondary-color); /* Default text color from custom palette */
    background-color: var(--deep-navy-color); /* Body background from shared.css */
}

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

.page-the-thao__section {
    padding: 60px 0;
}

.page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    position: relative;
    overflow: hidden;
    color: var(--text-main-color);
    text-align: center;
}

.page-the-thao__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height for desktop hero */
    margin-bottom: 30px;
    overflow: hidden;
}

.page-the-thao__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover for desktop */
    display: block;
}

.page-the-thao__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 15px;
}

.page-the-thao__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-the-thao__hero-description {
    font-size: 1.25rem;
    color: var(--text-main-color);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    max-width: 100%; /* Ensure button adapts to container */
    box-sizing: border-box;
}

.page-the-thao__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main-color);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-the-thao__btn-secondary {
    background: var(--card-bg-color); /* Using Card BG for secondary button */
    color: var(--text-main-color);
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-the-thao__btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-main-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-the-thao__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-the-thao__article-body {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--card-bg-color); /* Card BG for content blocks */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: var(--text-secondary-color); /* Secondary text color */
}

.page-the-thao__article-body p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary-color);
}

.page-the-thao__article-body h3 {
    font-size: 1.6rem;
    color: var(--gold-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-the-thao__article-body ul,
.page-the-thao__article-body ol {
    margin-bottom: 15px;
    padding-left: 25px;
    color: var(--text-secondary-color);
}

.page-the-thao__article-body li {
    margin-bottom: 8px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.page-the-thao__article-body a {
    color: var(--glow-color); /* Link color */
    text-decoration: none;
    font-weight: bold;
}

.page-the-thao__article-body a:hover {
    text-decoration: underline;
}

.page-the-thao__highlight {
    color: var(--gold-color);
    font-weight: bold;
}

.page-the-thao__article-figure {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 25px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-the-thao__sport-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    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.4);
}

.page-the-thao__sport-image {
    width: 100%;
    height: 200px; /* Fixed height for card images */
    object-fit: cover;
    display: block;
}

.page-the-thao__sport-card .page-the-thao__card-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin: 20px 15px 10px;
    font-weight: 700;
}

.page-the-thao__sport-card p {
    font-size: 1rem;
    color: var(--text-secondary-color);
    padding: 0 15px 20px;
    flex-grow: 1;
}

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

/* Dark background section specific styles */
.page-the-thao__dark-bg {
    background-color: var(--primary-color); /* Using main brand color for dark section */
    color: var(--text-main-color);
}

.page-the-thao__dark-bg .page-the-thao__section-title {
    color: var(--gold-color);
}

.page-the-thao__dark-bg .page-the-thao__article-body {
    background-color: var(--card-bg-color);
    color: var(--text-secondary-color);
}

.page-the-thao__dark-bg .page-the-thao__article-body p,
.page-the-thao__dark-bg .page-the-thao__article-body li {
    color: var(--text-secondary-color);
}

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

details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
details.page-the-thao__faq-item summary.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: var(--text-main-color);
}
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: var(--primary-color);
  border-color: var(--glow-color);
}
.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--gold-color);
}
.page-the-thao__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--glow-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 25px 20px;
  background: var(--deep-navy-color); /* A slightly darker background for answer */
  border-radius: 0 0 8px 8px;
  color: var(--text-secondary-color);
}

details.page-the-thao__faq-item .page-the-thao__faq-answer p {
    color: var(--text-secondary-color);
}


/* Global image styles for content area */
.page-the-thao img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Responsive Styles --- */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
    .page-the-thao__hero-image-wrapper {
        height: 500px;
    }
    .page-the-thao__main-title {
        font-size: 3rem;
    }
    .page-the-thao__hero-description {
        font-size: 1.1rem;
    }
    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .page-the-thao__section {
        padding: 50px 0;
    }
    .page-the-thao__section-title {
        font-size: 2.2rem;
    }
    .page-the-thao__article-body {
        padding: 25px;
    }
    .page-the-thao__article-body h3 {
        font-size: 1.4rem;
    }
    .page-the-thao__faq-qtext {
        font-size: 1.05rem;
    }
}


/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-the-thao__hero-section {
        padding-top: 10px; /* Small top padding, body handles --header-offset */
    }
    .page-the-thao__hero-image-wrapper {
        height: 250px;
        margin-bottom: 20px;
    }
    .page-the-thao__hero-image {
        object-fit: contain !important; /* Must be contain for mobile */
        aspect-ratio: unset !important; /* Unset aspect ratio */
        width: 100% !important;
        height: auto !important;
    }
    .page-the-thao__main-title {
        font-size: 2rem !important;
        margin-bottom: 15px;
    }
    .page-the-thao__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-the-thao__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* 按钮与按钮容器 */
    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary,
    .page-the-thao a[class*="button"],
    .page-the-thao a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 1rem !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__cta-buttons {
        display: flex;
        flex-direction: column;
    }

    .page-the-thao__section {
        padding: 40px 0;
    }
    .page-the-thao__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-the-thao__section-title {
        font-size: 1.8rem !important;
        margin-bottom: 30px;
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-the-thao__article-body {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-the-thao__article-body p,
    .page-the-thao__article-body li {
        font-size: 0.95rem;
    }
    .page-the-thao__article-body h3 {
        font-size: 1.2rem;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    .page-the-thao__article-figure {
        margin: 20px auto;
        max-width: 100% !important;
        height: auto !important;
    }
    .page-the-thao__guide-list {
        padding-left: 20px;
    }

    /* Sản phẩm trưng bày (Sports Grid) */
    .page-the-thao__sports-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns for mobile */
        gap: 20px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}