:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --text-main-color: #1F2D3D;
    --background-color: #F4F7FB;
    --card-bg-color: #FFFFFF;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}

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

.page-sports h1, .page-sports h2, .page-sports h3 {
    color: var(--text-main-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-sports h1 {
    /* Use font-weight, line-height, letter-spacing, color, max-width for H1 */
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-main-color);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.page-sports h2 {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 30px;
}

.page-sports h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
}

.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-sports__section-title {
    font-size: 2.2em;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
    color: var(--text-main-color); /* Default for light bg sections */
}

.page-sports__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

/* HERO Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background: var(--background-color);
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-sports__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure it takes full width within max-width */
}

.page-sports__hero-image {
    width: 100%;
    margin-bottom: 30px;
    order: 1; /* Image appears first */
}

.page-sports__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    order: 2; /* Content appears after image */
}

.page-sports__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
    margin-bottom: 20px;
    color: var(--text-main-color);
}

.page-sports__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #444444;
}

.page-sports__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
    border: none;
    cursor: pointer;
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-sports__cta-button:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

/* General Section Styles */
.page-sports__introduction-section,
.page-sports__top-sports-section,
.page-sports__benefits-section,
.page-sports__guide-section,
.page-sports__safety-section,
.page-sports__faq-section,
.page-sports__cta-bottom-section {
    padding: 80px 0;
}

.page-sports__introduction-section,
.page-sports__guide-section,
.page-sports__faq-section {
    background: var(--background-color); /* Light background for contrast */
}

.page-sports__top-sports-section,
.page-sports__safety-section,
.page-sports__cta-bottom-section {
    background: var(--primary-color); /* Darker background for contrast */
}

.page-sports__top-sports-section .page-sports__section-title,
.page-sports__safety-section .page-sports__section-title,
.page-sports__cta-bottom-section .page-sports__section-title {
    color: #ffffff; /* White text for dark backgrounds */
}

.page-sports__top-sports-section .page-sports__section-description,
.page-sports__safety-section .page-sports__section-description,
.page-sports__cta-bottom-section .page-sports__section-description {
    color: #e0e0e0; /* Lighter text for dark backgrounds */
}

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

.page-sports__sports-card {
    background: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-sports__sports-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-sports__sports-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.page-sports__sports-card .page-sports__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin: 0 20px 10px 20px;
}

.page-sports__sports-card .page-sports__card-text {
    font-size: 1em;
    color: #555555;
    padding: 0 20px;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-sports__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: auto; /* Push button to bottom */
    max-width: calc(100% - 40px); /* Button responsiveness */
    width: auto;
    margin-left: 20px;
    margin-right: 20px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-sports__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

/* Benefits Section */
.page-sports__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-sports__benefit-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.page-sports__benefit-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.page-sports__benefit-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-sports__benefit-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Guide Section */
.page-sports__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

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

.page-sports__step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-sports__step-title {
    font-size: 1.4em;
    color: var(--text-main-color);
    margin-bottom: 10px;
}

.page-sports__step-text {
    font-size: 1em;
    color: #555555;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-sports__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: #ffffff;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: auto; /* Push button to bottom */
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-sports__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

/* Safety Section */
.page-sports__safety-content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    margin-top: 50px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-sports__safety-content p {
    margin-bottom: 15px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-sports__safety-content strong {
    color: #ffffff;
    font-weight: bold;
}

/* FAQ Section */
.page-sports__faq-list {
    margin-top: 50px;
}

details.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
}
details.page-sports__faq-item summary.page-sports__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-sports__faq-item summary.page-sports__faq-question::-webkit-details-marker {
  display: none;
}
details.page-sports__faq-item summary.page-sports__faq-question:hover {
  background: #f5f5f5;
}
.page-sports__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color);
}
.page-sports__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-sports__faq-item .page-sports__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}
details.page-sports__faq-item .page-sports__faq-answer p {
    margin-bottom: 10px;
}

/* CTA Bottom Section */
.page-sports__cta-bottom-section {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}
.page-sports__cta-bottom-section .page-sports__section-title {
    color: #ffffff;
    margin-bottom: 20px;
}
.page-sports__cta-bottom-section .page-sports__section-description {
    color: #e0e0e0;
    margin-bottom: 40px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-image img {
        height: 500px;
    }
    .page-sports__main-title {
        font-size: clamp(2.2em, 4.5vw, 3em);
    }
    .page-sports__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* General */
    .page-sports {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-sports__container {
        padding: 0 15px;
    }

    .page-sports h1 {
        font-size: clamp(2em, 6vw, 2.8em);
    }
    .page-sports h2 {
        font-size: 1.8em;
    }
    .page-sports h3 {
        font-size: 1.4em;
    }

    /* Hero Section */
    .page-sports__hero-section {
        padding-top: 10px !important; /* body handles header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-sports__hero-image img {
        height: 300px;
        border-radius: 4px;
    }
    .page-sports__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-sports__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Sections */
    .page-sports__introduction-section,
    .page-sports__top-sports-section,
    .page-sports__benefits-section,
    .page-sports__guide-section,
    .page-sports__safety-section,
    .page-sports__faq-section,
    .page-sports__cta-bottom-section {
        padding: 40px 0;
    }

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

    /* Sports Grid */
    .page-sports__sports-grid {
        gap: 20px;
    }
    .page-sports__sports-card img {
        height: 200px;
    }
    .page-sports__sports-card .page-sports__card-title {
        font-size: 1.3em;
    }
}