/* style/sports.css */

/* Base styles for the page content */
.page-sports {
    background-color: #0D0E12; /* Background */
    color: #FFF3E6; /* Text Main */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* Section styling */
.page-sports__hero-section,
.page-sports__intro-section,
.page-sports__sports-types-section,
.page-sports__betting-guide-section,
.page-sports__promotions-section,
.page-sports__benefits-section,
.page-sports__faq-section,
.page-sports__conclusion-section {
    padding: 60px 20px;
    position: relative;
}

.page-sports__hero-section {
    padding-top: 10px; /* Small top padding for hero, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Ensure no overflow issues */
}

.page-sports__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width of the image */
    margin-bottom: 30px;
    overflow: hidden;
}

.page-sports__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 300px; /* Ensure hero image is not too small */
}

.page-sports__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure content is above any potential background layers */
}

.page-sports__main-title {
    font-size: clamp(2em, 5vw, 3em); /* Responsive font size for H1 */
    color: #FFA53A; /* Auxiliary color for emphasis */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-sports__subtitle {
    font-size: 1.1em;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-sports__cta-buttons--center {
    justify-content: center;
    margin-top: 40px;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-sports__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
    color: #FFF3E6; /* Text Main */
    border: none;
}

.page-sports__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-sports__btn-secondary {
    background-color: transparent;
    color: #FFA53A; /* Auxiliary color */
    border: 2px solid #FFA53A; /* Auxiliary color */
}

.page-sports__btn-secondary:hover {
    background-color: #FFA53A;
    color: #0D0E12; /* Dark background color */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 165, 58, 0.2);
}

.page-sports__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-sports__btn-large {
    padding: 18px 35px;
    font-size: 1.1em;
}


/* Content container */
.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add some padding for smaller screens */
    box-sizing: border-box;
}

.page-sports__section-title {
    font-size: 2.5em;
    color: #FFA53A; /* Auxiliary color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
}

.page-sports__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FFA53A 0%, #D96800 100%);
    margin: 15px auto 0;
    border-radius: 2px;
}

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

.page-sports p {
    margin-bottom: 15px;
    color: #FFF3E6; /* Text Main */
}

.page-sports ul,
.page-sports ol {
    margin-bottom: 15px;
    padding-left: 25px;
    color: #FFF3E6; /* Text Main */
}

.page-sports li {
    margin-bottom: 8px;
    color: #FFF3E6; /* Text Main */
}

.page-sports strong {
    color: #FFA53A; /* Highlight keywords */
}

.page-sports a {
    color: #FFA53A; /* Link color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-sports a:hover {
    color: #FFB04D; /* Glow color for hover */
    text-decoration: underline;
}

/* Card styling */
.page-sports__card-bg {
    background-color: #17191F; /* Card BG */
}

.page-sports__card {
    background-color: #17191F; /* Card BG */
    border: 1px solid #A84F0C; /* Border */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #FFF3E6; /* Text Main */
}

.page-sports__card-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Minimum image height */
    max-height: 300px; /* Max height for cards */
    display: block; /* Ensure no extra space below image */
}

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

.page-sports__card p {
    font-size: 0.95em;
    margin-bottom: 15px;
}

/* Grid layouts */
.page-sports__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

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

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

.page-sports__benefit-card {
    text-align: center;
    align-items: center;
}

.page-sports__benefit-card .page-sports__card-title {
    text-align: center;
    width: 100%;
}

.page-sports__content-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum image height */
}

/* FAQ Section */
.page-sports__faq-list {
    margin-top: 30px;
}

.page-sports__faq-item {
    background-color: #17191F; /* Card BG */
    border: 1px solid #A84F0C; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    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: #FFA53A; /* Auxiliary color */
    cursor: pointer;
    background-color: #17191F; /* Card BG */
    transition: background-color 0.3s ease;
}

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

.page-sports__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #FF8C1A; /* Main color */
}

.page-sports__faq-answer {
    padding: 0 25px 20px;
    color: #FFF3E6; /* Text Main */
    font-size: 0.95em;
    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; /* Arbitrary large value */
    padding: 0 25px 20px;
}

/* Fix for details tag's default marker */
.page-sports__faq-item summary {
    list-style: none;
}

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


/* Responsive styles */
@media (max-width: 1024px) {
    .page-sports__section-title {
        font-size: 2.2em;
    }
    .page-sports__subsection-title {
        font-size: 1.6em;
    }
    .page-sports__card-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section,
    .page-sports__intro-section,
    .page-sports__sports-types-section,
    .page-sports__betting-guide-section,
    .page-sports__promotions-section,
    .page-sports__benefits-section,
    .page-sports__faq-section,
    .page-sports__conclusion-section {
        padding: 40px 15px;
    }

    .page-sports__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }
    .page-sports__subtitle {
        font-size: 1em;
    }
    .page-sports__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-sports__subsection-title {
        font-size: 1.4em;
    }
    .page-sports__card-title {
        font-size: 1.2em;
    }

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

    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images responsiveness */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-sports__hero-image-wrapper,
    .page-sports__container,
    .page-sports__card,
    .page-sports__grid-layout,
    .page-sports__promo-grid,
    .page-sports__benefit-grid,
    .page-sports__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important; /* Remove container padding as sections have it */
        padding-right: 0 !important; /* Remove container padding as sections have it */
    }

    .page-sports__card-image {
        max-height: 250px; /* Adjust card image height for mobile */
    }

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

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