/* style/sports.css */

/* Root variables for colors */
:root {
    --ss777-primary-color: #F2C14E;
    --ss777-secondary-color: #FFD36B;
    --ss777-card-bg: #111111;
    --ss777-background: #0A0A0A;
    --ss777-text-main: #FFF6D6;
    --ss777-border: #3A2A12;
    --ss777-glow: #FFD36B;
    --ss777-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-sports {
    color: var(--ss777-text-main); /* Ensure light text on dark body background */
    background-color: var(--ss777-background);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-sports__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--ss777-primary-color);
    letter-spacing: 1px;
}

.page-sports__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--ss777-text-main);
}

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

.page-sports__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit image height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-sports__hero-content {
    text-align: center;
    padding: 30px 20px;
    max-width: 900px;
    z-index: 1;
    margin-top: -100px; /* Pull content up slightly over the image */
    background: rgba(10, 10, 10, 0.7); /* Semi-transparent background for readability */
    border-radius: 10px;
    padding-bottom: 40px;
}

.page-sports__hero-title {
    font-size: clamp(2.2em, 4vw, 3.5em);
    font-weight: 700;
    color: var(--ss777-secondary-color);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

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

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

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

.page-sports__btn-primary {
    background: var(--ss777-button-gradient);
    color: #ffffff; /* White text on primary button */
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-sports__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

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

.page-sports__btn-secondary:hover {
    background: var(--ss777-secondary-color);
    color: var(--ss777-card-bg);
    transform: translateY(-2px);
}

/* Video Section */
.page-sports__video-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    background-color: var(--ss777-background);
}

.page-sports__video-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-sports__video-link {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-sports__video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Features Section */
.page-sports__features-section {
    padding: 60px 0;
    background-color: var(--ss777-background);
}

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

.page-sports__card {
    background-color: var(--ss777-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--ss777-border);
    transition: transform 0.3s ease;
    color: var(--ss777-text-main);
}

.page-sports__card:hover {
    transform: translateY(-5px);
}

.page-sports__feature-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__feature-title {
    font-size: 1.5em;
    color: var(--ss777-primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-sports__feature-text {
    font-size: 1em;
    color: var(--ss777-text-main);
}

/* Popular Sports Section */
.page-sports__popular-sports-section {
    padding: 60px 0;
    background-color: var(--ss777-background);
}

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

.page-sports__sport-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-sports__sport-title {
    font-size: 1.4em;
    color: var(--ss777-primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-sports__sport-text {
    font-size: 0.95em;
    color: var(--ss777-text-main);
}

/* Live Betting Section */
.page-sports__live-betting-section {
    padding: 60px 0;
    background-color: var(--ss777-card-bg);
    color: var(--ss777-text-main);
}

.page-sports__live-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-sports__live-image {
    flex: 1 1 500px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: block;
}

.page-sports__live-text-content {
    flex: 1 1 400px;
}

.page-sports__live-subtitle {
    font-size: 1.8em;
    color: var(--ss777-secondary-color);
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-sports__live-text-content p {
    margin-bottom: 15px;
}

.page-sports__live-text-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-sports__live-text-content li {
    margin-bottom: 8px;
}

/* Promotions Section */
.page-sports__promotions-section {
    padding: 60px 0;
    background-color: var(--ss777-background);
}

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

.page-sports__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-sports__promo-title {
    font-size: 1.4em;
    color: var(--ss777-primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-sports__promo-text {
    font-size: 0.95em;
    color: var(--ss777-text-main);
    margin-bottom: 20px;
}

/* Getting Started Section */
.page-sports__getting-started-section {
    padding: 60px 0;
    background-color: var(--ss777-card-bg);
    color: var(--ss777-text-main);
}

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

.page-sports__step-card {
    text-align: center;
}

.page-sports__step-number {
    font-size: 3em;
    font-weight: bold;
    color: var(--ss777-secondary-color);
    margin-bottom: 15px;
    line-height: 1;
}

.page-sports__step-title {
    font-size: 1.5em;
    color: var(--ss777-primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

/* Mobile App Section */
.page-sports__mobile-app-section {
    padding: 60px 0;
    background-color: var(--ss777-background);
}

.page-sports__app-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-sports__app-image {
    flex: 1 1 400px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.page-sports__app-text-content {
    flex: 1 1 500px;
}

.page-sports__app-subtitle {
    font-size: 1.8em;
    color: var(--ss777-secondary-color);
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-sports__app-text-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-sports__app-text-content li {
    margin-bottom: 8px;
}

/* Responsible Gambling Section */
.page-sports__responsible-gambling-section {
    padding: 60px 0;
    background-color: var(--ss777-card-bg);
    color: var(--ss777-text-main);
}

.page-sports__responsible-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    flex-direction: row-reverse; /* Image on right */
}

.page-sports__responsible-image {
    flex: 1 1 500px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: block;
}

.page-sports__responsible-text-content {
    flex: 1 1 400px;
}

.page-sports__responsible-subtitle {
    font-size: 1.8em;
    color: var(--ss777-secondary-color);
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 60px 0;
    background-color: var(--ss777-background);
}

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

.page-sports__faq-item {
    background-color: var(--ss777-card-bg);
    border: 1px solid var(--ss777-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--ss777-primary-color);
    transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.1);
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--ss777-secondary-color);
    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;
    color: var(--ss777-text-main);
}

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 25px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-image-wrapper {
        max-height: 500px;
    }
    .page-sports__hero-content {
        margin-top: -80px;
    }
    .page-sports__live-content,
    .page-sports__app-content,
    .page-sports__responsible-content {
        flex-direction: column;
        text-align: center;
    }
    .page-sports__live-image,
    .page-sports__app-image,
    .page-sports__responsible-image {
        flex: 1 1 auto;
        width: 90%;
        max-width: 600px;
    }
    .page-sports__responsible-content {
        flex-direction: column; /* Revert order for smaller screens */
    }
    .page-sports__live-text-content,
    .page-sports__app-text-content,
    .page-sports__responsible-text-content {
        flex: 1 1 auto;
        width: 100%;
    }
    .page-sports__live-text-content ul,
    .page-sports__app-text-content ul {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__section-description {
        font-size: 1em;
    }
    .page-sports__hero-image-wrapper {
        max-height: 400px;
    }
    .page-sports__hero-content {
        margin-top: -60px;
        padding: 20px 15px;
    }
    .page-sports__hero-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    /* Images responsive */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-sports__container,
    .page-sports__section,
    .page-sports__card,
    .page-sports__video-container,
    .page-sports__video-link,
    .page-sports__hero-section,
    .page-sports__features-section,
    .page-sports__popular-sports-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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-sports__video-section {
        padding-top: 10px !important; /* Small decorative padding, body handles header offset */
        padding-bottom: 40px;
    }
    .page-sports__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-sports__faq-answer {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .page-sports__hero-image-wrapper {
        max-height: 300px;
    }
    .page-sports__hero-content {
        margin-top: -40px;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__hero-title {
        font-size: clamp(1.5em, 8vw, 2em);
    }
    .page-sports__feature-title,
    .page-sports__sport-title,
    .page-sports__promo-title,
    .page-sports__step-title,
    .page-sports__live-subtitle,
    .page-sports__app-subtitle,
    .page-sports__responsible-subtitle {
        font-size: 1.3em;
    }
}