/* style/sports.css */

/* General Styles */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--dark-bg); /* Inherit from shared.css, assuming dark background */
}

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

.page-sports__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-sports__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    padding: 120px 20px 80px;
    padding-top: var(--header-offset, 120px);
    background-color: #26A9E0;
    color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.page-sports__hero-description {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #f0f0f0;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-size: 1.1em;
    cursor: pointer;
    text-align: center;
}

.page-sports__btn-primary {
    background-color: #EA7C07;
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

.page-sports__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-sports__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1a7a9e;
    border-color: #1a7a9e;
}

.page-sports__btn-link {
    background: none;
    border: 2px solid #26A9E0;
    color: #26A9E0;
    padding: 10px 20px;
    font-size: 1em;
}

.page-sports__btn-link:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

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

.page-sports__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-sports__content-grid > div {
    flex: 1;
}

.page-sports__text-block p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-sports__read-more-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
}

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

.page-sports__image-wrapper {
    text-align: center;
}

.page-sports__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    width: 800px; /* Display width */
    height: 600px; /* Display height */
}

/* Video Section */
.page-sports__video-section {
    padding: 80px 0;
    background-color: #26A9E0;
    color: #ffffff;
    text-align: center;
}

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

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    cursor: pointer;
}

.page-sports__video-caption {
    font-style: italic;
    font-size: 0.9em;
    color: #f0f0f0;
}

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

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

.page-sports__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-sports__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    width: 600px; /* Display width */
    height: 400px; /* Display height */
}

.page-sports__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-sports__card-text {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
}

/* Betting Types Section */
.page-sports__betting-types-section {
    padding: 80px 0;
    background-color: #26A9E0;
    color: #ffffff;
}

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

.page-sports__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-sports__feature-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-sports__feature-text {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* Features Section */
.page-sports__features-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-sports__feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-sports__list-item {
    margin-bottom: 15px;
    font-size: 1.05em;
    position: relative;
    padding-left: 30px;
}

.page-sports__list-item::before {
    content: '✓';
    color: #26A9E0;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

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

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

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

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

.page-sports__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #f5f5f5;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
}

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

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

.page-sports__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    color: #26A9E0;
    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;
    background-color: #ffffff;
    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: 0;
    font-size: 1em;
}

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

.page-sports__cta-section .page-sports__section-description {
    color: #f0f0f0;
}

/* Dark/Light Background Helpers for Contrast */
.page-sports__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

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

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

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

    .page-sports__content-grid {
        flex-direction: column;
    }

    .page-sports__content-grid > div {
        width: 100%;
    }
    
    .page-sports__image-wrapper {
        order: -1; /* Image first on smaller screens */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-sports {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-sports__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 60px;
    }

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

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

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

    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .page-sports__btn-link {
        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__container {
        padding-left: 15px;
        padding-right: 15px;
    }

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

    /* Image Responsive */
    .page-sports img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-sports__image-wrapper,
    .page-sports__card,
    .page-sports__container,
    .page-sports__sports-grid,
    .page-sports__features-grid,
    .page-sports__promotions-grid,
    .page-sports__faq-list,
    .page-sports__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-sports__video-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }

    .page-sports__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    }

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

    .page-sports__card-image {
      width: 100% !important;
      height: auto !important;
    }
}