/* style/sports.css */
.page-sports {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light backgrounds */
    line-height: 1.6;
}

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

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

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

/* 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 fixed header */
    overflow: hidden;
}

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

.page-sports__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-sports__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #FFFFFF;
    max-width: 900px;
}

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

.page-sports__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
}

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

/* Buttons */
.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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

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

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

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

/* Why Us Section */
.page-sports__why-us-section {
    padding: 80px 20px;
}

.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: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333;
}

.page-sports__feature-card:hover {
    transform: translateY(-10px);
}

.page-sports__feature-icon {
    width: 100%; /* Ensure large images are used, not small icons */
    max-width: 400px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

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

/* Popular Sports Section */
.page-sports__popular-sports-section {
    padding: 80px 20px;
}

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

.page-sports__sport-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    color: #FFFFFF;
    transition: transform 0.3s ease;
}

.page-sports__sport-card:hover {
    transform: translateY(-10px);
}

.page-sports__sport-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

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

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

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

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

.page-sports__live-betting-subtitle {
    font-size: 2em;
    color: #017439;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-sports__live-betting-text p {
    margin-bottom: 15px;
    color: #555555;
}

.page-sports__live-betting-features-list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #555555;
}

.page-sports__live-betting-features-list li {
    margin-bottom: 8px;
}

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

.page-sports__live-betting-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-sports__promo-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    color: #FFFFFF;
    transition: transform 0.3s ease;
}

.page-sports__promo-card:hover {
    transform: translateY(-10px);
}

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

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

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

/* How to Start Section */
.page-sports__how-to-start-section {
    padding: 80px 20px;
}

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

.page-sports__step-card {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    color: #333333;
    position: relative;
    overflow: hidden;
}

.page-sports__step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    font-size: 4em;
    font-weight: bold;
    color: rgba(1, 116, 57, 0.1);
    z-index: 0;
}

.page-sports__step-card h3 {
    position: relative;
    z-index: 1;
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__step-card p {
    position: relative;
    z-index: 1;
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

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

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

.page-sports__faq-item {
    background: 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: #017439;
    color: #FFFFFF;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-sports__faq-question h3 {
    margin: 0;
    color: #FFFFFF; /* Ensure FAQ question text is white */
}

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

.page-sports__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #e0e0e0;
    background-color: rgba(255, 255, 255, 0.05);
}

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

.page-sports__faq-answer p {
    margin: 0;
    color: #e0e0e0; /* Ensure FAQ answer text is light */
}

/* Background color handling for sections */
.page-sports__dark-section {
    background-color: #017439;
    color: #FFFFFF;
}

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

/* Responsive Design */
@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-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-sports {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-sports__hero-section {
        min-height: 500px;
        padding-left: 15px;
        padding-right: 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-sports__hero-title {
        font-size: 2.2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-sports__content-area {
        padding: 20px 15px;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__section-description {
        font-size: 0.9em;
        margin-bottom: 30px;
    }
    .page-sports__features-grid,
    .page-sports__sports-grid,
    .page-sports__promo-grid,
    .page-sports__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-sports__feature-card,
    .page-sports__sport-card,
    .page-sports__promo-card,
    .page-sports__step-card {
        padding: 20px;
    }
    .page-sports__live-betting-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-sports img {
        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;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-sports__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-sports__faq-answer {
        padding: 0 20px;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 15px 20px;
    }
}