/* style/sports.css */

/* General page styles */
.page-sports {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Text color for dark background */
    background-color: var(--dark-bg-1); /* Inherited from shared.css */
}

/* Fixed Header Offset */
.page-sports__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #017439, #005a2d);
}

.page-sports__hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Adjust as needed */
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Sections */
.page-sports__section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-sports__section--dark {
    background-color: #017439;
    color: #ffffff;
}

.page-sports__section--light {
    background-color: #ffffff;
    color: #333333;
}

/* Headings */
.page-sports__title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-sports__subtitle {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-sports__button {
    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, transform 0.2s ease;
    cursor: pointer;
    margin: 10px;
    max-width: 100%; /* For responsive */
    box-sizing: border-box; /* For responsive */
    white-space: normal; /* For responsive */
    word-wrap: break-word; /* For responsive */
    font-size: 1.1em;
}

.page-sports__button--primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    border: none;
    box-shadow: 0 4px 15px rgba(195, 8, 8, 0.4);
}

.page-sports__button--primary:hover {
    background-color: #e00a0a;
    transform: translateY(-2px);
}

.page-sports__button--secondary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
    box-shadow: 0 4px 15px rgba(1, 116, 57, 0.4);
}

.page-sports__button--secondary:hover {
    background-color: #005a2d;
    transform: translateY(-2px);
}

/* Hero Video */
.page-sports__hero-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px; /* Adjust max-width */
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-sports__hero-video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.page-sports__video-link {
    display: block;
}

.page-sports__hero-buttons {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 600px;
}

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

.page-sports__feature-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark bg */
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    color: #ffffff;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__feature-item:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-sports__feature-icon {
    font-size: 2.5em;
    color: #FFFF00; /* Accent color */
    margin-bottom: 15px;
    display: block;
}

.page-sports__feature-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-sports__feature-description {
    font-size: 1em;
    color: #e0e0e0;
}

/* Products Section (Sports Categories) */
.page-sports__products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__product-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    color: #333333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-sports__product-card:hover {
    transform: translateY(-8px);
}

.page-sports__product-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-sports__product-content {
    padding: 25px;
}

.page-sports__product-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #017439;
}

.page-sports__product-description {
    font-size: 1em;
    color: #555555;
}

/* Promotions Section */
.page-sports__promotion-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-sports__promotion-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 25px;
    margin-bottom: 15px;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    transition: background-color 0.3s ease;
}

.page-sports__promotion-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-sports__promotion-icon {
    font-size: 3em;
    color: #FFFF00;
    flex-shrink: 0;
}

.page-sports__promotion-text h3 {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 8px;
}

.page-sports__promotion-text p {
    font-size: 0.95em;
    color: #e0e0e0;
    margin: 0;
}

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

.page-sports__guide-step {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    color: #333333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-sports__guide-step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #017439;
    margin-bottom: 15px;
    display: block;
}

.page-sports__guide-step-title {
    font-size: 1.7em;
    color: #017439;
    margin-bottom: 10px;
}

.page-sports__guide-step-description {
    font-size: 1em;
    color: #555555;
}

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

.page-sports__security-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark bg */
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__security-icon {
    font-size: 2.5em;
    color: #FFFF00;
    margin-bottom: 15px;
    display: block;
}

.page-sports__security-title {
    font-size: 1.6em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-sports__security-description {
    font-size: 1em;
    color: #e0e0e0;
}

/* Responsible Gaming Section */
.page-sports__responsible-gaming-content {
    background-color: rgba(1, 116, 57, 0.15); /* Lighter shade of primary for contrast */
    padding: 40px;
    border-radius: 12px;
    color: #ffffff;
    margin-top: 40px;
    text-align: left;
}

.page-sports__responsible-gaming-content p {
    margin-bottom: 25px;
    color: #e0e0e0;
    font-size: 1em;
}

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

.page-sports__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.15em;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

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

.page-sports__faq-toggle {
    font-size: 1.6em;
    line-height: 1;
    color: #FFFF00;
    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: #e0e0e0;
    font-size: 1em;
}

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

/* Call to Action Section */
.page-sports__cta-buttons {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Images Global */
.page-sports img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Consistent styling */
    filter: none !important; /* Ensure no filter on images */
}

/* Responsive styles */
@media (max-width: 768px) {
    .page-sports {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-sports__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        min-height: auto;
    }

    .page-sports__title {
        font-size: 2.2em;
    }

    .page-sports__subtitle {
        font-size: 1em;
    }

    .page-sports__section {
        padding: 40px 15px;
    }

    /* Images Mobile */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video Mobile */
    .page-sports video,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__hero-video-wrapper {
      padding: 0;
      margin: 20px auto;
      border-radius: 0;
      box-shadow: none;
    }
    .page-sports__hero-video {
      border-radius: 0;
    }

    /* Ensure all content containers are responsive */
    .page-sports__hero-content,
    .page-sports__features-grid,
    .page-sports__feature-item,
    .page-sports__products-grid,
    .page-sports__product-card,
    .page-sports__promotion-list,
    .page-sports__promotion-item,
    .page-sports__guide-steps,
    .page-sports__guide-step,
    .page-sports__security-grid,
    .page-sports__security-item,
    .page-sports__responsible-gaming-content,
    .page-sports__faq-list,
    .page-sports__faq-item,
    .page-sports__cta-buttons,
    .page-sports__hero-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Specific adjustments for items with padding */
    .page-sports__feature-item,
    .page-sports__product-card .page-sports__product-content,
    .page-sports__promotion-item,
    .page-sports__guide-step,
    .page-sports__security-item,
    .page-sports__responsible-gaming-content,
    .page-sports__faq-item .page-sports__faq-question,
    .page-sports__faq-item .page-sports__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Buttons mobile stacking */
    .page-sports__hero-buttons,
    .page-sports__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-sports__button {
        width: 100% !important; /* Full width buttons */
        padding: 12px 20px;
    }

    .page-sports__promotion-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .page-sports__promotion-icon {
        margin-bottom: 10px;
    }
}