:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--background);
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px;
    padding-top: 10px; /* Small top padding, not var(--header-offset) */
    overflow: hidden;
    background-color: var(--background);
}

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

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

.page-sports__hero-content {
    max-width: 900px;
    padding: 20px;
    margin-top: 20px;
    z-index: 1;
    color: var(--text-main);
}

.page-sports__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-main);
}

.page-sports__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.page-sports__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-sports__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* General Section Styling */
.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-sports__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main);
}

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

/* Light Background Section */
.page-sports__light-bg {
    background-color: #ffffff; /* Default light background */
    color: #333333; /* Dark text for light background */
}

.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__feature-title,
.page-sports__light-bg .page-sports__faq-qtext,
.page-sports__light-bg .page-sports__step-title {
    color: var(--deep-green);
}

.page-sports__light-bg .page-sports__section-description,
.page-sports__light-bg .page-sports__feature-text,
.page-sports__light-bg .page-sports__faq-answer p,
.page-sports__light-bg .page-sports__step-text {
    color: #555555;
}

/* Dark Background Section */
.page-sports__dark-bg {
    background-color: var(--background);
    color: var(--text-main);
}

.page-sports__dark-bg .page-sports__section-title,
.page-sports__dark-bg .page-sports__type-title,
.page-sports__dark-bg .page-sports__promo-title {
    color: var(--text-main);
}

.page-sports__dark-bg .page-sports__section-description,
.page-sports__dark-bg .page-sports__type-list li,
.page-sports__dark-bg .page-sports__promo-text {
    color: var(--text-secondary);
}

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

.page-sports__feature-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--text-main);
}

.page-sports__light-bg .page-sports__feature-card {
    background-color: #f8f8f8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-sports__feature-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
}

.page-sports__light-bg .page-sports__feature-title {
    color: var(--deep-green);
}

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

.page-sports__light-bg .page-sports__feature-text {
    color: #555555;
}

.page-sports__image--centered {
    display: block;
    margin: 0 auto 40px auto;
    border-radius: 10px;
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

/* Betting Types Section */
.page-sports__type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-sports__type-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-main);
}

.page-sports__type-image {
    width: 100%;
    height: 250px; /* Fixed height for type images */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-sports__type-title {
    font-size: 1.6em;
    font-weight: 600;
    padding: 20px 20px 10px;
    color: var(--text-main);
}

.page-sports__type-list {
    list-style: none;
    padding: 0 20px 20px;
    margin: 0;
    color: var(--text-secondary);
}

.page-sports__type-list li {
    margin-bottom: 10px;
    font-size: 0.95em;
}

.page-sports__type-list strong {
    color: var(--text-main);
}

/* How-To-Bet Section */
.page-sports__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

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

.page-sports__step-number {
    width: 50px;
    height: 50px;
    background-color: var(--deep-green);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-sports__step-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--deep-green);
}

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

.page-sports__step-text a {
    color: var(--deep-green);
    text-decoration: underline;
}

.page-sports__btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

/* Promotions Section */
.page-sports__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-sports__promo-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-main);
}

.page-sports__promo-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--gold-color); /* Use gold for promo titles */
}

.page-sports__promo-text {
    font-size: 1em;
    color: var(--text-secondary);
}

.page-sports__promo-text a {
    color: var(--gold-color);
    text-decoration: underline;
}

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

.page-sports__faq-item {
    background-color: #f8f8f8;
    border: 1px solid var(--divider-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    background-color: #ffffff;
    color: var(--deep-green);
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari */
    -khtml-user-select: none;    /* Konqueror HTML */
    -moz-user-select: none;      /* Old versions of Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-sports__faq-item[open] .page-sports__faq-question {
    background-color: #e6ffe6; /* Light green when open */
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--deep-green);
}

.page-sports__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #555555;
    border-top: 1px solid var(--divider-color);
}

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

/* Conclusion Section */
.page-sports__conclusion {
    padding: 60px 20px;
    text-align: center;
}

.page-sports__conclusion-content {
    max-width: 800px;
}

.page-sports__conclusion .page-sports__section-title {
    color: var(--text-main);
}

.page-sports__conclusion .page-sports__section-description {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.page-sports__conclusion .page-sports__section-description a {
    color: var(--gold-color);
    text-decoration: underline;
}

/* Ensure all links have appropriate color and contrast */
.page-sports a {
    color: var(--gold-color); /* Use gold for general links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-sports a:hover {
    color: var(--glow-color);
    text-decoration: underline;
}

/* Specific link colors for light background sections */
.page-sports__light-bg a {
    color: var(--deep-green);
}

.page-sports__light-bg a:hover {
    color: var(--primary-color);
}

/* Contrast fixes */
.page-sports__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-sports__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}

/* Ensure minimum image display size */
.page-sports img {
    min-width: 200px;
    min-height: 200px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-sports__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-sports__section-title {
        font-size: clamp(1.6em, 4vw, 2.5em);
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important; /* Small top padding, important for mobile */
    }

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

    .page-sports__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

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

    .page-sports__cta-button {
        padding: 12px 25px;
        font-size: 0.9em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-sports__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 30px;
    }

    .page-sports__section-description {
        font-size: 0.95em;
        margin-bottom: 40px;
    }

    .page-sports__features-grid,
    .page-sports__type-cards,
    .page-sports__steps-grid,
    .page-sports__promo-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-sports__feature-card,
    .page-sports__type-card,
    .page-sports__step-card,
    .page-sports__promo-card {
        padding: 20px;
    }

    .page-sports__image--centered {
        margin-bottom: 30px;
    }

    .page-sports__type-image {
        height: 200px;
    }

    .page-sports__step-title {
        font-size: 1.2em;
    }

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

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

    /* Mobile image responsiveness */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-sports__section,
    .page-sports__container,
    .page-sports__hero-section,
    .page-sports__intro-section,
    .page-sports__betting-types,
    .page-sports__how-to-bet,
    .page-sports__promotions,
    .page-sports__faq-section,
    .page-sports__conclusion {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Button responsiveness for multiple buttons */
    .page-sports__steps-grid .page-sports__btn-primary {
        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;
    }
}