/* style/sports.css */

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

/* Base styles for the page content, considering body background is dark */
.page-sports {
    background-color: var(--background-color-page);
    color: var(--text-main); /* Light text on dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-sports h1,
.page-sports h2,
.page-sports h3,
.page-sports h4,
.page-sports h5,
.page-sports h6 {
    color: var(--text-main); /* Light text for titles */
    margin-bottom: 1em;
    line-height: 1.2;
}

.page-sports a {
    color: var(--gold-color); /* Gold for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-sports a:hover {
    color: var(--glow-color); /* Lighter gold on hover */
}

/* Section styling */
.page-sports__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden; /* Ensure content does not overflow */
}

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

.page-sports__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    color: var(--gold-color);
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-sports__text-block {
    margin-bottom: 1em;
    color: var(--text-secondary); /* Secondary text for paragraphs */
    font-size: 1.1em;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    min-height: 600px;
    text-align: center;
    overflow: hidden;
}

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

.page-sports__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability, but no color change */
}

.page-sports__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text block */
    border-radius: 10px;
}

.page-sports__hero-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* H1 font-size clamp */
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
}

.page-sports__hero-description {
    font-size: 1.3em;
    color: var(--text-main);
    margin-bottom: 30px;
}

.page-sports__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__link-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    min-width: 180px; /* Minimum width for buttons */
}

.page-sports__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main); /* White text on green gradient */
    border: none;
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-sports__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
}

.page-sports__btn-secondary {
    background: transparent;
    color: var(--gold-color); /* Gold text on transparent background */
    border: 2px solid var(--gold-color);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.2);
}

.page-sports__btn-secondary:hover {
    background: var(--gold-color);
    color: var(--background-color-page); /* Dark text on gold hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

.page-sports__link-button {
    background: var(--primary-color);
    color: var(--text-main);
    border: none;
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-sports__link-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}


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

.page-sports__grid-item {
    background: var(--card-bg); /* Dark green card background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-sports__grid-title {
    font-size: 1.8em;
    color: var(--gold-color);
    margin-bottom: 15px;
    text-align: left;
}

.page-sports__image-content {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--divider-color);
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

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

.page-sports__step-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

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

.page-sports__faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main);
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2em;
    color: var(--text-main);
    background-color: var(--deep-green); /* Slightly different background for question */
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-sports__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for details/summary */
}

.page-sports__faq-item[open] .page-sports__faq-question {
    background-color: var(--primary-color); /* Highlight active FAQ */
}

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

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

.page-sports__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-sports__faq-item.active .page-sports__faq-answer,
.page-sports__faq-item[open] .page-sports__faq-answer {
    max-height: 2000px; /* Arbitrarily large to allow content to show */
    padding-top: 20px;
    padding-bottom: 20px;
}

.page-sports__faq-item.active .page-sports__faq-question,
.page-sports__faq-item[open] .page-sports__faq-question {
    background-color: var(--primary-color);
}

/* Conclusion Section specific styling */
.page-sports__conclusion-section {
    text-align: center;
    padding-bottom: 80px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }

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

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

    .page-sports__hero-section {
        min-height: 500px;
        padding-bottom: 40px;
    }

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

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

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

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

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

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

    .page-sports__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-sports__grid-layout,
    .page-sports__steps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    /* Mobile container responsiveness for images/videos */
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__hero-image-wrapper,
    .page-sports__grid-item,
    .page-sports__step-card,
    .page-sports__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Ensure video elements are responsive (though no video in this specific HTML) */
    .page-sports video,
    .page-sports__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    /* Video containers mobile adaptation */
    .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;
    }

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