/* style/sports.css */

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

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

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

.page-sports__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-sports__section-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Color Schemes */
.page-sports__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-sports__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__sport-title,
.page-sports__light-bg .page-sports__feature-title,
.page-sports__light-bg .page-sports__faq-question {
    color: #017439;
}

.page-sports__light-bg .page-sports__section-text,
.page-sports__light-bg .page-sports__sport-description,
.page-sports__light-bg .page-sports__feature-description,
.page-sports__light-bg .page-sports__benefits-list li,
.page-sports__light-bg .page-sports__steps-list li,
.page-sports__light-bg .page-sports__faq-answer p {
    color: #333333;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-sports__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 900px;
    padding: 0 15px;
}

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

.page-sports__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
}

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

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
    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;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-sports__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

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

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

.page-sports__light-bg .page-sports__btn-secondary {
    color: #017439;
    border-color: #017439;
}

.page-sports__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

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

.page-sports__cta-wrapper {
    margin-top: 40px;
}

/* Sports Grid */
.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: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__light-bg .page-sports__sport-card {
    background: #f9f9f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-sports__sport-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: bold;
}

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

.page-sports__light-bg .page-sports__sport-description {
    color: #555555;
}

/* Video Section */
.page-sports__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
}

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
    display: block;
    max-width: 100%;
}

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

.page-sports__feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__light-bg .page-sports__feature-item {
    background: #f9f9f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-sports__feature-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: bold;
}

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

.page-sports__light-bg .page-sports__feature-description {
    color: #555555;
}

/* Benefits List */
.page-sports__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__benefits-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-sports__light-bg .page-sports__benefits-item {
    background: #f9f9f9;
    color: #333333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-sports__benefits-item strong {
    color: #FFFF00;
}

.page-sports__light-bg .page-sports__benefits-item strong {
    color: #017439;
}

/* Steps List */
.page-sports__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__steps-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-sports__light-bg .page-sports__steps-item {
    background: #f9f9f9;
    color: #333333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-sports__steps-item strong {
    color: #FFFF00;
}

.page-sports__light-bg .page-sports__steps-item strong {
    color: #017439;
}

/* FAQ Section */
.page-sports__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-sports__faq-item {
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-sports__light-bg .page-sports__faq-item {
    background: #f9f9f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-sports__light-bg .page-sports__faq-question {
    color: #017439;
    background: #e6f7ed;
    border-bottom: 1px solid #c9e6d4;
}

.page-sports__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.page-sports__light-bg .page-sports__faq-question:hover {
    background-color: #d1edda;
}

.page-sports__faq-qtext {
    flex-grow: 1;
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    line-height: 1;
}

.page-sports__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-sports__light-bg .page-sports__faq-answer {
    color: #555555;
}

/* For <details> tag, hide default marker */
.page-sports__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-sports__faq-item summary::marker {
    display: none;
}

/* Image styles */
.page-sports__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

.page-sports__image-responsive {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 2.8em;
    }

    .page-sports__hero-description {
        font-size: 1.1em;
    }

    .page-sports__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-sports__hero-title {
        font-size: 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 {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-sports__section {
        padding: 40px 15px;
    }

    .page-sports__section-title {
        font-size: 1.8em;
    }

    .page-sports__section-text {
        font-size: 0.95em;
    }

    .page-sports__sports-grid,
    .page-sports__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-sports__sport-card,
    .page-sports__feature-item {
        padding: 20px;
    }

    .page-sports__sport-title,
    .page-sports__feature-title {
        font-size: 1.5em;
    }

    .page-sports__benefits-item,
    .page-sports__steps-item,
    .page-sports__faq-question,
    .page-sports__faq-answer {
        padding: 15px;
        font-size: 0.95em;
    }

    .page-sports img,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-sports__section,
    .page-sports__container,
    .page-sports__video-section,
    .page-sports__video-container,
    .page-sports__video-wrapper,
    .page-sports__cta-buttons,
    .page-sports__button-group,
    .page-sports__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-sports__hero-section {
        height: 400px;
    }

    .page-sports__hero-title {
        font-size: 1.8em;
    }

    .page-sports__hero-description {
        font-size: 0.9em;
    }

    .page-sports__section-title {
        font-size: 1.5em;
    }
}