/* style/sports.css */

:root {
    --primary-color: #0A2342;
    --secondary-color: #E0B34D;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-light: #f8f9fa;
    --background-dark: #0d0d0d; /* Assuming shared.css defines --dark-bg as a dark color */
    --card-bg-light: #ffffff;
    --border-color: #e0e0e0;
}

.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default for dark body background */
    background-color: var(--background-dark); /* Inherited from shared.css body */
}

.page-sports__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
    min-height: 600px;
    overflow: hidden;
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

.page-sports__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.page-sports__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-sports__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-sports__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.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, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

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

.page-sports__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.page-sports__section-title--light {
    color: var(--text-light);
}

.page-sports__features-section,
.page-sports__offer-section,
.page-sports__responsible-gambling-section,
.page-sports__cta-section {
    padding: 80px 20px;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-sports__features-grid,
.page-sports__offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-sports__feature-card,
.page-sports__offer-card {
    background-color: var(--card-bg-light);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

.page-sports__feature-card:hover,
.page-sports__offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-sports__feature-icon,
.page-sports__offer-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-sports__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-sports__card-description {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.page-sports__video-section {
    background-color: var(--primary-color);
    padding: 80px 20px;
    text-align: center;
    color: var(--text-light);
}

.page-sports__video-wrapper {
    max-width: 900px;
    margin: 0 auto 30px auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.page-sports__video-caption {
    font-size: 1.1em;
    opacity: 0.8;
}

.page-sports__mobile-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    gap: 50px;
}

.page-sports__mobile-content {
    max-width: 500px;
    text-align: left;
}

.page-sports__mobile-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-sports__mobile-image-wrapper {
    max-width: 400px;
}

.page-sports__mobile-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-sports__responsible-gambling-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.page-sports__text-block {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.page-sports__faq-section {
    padding: 80px 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

.page-sports__faq-item {
    background-color: var(--card-bg-light);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--primary-color);
    background-color: var(--card-bg-light);
    border-bottom: 1px solid var(--border-color);
}

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

.page-sports__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
}

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

.page-sports__cta-section {
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.page-sports__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

@media (max-width: 768px) {
    .page-sports {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-sports__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure spacing on mobile */
        min-height: 400px;
    }
    .page-sports__hero-title {
        font-size: 2.5em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__features-section,
    .page-sports__offer-section,
    .page-sports__responsible-gambling-section,
    .page-sports__cta-section,
    .page-sports__video-section,
    .page-sports__mobile-section,
    .page-sports__faq-section {
        padding: 40px 15px;
    }
    .page-sports__features-grid,
    .page-sports__offer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-sports__feature-icon,
    .page-sports__offer-image {
        height: auto;
        max-width: 100% !important;
        width: 100% !important;
        display: block !important;
    }
    .page-sports__feature-card,
    .page-sports__offer-card,
    .page-sports__mobile-section,
    .page-sports__video-wrapper,
    .page-sports__faq-item,
    .page-sports__faq-question,
    .page-sports__faq-answer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-sports__mobile-section {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .page-sports__mobile-content {
        text-align: center;
        max-width: 100%;
    }
    .page-sports__mobile-image-wrapper {
        max-width: 100%;
    }
    .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 {
        padding-top: var(--header-offset, 120px) !important;
    }
}

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 2em;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__faq-question {
        font-size: 1em;
    }
}