/* style/sports.css */

/* Base styles for the sports page */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
}

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

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

.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;
}

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

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

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

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

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

.page-sports__btn-register,
.page-sports__btn-login {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-sports__btn-register {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-sports__btn-register:hover {
    background-color: #a30707;
    transform: translateY(-3px);
}

.page-sports__btn-login {
    background-color: transparent;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-sports__btn-login:hover {
    background-color: #C30808;
    transform: translateY(-3px);
}

.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;
    opacity: 0.3;
}

/* About Section */
.page-sports__about-section {
    padding: 80px 0;
    background-color: #2a2a44; /* Slightly lighter dark background */
    color: #ffffff;
}

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

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

.page-sports__category-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-sports__category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

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

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

.page-sports__card-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    padding: 0 15px;
    flex-grow: 1;
}

.page-sports__btn-primary {
    display: inline-block;
    background-color: #017439;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: 2px solid #017439;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-sports__btn-primary:hover {
    background-color: #005a2d;
}

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

.page-sports__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

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

.page-sports__promotions-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.08);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-sports__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.page-sports__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #017439;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #017439;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

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

/* Get Started Section */
.page-sports__get-started-section {
    padding: 80px 0;
    background-color: #2a2a44;
    color: #ffffff;
}

.page-sports__step-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-sports__step-list li {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #f0f0f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__step-title {
    color: #017439;
    font-size: 1.2em;
    display: block;
    margin-bottom: 5px;
}

/* Security Section */
.page-sports__security-section {
    padding: 80px 0;
    background-color: #1a1a2e;
    color: #ffffff;
}

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

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

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

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

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

.page-sports__faq-toggle {
    font-size: 1.5em;
    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 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-bottom: 0;
}

/* Final CTA Section */
.page-sports__final-cta-section {
    padding: 80px 0;
    background-color: #1a1a2e;
    text-align: center;
    color: #ffffff;
}

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

@media (max-width: 768px) {
    .page-sports__main-title {
        font-size: 2.5em;
    }
    .page-sports__intro-description {
        font-size: 1em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__categories-grid,
    .page-sports__promotions-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile image adaptation */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__hero-image-wrapper,
    .page-sports__video-wrapper,
    .page-sports__categories-section,
    .page-sports__promotions-section,
    .page-sports__get-started-section,
    .page-sports__security-section,
    .page-sports__faq-section,
    .page-sports__final-cta-section,
    .page-sports__about-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }

    /* Mobile video adaptation */
    .page-sports video,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__video-wrapper {
        padding-bottom: 56.25% !important; /* Ensure aspect ratio */
        height: 0 !important;
        overflow: hidden !important;
    }
    .page-sports__video-wrapper .page-sports__video {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }

    /* Mobile button adaptation */
    .page-sports__cta-buttons,
    .page-sports__category-card,
    .page-sports__promo-card {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .page-sports__btn-register,
    .page-sports__btn-login,
    .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 !important;
        padding-right: 15px !important;
    }

    /* Ensure sections have proper padding for mobile */
    .page-sports__hero-section,
    .page-sports__about-section,
    .page-sports__categories-section,
    .page-sports__live-betting-section,
    .page-sports__promotions-section,
    .page-sports__get-started-section,
    .page-sports__security-section,
    .page-sports__faq-section,
    .page-sports__final-cta-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .page-sports__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-sports__faq-question {
        padding: 15px;
    }
    .page-sports__faq-answer {
        padding: 0 15px;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-sports__main-title {
        font-size: 2em;
    }
    .page-sports__intro-description {
        font-size: 0.9em;
    }
    .page-sports__btn-register,
    .page-sports__btn-login {
        padding: 12px 20px;
        font-size: 1em;
    }
}