/* style/sports.css */

/* Custom Colors */
:root {
    --f188-primary-color: #11A84E;
    --f188-secondary-color: #22C768;
    --f188-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --f188-card-bg: #11271B;
    --f188-background: #08160F;
    --f188-text-main: #F2FFF6;
    --f188-text-secondary: #A7D9B8;
    --f188-border: #2E7A4E;
    --f188-glow: #57E38D;
    --f188-gold: #F2C14E;
    --f188-divider: #1E3A2A;
    --f188-deep-green: #0A4B2C;
}

.page-sports {
    font-family: Arial, sans-serif;
    color: var(--f188-text-main);
    background-color: var(--f188-background); /* Rely on shared.css for body bg, this is for main content */
}

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

.page-sports__section-title {
    font-size: 2.5em;
    color: var(--f188-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-sports__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--f188-text-secondary);
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, body handles --header-offset */
    background-color: var(--f188-deep-green);
    overflow: hidden;
}

.page-sports__hero-image-wrapper {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-sports__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-sports__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Adjust to slightly overlap the image, but text is below */
    background: var(--f188-background);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--f188-border);
}

.page-sports__hero-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Use clamp for H1 font size */
    color: var(--f188-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.page-sports__hero-description {
    font-size: 1.2em;
    color: var(--f188-text-main);
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-sports__btn-primary {
    background: var(--f188-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-sports__btn-secondary {
    background: transparent;
    color: var(--f188-gold);
    border: 2px solid var(--f188-gold);
}

.page-sports__btn-secondary:hover {
    background: var(--f188-gold);
    color: var(--f188-background);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--f188-gold);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-sports__btn-link:hover {
    color: var(--f188-secondary-color);
    text-decoration: underline;
}

/* Intro Section */
.page-sports__intro-section {
    padding: 80px 0;
    background-color: var(--f188-background);
}

.page-sports__content-image {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--f188-border);
}

/* Categories Section */
.page-sports__categories-section {
    padding: 80px 0;
    background-color: var(--f188-deep-green);
}

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

.page-sports__card {
    background-color: var(--f188-card-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--f188-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: var(--f188-text-main);
}

.page-sports__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--f188-border);
}

.page-sports__card-title {
    font-size: 1.6em;
    color: var(--f188-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__card-text {
    font-size: 1em;
    color: var(--f188-text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

/* Advantages Section */
.page-sports__advantages-section {
    padding: 80px 0;
    background-color: var(--f188-background);
}

.page-sports__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-sports__feature-item {
    text-align: center;
    background-color: var(--f188-card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--f188-border);
}

.page-sports__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--f188-glow)); /* Only for glow, not color change */
}

.page-sports__feature-title {
    font-size: 1.5em;
    color: var(--f188-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-sports__feature-description {
    font-size: 1em;
    color: var(--f188-text-secondary);
    line-height: 1.6;
}

/* How to Start Section */
.page-sports__how-to-start-section {
    padding: 80px 0;
    background-color: var(--f188-deep-green);
}

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

.page-sports__step-card {
    background-color: var(--f188-card-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--f188-border);
    position: relative;
    color: var(--f188-text-main);
}

.page-sports__step-number {
    font-size: 3em;
    font-weight: bold;
    color: var(--f188-gold);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--f188-deep-green);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--f188-border);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.page-sports__step-title {
    font-size: 1.6em;
    color: var(--f188-gold);
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__step-description {
    font-size: 1em;
    color: var(--f188-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Promotions Section */
.page-sports__promotions-section {
    padding: 80px 0;
    background-color: var(--f188-background);
}

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

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

/* Tips Section */
.page-sports__tips-section {
    padding: 80px 0;
    background-color: var(--f188-deep-green);
}

.page-sports__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
}

.page-sports__list-item {
    background-color: var(--f188-card-bg);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--f188-border);
    color: var(--f188-text-main);
}

.page-sports__list-title {
    font-size: 1.5em;
    color: var(--f188-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-sports__list-description {
    font-size: 1em;
    color: var(--f188-text-secondary);
    line-height: 1.6;
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 80px 0;
    background-color: var(--f188-background);
}

.page-sports__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__faq-item {
    background-color: var(--f188-card-bg);
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--f188-border);
    overflow: hidden;
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    font-size: 1.3em;
    font-weight: bold;
    color: var(--f188-text-main);
    cursor: pointer;
    background-color: var(--f188-card-bg);
    transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
    background-color: var(--f188-deep-green);
}

.page-sports__faq-item[open] .page-sports__faq-question {
    background-color: var(--f188-deep-green);
    color: var(--f188-gold);
}

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

.page-sports__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 20px;
    color: var(--f188-gold);
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
    content: '−';
    color: var(--f188-gold);
}

.page-sports__faq-answer {
    padding: 0 30px 20px 30px;
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--f188-text-secondary);
}

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

.page-sports__faq-answer .page-sports__btn-link {
    margin-top: 0;
    display: block;
    text-align: left;
}

/* Details element specific styling */
details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

/* Final CTA Section */
.page-sports__cta-final-section {
    padding: 80px 0;
    background-color: var(--f188-deep-green);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-content {
        margin-top: -50px;
    }
}

@media (max-width: 768px) {
    .page-sports__section-title {
        font-size: 2em;
    }

    .page-sports__text-block {
        font-size: 1em;
    }

    .page-sports__hero-content {
        padding: 30px 15px;
        margin-top: -30px;
    }

    .page-sports__hero-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

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

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

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

    .page-sports__container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile image responsiveness */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-sports__card-image {
        height: 180px;
    }

    .page-sports__hero-section,
    .page-sports__intro-section,
    .page-sports__categories-section,
    .page-sports__advantages-section,
    .page-sports__how-to-start-section,
    .page-sports__promotions-section,
    .page-sports__tips-section,
    .page-sports__faq-section,
    .page-sports__cta-final-section {
        padding: 40px 0;
    }

    .page-sports__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .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;
    }

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

    .page-sports__faq-answer {
        font-size: 0.95em;
        padding: 0 20px 15px 20px;
    }

    .page-sports__feature-icon {
        width: 80px;
        height: 80px;
    }
    
    .page-sports__card,
    .page-sports__feature-item,
    .page-sports__step-card,
    .page-sports__list-item,
    .page-sports__faq-item {
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 15px;
        margin-right: 15px;
        width: calc(100% - 30px) !important; /* Account for padding */
        max-width: calc(100% - 30px) !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__hero-title {
        font-size: clamp(1.6em, 8vw, 2.2em);
    }
}