/* style/sports.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --button-register-color: #C30808;
    --button-login-color: #C30808;
    --background-color: #FFFFFF;
    --font-login-register-color: #FFFF00;
    --text-on-dark-bg: #ffffff;
    --text-on-light-bg: #333333;
    --card-bg-dark: rgba(255, 255, 255, 0.1);
    --card-bg-light: #ffffff;
    --border-color: #e0e0e0;
}

.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark-bg); /* Default text color for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with shared.css body background */
}

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by sticky header */
}

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

.page-sports__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.page-sports__hero-content {
    position: relative;
    z-index: 3;
    color: var(--secondary-color);
    max-width: 900px;
    padding: 20px;
}

.page-sports__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-sports__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
}

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

/* General Section Styling */
.page-sports__intro-section, .page-sports__features-section, .page-sports__video-section, .page-sports__guide-section, .page-sports__responsible-gaming-section, .page-sports__faq-section, .page-sports__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-sports__dark-bg {
    background-color: #0a0a0a;
    color: var(--text-on-dark-bg);
}

.page-sports__light-bg {
    background-color: var(--background-color);
    color: var(--text-on-light-bg);
}

.page-sports__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.page-sports__dark-bg .page-sports__section-title {
    color: var(--secondary-color);
}

.page-sports__light-bg .page-sports__section-title {
    color: var(--text-on-light-bg);
}

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

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

.page-sports__btn-primary {
    background-color: var(--button-register-color);
    color: var(--font-login-register-color);
    border: 2px solid var(--button-register-color);
}

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

.page-sports__btn-secondary {
    background-color: transparent;
    color: var(--font-login-register-color);
    border: 2px solid var(--button-login-color);
}

.page-sports__btn-secondary:hover {
    background-color: var(--button-login-color);
    color: var(--secondary-color);
}

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

.page-sports__feature-card, .page-sports__step-card {
    background-color: var(--card-bg-dark);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-on-dark-bg);
}

.page-sports__feature-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-sports__card-title, .page-sports__step-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-sports__card-text, .page-sports__step-text {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Video Section */
.page-sports__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
}

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.page-sports__video-caption {
    margin-top: 20px;
    font-style: italic;
    color: var(--text-on-light-bg);
}

/* FAQ Section */
.page-sports__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__faq-item {
    background-color: var(--card-bg-dark);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--secondary-color);
    font-size: 1.2em;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.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 30px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    text-align: left;
    color: var(--text-on-dark-bg);
}

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

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

.page-sports__faq-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-sports__faq-link:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 2.8em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__features-grid, .page-sports__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        height: 70vh;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-sports__hero-title {
        font-size: 2em;
        line-height: 1.2;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .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;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__section-description {
        font-size: 0.95em;
    }
    .page-sports__intro-section, .page-sports__features-section, .page-sports__video-section, .page-sports__guide-section, .page-sports__responsible-gaming-section, .page-sports__faq-section, .page-sports__cta-section {
        padding: 60px 0;
    }
    .page-sports__container {
        padding: 0 15px;
    }
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__video-section,
    .page-sports__video-container,
    .page-sports__video-wrapper,
    .page-sports__cta-buttons,
    .page-sports__button-group,
    .page-sports__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-sports video, .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__video-wrapper {
        padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
        margin: 20px auto !important;
    }
    .page-sports__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-sports__faq-answer {
        padding: 0 20px;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 1.8em;
    }
    .page-sports__section-title {
        font-size: 1.5em;
    }
    .page-sports__feature-card, .page-sports__step-card {
        padding: 20px;
    }
    .page-sports__card-title, .page-sports__step-title {
        font-size: 1.4em;
    }
}