/* style/sports.css */

/* Base styles for the page content */
.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 from shared.css */
}

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

/* Section Styling */
.page-sports__section {
    padding: 60px 0;
}

.page-sports__dark-section {
    background-color: #1a1a2e; /* From body background, for contrast */
    color: #ffffff;
}

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

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

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

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

.page-sports__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency in cards */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Min size enforcement */
    min-height: 200px; /* Min size enforcement */
}

.page-sports__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #017439; /* Brand color for titles */
}

.page-sports__card-text {
    font-size: 1em;
    color: #555555;
    flex-grow: 1;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    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;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

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

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

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

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

/* Hero Section Specific */
.page-sports__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #1a1a2e; /* Fallback */
}

.page-sports__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    min-width: 200px; /* Min size enforcement */
    min-height: 200px; /* Min size enforcement */
}

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

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

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

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

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

/* Why Choose Us Section */
.page-sports__why-choose-us {
    background-color: #f5f5f5; /* Light background for contrast */
    color: #333333;
}
.page-sports__why-choose-us .page-sports__section-title {
    color: #017439;
}
.page-sports__why-choose-us .page-sports__section-description {
    color: #555555;
}

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

.page-sports__feature-card {
    padding: 30px;
    background-color: #ffffff;
    color: #333333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-sports__feature-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 10px;
}

.page-sports__feature-text {
    font-size: 1em;
    color: #555555;
}

/* Popular Sports Section */
.page-sports__popular-sports .page-sports__section-title {
    color: #ffffff;
}
.page-sports__popular-sports .page-sports__section-description {
    color: #f0f0f0;
}

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

.page-sports__sport-card .page-sports__card-title {
    color: #017439;
}
.page-sports__sport-card .page-sports__card-text {
    color: #555555;
}

/* Live Betting Section */
.page-sports__live-betting {
    background-color: #f5f5f5;
    color: #333333;
}
.page-sports__live-betting .page-sports__section-title {
    color: #017439;
}
.page-sports__live-betting .page-sports__section-description {
    color: #555555;
}

.page-sports__live-betting-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.page-sports__text-block {
    flex: 1;
}

.page-sports__content-heading {
    font-size: 2em;
    color: #017439;
    margin-bottom: 20px;
}

.page-sports__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #555555;
}

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

.page-sports__image-wrapper {
    flex: 1;
    min-width: 300px;
}

.page-sports__content-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Min size enforcement */
    min-height: 200px; /* Min size enforcement */
}

/* Promotions Section */
.page-sports__promotions .page-sports__section-title {
    color: #ffffff;
}
.page-sports__promotions .page-sports__section-description {
    color: #f0f0f0;
}

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

.page-sports__promotion-card .page-sports__card-title {
    color: #017439;
}
.page-sports__promotion-card .page-sports__card-text {
    color: #555555;
}

.page-sports__cta-full-width {
    text-align: center;
    margin-top: 50px;
}

/* Betting Tips Section */
.page-sports__betting-tips {
    background-color: #f5f5f5;
    color: #333333;
}
.page-sports__betting-tips .page-sports__section-title {
    color: #017439;
}
.page-sports__betting-tips .page-sports__section-description {
    color: #555555;
}

.page-sports__tips-grid {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
    flex-direction: row-reverse; /* Image on left, text on right for this section */
}

.page-sports__tips-content {
    flex: 1;
}

/* How to Get Started Section */
.page-sports__get-started .page-sports__section-title {
    color: #ffffff;
}
.page-sports__get-started .page-sports__section-description {
    color: #f0f0f0;
}

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

.page-sports__step-card {
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-sports__step-number {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 10px;
}

.page-sports__step-text {
    font-size: 1em;
    color: #555555;
}

/* FAQ Section */
.page-sports__faq {
    background-color: #f5f5f5;
    color: #333333;
}
.page-sports__faq .page-sports__section-title {
    color: #017439;
}

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

.page-sports__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

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

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

.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: #555555;
}

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important; /* Important for JS functionality */
    padding: 20px;
}

.page-sports__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Add padding to last paragraph in answer */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__live-betting-content,
    .page-sports__tips-grid {
        flex-direction: column;
    }
    .page-sports__image-wrapper {
        order: -1; /* Image first on smaller screens */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        min-height: 450px;
    }
    .page-sports__hero-title {
        font-size: 2.2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        margin-right: 0;
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 15px;
        font-size: 0.9em;
    }
    .page-sports__section {
        padding: 40px 0;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__section-description {
        font-size: 0.9em;
        margin-bottom: 30px;
    }

    /* Images responsiveness */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size */
        min-height: 200px !important; /* Ensure min size */
    }
    .page-sports__card-image {
        height: auto !important; /* Allow auto height for card images on mobile */
    }

    /* Container responsiveness */
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__hero-content,
    .page-sports__image-wrapper,
    .page-sports__text-block,
    .page-sports__cta-full-width,
    .page-sports__faq-list,
    .page-sports__faq-item,
    .page-sports__faq-question,
    .page-sports__faq-answer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-sports__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Important for mobile */
        padding-left: 0;
        padding-right: 0;
    }
    .page-sports__hero-image {
        left: 0 !important;
        right: 0 !important;
        margin: auto !important;
    }

    .page-sports__hero-cta-buttons {
        gap: 10px;
        flex-direction: column;
    }
    .page-sports__features-grid,
    .page-sports__sports-grid,
    .page-sports__promotions-grid,
    .page-sports__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-sports__faq-question {
        font-size: 1.1em;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 1.8em;
    }
    .page-sports__section-title {
        font-size: 1.5em;
    }
    .page-sports__content-heading {
        font-size: 1.5em;
    }
    .page-sports__feature-title,
    .page-sports__card-title,
    .page-sports__step-number {
        font-size: 1.3em;
    }
}