/* style/sports-betting.css */

/* Base styles for the page content */
.page-sports-betting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: var(--secondary-color, #FFFFFF); /* Ensure background is light */
}

/* Header offset for main content */
.page-sports-betting__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* General container for sections */
.page-sports-betting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-sports-betting__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Section descriptions */
.page-sports-betting__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

/* Sub-titles */
.page-sports-betting__sub-title {
    font-size: 1.8em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Buttons */
.page-sports-betting__btn-primary,
.page-sports-betting__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;
    text-align: center;
    box-sizing: border-box; /* Ensure padding/border are included in width */
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Break long words */
}

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

.page-sports-betting__btn-primary:hover {
    background-color: #a30707;
    border-color: #a30707;
}

.page-sports-betting__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-sports-betting__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2e;
    border-color: #005f2e;
}

.page-sports-betting__btn-center {
    display: block;
    margin: 40px auto 0 auto;
    width: fit-content;
}

/* Hero Section */
.page-sports-betting__hero-section {
    position: relative;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Fallback background */
}

.page-sports-betting__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-sports-betting__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-sports-betting__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

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

.page-sports-betting__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-sports-betting__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* About Section */
.page-sports-betting__about-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.page-sports-betting__feature-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #e0e0e0;
}

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

.page-sports-betting__image-full {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 60px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* How to Start Section */
.page-sports-betting__how-to-start-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-sports-betting__how-to-start-section .page-sports-betting__section-title,
.page-sports-betting__how-to-start-section .page-sports-betting__section-description {
    color: #ffffff;
}

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

.page-sports-betting__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-sports-betting__step-number {
    font-size: 2.5em;
    color: #FFFF00; /* Register/Login font color */
    font-weight: bold;
    margin-bottom: 15px;
}

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

/* Live Betting Section */
.page-sports-betting__live-betting-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.page-sports-betting__live-betting-image {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-sports-betting__live-betting-text {
    flex: 1;
    min-width: 300px;
}

.page-sports-betting__list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.page-sports-betting__list li {
    margin-bottom: 10px;
    color: #333333;
}

/* Promotions Section */
.page-sports-betting__promotions-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
}

.page-sports-betting__promotions-section .page-sports-betting__section-title,
.page-sports-betting__promotions-section .page-sports-betting__section-description {
    color: #ffffff;
}

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

.page-sports-betting__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Security Section */
.page-sports-betting__security-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.page-sports-betting__security-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.page-sports-betting__security-image {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    height: auto;
    order: 2; /* Image on right for desktop */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-sports-betting__security-text {
    flex: 1;
    min-width: 300px;
    order: 1; /* Text on left for desktop */
}

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

.page-sports-betting__faq-section .page-sports-betting__section-title,
.page-sports-betting__faq-section .page-sports-betting__section-description {
    color: #ffffff;
}

.page-sports-betting__faq-list {
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports-betting__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-sports-betting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-sports-betting__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-sports-betting__faq-title {
    font-size: 1.2em;
    color: #ffffff;
    margin: 0;
    font-weight: bold;
}

.page-sports-betting__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFFF00; /* Register/Login font color */
    transition: transform 0.3s ease;
}

.page-sports-betting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

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

.page-sports-betting__faq-item.active .page-sports-betting__faq-toggle {
    transform: rotate(45deg); /* Change + to X (or -) */
}

/* Call to Action Section */
.page-sports-betting__cta-section {
    padding: 80px 0;
    background-color: #f8f8f8;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-sports-betting__hero-title {
        font-size: 3em;
    }
    .page-sports-betting__section-title {
        font-size: 2em;
    }
    .page-sports-betting__sub-title {
        font-size: 1.5em;
    }
    .page-sports-betting__live-betting-image,
    .page-sports-betting__security-image {
        max-width: 100%;
        flex: none;
    }
    .page-sports-betting__live-betting-content,
    .page-sports-betting__security-content {
        flex-direction: column;
    }
    .page-sports-betting__security-image {
        order: 1; /* Stack image above text on smaller screens */
    }
    .page-sports-betting__security-text {
        order: 2;
    }
}

@media (max-width: 768px) {
    .page-sports-betting__hero-section {
        height: auto;
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-sports-betting__hero-title {
        font-size: 2.2em;
    }
    .page-sports-betting__hero-description {
        font-size: 1em;
    }
    .page-sports-betting__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
    }
    .page-sports-betting__btn-primary,
    .page-sports-betting__btn-secondary,
    .page-sports-betting a[class*="button"],
    .page-sports-betting 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-betting__container,
    .page-sports-betting__section,
    .page-sports-betting__card,
    .page-sports-betting__video-section,
    .page-sports-betting__video-container,
    .page-sports-betting__video-wrapper,
    .page-sports-betting__cta-buttons,
    .page-sports-betting__button-group,
    .page-sports-betting__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Images and Videos responsiveness */
    .page-sports-betting img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports-betting video,
    .page-sports-betting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Content area images minimum size check for mobile */
    .page-sports-betting__hero-image,
    .page-sports-betting__image-full,
    .page-sports-betting__live-betting-image,
    .page-sports-betting__security-image {
        min-width: 200px;
        min-height: 200px;
    }

    .page-sports-betting__faq-question {
        padding: 15px 20px;
    }
    .page-sports-betting__faq-answer {
        padding: 0 20px;
    }
    .page-sports-betting__faq-item.active .page-sports-betting__faq-answer {
        padding: 10px 20px 20px 20px;
    }
}

/* Color contrast enforcement */
.page-sports-betting__dark-bg {
    background-color: #017439;
    color: #ffffff;
}
.page-sports-betting__light-bg {
    background-color: #f8f8f8;
    color: #333333;
}
.page-sports-betting__how-to-start-section .page-sports-betting__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
.page-sports-betting__promotions-section .page-sports-betting__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
.page-sports-betting__faq-section .page-sports-betting__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
.page-sports-betting__faq-question {
    background-color: rgba(255, 255, 255, 0.05);
}
.page-sports-betting__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}
/* Ensure the secondary button also maintains contrast on light background */
.page-sports-betting__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}
.page-sports-betting__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2e;
    border-color: #005f2e;
}

/* For buttons within dark sections */
.page-sports-betting__dark-bg .page-sports-betting__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border-color: #ffffff;
}
.page-sports-betting__dark-bg .page-sports-betting__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2e;
    border-color: #f0f0f0;
}