/* style/sports.css */

/* Base styles for the page */
.page-sports {
    font-family: Arial, sans-serif;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
    line-height: 1.6;
}

/* Section padding and max-width */
.page-sports__hero-section,
.page-sports__intro-section,
.page-sports__features-section,
.page-sports__types-section,
.page-sports__how-to-section,
.page-sports__promotions-section,
.page-sports__responsible-gaming-section,
.page-sports__faq-section,
.page-sports__cta-bottom-section {
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

/* Specific top padding for hero section (not using --header-offset) */
.page-sports__hero-section {
    padding-top: 10px; /* Small decorative top padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%; /* Ensure width: 100% for flex containers */
    box-sizing: border-box;
}

/* Hero Section */
.page-sports__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.page-sports__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.page-sports__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-sports__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: #F2C14E; /* Gold */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-sports__description {
    font-size: 1.2rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

/* CTA Buttons */
.page-sports__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px;
    justify-content: center;
}

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

.page-sports__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6; /* Text Main */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-sports__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-sports__btn-secondary {
    background-color: transparent;
    color: #F2FFF6; /* Text Main */
    border: 2px solid #2E7A4E; /* Border */
}

.page-sports__btn-secondary:hover {
    background-color: #2E7A4E; /* Border color as hover background */
    color: #F2FFF6;
}

.page-sports__btn-link {
    background-color: transparent;
    color: #57E38D; /* Glow */
    border: none;
    padding: 8px 0;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.page-sports__btn-link:hover {
    color: #F2C14E; /* Gold */
}

/* Section Titles */
.page-sports__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

/* Text Blocks */
.page-sports__text-block {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    text-align: justify;
}

/* Dark Section styling */
.page-sports__dark-section {
    background-color: #11271B; /* Card BG */
    color: #F2FFF6;
}

/* Feature Grid */
.page-sports__feature-grid,
.page-sports__game-grid,
.page-sports__steps-grid,
.page-sports__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Card Styling */
.page-sports__card {
    background-color: rgba(17, 39, 27, 0.7); /* Slightly transparent Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-sports__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px #57E38D; /* Glow */
}

.page-sports__feature-icon,
.page-sports__game-image {
    width: 100%;
    height: auto;
    max-height: 250px; /* Limit height for feature/game images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-sports__card-title {
    font-size: 1.5rem;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-sports__card-text {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take available space */
}

/* FAQ Section */
.page-sports__faq-list {
    margin-top: 40px;
}

.page-sports__faq-item {
    background-color: rgba(17, 39, 27, 0.7); /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-sports__faq-item[open] {
    background-color: #0A4B2C; /* Deep Green for open item */
    border-color: #57E38D; /* Glow border for open item */
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    list-style: none; /* Remove default marker */
    -webkit-tap-highlight-color: transparent; /* Prevent tap highlight on mobile */
}

.page-sports__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker */
}

.page-sports__faq-qtext {
    flex-grow: 1;
}

.page-sports__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Glow */
    transition: transform 0.3s ease;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
    color: #F2C14E; /* Gold */
}

.page-sports__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.7;
}

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

/* Center CTA */
.page-sports__center-cta {
    text-align: center;
    margin-top: 40px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-sports__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-sports__hero-image {
        max-height: 500px;
    }
    .page-sports__feature-grid,
    .page-sports__game-grid,
    .page-sports__steps-grid,
    .page-sports__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section,
    .page-sports__intro-section,
    .page-sports__features-section,
    .page-sports__types-section,
    .page-sports__how-to-section,
    .page-sports__promotions-section,
    .page-sports__responsible-gaming-section,
    .page-sports__faq-section,
    .page-sports__cta-bottom-section {
        padding: 40px 15px;
    }

    /* Fixed header spacing for first section */
    .page-sports__hero-section {
        padding-top: 10px !important; /* body already has padding-top from shared.css */
    }

    .page-sports__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .page-sports__description {
        font-size: 1rem;
    }

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

    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .page-sports__btn-link {
        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__btn-link {
        padding-left: 0;
        padding-right: 0;
    }

    .page-sports__section-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-sports__text-block {
        font-size: 0.95rem;
    }

    .page-sports__feature-grid,
    .page-sports__game-grid,
    .page-sports__steps-grid,
    .page-sports__promo-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 25px;
    }

    .page-sports__card {
        padding: 25px;
    }

    .page-sports__card-title {
        font-size: 1.3rem;
    }

    .page-sports__card-text {
        font-size: 0.9rem;
    }

    .page-sports__faq-question {
        font-size: 1rem;
        padding: 18px 20px;
    }

    .page-sports__faq-toggle {
        font-size: 1.5rem;
    }

    .page-sports__faq-answer {
        padding: 0 20px 18px;
        font-size: 0.9rem;
    }
    
    /* Mobile image responsiveness */
    .page-sports img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .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;
    }
    
    /* Ensure content images are not too small in CSS */
    .page-sports__feature-icon,
    .page-sports__game-image {
        min-width: 200px !important;
        min-height: 200px !important;
        max-height: none !important; /* Allow height to auto adjust */
    }
}

/* Ensure no filter on images */
.page-sports img {
    filter: none !important;
}

/* Ensure width: 100% for container elements on desktop too */
.page-sports__container,
.page-sports__hero-image-wrapper {
    width: 100%;
    box-sizing: border-box;
}