/* style/sports.css */

/* Base Styles & Typography */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Ensure body background is respected */
}

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

.page-sports__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-sports__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

.page-sports__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #f0f0f0;
}

/* Color Contrast Helpers */
.page-sports__dark-bg {
    background-color: #0a0a0a;
    color: #ffffff;
}

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

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

.page-sports__light-bg .page-sports__text-block {
    color: #555555;
}

/* Buttons */
.page-sports__cta-button {
    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, transform 0.2s ease;
    text-align: center;
    cursor: pointer;
}

.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: #e01a1a;
    transform: translateY(-2px);
}

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

.page-sports__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-2px);
}

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    overflow: hidden;
    padding: 60px 20px;
    padding-bottom: 0; /* Adjust as image is below content */
}

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Slightly transparent background for text */
    border-radius: 10px;
}

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

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

.page-sports__hero-buttons .page-sports__cta-button {
    min-width: 180px;
}

.page-sports__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.7;
}

/* Intro Section */
.page-sports__intro-section {
    padding: 60px 0;
}

/* Types Section */
.page-sports__types-section {
    padding: 60px 0;
}

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

.page-sports__card {
    background-color: rgba(255, 255, 255, 0.1); /* Light background for cards on dark section */
    border-radius: 10px;
    padding: 25px;
    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; /* Light text for cards on dark section */
}

.page-sports__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-sports__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-sports__card-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Live Betting Section */
.page-sports__live-betting-section {
    padding: 60px 0;
    text-align: center;
}

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

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

.page-sports__video-caption {
    font-style: italic;
    margin-top: 10px;
    color: #555555;
    font-size: 0.95em;
}

/* Promotion Section */
.page-sports__promo-section {
    padding: 60px 0;
}

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

.page-sports__promo-card {
    background-color: rgba(255, 255, 255, 0.1); /* Light background for cards on dark section */
    border-radius: 10px;
    padding: 25px;
    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; /* Light text for cards on dark section */
}

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

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

.page-sports__promo-card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #017439;
}

.page-sports__promo-card-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* Why Choose Section */
.page-sports__why-choose-section {
    padding: 60px 0;
}

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

.page-sports__feature-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

.page-sports__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-sports__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

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

.page-sports__feature-description {
    font-size: 0.95em;
    color: #555555;
}

/* Guide Section */
.page-sports__guide-section {
    padding: 60px 0;
}

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

.page-sports__guide-step {
    background-color: rgba(255, 255, 255, 0.1); /* Light background for steps on dark section */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-sports__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #017439;
    color: #ffffff;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

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

.page-sports__step-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 60px 0;
}

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

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.page-sports__faq-title {
    font-size: 1.15em;
    margin: 0;
    color: #333333;
}

.page-sports__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #017439;
    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: #555555;
}

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

.page-sports__faq-answer p {
    margin-bottom: 15px;
}

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

/* CTA Section */
.page-sports__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #017439; /* Use brand color for strong CTA */
    color: #ffffff;
}

.page-sports__cta-section .page-sports__section-title {
    color: #ffffff;
}

.page-sports__cta-section .page-sports__section-title::after {
    background-color: #ffffff;
}

.page-sports__cta-section .page-sports__text-block {
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

@media (max-width: 768px) {
    .page-sports__hero-section {
        flex-direction: column;
        min-height: auto;
        padding: 40px 15px 0;
    }
    .page-sports__hero-content {
        padding: 15px;
        margin-bottom: 20px;
    }
    .page-sports__hero-title {
        font-size: 2.2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__cta-button {
        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__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-sports__text-block {
        font-size: 1em;
    }
    .page-sports__container {
        padding: 15px;
    }
    .page-sports__grid-layout, .page-sports__promo-grid, .page-sports__features-grid, .page-sports__guide-steps {
        grid-template-columns: 1fr;
    }
    .page-sports__card-title, .page-sports__promo-card-title, .page-sports__feature-title, .page-sports__step-title {
        font-size: 1.2em;
    }
    .page-sports__card-image, .page-sports__promo-image {
        height: 180px;
    }

    /* Mobile image responsiveness */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__hero-image {
        height: 400px !important;
        position: relative !important;
        opacity: 1 !important;
    }
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__promo-card,
    .page-sports__feature-item,
    .page-sports__guide-step {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    /* Video responsiveness */
    .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;
    }
    .page-sports__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for video section */
    }

    /* Button responsiveness */
    .page-sports__cta-buttons,
    .page-sports__button-group {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-sports__faq-question {
        padding: 15px 20px;
    }
    .page-sports__faq-title {
        font-size: 1em;
    }
    .page-sports__faq-answer {
        padding: 0 20px;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 1.8em;
    }
    .page-sports__hero-description {
        font-size: 0.9em;
    }
    .page-sports__section-title {
        font-size: 1.5em;
    }
    .page-sports__card-title, .page-sports__promo-card-title, .page-sports__feature-title, .page-sports__step-title {
        font-size: 1.1em;
    }
    .page-sports__cta-button {
        padding: 12px 20px;
        font-size: 1em;
    }
}