/* 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: #0a0a0a; /* Body background from shared.css */
}

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background-size: cover;
    background-position: center;
    min-height: 600px;
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.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;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.page-sports__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* General Section Styles */
.page-sports__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #017439; /* Brand color for titles on light background */
}

.page-sports__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #333333; /* Dark text for light background */
}

.page-sports__text-block {
    font-size: 1em;
    margin-top: 30px;
    text-align: center;
    color: #333333; /* Dark text for light background */
}

/* About Section */
.page-sports__about-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background for about section */
    color: #333333;
}

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

.page-sports__feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-sports__feature-icon {
    width: 100%;
    height: auto;
    max-width: 150px;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

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

/* Popular Sports Section */
.page-sports__popular-sports {
    padding: 80px 0;
    color: #ffffff;
}

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

.page-sports__sport-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-sports__sport-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-sports__sport-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-sports__sport-description {
    color: #f0f0f0;
    padding: 0 15px 20px;
    flex-grow: 1;
}

/* Live Betting Section */
.page-sports__live-betting-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

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

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

.page-sports__image-column {
    flex: 1;
    text-align: center;
}

.page-sports__live-betting-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-sports__live-betting-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-sports__live-betting-list li {
    margin-bottom: 15px;
    font-size: 1.1em;
    position: relative;
    padding-left: 30px;
}

.page-sports__live-betting-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
}

/* Promotions Section */
.page-sports__promotions-section {
    padding: 80px 0;
    color: #ffffff;
}

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

.page-sports__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-sports__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-sports__promo-title {
    font-size: 1.7em;
    color: #ffffff;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-sports__promo-description {
    color: #f0f0f0;
    padding: 0 15px 20px;
    flex-grow: 1;
}

/* How to Bet Section */
.page-sports__how-to-bet-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-sports__steps-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-sports__step-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-sports__step-description {
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 80px 0;
    color: #ffffff;
}

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

.page-sports__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

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

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

.page-sports__faq-title {
    margin: 0;
    color: #ffffff;
}

.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 20px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #f0f0f0;
    transition: max-height 0.3s ease, padding 0.3s ease;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

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

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

/* CTA Section */
.page-sports__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #ffffff;
    color: #333333;
}

.page-sports__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

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

/* 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;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
}

.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: #a00606;
    border-color: #a00606;
    color: #ffffff;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }

    .page-sports__section-title {
        font-size: 2em;
    }

    .page-sports__live-betting-content {
        flex-direction: column;
    }

    .page-sports__image-column {
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        min-height: 400px;
        padding: 60px 15px;
    }

    .page-sports__hero-title {
        font-size: 2.2em;
    }

    .page-sports__hero-description {
        font-size: 1em;
    }

    .page-sports__section-title {
        font-size: 1.8em;
    }

    .page-sports__section-intro,
    .page-sports__text-block {
        font-size: 0.95em;
    }

    .page-sports__about-section,
    .page-sports__popular-sports,
    .page-sports__live-betting-section,
    .page-sports__promotions-section,
    .page-sports__how-to-bet-section,
    .page-sports__faq-section,
    .page-sports__cta-section {
        padding: 50px 0;
    }

    .page-sports__feature-item,
    .page-sports__sport-card,
    .page-sports__promo-card,
    .page-sports__step-item {
        padding: 20px;
    }

    .page-sports__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-sports__faq-answer {
        padding: 15px;
    }

    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-sports__hero-buttons,
    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        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__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__cta-buttons {
        display: flex;
        flex-direction: column;
    }

    /* 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-image-wrapper,
    .page-sports__image-column {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Ensure content area does not cause horizontal scroll */
    .page-sports {
        overflow-x: hidden;
    }

    /* Content area images must be at least 200px */
    .page-sports .page-sports__feature-icon,
    .page-sports .page-sports__sport-image,
    .page-sports .page-sports__live-betting-image,
    .page-sports .page-sports__promo-image {
        min-width: 200px;
        min-height: 200px;
    }
}