/* style/sports.css */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--secondary-color, #FFFFFF);
}

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    box-sizing: border-box;
}

.page-sports__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 1;
}

.page-sports__hero-section .page-sports__container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.page-sports__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
    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, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-sports__btn-primary {
    background-color: #C30808; /* Custom Register/Login button color */
    color: #FFFF00; /* Custom Register/Login font color */
    border: 2px solid #C30808;
}

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

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

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

/* General Section Styling */
.page-sports__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    color: #017439; /* Brand color for titles on light background */
}

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

.page-sports__dark-bg .page-sports__section-title,
.page-sports__dark-bg .page-sports__section-description {
    color: #ffffff; /* White text on dark background */
}

.page-sports__dark-bg {
    background-color: #017439; /* Primary brand color for dark sections */
    color: #ffffff;
    padding: 80px 0;
}

.page-sports__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 80px 0;
}

/* Why Choose Section */
.page-sports__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__benefit-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

.page-sports__benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-sports__benefit-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: none; /* Ensure no CSS filter changes image color */
}

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

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

/* Featured Sports Section */
.page-sports__sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__sport-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

.page-sports__sport-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-sports__sport-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: none; /* Ensure no CSS filter changes image color */
}

.page-sports__sport-card h3,
.page-sports__sport-card p {
    padding: 0 20px;
}

.page-sports__sport-title {
    font-size: 1.6em;
    font-weight: bold;
    margin: 20px 0 10px 0;
    color: #017439;
}

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

/* Bet Types Section */
.page-sports__bet-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-sports__bet-type-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    color: #333333;
}

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

.page-sports__bet-type-text {
    font-size: 0.95em;
    color: #555555;
}

.page-sports__bet-types-image {
    width: 100%;
    height: auto;
    margin-top: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    filter: none; /* Ensure no CSS filter changes image color */
}

/* Live Betting Section */
.page-sports__live-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__live-feature-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    color: #ffffff;
}

.page-sports__live-feature-title {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-sports__live-feature-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-sports__live-betting-image {
    width: 100%;
    height: auto;
    margin-top: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    filter: none; /* Ensure no CSS filter changes image color */
}

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

.page-sports__promo-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

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

.page-sports__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: none; /* Ensure no CSS filter changes image color */
}

.page-sports__promo-card h3,
.page-sports__promo-card p {
    padding: 0 20px;
}

.page-sports__promo-title {
    font-size: 1.6em;
    font-weight: bold;
    margin: 20px 0 10px 0;
    color: #017439;
}

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

.page-sports__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Guide Section */
.page-sports__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__step-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    color: #ffffff;
}

.page-sports__step-number {
    font-size: 3em;
    font-weight: bold;
    color: #FFFF00; /* Yellow for numbers */
    margin-bottom: 15px;
}

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

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

/* Safety Section */
.page-sports__safety-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-sports__safety-image {
    flex: 1 1 45%;
    max-width: 45%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    filter: none; /* Ensure no CSS filter changes image color */
}

.page-sports__safety-list {
    flex: 1 1 45%;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-sports__safety-point {
    background-color: #f9f9f9;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    color: #333333;
    font-size: 1.05em;
}

.page-sports__safety-point a {
    color: #017439;
    text-decoration: underline;
}

.page-sports__safety-strong {
    color: #017439;
}

/* FAQ Section */
.page-sports__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    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 25px;
    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);
    transition: background-color 0.3s ease;
}

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

.page-sports__faq-item[open] > .page-sports__faq-question {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.page-sports__faq-qtext {
    color: #ffffff;
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFFF00; /* Yellow for toggle icon */
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
    transform: rotate(45deg);
}

.page-sports__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.05);
}

.page-sports__faq-answer a {
    color: #FFFF00;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__safety-image {
        max-width: 100%;
        flex-basis: 100%;
    }
    .page-sports__safety-list {
        flex-basis: 100%;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-sports__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-sports__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-sports__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !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__benefit-card,
    .page-sports__sport-card,
    .page-sports__bet-type-item,
    .page-sports__promo-card,
    .page-sports__step-item,
    .page-sports__live-feature-item {
        padding: 20px;
    }
    .page-sports__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Image/Video Responsive for Mobile */
    .page-sports img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__safety-image {
        max-width: 100% !important;
        flex-basis: 100% !important;
    }
    .page-sports__safety-list {
        flex-basis: 100% !important;
    }

    /* Ensure all content containers are responsive */
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__hero-section,
    .page-sports__why-choose-section,
    .page-sports__featured-sports-section,
    .page-sports__bet-types-section,
    .page-sports__live-betting-section,
    .page-sports__promotions-section,
    .page-sports__guide-section,
    .page-sports__safety-section,
    .page-sports__faq-section,
    .page-sports__hero-cta-buttons,
    .page-sports__benefits-grid,
    .page-sports__sports-grid,
    .page-sports__bet-types-grid,
    .page-sports__live-features-grid,
    .page-sports__promo-grid,
    .page-sports__steps-grid,
    .page-sports__safety-content,
    .page-sports__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-sports__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-sports__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 1.8em;
    }
    .page-sports__section-title {
        font-size: 1.5em;
    }
    .page-sports__hero-section {
        height: 450px;
    }
}