/* style/sports.css */

/* Base Styles for .page-sports to ensure text visibility on dark body background */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Inherit from body or specific section */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-sports a {
    color: #FFFFFF; /* Default link color for dark backgrounds */
    text-decoration: none;
}

.page-sports a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.page-sports__text-link {
    color: #FFFF00; /* Yellow for specific text links for better visibility */
    text-decoration: underline;
}

.page-sports__text-link:hover {
    color: #FFFFFF;
    text-decoration: none;
}

/* Container for consistent spacing */
.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Section Titles */
.page-sports__section-title {
    font-size: 2.5em;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-sports__subsection-title {
    font-size: 1.8em;
    color: #FFFFFF;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-sports__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #f0f0f0; /* Slightly off-white for readability */
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__link-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
    max-width: 100%; /* Responsive button */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-sports__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFFFF; /* Adjusted for WCAG AA contrast with #C30808 */
    border: 2px solid #C30808;
}

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

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

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

.page-sports__link-button {
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
    margin-top: 20px;
}

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


/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Fallback background */
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-sports__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6); /* Darken image for text readability */
}

.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;
    font-weight: bold;
    line-height: 1.2;
}

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

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

/* Intro Section */
.page-sports__intro-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff;
    text-align: center;
}

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

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

.page-sports__feature-icon {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 50%;
    border: 2px solid #017439;
}

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

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

/* Cockfighting Section */
.page-sports__cockfighting-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: center;
}

.page-sports__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-sports__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.page-sports__video-cta {
    margin-top: 30px;
}

/* Betting Options Section */
.page-sports__betting-options-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text for light background */
    text-align: center;
}

.page-sports__betting-options-section .page-sports__section-title {
    color: #333333;
}
.page-sports__betting-options-section .page-sports__text-block {
    color: #555555;
}

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

.page-sports__card {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #333333;
}

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

.page-sports__card-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-sports__card-title .page-sports__card-link {
    color: #017439;
    text-decoration: none;
}

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

.page-sports__card-description {
    color: #555555;
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Tips Section */
.page-sports__tips-section {
    padding: 80px 0;
    background-color: #0a0a0a;
    color: #ffffff;
    text-align: center;
}

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

.page-sports__tip-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    color: #ffffff;
}

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

.page-sports__tip-title {
    font-size: 1.4em;
    color: #FFFFFF;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-sports__tip-title .page-sports__card-link {
    color: #FFFFFF;
    text-decoration: none;
}
.page-sports__tip-title .page-sports__card-link:hover {
    text-decoration: underline;
}

.page-sports__tip-description {
    color: #f0f0f0;
    font-size: 0.95em;
}

/* Security Section */
.page-sports__security-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    text-align: center;
}

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

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

.page-sports__security-icon {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
}

.page-sports__security-title {
    font-size: 1.5em;
    color: #FFFFFF;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-sports__security-description {
    color: #f0f0f0;
    font-size: 1em;
}

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

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

.page-sports__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

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

.page-sports__faq-title {
    margin: 0;
    color: #FFFFFF;
    font-size: 1em;
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 20px;
    text-align: center;
    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;
    background-color: rgba(0, 0, 0, 0.2);
    color: #f0f0f0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important;
    padding: 20px 25px;
}

.page-sports__faq-answer p {
    margin: 0;
    color: #f0f0f0;
    font-size: 0.95em;
}

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

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


/* Responsive Styles */
@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__subsection-title {
        font-size: 1.6em;
    }
}

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

    /* Fixed header offset for mobile */
    .page-sports__hero-section,
    .page-sports__cockfighting-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
    }

    .page-sports__hero-title {
        font-size: 2.2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .page-sports__link-button {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important; /* Remove margin for stacked buttons */
        padding: 12px 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-sports__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .page-sports__container,
    .page-sports__video-wrapper,
    .page-sports__intro-features,
    .page-sports__betting-cards,
    .page-sports__tips-grid,
    .page-sports__security-features,
    .page-sports__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }

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

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

    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__subsection-title {
        font-size: 1.4em;
    }
    .page-sports__card-image,
    .page-sports__tip-image {
        height: auto;
    }
    .page-sports__feature-icon,
    .page-sports__security-icon {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 1.8em;
    }
    .page-sports__hero-description {
        font-size: 0.9em;
    }
    .page-sports__section-title {
        font-size: 1.5em;
    }
    .page-sports__subsection-title {
        font-size: 1.2em;
    }
    .page-sports__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-sports__faq-answer {
        padding: 15px 20px;
    }
}