/* style/sports.css */

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

/* Base styles for the page content, ensuring contrast with shared body background */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-sports-text-main); /* Default text color for dark background */
    background-color: var(--page-sports-background); /* Custom dark background */
}

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

.page-sports__dark-bg {
    background-color: var(--page-sports-background);
    color: var(--page-sports-text-main);
}

.page-sports__dark-section {
    background-color: var(--page-sports-deep-green);
    color: var(--page-sports-text-main);
}

.page-sports__card-bg {
    background-color: var(--page-sports-card-bg);
}

/* General container and layout */
.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-sports__content-area {
    padding: 60px 0;
}

.page-sports__flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Section Titles */
.page-sports__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--page-sports-text-main);
    line-height: 1.2;
}

.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__hero-description {
    color: #000000;
}

.page-sports__section-description {
    font-size: 1.1rem;
    color: var(--page-sports-text-secondary);
    margin-bottom: 40px;
}

.page-sports__text-main {
    color: var(--page-sports-text-main);
}

.page-sports__text-secondary {
    color: var(--page-sports-text-secondary);
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    text-align: center;
}

.page-sports__btn-primary {
    background: var(--page-sports-button-gradient);
    color: #ffffff;
    border: none;
}

.page-sports__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-sports__btn-secondary {
    background: transparent;
    color: var(--page-sports-primary-color);
    border: 2px solid var(--page-sports-primary-color);
}

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

.page-sports__btn-small {
    padding: 8px 18px;
    font-size: 0.9rem;
}

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

.page-sports__cta-buttons--center {
    justify-content: center;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding for the first section */
    padding-bottom: 80px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-sports__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
}

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

.page-sports__hero-content-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 40px;
}

.page-sports__hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--page-sports-text-main);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

.page-sports__hero-description {
    font-size: 1.2rem;
    color: var(--page-sports-text-secondary);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

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

.page-sports__card {
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--page-sports-border);
}

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

.page-sports__card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-sports__card-text {
    font-size: 1rem;
    color: var(--page-sports-text-secondary);
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Promotions Section */
.page-sports__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-sports__promo-card {
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--page-sports-border);
}

.page-sports__promo-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-sports__promo-text {
    font-size: 1rem;
    color: var(--page-sports-text-secondary);
    margin-bottom: 20px;
}

/* Getting Started Section */
.page-sports__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-sports__step-card {
    background-color: var(--page-sports-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-sports-border);
}

.page-sports__step-icon-wrapper {
    margin-bottom: 20px;
    min-height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-sports__step-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.page-sports__step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--page-sports-text-main);
}

/* Mobile App Section */
.page-sports__mobile-app-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 80px 0;
    gap: 40px;
}

.page-sports__mobile-app-content {
    flex: 1;
    text-align: left;
}

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

.page-sports__mobile-app-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
}

/* Responsible Gambling Section */
.page-sports__responsible-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__responsible-list li {
    background-color: #f5f5f5;
    color: #333333;
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.page-sports__responsible-list li::before {
    content: '✓';
    color: var(--page-sports-primary-color);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

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

.page-sports__faq-item {
    border: 1px solid var(--page-sports-border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--page-sports-text-main);
    background-color: var(--page-sports-card-bg);
}

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

.page-sports__faq-qtext {
    flex-grow: 1;
    color: var(--page-sports-text-main);
}

.page-sports__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: var(--page-sports-primary-color);
}

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

.page-sports__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1rem;
    color: var(--page-sports-text-secondary);
    background-color: var(--page-sports-card-bg);
    border-top: 1px solid var(--page-sports-divider);
}

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

/* Final CTA Section */
.page-sports__final-cta-section {
    padding: 80px 0;
}

/* Image & Video Responsiveness */
.page-sports img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.page-sports__video-section,
.page-sports__video-container,
.page-sports__video-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }

    .page-sports__section-title {
        font-size: 2rem;
    }

    .page-sports__mobile-app-section {
        flex-direction: column;
        text-align: center;
    }

    .page-sports__mobile-app-content {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section,
    .page-sports__introduction-section,
    .page-sports__categories-section,
    .page-sports__live-betting-section,
    .page-sports__promotions-section,
    .page-sports__getting-started-section,
    .page-sports__mobile-app-section,
    .page-sports__responsible-gambling-section,
    .page-sports__faq-section,
    .page-sports__final-cta-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-sports__hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

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

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

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

    .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__cta-buttons,
    .page-sports__button-group,
    .page-sports__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .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__video-section,
    .page-sports__video-container,
    .page-sports__video-wrapper,
    .page-sports__section,
    .page-sports__card,
    .page-sports__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-sports__video-section {
        padding-top: 10px !important;
    }

    .page-sports__responsible-list li {
        font-size: 1rem;
        padding: 12px 15px;
    }

    .page-sports__faq-item summary {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

    .page-sports__faq-answer {
        font-size: 0.95rem;
        padding: 10px 20px 15px 20px;
    }
}