/* 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 */
    background-color: #121212; /* Inherited from shared, explicitly set for clarity */
}

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

.page-sports__section-title {
    font-size: 2.8em;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* Color scheme integration */
.page-sports__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

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

.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__section-description,
.page-sports__light-bg .page-sports__feature-title,
.page-sports__light-bg .page-sports__feature-text,
.page-sports__light-bg .page-sports__sport-title,
.page-sports__light-bg .page-sports__sport-text,
.page-sports__light-bg .page-sports__list-highlight,
.page-sports__light-bg .page-sports__step-title,
.page-sports__light-bg .page-sports__step-text,
.page-sports__light-bg .page-sports__faq-title,
.page-sports__light-bg .page-sports__faq-text {
    color: #333333;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

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

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

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

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

.page-sports__btn-link {
    color: #017439;
    border: none;
    padding: 8px 0;
    font-size: 1em;
    display: block;
    margin-top: 15px;
}

.page-sports__btn-link:hover {
    text-decoration: underline;
}

.page-sports__btn-large {
    padding: 15px 35px;
    font-size: 1.1em;
}

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

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

.page-sports__hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.page-sports__hero-section .page-sports__container {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5); /* Overlay for readability */
    padding: 40px;
    border-radius: 10px;
}

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

.page-sports__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.page-sports__feature-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

/* Highlight Section (Sports Categories) */
.page-sports__highlight-section {
    padding: 80px 0;
}

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

.page-sports__sport-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__sport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.page-sports__sport-title {
    font-size: 1.6em;
    padding: 20px 15px 10px;
    color: #FFFFFF;
}

.page-sports__sport-title a {
    color: #FFFFFF;
    text-decoration: none;
}

.page-sports__sport-title a:hover {
    text-decoration: underline;
}

.page-sports__sport-text {
    font-size: 0.95em;
    padding: 0 15px 20px;
    color: #e0e0e0;
}

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

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

.page-sports__live-betting-image {
    flex: 1 1 500px;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

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

.page-sports__live-betting-list li {
    background-color: #f8f8f8;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-left: 5px solid #017439;
    border-radius: 5px;
    font-size: 1.1em;
    color: #333333;
}

.page-sports__list-highlight {
    color: #017439;
}

.page-sports__live-betting-section .page-sports__btn-primary {
    margin-top: 40px;
}

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

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

.page-sports__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-sports__promo-text {
    font-size: 0.95em;
    color: #e0e0e0;
    margin-bottom: 20px;
    padding: 0 15px;
}

.page-sports__view-all-promos {
    margin-top: 50px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-sports__step-item {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #017439;
    margin-bottom: 15px;
}

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

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

/* Responsible Gambling Section */
.page-sports__responsible-gambling-section {
    padding: 80px 0;
}

.page-sports__responsible-list {
    list-style: disc;
    max-width: 800px;
    margin: 40px auto;
    padding-left: 20px;
    color: #e0e0e0;
    font-size: 1.1em;
}

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

.page-sports__responsible-gambling-section .page-sports__btn-secondary {
    margin-top: 20px;
}

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

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

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    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;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
    transform: rotate(45deg); /* Changes + to x or similar */
}

.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; /* Ensure enough space */
    padding: 20px;
}

.page-sports__faq-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 0;
}

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

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

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

@media (max-width: 768px) {
    .page-sports {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-sports__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-sports__hero-section .page-sports__container {
        padding: 20px;
    }
    .page-sports__hero-title {
        font-size: 2.5em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-cta-buttons,
    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .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;
        padding-right: 15px;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-sports__features-grid,
    .page-sports__sport-categories,
    .page-sports__promotions-grid,
    .page-sports__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-sports__feature-card,
    .page-sports__sport-card,
    .page-sports__promo-card,
    .page-sports__step-item,
    .page-sports__faq-item {
        padding: 20px;
        margin-left: 15px;
        margin-right: 15px;
        max-width: calc(100% - 30px);
        width: calc(100% - 30px);
        box-sizing: border-box !important;
    }
    .page-sports__live-betting-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-sports__live-betting-image {
        max-width: 100%;
        width: 100%;
    }
    .page-sports__live-betting-list {
        max-width: 100%;
        width: 100%;
    }
    .page-sports img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .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-x: hidden !important;
    }
    .page-sports__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

/* Ensure images maintain aspect ratio and don't overflow */
.page-sports img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Video responsiveness */
.page-sports video,
.page-sports__video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.page-sports__video-section,
.page-sports__video-container,
.page-sports__video-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}