/* style/sports.css */
/* Base styles for the sports page, scoped to .page-sports */
.page-sports {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Default text color for the page */
    background-color: var(--bg-color); /* Page background, inherited from body/shared */
    line-height: 1.6;
    font-size: 16px;
}

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

/* Ensure body has padding-top from shared.css, no double padding here */
.page-sports__hero-section {
    position: relative;
    padding: 60px 0 40px; /* Adjusted padding, small top padding as body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--bg-color); /* Ensure section background matches body */
}

.page-sports__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
}

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

.page-sports__hero-content {
    max-width: 900px;
    margin-top: 40px; /* Space between image and text */
    padding: 0 20px;
    color: var(--text-main-color);
}

.page-sports__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--gold-color); /* Highlight H1 with gold */
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-sports__hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary-color);
    margin-bottom: 30px;
}

.page-sports__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    max-width: 100%; /* Ensure button doesn't overflow container */
}

.page-sports__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff;
    border: none;
}

.page-sports__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-sports__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-link {
    color: var(--primary-color);
    border: none;
    background: none;
    padding: 0;
    text-align: left;
    display: block; /* Make it a block element to control width if needed */
    font-weight: 600;
}
.page-sports__btn-link:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

.page-sports__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-sports__btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

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

.page-sports__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-sports__text-block {
    font-size: 1.1rem;
    color: var(--text-main-color);
    margin-bottom: 20px;
    text-align: justify;
}

.page-sports__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Section specific styles */
.page-sports__overview-section,
.page-sports__types-section,
.page-sports__promotions-section,
.page-sports__tips-section {
    background-color: var(--bg-color);
    color: var(--text-main-color);
    padding: 60px 0;
}

.page-sports__why-choose-section,
.page-sports__how-to-start-section,
.page-sports__cta-section {
    background-color: var(--card-bg-color); /* Darker background for contrast sections */
    color: var(--text-main-color);
    padding: 60px 0;
}

.page-sports__video-section,
.page-sports__faq-section {
    padding: 40px 0;
    background-color: var(--card-bg-color); /* Use a darker background for the video section */
    color: var(--text-main-color);
    text-align: center;
}

.page-sports__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px; /* Max width for video */
    margin: 0 auto 20px;
    background-color: #000; /* Black background for video player */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-sports__video-player {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

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

.page-sports__card {
    background-color: var(--card-bg-color); /* Darker card background */
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-main-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-sports__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-sports__card-text {
    font-size: 1em;
    color: var(--text-secondary-color);
    flex-grow: 1; /* Allow text to take up available space */
    margin-bottom: 15px;
}

.page-sports__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency in cards */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-sports__card-link {
    display: inline-block;
    margin-top: auto; /* Push link to bottom */
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

.page-sports__numbered-list,
.page-sports__bullet-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.page-sports__list-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--text-main-color);
    position: relative;
    padding-left: 60px; /* Space for step number */
}

.page-sports__numbered-list .page-sports__list-item::before {
    content: counter(list-item);
    counter-increment: list-item;
    position: absolute;
    left: 20px;
    top: 20px;
    background: var(--primary-color);
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2em;
}

.page-sports__list-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-sports__list-text {
    font-size: 1em;
    color: var(--text-secondary-color);
    margin-bottom: 10px;
}

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

.page-sports__faq-item {
    background-color: var(--bg-color); /* Lighter than section background for contrast */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main-color);
    transition: background-color 0.3s ease;
}

.page-sports__faq-item[open] {
    background-color: var(--deep-green-color); /* Slightly different color when open */
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main-color);
    position: relative;
    list-style: none; /* For details/summary */
    -webkit-tap-highlight-color: transparent; /* Prevent blue highlight on mobile */
}

.page-sports__faq-question::-webkit-details-marker {
    display: none;
}

.page-sports__faq-qtext {
    flex-grow: 1;
    color: var(--gold-color); /* Question text in gold */
}

.page-sports__faq-toggle {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-sports__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.1rem;
    color: var(--text-secondary-color);
    line-height: 1.6;
}

.page-sports__text-center {
    text-align: center;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-sports__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-sports__section-title {
        font-size: 2rem;
    }
    .page-sports__hero-image-wrapper {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 30px;
    }
    .page-sports__hero-content {
        margin-top: 20px;
        padding: 0 15px;
    }
    .page-sports__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 10px;
    }
    .page-sports__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-sports__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .page-sports__btn-large,
    .page-sports a[class*="button"],
    .page-sports a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        text-align: center;
    }
    .page-sports__container {
        padding: 20px 15px;
    }
    .page-sports__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-sports__text-block {
        font-size: 1em;
    }
    .page-sports__features-grid,
    .page-sports__type-cards-grid,
    .page-sports__promotions-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .page-sports__card {
        padding: 20px;
    }
    .page-sports__card-title {
        font-size: 1.3rem;
    }
    .page-sports__card-image {
        height: 180px;
        min-width: 200px;
        min-height: 200px;
    }
    .page-sports__numbered-list,
    .page-sports__bullet-list {
        margin: 20px 0;
    }
    .page-sports__list-item {
        padding: 20px 20px 20px 50px;
    }
    .page-sports__numbered-list .page-sports__list-item::before {
        left: 15px;
        top: 15px;
        width: 25px;
        height: 25px;
        font-size: 1em;
    }
    .page-sports__list-title {
        font-size: 1.1rem;
    }
    .page-sports__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-sports__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }
    /* Ensure all images are responsive */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Ensure all containers with images/content are responsive */
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__features-grid,
    .page-sports__type-cards-grid,
    .page-sports__promotions-grid,
    .page-sports__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden; /* Prevent horizontal scroll from content */
    }
    .page-sports__cta-buttons {
        flex-wrap: wrap !important;
        gap: 15px;
    }
    /* Responsive video styles */
    .page-sports__video-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 20px;
    }
    .page-sports__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin: 0 auto 15px;
    }
    .page-sports__video-player {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}