/* style/sports.css */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

/* Base container for content sections */
.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-sports__section-title {
    font-size: 2.5em;
    color: #ffffff; /* White for dark sections */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

/* Text blocks */
.page-sports__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Slightly off-white for better readability */
}

/* Links within text blocks */
.page-sports__link {
    color: #FFFF00; /* Yellow for links */
    text-decoration: underline;
}

.page-sports__link:hover {
    color: #C30808; /* Red on hover */
    text-decoration: none;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    overflow: hidden;
    padding: 80px 20px;
    box-sizing: border-box;
    background-color: #017439; /* Brand color for hero background */
}

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

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

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

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

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

.page-sports__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* 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;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-sports__btn-primary {
    background-color: #C30808; /* Red for primary action (Register/Login) */
    color: #FFFF00; /* Yellow for text */
    border: 2px solid #C30808;
}

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

.page-sports__btn-secondary {
    background-color: transparent;
    color: #ffffff; /* White text for secondary */
    border: 2px solid #ffffff;
}

.page-sports__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439; /* Brand green text on hover */
}

/* Section specific styling */
.page-sports__overview-section,
.page-sports__advantages-section,
.page-sports__tips-section {
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff; /* Light text */
    padding: 60px 0;
}

.page-sports__types-section,
.page-sports__guide-section,
.page-sports__faq-section {
    background-color: #1a1a1a; /* Slightly lighter dark background */
    color: #ffffff; /* Light text */
    padding: 60px 0;
}

/* Content images */
.page-sports__content-image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

/* Card styling */
.page-sports__card,
.page-sports__step-card,
.page-sports__tip-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
    color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-sports__card.page-sports__light-bg,
.page-sports__step-card.page-sports__light-bg,
.page-sports__tip-card.page-sports__light-bg {
    background-color: #ffffff; /* White background for specific light cards */
    color: #333333; /* Dark text for light background */
}

.page-sports__card.page-sports__light-bg .page-sports__link,
.page-sports__step-card.page-sports__light-bg .page-sports__link,
.page-sports__tip-card.page-sports__light-bg .page-sports__link {
    color: #017439; /* Brand green for links on light background */
}

.page-sports__card.page-sports__light-bg .page-sports__link:hover,
.page-sports__step-card.page-sports__light-bg .page-sports__link:hover,
.page-sports__tip-card.page-sports__light-bg .page-sports__link:hover {
    color: #C30808; /* Red on hover */
}


.page-sports__card:hover,
.page-sports__step-card:hover,
.page-sports__tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-sports__card-title,
.page-sports__step-title,
.page-sports__tip-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #017439; /* Brand green for titles on light cards */
}

.page-sports__card.page-sports__dark-bg .page-sports__card-title,
.page-sports__step-card.page-sports__dark-bg .page-sports__step-title,
.page-sports__tip-card.page-sports__dark-bg .page-sports__tip-title {
    color: #FFFF00; /* Yellow for titles on dark cards */
}

.page-sports__card-text,
.page-sports__step-description,
.page-sports__tip-description {
    font-size: 1em;
    line-height: 1.5;
    color: #f0f0f0;
}

.page-sports__card.page-sports__light-bg .page-sports__card-text,
.page-sports__step-card.page-sports__light-bg .page-sports__step-description,
.page-sports__tip-card.page-sports__light-bg .page-sports__tip-description {
    color: #333333; /* Dark text for light cards */
}

/* Advantage List */
.page-sports__advantage-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-sports__advantage-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-sports__advantage-item:hover {
    transform: translateY(-5px);
}

.page-sports__advantage-title {
    font-size: 1.4em;
    color: #FFFF00;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__advantage-description {
    font-size: 1em;
    line-height: 1.5;
    color: #f0f0f0;
}

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

.page-sports__faq-item {
    background-color: #ffffff; /* White background for FAQ items */
    color: #333333; /* Dark text for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    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: 18px 25px;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

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

.page-sports__faq-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    margin: 0;
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'X' or '-' */
}

.page-sports__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding */
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 25px; /* Padding when active */
}

.page-sports__faq-answer p {
    margin-bottom: 15px;
    font-size: 1em;
    color: #555555;
}

.page-sports__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

.page-sports__faq-answer a:hover {
    color: #C30808;
}

/* CTA buttons container for guide section */
.page-sports__cta-buttons {
    text-align: center;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }
    .page-sports__hero-description {
        font-size: 1.2em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-sports {
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
        font-size: 16px;
        line-height: 1.6;
    }

    .page-sports__container,
    .page-sports__hero-section,
    .page-sports__overview-section,
    .page-sports__types-section,
    .page-sports__advantages-section,
    .page-sports__guide-section,
    .page-sports__tips-section,
    .page-sports__faq-section,
    .page-sports__grid,
    .page-sports__steps-grid,
    .page-sports__tips-grid,
    .page-sports__advantage-list,
    .page-sports__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

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

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

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

    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .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: 12px 20px !important;
    }

    .page-sports__hero-buttons,
    .page-sports__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-sports__card-image {
        height: auto;
    }

    .page-sports__card,
    .page-sports__step-card,
    .page-sports__tip-card,
    .page-sports__advantage-item,
    .page-sports__faq-item {
        padding: 20px !important;
    }

    .page-sports__faq-question {
        padding: 15px 20px !important;
    }

    .page-sports__faq-answer {
        padding: 0 20px !important;
    }

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

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__section-title {
        font-size: 1.5em;
    }
    .page-sports__hero-buttons {
        gap: 10px;
    }
}