/* style/sports.css */

/* Base styles for the page content, considering body background is #0a0a0a (dark) */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height for hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Account for fixed header */
    box-sizing: border-box;
}

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

.page-sports__hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.7); /* Darken video for text readability */
}

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

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: #ffffff;
}

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

.page-sports__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

/* Section General Styles */
.page-sports__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

.page-sports__content-block {
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
}

.page-sports__content-subtitle {
    font-size: 1.8em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-sports__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 20px;
}

/* Color schemes for sections */
.page-sports__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    padding: 80px 0;
}

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

.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__section-description,
.page-sports__light-bg .page-sports__content-subtitle {
    color: #333333;
}

/* Specific Section Styles */
.page-sports__cockfighting-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-sports__betting-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.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: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-sports__benefit-card .page-sports__card-image {
    width: 100%; /* Ensure image takes full width of card */
    max-width: 400px; /* Example max width */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-sports__benefit-card .page-sports__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-sports__benefit-card p {
    font-size: 1em;
    line-height: 1.5;
    color: #555555;
}

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

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

.page-sports__guide-item {
    background: rgba(255, 255, 255, 0.1); /* Light background for dark section */
    padding: 30px;
    border-radius: 8px;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__guide-item .page-sports__guide-subtitle {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-sports__guide-item p {
    font-size: 1em;
    line-height: 1.5;
    color: #f0f0f0;
}

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

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

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

.page-sports__faq-question {
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #eeeeee;
    border-bottom: 1px solid #e0e0e0;
    color: #333333;
}

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

.page-sports__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

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

.page-sports__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #555555;
}

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

.page-sports__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
    color: #555555;
}

/* Final CTA Section */
.page-sports__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

.page-sports__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-sports__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

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

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-text {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-sports__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

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

.page-sports__btn-text {
    background-color: transparent;
    color: #26A9E0;
    border: none;
    padding: 0;
    font-size: 1em;
    text-decoration: underline;
    display: block; /* Ensure it takes full width for clickability in its container */
    margin-top: 15px;
    text-align: left;
}

.page-sports__btn-text:hover {
    color: #1a7fb0;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        height: 70vh; /* Adjust hero height for mobile */
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }
    .page-sports__hero-title {
        font-size: 2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-cta-buttons,
    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__content-block,
    .page-sports__benefit-card,
    .page-sports__guide-item,
    .page-sports__hero-content,
    .page-sports__hero-video-wrapper,
    .page-sports__cta-content {
        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 */
    }

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

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

    .page-sports__hero-video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__content-subtitle {
        font-size: 1.4em;
    }
    .page-sports__cta-title {
        font-size: 2em;
    }
    .page-sports__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-sports__faq-answer {
        padding: 15px !important;
    }
    .page-sports__dark-bg, .page-sports__light-bg {
        padding: 60px 0;
    }
    .page-sports__content-grid, .page-sports__benefits-grid, .page-sports__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-sports__btn-text {
        text-align: center;
    }
}