/* style/sports.css */

/* Base styles for the page, assuming a dark background from shared.css */
/* Body background from shared.css is var(--background-color), which is #08160F. */
/* Therefore, main text color should be light, #F2FFF6. */
.page-sports {
    font-family: 'Arial', sans-serif;
    color: #F2FFF6; /* Text Main */
    background-color: var(--background-color, #08160F); /* Fallback to Deep Green if var not set */
    line-height: 1.6;
    font-size: 16px;
}

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

.page-sports__section-title {
    font-size: 2.5em; /* Adjusted for larger titles */
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-sports__main-title {
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    max-width: 900px; /* To prevent extremely long lines */
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Ensure image is above text */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: #08160F; /* Background color for the section */
}

.page-sports__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-sports__hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    z-index: 1; /* Ensure text is above any potential background layers */
}

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

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

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

.page-sports__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
}

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

.page-sports__btn-secondary {
    background-color: transparent;
    color: #2AD16F; /* Green color for text */
    border: 2px solid #2AD16F;
}

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

/* General Section Styling */
.page-sports__introduction-section,
.page-sports__features-section,
.page-sports__bet-types-section,
.page-sports__promotions-section,
.page-sports__guide-section,
.page-sports__responsible-gaming-section,
.page-sports__faq-section,
.page-sports__cta-section {
    padding: 80px 0;
}

.page-sports__dark-bg {
    background-color: #08160F; /* Background */
    color: #F2FFF6; /* Text Main */
}

.page-sports__light-bg {
    background-color: #0A4B2C; /* Deep Green, slightly lighter than main bg for contrast */
    color: #F2FFF6; /* Text Main */
}

.page-sports__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    color: #A7D9B8; /* Text Secondary */
}

.page-sports__text-block a {
    color: #2AD16F; /* Link color */
    text-decoration: none;
}

.page-sports__text-block a:hover {
    text-decoration: underline;
}

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

.page-sports__feature-card,
.page-sports__promo-card,
.page-sports__bet-type-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-sports__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-sports__card-title {
    font-size: 1.5em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__card-title a {
    color: #F2FFF6;
    text-decoration: none;
}

.page-sports__card-title a:hover {
    color: #2AD16F;
}

.page-sports__card-text {
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to grow */
}

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

.page-sports__guide-step {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
}

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

.page-sports__faq-item {
    background-color: #11271B; /* Card BG */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #2E7A4E; /* Border */
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    background-color: #11271B;
    position: relative;
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
    background-color: #1E3A2A; /* Divider color for hover */
}

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

.page-sports__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #2AD16F; /* Green */
}

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

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

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

/* Images and other elements responsive */
.page-sports img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-sports__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-sports__main-title {
        font-size: 2em;
    }

    .page-sports__hero-section {
        padding-bottom: 40px;
    }

    .page-sports__hero-content {
        padding: 0 15px;
    }

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

    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-sports__introduction-section,
    .page-sports__features-section,
    .page-sports__bet-types-section,
    .page-sports__promotions-section,
    .page-sports__guide-section,
    .page-sports__responsible-gaming-section,
    .page-sports__faq-section,
    .page-sports__cta-section {
        padding: 60px 0;
    }

    .page-sports__container {
        padding: 0 15px;
    }

    .page-sports__features-grid,
    .page-sports__promotions-grid,
    .page-sports__bet-types-grid,
    .page-sports__guide-steps {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .page-sports__feature-card,
    .page-sports__promo-card,
    .page-sports__bet-type-card,
    .page-sports__guide-step {
        padding: 20px;
    }

    .page-sports__card-image {
        height: 180px; /* Adjust height for mobile */
    }

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

    .page-sports__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-sports__faq-answer {
        padding: 0 20px 15px;
    }

    /* Mobile image responsiveness enforcement */
    .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,
    .page-sports__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-sports__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* Button responsive rules */
    .page-sports__cta-button,
    .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;
    }
    
    .page-sports__cta-buttons,
    .page-sports__button-group,
    .page-sports__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    
    .page-sports__cta-buttons {
      display: flex;
      flex-direction: column; /* Mobile vertical stacking */
    }
}