/* style/sports.css */

/* Base styles for the page content */
.page-sports {
    color: #ffffff; /* Default text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css */
}

/* Container for consistent content width */
.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-sports__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Section introductions */
.page-sports__section-intro {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General button styles */
.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    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; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-sports__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-sports__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

.page-sports__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

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

.page-sports__btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

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

.page-sports__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
    padding: 40px;
}

.page-sports__hero-title {
    font-size: 3.5em;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-sports__hero-description {
    font-size: 1.4em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

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

/* Why Choose Us Section */
.page-sports__why-choose-us-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-sports__why-choose-us-section .page-sports__section-title,
.page-sports__why-choose-us-section .page-sports__section-intro {
    color: #333333;
}

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

.page-sports__feature-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-sports__feature-icon {
    width: 100%;
    max-width: 150px; /* Constrain icon size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px; /* Soften edges */
    object-fit: cover;
}

.page-sports__feature-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__feature-text {
    font-size: 1em;
    color: #555555;
}

/* Sports Categories Section */
.page-sports__categories-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Dark background from body */
    color: #ffffff;
}

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

.page-sports__category-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-sports__category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-sports__category-card h3,
.page-sports__category-card p {
    padding: 15px 20px;
    margin: 0;
}

.page-sports__category-title {
    font-size: 1.4em;
    color: #017439;
    font-weight: bold;
}

.page-sports__category-text {
    font-size: 0.95em;
    color: #f0f0f0;
    padding-top: 0;
}

/* How to Play Section */
.page-sports__how-to-play-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-sports__how-to-play-section .page-sports__section-title,
.page-sports__how-to-play-section .page-sports__section-intro {
    color: #333333;
}

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

.page-sports__step-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-sports__step-title {
    font-size: 1.4em;
    color: #333333;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-sports__step-text {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

/* Promotions Section */
.page-sports__promotions-section {
    padding: 80px 0;
    background-color: #1a1a2e;
    color: #ffffff;
}

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

.page-sports__promotion-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-sports__promotion-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-sports__promotion-title {
    font-size: 1.4em;
    color: #017439;
    padding: 15px 20px 0;
    font-weight: bold;
}

.page-sports__promotion-text {
    font-size: 0.95em;
    color: #f0f0f0;
    padding: 0 20px 20px;
}

.page-sports__promotion-card .page-sports__btn-primary {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

.page-sports__view-all-promos {
    text-align: center;
    margin-top: 50px;
}

/* Responsible Gaming Section */
.page-sports__responsible-gaming-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-sports__responsible-gaming-section .page-sports__section-title,
.page-sports__responsible-gaming-section .page-sports__section-intro {
    color: #333333;
}

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

.page-sports__rg-text-block {
    flex: 1;
    min-width: 300px;
}

.page-sports__rg-subtitle {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 20px;
}

.page-sports__rg-text-block p {
    margin-bottom: 15px;
    color: #555555;
}

.page-sports__rg-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-sports__rg-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-sports__faq-section .page-sports__section-title {
    color: #333333;
}

.page-sports__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-sports__faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.page-sports__faq-item:last-child {
    border-bottom: none;
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #f8f8f8;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.page-sports__faq-title {
    font-size: 1.2em;
    color: #333333;
    margin: 0;
    font-weight: bold;
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
    transform: rotate(45deg); /* Or simply change to '−' */
}

.page-sports__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: #ffffff;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important; /* Ensure it expands fully */
    padding: 20px 25px;
}

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

.page-sports__faq-answer .page-sports__btn-small {
    margin-top: 10px;
}


/* Call to Action Section */
.page-sports__cta-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color background */
    color: #ffffff;
    text-align: center;
}

.page-sports__cta-content {
    max-width: 900px;
}

.page-sports__cta-section .page-sports__section-title {
    color: #ffffff;
}

.page-sports__cta-section .page-sports__section-intro {
    color: #f0f0f0;
}

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

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

@media (max-width: 768px) {
    .page-sports__hero-section {
        padding: 80px 0;
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }
    .page-sports__hero-title {
        font-size: 2.5em;
    }
    .page-sports__hero-description {
        font-size: 1.1em;
    }
    .page-sports__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__hero-cta-buttons .page-sports__btn-primary,
    .page-sports__hero-cta-buttons .page-sports__btn-secondary {
        width: 100%;
        max-width: 300px; /* Limit button width on small screens */
        margin: 0 auto;
    }

    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__section-intro {
        font-size: 1em;
    }

    .page-sports__features-grid,
    .page-sports__categories-grid,
    .page-sports__steps-grid,
    .page-sports__promotions-grid {
        grid-template-columns: 1fr;
    }

    .page-sports__feature-card,
    .page-sports__category-card,
    .page-sports__step-card,
    .page-sports__promotion-card {
        padding: 20px;
    }
    
    /* Image and video responsive adaptation for mobile */
    .page-sports img,
    .page-sports video,
    .page-sports__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__video-section,
    .page-sports__video-container,
    .page-sports__video-wrapper,
    .page-sports__hero-section,
    .page-sports__why-choose-us-section,
    .page-sports__categories-section,
    .page-sports__how-to-play-section,
    .page-sports__promotions-section,
    .page-sports__faq-section,
    .page-sports__cta-section,
    .page-sports__cta-buttons,
    .page-sports__button-group,
    .page-sports__btn-container,
    .page-sports__rg-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent content touching edges */
        padding-right: 15px; /* Add padding to prevent content touching edges */
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Button specific mobile adaptations */
    .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;
      margin-left: 0 !important; /* Reset any specific margins */
      margin-right: 0 !important;
    }

    .page-sports__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }
    
    .page-sports__promotion-card .page-sports__btn-primary {
        width: auto !important;
        max-width: 100% !important;
        margin: 0 auto 20px auto !important;
    }

    .page-sports__faq-question {
        padding: 15px 20px;
    }
    .page-sports__faq-answer {
        padding: 0 20px;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 15px 20px;
    }
    .page-sports__rg-content {
        flex-direction: column;
    }
}

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

/* Color contrast enforcement (based on body background #1a1a2e - dark) */
/* Default text color for .page-sports is already #ffffff */
.page-sports__dark-bg {
  background-color: #1a1a2e; /* Example dark background */
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #ffffff; /* Example light background */
  color: #333333;
}

/* Specific elements that might override default text color on dark background */
.page-sports__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark body */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}