/* style/sports.css */
/* Custom Colors */
:root {
    --jun88v-primary: #11A84E;
    --jun88v-secondary: #22C768;
    --jun88v-card-bg: #11271B;
    --jun88v-background: #08160F;
    --jun88v-text-main: #F2FFF6;
    --jun88v-text-secondary: #A7D9B8;
    --jun88v-border: #2E7A4E;
    --jun88v-glow: #57E38D;
    --jun88v-gold: #F2C14E;
    --jun88v-divider: #1E3A2A;
    --jun88v-deep-green: #0A4B2C;
    --jun88v-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page-sports scope */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--jun88v-text-main); /* Default text color for dark background */
    background-color: var(--jun88v-background); /* Default background from custom colors */
}

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

.page-sports__section {
    padding: 60px 0;
}

.page-sports__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--jun88v-text-main);
    line-height: 1.2;
}

.page-sports__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--jun88v-text-secondary);
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
}

.page-sports__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for aesthetic */
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

.page-sports__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.page-sports__hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 2;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
    border-radius: 10px;
}

.page-sports__main-title {
    font-weight: bold;
    color: var(--jun88v-text-main);
    margin-bottom: 15px;
    line-height: 1.2;
    font-size: clamp(2.5em, 4vw, 3.5em); /* Responsive font size for H1 */
}

.page-sports__hero-description {
    font-size: 1.2em;
    color: var(--jun88v-text-secondary);
    margin-bottom: 30px;
}

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

.page-sports__btn-primary {
    background: var(--jun88v-button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-sports__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__btn-secondary {
    background: var(--jun88v-card-bg);
    color: var(--jun88v-primary);
    border: 2px solid var(--jun88v-border);
}

.page-sports__btn-secondary:hover {
    background: var(--jun88v-primary);
    color: #ffffff;
    border-color: var(--jun88v-secondary);
}

/* Sports Types Section */
.page-sports__sports-types {
    background-color: var(--jun88v-background);
}

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

.page-sports__card {
    background-color: var(--jun88v-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--jun88v-text-main);
    border: 1px solid var(--jun88v-border);
}

.page-sports__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-sports__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-sports__card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin: 20px 20px 10px 20px;
    color: var(--jun88v-text-main);
}

.page-sports__card-text {
    font-size: 1em;
    margin: 0 20px 20px 20px;
    color: var(--jun88v-text-secondary);
    flex-grow: 1;
}

.page-sports__card-link {
    display: inline-block;
    margin: 0 20px 20px 20px;
    padding: 10px 15px;
    background-color: var(--jun88v-deep-green);
    color: var(--jun88v-text-main);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-sports__card-link:hover {
    background-color: var(--jun88v-primary);
}

/* Promotions Section */
.page-sports__promotions-section {
    background-color: var(--jun88v-deep-green);
}

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

.page-sports__promotion-card {
    background: var(--jun88v-card-bg);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--jun88v-border);
}

.page-sports__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-sports__promotion-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-sports__promotion-title {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--jun88v-text-main);
    margin-bottom: 10px;
}

.page-sports__promotion-text {
    font-size: 1em;
    color: var(--jun88v-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* How-To-Play Section */
.page-sports__how-to-play {
    background-color: var(--jun88v-background);
}

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

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

.page-sports__step-icon {
    width: 60px;
    height: 60px;
    background: var(--jun88v-button-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
}

.page-sports__step-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--jun88v-text-main);
    margin-bottom: 10px;
}

.page-sports__step-text {
    font-size: 0.95em;
    color: var(--jun88v-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Betting Tips Section */
.page-sports__betting-tips {
    background-color: var(--jun88v-deep-green);
}

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

.page-sports__tip-item {
    background-color: var(--jun88v-card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--jun88v-border);
}

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

.page-sports__tip-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--jun88v-text-main);
    margin-bottom: 10px;
}

.page-sports__tip-text {
    font-size: 1em;
    color: var(--jun88v-text-secondary);
}

/* Support & Safety Section */
.page-sports__support-safety {
    background-color: var(--jun88v-background);
}

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

.page-sports__info-card {
    background-color: var(--jun88v-card-bg);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--jun88v-border);
}

.page-sports__info-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-sports__info-title {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--jun88v-text-main);
    margin-bottom: 10px;
}

.page-sports__info-text {
    font-size: 1em;
    color: var(--jun88v-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-sports__faq-section {
    background-color: var(--jun88v-deep-green);
}

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

.page-sports__faq-item {
    background-color: var(--jun88v-card-bg);
    border: 1px solid var(--jun88v-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--jun88v-text-main);
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--jun88v-card-bg);
    color: var(--jun88v-text-main);
    user-select: none;
    position: relative;
}

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

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

.page-sports__faq-qtext {
    flex-grow: 1;
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--jun88v-primary);
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
    content: '−';
}

.page-sports__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--jun88v-text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-sports__faq-item[open] .page-sports__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 10px;
}

/* CTA Bottom Section */
.page-sports__cta-bottom {
    background-color: var(--jun88v-background);
    text-align: center;
}

.page-sports__cta-content {
    padding: 40px 20px;
    background-color: var(--jun88v-card-bg);
    border-radius: 10px;
    border: 1px solid var(--jun88v-border);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__hero-image-wrapper {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-sports {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-sports__section {
        padding: 40px 0;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__section-description {
        font-size: 1em;
    }

    /* Mobile specific image/video/button rules */
    .page-sports img {
        max-width: 100% !important;
        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,
    .page-sports__card,
    .page-sports__container,
    .page-sports__hero-section,
    .page-sports__hero-image-wrapper,
    .page-sports__hero-content,
    .page-sports__promotion-card,
    .page-sports__step-card,
    .page-sports__tip-item,
    .page-sports__info-card,
    .page-sports__faq-item,
    .page-sports__cta-bottom,
    .page-sports__cta-content,
    .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__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px !important;
    }
    .page-sports__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-sports__main-title {
        font-size: 2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__cta-button,
    .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;
        margin-bottom: 10px; /* Add spacing between stacked buttons */
    }
    .page-sports__cta-buttons,
    .page-sports__button-group,
    .page-sports__btn-container {
        flex-direction: column !important;
        gap: 10px;
    }
    .page-sports__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-sports__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-sports__section-title {
        font-size: 1.5em;
    }
    .page-sports__main-title {
        font-size: 1.8em;
    }
    .page-sports__cta-button {
        font-size: 1em;
        padding: 12px 20px;
    }
}