/* style/sports.css */

/* Base Styles for Page Sports */
.page-sports {
    color: #ffffff; /* Light text for dark body background */
    background-color: #1a1a2e; /* Dark background from shared.css */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-sports__dark-bg {
    background-color: #1a1a2e;
    color: #ffffff;
}

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

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

.page-sports__light-bg .page-sports__section-title {
    color: #017439;
}

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

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

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

.page-sports__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Yellow for prominence */
    line-height: 1.2;
}

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

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

.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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.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 #017439; /* Main color for border */
}

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

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

.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;
    filter: brightness(0.6); /* Darken video for text readability */
    cursor: pointer;
}

/* Advantages Section */
.page-sports__advantages-section {
    padding: 80px 0;
}

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

.page-sports__advantage-card {
    background-color: #f0f0f0;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-sports__advantage-icon {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-sports__advantage-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
}

.page-sports__advantage-text {
    font-size: 1em;
    color: #555555;
}

/* Popular Sports Section */
.page-sports__popular-sports-section {
    padding: 80px 0;
}

.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;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

.page-sports__sport-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.page-sports__sport-card h3 {
    font-size: 1.8em;
    color: #FFFF00;
    margin: 20px 20px 10px 20px;
}

.page-sports__sport-card p {
    padding: 0 20px 20px 20px;
    flex-grow: 1;
}

.page-sports__btn-link {
    display: block;
    padding: 10px 20px;
    background-color: #017439;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

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

/* Strategy Section */
.page-sports__strategy-section {
    padding: 80px 0;
}

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

.page-sports__strategy-item {
    background-color: #f0f0f0;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__strategy-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
}

.page-sports__strategy-text {
    font-size: 1em;
    color: #555555;
}

/* Promotions Section */
.page-sports__promotions-section {
    padding: 80px 0;
}

.page-sports__promotion-cards {
    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;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

.page-sports__promotion-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.page-sports__promotion-title {
    font-size: 1.8em;
    color: #FFFF00;
    margin: 20px 20px 10px 20px;
}

.page-sports__promotion-text {
    padding: 0 20px 20px 20px;
    flex-grow: 1;
}

.page-sports__promotion-card .page-sports__btn-primary {
    margin: 0 20px 20px 20px;
    padding: 12px 25px;
}

.page-sports__cta-buttons--center {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 80px 0;
}

.page-sports__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #ffffff;
    color: #017439;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

.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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
}

.page-sports__faq-answer p {
    margin-bottom: 0;
}

/* CTA Join Section */
.page-sports__cta-join-section {
    padding: 80px 0;
    text-align: center;
}

.page-sports__cta-join-section .page-sports__hero-cta-buttons {
    margin-top: 40px;
}

/* 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;
    }

    .page-sports__sport-image, .page-sports__promotion-image {
        height: 200px;
    }
}

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

    .page-sports__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-sports__hero-content {
        padding: 20px;
    }

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

    .page-sports__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-sports__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

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

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

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

    .page-sports__advantages-section,
    .page-sports__popular-sports-section,
    .page-sports__strategy-section,
    .page-sports__promotions-section,
    .page-sports__faq-section,
    .page-sports__cta-join-section {
        padding: 40px 0;
    }

    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-sports__hero-video-wrapper,
    .page-sports__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }

    .page-sports__advantage-card,
    .page-sports__sport-card,
    .page-sports__strategy-item,
    .page-sports__promotion-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-sports__advantages-grid,
    .page-sports__sports-grid,
    .page-sports__strategy-grid,
    .page-sports__promotion-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-sports__advantage-icon {
        width: 150px;
        height: 150px;
    }

    .page-sports__sport-card h3,
    .page-sports__promotion-title {
        font-size: 1.5em;
    }

    .page-sports__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-sports__faq-answer {
        padding: 0 15px;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 15px !important;
    }

    .page-sports__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-sports__cta-buttons.page-sports__cta-buttons--center {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 1.8em;
    }
    .page-sports__section-title {
        font-size: 1.5em;
    }
}