/* style/sports.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-sports {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is from shared.css */
}

/* Ensure content area images and other elements don't cause horizontal scroll on mobile */
.page-sports img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

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

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #017439; /* Use primary brand color for hero background */
    color: #ffffff;
}

.page-sports__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3; /* Subtle background image */
    overflow: hidden;
}

.page-sports__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-sports__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

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

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

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

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__step-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-sports__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color */
    border: 2px solid #C30808;
}

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

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

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

/* Video Section */
.page-sports__video-section {
    padding: 80px 20px;
    background-color: #1a1a2e; /* Body background color */
    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: 960px; /* Max width for video */
    margin: 0 auto;
    background-color: #000; /* Fallback for video background */
}

.page-sports__video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
}

.page-sports__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Make the link clickable over the video */
    text-decoration: none; /* Hide default link underline */
    border-radius: 10px;
    overflow: hidden;
}

/* Feature Section */
.page-sports__feature-section {
    padding: 80px 20px;
    text-align: center;
}

.page-sports__dark-section {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
}

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

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

.page-sports__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: #ffffff;
}

.page-sports__feature-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-sports__feature-icon {
    width: 100%; /* Ensure images take full card width */
    height: auto;
    max-height: 200px; /* Limit height for uniformity */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

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

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

/* How to Get Started Section */
.page-sports__how-to-section {
    padding: 80px 20px;
    background-color: #1a1a2e; /* Body background color */
    color: #ffffff;
    text-align: center;
}

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

.page-sports__step-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

.page-sports__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #017439; /* Brand color */
    margin-bottom: 15px;
}

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

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

.page-sports__step-button {
    background-color: #017439; /* Brand color */
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    text-decoration: none;
}

.page-sports__step-button:hover {
    background-color: #005a2e;
}

/* Bet Types Section */
.page-sports__bet-types-section {
    padding: 80px 20px;
    text-align: center;
}

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

.page-sports__bet-type-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
    min-height: 200px; /* Ensure cards have some height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

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

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

/* Promotions Section */
.page-sports__promotions-section {
    padding: 80px 20px;
    background-color: #1a1a2e; /* Body background color */
    color: #ffffff;
    text-align: center;
}

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

.page-sports__promotion-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

.page-sports__promotion-image {
    width: 100%;
    height: 200px; /* Fixed height for uniformity */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

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

.page-sports__promotion-card-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

/* Tips Section */
.page-sports__tips-section {
    padding: 80px 20px;
    background-color: #ffffff; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
    text-align: center;
}

.page-sports__tips-section .page-sports__section-title {
    color: #333333;
}

.page-sports__tips-section .page-sports__section-description {
    color: #555555;
}

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

.page-sports__tip-item {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    color: #333333;
}

.page-sports__tip-item:hover {
    transform: translateY(-8px);
    background-color: #f0f0f0;
}

.page-sports__tip-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #017439; /* Brand color for titles */
    font-weight: bold;
}

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

/* App Section */
.page-sports__app-section {
    padding: 80px 20px;
    text-align: center;
}

.page-sports__app-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    text-align: left;
}

.page-sports__app-text-content {
    flex: 1;
}

.page-sports__app-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-sports__app-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 80px 20px;
    background-color: #1a1a2e; /* Body background color */
    color: #ffffff;
    text-align: center;
}

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

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

.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);
    transition: background-color 0.3s ease;
    color: #ffffff;
}

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

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

.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: #f0f0f0;
}

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

.page-sports__faq-answer p {
    margin-bottom: 0;
    color: #f0f0f0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }
    .page-sports__hero-description {
        font-size: 1.2em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__app-content {
        flex-direction: column;
        text-align: center;
    }
    .page-sports__app-image-wrapper {
        margin-top: 40px;
    }
}

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

    .page-sports__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-sports__hero-section {
        min-height: 500px;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }

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

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

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

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

    .page-sports__hero-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

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

    .page-sports__section-description {
        font-size: 1em;
    }

    .page-sports__video-section,
    .page-sports__feature-section,
    .page-sports__how-to-section,
    .page-sports__bet-types-section,
    .page-sports__promotions-section,
    .page-sports__tips-section,
    .page-sports__app-section,
    .page-sports__faq-section,
    .page-sports__cta-section {
        padding: 40px 15px;
    }

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

    .page-sports__video,
    .page-sports__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin: 0 auto;
    }

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

    .page-sports__feature-grid,
    .page-sports__steps-grid,
    .page-sports__bet-types-grid,
    .page-sports__promotion-grid,
    .page-sports__tips-list {
        grid-template-columns: 1fr;
    }

    .page-sports__app-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .page-sports__app-image {
        max-width: 80%;
        height: auto;
    }

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

    .page-sports__faq-answer {
        padding: 0 20px;
    }

    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 10px 20px 20px 20px;
    }
}