/* style/sports.css */
.page-sports {
    color: #ffffff; /* Default text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-sports__section {
    padding: 60px 0;
    text-align: center;
}

.page-sports__dark-bg {
    background-color: #017439; /* Primary brand color for dark sections */
    color: #ffffff;
}

.page-sports__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.page-sports__dark-bg .page-sports__section-title {
    color: #ffffff;
}

.page-sports__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.page-sports__dark-bg .page-sports__text-block {
    color: #ffffff;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-sports__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-sports__hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.page-sports__video-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
}

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-sports__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-sports__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-sports__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.page-sports__btn-primary, .page-sports__btn-secondary, .page-sports__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
}

.page-sports__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-sports__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-sports__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-sports__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

.page-sports__btn-link {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-sports__btn-link:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

.page-sports__cta-buttons--center {
    text-align: center;
}

/* Introduction Section */
.page-sports__introduction-section {
    background-color: #f8f8f8; /* Light background for contrast */
    color: #333333;
}

.page-sports__introduction-section .page-sports__section-title,
.page-sports__introduction-section .page-sports__text-block {
    color: #333333;
}

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

.page-sports__sport-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-sports__sport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-sports__sport-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    max-width: 100%;
}

.page-sports__sport-card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-sports__sport-card-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

/* Why Choose Section */
.page-sports__why-choose-section {
    background-color: #f8f8f8;
    color: #333333;
}

.page-sports__why-choose-section .page-sports__section-title,
.page-sports__why-choose-section .page-sports__text-block {
    color: #333333;
}

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

.page-sports__feature-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-sports__feature-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #017439;
}

.page-sports__feature-description {
    font-size: 1em;
    color: #555555;
}

.page-sports__feature-description a {
    color: #017439;
    text-decoration: underline;
}

.page-sports__feature-description a:hover {
    color: #005a2d;
}

/* App Download Section */
.page-sports__app-download-section {
    padding: 80px 0;
}

.page-sports__app-download-content {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
}

.page-sports__app-download-text {
    flex: 1;
}

.page-sports__app-download-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-sports__app-download-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Min size constraint */
    min-height: 200px;
    width: 600px; /* Example display width */
    height: 800px; /* Example display height */
    object-fit: contain;
}

.page-sports__download-steps {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-sports__download-steps li {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.5;
}

.page-sports__download-steps li strong {
    color: #FFFF00;
}

/* Registration Section */
.page-sports__registration-section {
    background-color: #f8f8f8;
    color: #333333;
}

.page-sports__registration-section .page-sports__section-title,
.page-sports__registration-section .page-sports__text-block {
    color: #333333;
}

.page-sports__registration-steps {
    list-style: decimal;
    padding-left: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    color: #333333;
}

.page-sports__registration-steps li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-sports__registration-steps li strong {
    color: #017439;
}

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

.page-sports__promotion-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-sports__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-sports__promotion-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    max-width: 100%;
}

.page-sports__promotion-card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #FFFF00;
}

.page-sports__promotion-card-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-sports__faq-section {
    background-color: #f8f8f8;
    color: #333333;
}

.page-sports__faq-section .page-sports__section-title,
.page-sports__faq-section .page-sports__text-block {
    color: #333333;
}

.page-sports__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-sports__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
    background-color: #e5e5e5;
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
    transform: rotate(45deg);
}

.page-sports__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #555555;
    font-size: 1em;
}

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important; /* Sufficiently large for content */
    padding: 15px 25px 25px 25px;
}

.page-sports__faq-answer p {
    margin-bottom: 10px;
    color: #555555;
}

.page-sports__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

.page-sports__faq-answer a:hover {
    color: #005a2d;
}

/* Conclusion Section */
.page-sports__conclusion-section {
    padding: 80px 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }
    .page-sports__hero-description {
        font-size: 1.1em;
    }
    .page-sports__app-download-content {
        flex-direction: column;
        text-align: center;
    }
    .page-sports__app-download-image-wrapper {
        order: -1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        min-height: 60vh;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-sports__hero-content {
        padding: 15px;
    }
    .page-sports__hero-title {
        font-size: 2.2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__btn-primary, .page-sports__btn-secondary, .page-sports__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-sports__cta-buttons {
        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-sports__cta-buttons--center {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__text-block {
        font-size: 0.95em;
    }
    .page-sports__sport-card, .page-sports__feature-card, .page-sports__promotion-card {
        padding: 15px;
    }
    .page-sports__sport-card-image, .page-sports__promotion-card-image {
        height: 180px;
    }
    .page-sports__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-sports__faq-answer {
        padding: 0 20px;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 10px 20px 20px 20px;
    }
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports video,
    .page-sports__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__video-section,
    .page-sports__video-container,
    .page-sports__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 1.8em;
    }
    .page-sports__hero-description {
        font-size: 0.9em;
    }
    .page-sports__section-title {
        font-size: 1.5em;
    }
    .page-sports__faq-question {
        font-size: 1em;
        padding: 12px 15px;
    }
    .page-sports__faq-answer {
        padding: 0 15px;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 8px 15px 15px 15px;
    }
}