/* style/sports.css */

/* Base styles for the page-sports scope */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background from shared.css */
}

.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: 70vh; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-sports__hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.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;
    padding: 20px;
    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.7);
}

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

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

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-outline,
.page-sports__btn-text {
    display: inline-block;
    padding: 12px 25px;
    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;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-sports__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

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

.page-sports__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.page-sports__btn-outline {
    background-color: transparent;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

.page-sports__btn-outline:hover {
    background-color: #017439;
    color: #ffffff;
}

.page-sports__btn-text {
    background: none;
    border: none;
    color: #017439;
    padding: 0;
    text-decoration: underline;
}

.page-sports__btn-text:hover {
    color: #005a2e;
}


/* Section Titles */
.page-sports__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

/* Intro Section */
.page-sports__intro-section {
    padding: 60px 20px;
    background-color: #1a1a2e; /* Ensure consistent background for sections */
}

.page-sports__intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-sports__intro-text p {
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-sports__intro-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.page-sports__features-section {
    padding: 60px 20px;
    background-color: #017439; /* Brand primary color background */
}

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

.page-sports__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-sports__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFF00; /* Accent color for titles */
}

.page-sports__feature-description {
    color: #f0f0f0;
}

/* Categories Section */
.page-sports__categories-section {
    padding: 60px 20px;
    background-color: #1a1a2e;
}

.page-sports__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-sports__category-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-sports__category-card:hover {
    transform: translateY(-5px);
}

.page-sports__category-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    filter: none !important; /* Ensure no image filter */
}

.page-sports__category-card .page-sports__category-title {
    font-size: 1.3em;
    padding: 15px 20px 5px;
    color: #FFFF00;
}

.page-sports__category-card .page-sports__category-title a {
    color: #FFFF00;
    text-decoration: none;
}

.page-sports__category-card .page-sports__category-title a:hover {
    text-decoration: underline;
}

.page-sports__category-card .page-sports__category-description {
    padding: 0 20px 20px;
    color: #f0f0f0;
    font-size: 0.95em;
}

/* Guide Section */
.page-sports__guide-section {
    padding: 60px 20px;
    background-color: #017439;
}

.page-sports__guide-steps {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
}

.page-sports__guide-step {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    color: #ffffff;
}

.page-sports__step-number {
    font-size: 2.5em;
    color: #FFFF00;
    margin-bottom: 15px;
    display: block;
    font-weight: bold;
}

.page-sports__step-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-sports__step-description {
    color: #f0f0f0;
    margin-bottom: 20px;
}

/* Promotions Section */
.page-sports__promotions-section {
    padding: 60px 20px;
    background-color: #1a1a2e;
}

.page-sports__promotions-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-sports__promotions-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    filter: none !important; /* Ensure no image filter */
}

.page-sports__promotions-text p {
    margin-bottom: 15px;
    color: #f0f0f0;
}

/* Responsible Gaming Section */
.page-sports__responsible-gaming-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #017439;
}

.page-sports__responsible-gaming-description {
    max-width: 800px;
    margin: 0 auto 30px;
    color: #f0f0f0;
    font-size: 1.1em;
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 60px 20px;
    background-color: #1a1a2e;
}

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

.page-sports__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
}

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

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

.page-sports__faq-item.active .page-sports__faq-toggle {
    transform: rotate(45deg);
}

.page-sports__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    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 20px;
}

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

/* CTA Section */
.page-sports__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #C30808; /* Register/Login color as CTA background */
    color: #ffffff;
}

.page-sports__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFF00;
}

.page-sports__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #f0f0f0;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__intro-grid,
    .page-sports__promotions-content {
        grid-template-columns: 1fr;
    }
    .page-sports__intro-image,
    .page-sports__promotions-image {
        order: -1; /* Image first on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-sports__hero-title {
        font-size: 2.2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    /* Buttons responsive */
    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .page-sports__btn-outline,
    .page-sports__btn-text,
    .page-sports a[class*="button"],
    .page-sports a[class*="btn"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-sports__hero-buttons,
    .page-sports__cta-buttons,
    .page-sports__button-group,
    .page-sports__btn-container {
        flex-direction: column !important;
        gap: 10px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    /* Container padding for mobile */
    .page-sports__container,
    .page-sports__intro-section,
    .page-sports__features-section,
    .page-sports__categories-section,
    .page-sports__guide-section,
    .page-sports__promotions-section,
    .page-sports__responsible-gaming-section,
    .page-sports__faq-section,
    .page-sports__cta-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

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

    /* Video responsive */
    .page-sports video,
    .page-sports__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__video-background,
    .page-sports__video-section,
    .page-sports__video-container,
    .page-sports__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-sports__video-section {
      padding-top: var(--header-offset, 120px) !important;
    }

    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__cta-title {
        font-size: 2em;
    }
    .page-sports__feature-card,
    .page-sports__category-card,
    .page-sports__guide-step {
        min-width: unset;
        max-width: 100%;
    }
}

/* Ensure no image filter for all images in content area */
.page-sports img {
    filter: none !important;
}