/* style/sports.css */

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

.page-sports__dark-bg {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff;
}

.page-sports__light-bg {
    background-color: #ffffff; /* White background for light sections */
    color: #333333; /* Dark text for light background */
}

.page-sports__dark-text {
    color: #333333; /* For text on light backgrounds */
}

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

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

.page-sports__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    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;
}

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

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

.page-sports__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808; /* Use custom color for border */
}

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is below header */
    overflow: hidden;
    text-align: center;
}

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    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-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;
    filter: brightness(0.6); /* Darken image for text contrast */
}

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

/* Video Section */
.page-sports__video-section {
    padding: 80px 20px;
    text-align: center;
}

.page-sports__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 1000px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-sports__video-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.page-sports__video-cta {
    margin-top: 30px;
}

/* Features Section */
.page-sports__features-section {
    padding: 80px 20px;
}

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

.page-sports__feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.page-sports__feature-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
}

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

/* Categories Section */
.page-sports__categories-section {
    padding: 80px 20px;
}

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

.page-sports__category-item {
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.page-sports__card-dark {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    color: #ffffff;
    padding: 20px;
}

.page-sports__category-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-sports__category-title {
    font-size: 1.4em;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-sports__category-text {
    font-size: 0.95em;
    padding-bottom: 15px;
}

/* Live Betting Section */
.page-sports__live-betting-section {
    padding: 80px 20px;
}

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

.page-sports__live-betting-text-content {
    flex: 1;
}

.page-sports__live-betting-image-wrapper {
    flex: 1;
}

.page-sports__live-betting-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 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;
    display: flex;
    align-items: center;
}

.page-sports__list-icon {
    color: #017439; /* Brand color for checkmark */
    font-size: 1.2em;
    margin-right: 10px;
    font-weight: bold;
}

/* Promotions Section */
.page-sports__promotions-section {
    padding: 80px 20px;
    text-align: center;
}

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

.page-sports__promotion-card {
    text-align: left;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__promotion-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-sports__promotion-title {
    font-size: 1.4em;
    margin: 20px 20px 10px 20px;
    font-weight: bold;
}

.page-sports__promotion-text {
    font-size: 0.95em;
    margin: 0 20px 20px 20px;
}

.page-sports__promotion-card .page-sports__btn-secondary {
    margin: 0 20px 20px 20px;
    width: calc(100% - 40px);
}

.page-sports__promotions-cta {
    margin-top: 50px;
}

/* Guide Section */
.page-sports__guide-section {
    padding: 80px 20px;
}

.page-sports__guide-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.page-sports__guide-image-wrapper {
    flex: 1;
}

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

.page-sports__guide-text-content {
    flex: 1;
}

.page-sports__guide-steps {
    margin-top: 30px;
}

.page-sports__guide-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.page-sports__step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background-color: #017439; /* Brand color */
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 15px;
}

.page-sports__step-title {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 5px;
    font-weight: bold;
}

.page-sports__step-text {
    font-size: 0.95em;
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 80px 20px;
    text-align: center;
}

.page-sports__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-sports__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Light background for FAQ items on dark section */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-sports__faq-q-text {
    margin: 0;
    color: inherit;
}

.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); /* Plus to X */
}

.page-sports__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-sports__faq-a-text {
    margin: 0;
    font-size: 1em;
}

/* Final CTA Section */
.page-sports__cta-final {
    padding: 80px 20px;
    text-align: center;
}

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

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

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }
    .page-sports__hero-description {
        font-size: 1.1em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__live-betting-layout,
    .page-sports__guide-layout {
        flex-direction: column;
        text-align: center;
    }
    .page-sports__live-betting-image-wrapper,
    .page-sports__guide-image-wrapper {
        order: -1; /* Image above text on smaller screens */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    /* Global mobile container padding */
    .page-sports__container,
    .page-sports__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Header offset for mobile */
    .page-sports__hero-section,
    .page-sports__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-sports__hero-section {
        min-height: 500px;
        padding-bottom: 40px;
    }
    .page-sports__hero-title {
        font-size: 2.2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-buttons,
    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .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;
        margin-right: 0 !important;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__section-description {
        font-size: 0.95em;
    }
    .page-sports__features-grid,
    .page-sports__categories-grid,
    .page-sports__promotions-grid {
        grid-template-columns: 1fr;
    }
    .page-sports__live-betting-layout,
    .page-sports__guide-layout {
        gap: 30px;
    }
    .page-sports__video-wrapper {
        margin: 20px auto;
    }

    /* Images and Videos responsiveness */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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,
    .page-sports__section,
    .page-sports__card,
    .page-sports__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

@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__btn-primary,
    .page-sports__btn-secondary {
        padding: 10px 20px;
        font-size: 1em;
    }
    .page-sports__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 15px;
    }
    .page-sports__faq-toggle {
        font-size: 1.2em;
    }
}