/* style/sports.css */

/* Base Styles */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Explicitly set for clarity, though shared.css might handle body */
}

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

.page-sports__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

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

.page-sports__card-title {
    font-size: 1.5em;
    color: #017439; /* Brand primary color */
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.3;
}

.page-sports__card-title a {
    color: #017439; /* Link color for card titles */
    text-decoration: none;
}

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

.page-sports__card-description {
    font-size: 1em;
    color: #555555;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    box-sizing: border-box;
    max-width: 100%;
}

.page-sports__btn-primary {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #017439;
    margin-right: 15px;
}

.page-sports__btn-primary:hover {
    background-color: #005a2b; /* Darker green */
    border-color: #005a2b;
}

.page-sports__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

.page-sports__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #005a2b;
}

/* Custom button colors based on prompt */
.page-sports__btn-register {
    background-color: #C30808; /* Red for Register */
    color: #FFFF00; /* Yellow font for Register */
    border: 2px solid #C30808;
}

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

.page-sports__btn-login {
    background-color: #C30808; /* Red for Login */
    color: #FFFF00; /* Yellow font for Login */
    border: 2px solid #C30808;
}

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

/* Section specific styling */
.page-sports__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
}

.page-sports__dark-bg .page-sports__section-title,
.page-sports__dark-bg .page-sports__card-title,
.page-sports__dark-bg .page-sports__card-title a {
    color: #ffffff;
}

.page-sports__dark-bg .page-sports__card-description,
.page-sports__dark-bg .page-sports__section-description {
    color: #f0f0f0;
}

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    min-height: 600px;
    overflow: hidden;
    padding-bottom: 60px;
}

.page-sports__hero-content {
    flex: 1;
    padding: 20px 40px;
    max-width: 60%;
    z-index: 1;
}

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

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

.page-sports__hero-cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-sports__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 40%;
    padding-right: 20px;
}

.page-sports__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* 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;
    text-align: center;
}

.page-sports__feature-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-sports__feature-icon {
    width: 100%; /* Ensure image fills card width */
    max-width: 200px; /* Limit icon size */
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
}

/* Sports Categories Section */
.page-sports__sports-categories {
    padding: 80px 0;
}

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

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

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

.page-sports__category-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-sports__category-card .page-sports__card-title {
    padding: 15px 10px 5px;
    margin-top: 0;
}

.page-sports__category-card .page-sports__card-description {
    padding: 0 15px 20px;
}

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

.page-sports__cta-buttons--center .page-sports__btn-primary {
    margin-right: 0; /* Remove right margin for single button */
}

/* Live Betting Section & Sic Bo Integration Section */
.page-sports__live-betting-section,
.page-sports__sicbo-integration {
    padding: 80px 0;
}

.page-sports__content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}

.page-sports__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-sports__text-block {
    flex: 1;
}

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

.page-sports__text-block .page-sports__btn-primary,
.page-sports__text-block .page-sports__btn-secondary {
    margin-top: 20px;
}

.page-sports__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-sports__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 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;
}

.page-sports__promo-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;
}

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

.page-sports__promo-image {
    width: 100%;
    height: 220px; /* Fixed height for promo images */
    object-fit: cover;
    display: block;
}

.page-sports__promo-card .page-sports__card-title {
    padding: 15px 20px 5px;
    margin-top: 0;
}

.page-sports__promo-card .page-sports__card-description {
    padding: 0 20px 20px;
}

/* Get Started Section */
.page-sports__get-started-section {
    padding: 80px 0;
}

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

.page-sports__step-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-sports__step-number {
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    color: #017439;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__step-card .page-sports__btn-secondary {
    margin-top: 20px;
}

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

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

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #e8f5e9; /* Lighter green for question background */
    border-bottom: 1px solid #d4edda;
}

.page-sports__faq-question::-webkit-details-marker {
    display: none;
}

.page-sports__faq-question::marker {
    display: none;
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-sports__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #555555;
    background-color: #ffffff;
}

.page-sports__faq-answer p {
    margin-bottom: 10px;
}

.page-sports__faq-item:last-child {
    margin-bottom: 0;
}

/* Contact CTA Section */
.page-sports__contact-cta {
    padding: 80px 0;
    text-align: center;
}

.page-sports__contact-content {
    max-width: 900px;
}

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

/* Mobile Responsive */
@media (max-width: 1024px) {
    .page-sports__hero-section {
        flex-direction: column;
        text-align: center;
        padding-bottom: 40px;
    }

    .page-sports__hero-content {
        max-width: 100%;
        padding: 20px;
    }

    .page-sports__hero-image-wrapper {
        max-width: 80%;
        margin-top: 30px;
        padding-right: 0;
    }

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

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

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

    .page-sports__content-wrapper--reverse {
        flex-direction: column-reverse;
    }

    .page-sports__text-block,
    .page-sports__image-block {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-sports__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-sports__section-description {
        font-size: 1em;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .page-sports__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .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;
        margin-right: 0 !important; /* Remove margin for stacked buttons */
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-sports__hero-cta-buttons,
    .page-sports__button-group,
    .page-sports__btn-container,
    .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: hidden !important;
    }

    .page-sports img,
    .page-sports video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-sports__feature-card,
    .page-sports__category-card,
    .page-sports__promo-card,
    .page-sports__step-card {
        padding: 20px;
    }

    .page-sports__category-image,
    .page-sports__promo-image {
        height: 180px; /* Adjust height for smaller screens */
    }

    .page-sports__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-sports__faq-answer {
        padding: 10px 20px 15px;
        font-size: 0.95em;
    }
}