/* style/sports.css */

/* Base Styles for .page-sports to ensure contrast with body background */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Main content area typically doesn't have its own background if body has one */
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    padding-bottom: 60px;
}

.page-sports__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

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

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

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

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

/* General Container */
.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Titles */
.page-sports__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #26A9E0; /* Brand color for titles */
    font-weight: bold;
}

/* Text Blocks */
.page-sports__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* 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;
    text-align: center;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-sports__btn-primary {
    background-color: #26A9E0; /* Main brand color */
    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__centered-button {
    display: block;
    margin: 40px auto 0 auto;
    width: fit-content;
    min-width: 200px;
}

/* Card Styles */
.page-sports__card {
    background-color: rgba(255, 255, 255, 0.1); /* Light transparent background on dark sections */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #ffffff;
    height: 100%; /* Ensure cards in a grid have equal height */
    box-sizing: border-box;
}

.page-sports__card-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-top: 15px;
    margin-bottom: 10px;
}

.page-sports__card p {
    font-size: 1em;
    margin-bottom: 15px;
}

.page-sports__card-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto; /* Push link to bottom if card height varies */
}

.page-sports__card-link:hover {
    text-decoration: underline;
}

/* Image Styles */
.page-sports img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    filter: none; /* Ensure no filter is applied */
}

.page-sports__feature-image,
.page-sports__security-image {
    margin-bottom: 20px;
    width: 100%; /* Ensure images take full width of card/container */
    min-height: 200px; /* Minimum size requirement */
}

/* Section specific styles */
.page-sports__intro-section,
.page-sports__live-betting-section,
.page-sports__getting-started-section,
.page-sports__security-section,
.page-sports__cta-section {
    padding: 80px 0;
}

.page-sports__features-section,
.page-sports__promotions-section,
.page-sports__strategies-section,
.page-sports__faq-section {
    padding: 80px 0;
}

/* Background Color Handling based on body background */
/* Body background is #1a1a1a (dark) */
.page-sports__dark-bg {
    background-color: #1e1e1e; /* Slightly lighter than body for contrast */
    color: #ffffff;
}

.page-sports__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text on light background */
}

.page-sports__light-bg .page-sports__section-title {
    color: #26A9E0; /* Brand color for titles on light background */
}

.page-sports__light-bg .page-sports__card {
    background-color: #f8f8f8; /* Light card on light background */
    color: #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-sports__light-bg .page-sports__card-title {
    color: #333333;
}

.page-sports__light-bg .page-sports__card-link {
    color: #26A9E0;
}

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

/* Strategy List */
.page-sports__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
}

.page-sports__strategy-list li {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding: 20px;
    border-left: 5px solid #26A9E0;
    border-radius: 8px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-sports__list-highlight {
    color: #26A9E0;
}

/* FAQ Section */
.page-sports__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.page-sports__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    border-radius: 8px;
    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: #ffffff;
    cursor: pointer;
    background-color: #26A9E0; /* Brand color for question background */
    transition: background-color 0.3s ease;
}

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

.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 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 20px 25px;
}

/* Call to Action Section */
.page-sports__cta-content {
    text-align: center;
}

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

@media (max-width: 768px) {
    .page-sports__hero-section {
        min-height: 400px;
        padding-bottom: 40px;
    }
    .page-sports__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-sports__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-sports__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        width: 100%;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-sports__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-sports__text-block {
        font-size: 1em;
    }
    .page-sports__features-grid,
    .page-sports__promotions-grid,
    .page-sports__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-sports__intro-section,
    .page-sports__live-betting-section,
    .page-sports__getting-started-section,
    .page-sports__security-section,
    .page-sports__cta-section,
    .page-sports__features-section,
    .page-sports__promotions-section,
    .page-sports__strategies-section,
    .page-sports__faq-section {
        padding: 60px 0;
    }
    .page-sports__container {
        padding: 0 15px;
    }

    /* Mobile image responsiveness */
    .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__hero-section,
    .page-sports__features-section,
    .page-sports__promotions-section,
    .page-sports__getting-started-section,
    .page-sports__strategies-section,
    .page-sports__security-section,
    .page-sports__faq-section,
    .page-sports__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    /* Important: Ensure padding-top for video/hero section in mobile */
    .page-sports__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Mobile button responsiveness */
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Button container mobile adaptation */
    .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;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    
    .page-sports__hero-cta {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Video responsiveness (if any, though none currently in HTML) */
    .page-sports video,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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;
    }
}