/* 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: #1a1a1a; /* Assuming body background from shared.css */
}

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

.page-sports__dark-bg {
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-sports__light-bg {
    background-color: #2a2a2a;
    color: #ffffff;
}

.page-sports__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    min-height: 500px;
    overflow: hidden;
    background-color: #26A9E0; /* Using brand color for hero background */
    color: #ffffff;
}

.page-sports__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Subtle overlay for text readability */
}

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

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

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    text-align: center;
}

.page-sports__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-sports__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-sports__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

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

.page-sports__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0;
}

.page-sports__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #f0f0f0;
}

.page-sports__features-section,
.page-sports__sports-showcase,
.page-sports__live-betting-section,
.page-sports__guide-section,
.page-sports__promotions-section,
.page-sports__faq-section,
.page-sports__final-cta {
    padding: 60px 0;
}

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

.page-sports__feature-card,
.page-sports__sport-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

.page-sports__feature-card:hover,
.page-sports__sport-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-sports__feature-icon,
.page-sports__sport-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-sports__feature-title,
.page-sports__sport-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-sports__feature-text,
.page-sports__sport-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-sports__live-betting-section .page-sports__section-description,
.page-sports__promotions-section .page-sports__section-description {
    margin-bottom: 30px;
}

.page-sports__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__video-link {
    display: block;
    line-height: 0;
}

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

.page-sports__section-subtext {
    text-align: center;
    font-size: 1.1em;
    margin: 20px auto 40px auto;
    color: #f0f0f0;
    max-width: 800px;
}

.page-sports__live-betting-section .page-sports__btn-primary {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.page-sports__guide-content {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-sports__guide-block {
    flex: 1;
    min-width: 300px;
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-sports__guide-subtitle {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 20px;
    text-align: center;
}

.page-sports__guide-list {
    list-style-type: decimal;
    padding-left: 20px;
    margin-bottom: 30px;
}

.page-sports__guide-list li {
    margin-bottom: 10px;
    color: #f0f0f0;
}

.page-sports__guide-block .page-sports__btn-secondary {
    display: block;
    width: fit-content;
    margin: 20px auto 0 auto;
}

.page-sports__guide-image {
    display: block;
    max-width: 800px;
    height: auto;
    margin: 50px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-sports__promotion-image {
    display: block;
    max-width: 1000px;
    height: auto;
    margin: 40px auto 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-sports__promotion-list {
    list-style-type: disc;
    max-width: 800px;
    margin: 30px auto 50px auto;
    padding-left: 20px;
    color: #f0f0f0;
    font-size: 1.1em;
}

.page-sports__promotion-list li {
    margin-bottom: 10px;
}

.page-sports__promotions-section .page-sports__btn-primary {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.page-sports__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-sports__faq-item {
    background-color: #2a2a2a;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #1a1a1a;
    border-bottom: 1px solid #3a3a3a;
}

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

.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); /* Plus to X */
}

.page-sports__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

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

.page-sports__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

.page-sports__final-cta-content {
    text-align: center;
}

.page-sports__final-cta .page-sports__section-description {
    margin-bottom: 40px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 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 {
        padding: 60px 15px;
        min-height: 400px;
    }
    .page-sports__hero-title {
        font-size: 2.2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        padding: 12px 25px;
        font-size: 0.9em;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__section-description {
        font-size: 1em;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    .page-sports__features-grid,
    .page-sports__sports-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-sports__feature-card,
    .page-sports__sport-card,
    .page-sports__guide-block {
        padding: 20px;
    }
    .page-sports__feature-title,
    .page-sports__sport-title {
        font-size: 1.3em;
    }
    .page-sports__guide-content {
        flex-direction: column;
        gap: 20px;
    }
    .page-sports__guide-list {
        padding-left: 15px;
    }
    .page-sports__promotion-list {
        padding-left: 15px;
        font-size: 1em;
    }
    .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: 10px 20px;
    }
    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-sports__cta-buttons .page-sports__btn-primary,
    .page-sports__cta-buttons .page-sports__btn-secondary {
        width: 100%;
    }
    
    /* Forced mobile responsiveness for images and videos */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports video,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__video-wrapper,
    .page-sports__container,
    .page-sports__hero-section,
    .page-sports__features-section,
    .page-sports__sports-showcase,
    .page-sports__live-betting-section,
    .page-sports__guide-section,
    .page-sports__promotions-section,
    .page-sports__faq-section,
    .page-sports__final-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-sports__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-sports__cta-button,
    .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;
    }
    .page-sports__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}