/* style/sports.css */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Default body background */
}

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

.page-sports__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
}

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

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

.page-sports__hero-content {
    text-align: center;
    padding: 40px 20px;
    background-color: rgba(255, 255, 255, 0.95); /* Slightly translucent white background for readability */
    margin-top: -5px; /* Slight overlap with image for visual flow */
    position: relative;
    z-index: 1;
    color: #333333;
}

.page-sports__hero-title {
    font-size: 3.2em;
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-sports__hero-description {
    font-size: 1.2em;
    color: #555555;
    max-width: 800px;
    margin: 0 auto 30px;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-sports__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-sports__btn-primary:hover {
    background-color: #1a8cc7;
    border-color: #1a8cc7;
}

.page-sports__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

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

.page-sports__section-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #26A9E0;
}

.page-sports__section-subtitle {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
}

.page-sports__intro-section,
.page-sports__live-betting-section,
.page-sports__promotions-section,
.page-sports__security-section,
.page-sports__cta-final-section {
    padding: 60px 0;
}

.page-sports__dark-section {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 60px 0;
}

.page-sports__dark-section .page-sports__section-title,
.page-sports__dark-section .page-sports__section-subtitle,
.page-sports__dark-section .page-sports__card-title,
.page-sports__dark-section .page-sports__card-description {
    color: #ffffff;
}

.page-sports__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-sports__categories-section {
    padding: 60px 0;
}

.page-sports__category-grid,
.page-sports__betting-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-sports__category-card,
.page-sports__type-card,
.page-sports__promo-card,
.page-sports__step-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
}

.page-sports__dark-section .page-sports__category-card,
.page-sports__dark-section .page-sports__type-card,
.page-sports__dark-section .page-sports__step-card {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

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

.page-sports__category-image,
.page-sports__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-sports__type-icon,
.page-sports__step-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 20px auto;
    display: block;
}

.page-sports__card-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #26A9E0;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-sports__dark-section .page-sports__card-title {
    color: #ffffff;
}

.page-sports__card-description {
    font-size: 1em;
    color: #555555;
    padding: 0 20px;
    margin-bottom: 20px;
}

.page-sports__btn-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    display: inline-block;
    margin-top: 10px;
}

.page-sports__btn-link:hover {
    text-decoration: underline;
}

.page-sports__live-betting-section .page-sports__content-wrapper,
.page-sports__security-section .page-sports__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-sports__live-betting-section .page-sports__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-sports__text-content {
    flex: 1;
}

.page-sports__image-content {
    flex: 1;
    text-align: center;
}

.page-sports__feature-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

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

.page-sports__how-to-start-section .page-sports__btn-link {
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 8px 15px;
    border-radius: 5px;
}

.page-sports__how-to-start-section .page-sports__btn-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-sports__faq-section {
    padding: 60px 0;
}

.page-sports__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    list-style: none;
    background-color: rgba(0, 0, 0, 0.1);
}

.page-sports__faq-question::-webkit-details-marker {
    display: none;
}

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

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

.page-sports__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 15px;
    line-height: 1;
}

.page-sports__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #ffffff;
}

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

.page-sports__cta-final-section .page-sports__section-title {
    color: #26A9E0;
}

.page-sports__cta-final-section .page-sports__section-subtitle {
    color: #555555;
}

/* General image rules for content area - min size */
.page-sports img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* @media (max-width: 1024px) for tablets */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 2.8em;
    }

    .page-sports__hero-description {
        font-size: 1.1em;
    }

    .page-sports__section-title {
        font-size: 2.2em;
    }

    .page-sports__section-subtitle {
        font-size: 1em;
    }

    .page-sports__category-grid,
    .page-sports__betting-types-grid,
    .page-sports__promo-grid,
    .page-sports__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .page-sports__live-betting-section .page-sports__content-wrapper,
    .page-sports__security-section .page-sports__content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .page-sports__live-betting-section .page-sports__content-wrapper--reverse {
        flex-direction: column;
    }

    .page-sports__text-content,
    .page-sports__image-content {
        width: 100%;
    }
}

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

    .page-sports__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section */
    .page-sports__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-sports__hero-image {
        object-fit: contain !important; /* Mobile main image contain, not cover */
        aspect-ratio: unset !important;
        max-height: none !important;
        width: 100% !important;
        height: auto !important;
    }

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

    .page-sports__hero-title {
        font-size: 2em;
        line-height: 1.3;
    }

    .page-sports__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

    /* Buttons and Button Containers */
    .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;
    }

    /* Section Titles and Subtitles */
    .page-sports__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-sports__section-subtitle {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Content sections padding */
    .page-sports__intro-section,
    .page-sports__live-betting-section,
    .page-sports__promotions-section,
    .page-sports__security-section,
    .page-sports__cta-final-section,
    .page-sports__categories-section,
    .page-sports__betting-types-section,
    .page-sports__how-to-start-section,
    .page-sports__faq-section {
        padding: 40px 0;
    }

    /* Image and Image Containers */
    .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,
    .page-sports__category-card,
    .page-sports__type-card,
    .page-sports__promo-card,
    .page-sports__step-card,
    .page-sports__content-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-sports__category-grid,
    .page-sports__betting-types-grid,
    .page-sports__promo-grid,
    .page-sports__steps-grid {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 20px;
    }

    .page-sports__category-image,
    .page-sports__promo-image {
        height: auto;
    }

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

    .page-sports__card-description {
        font-size: 0.9em;
    }

    /* Live Betting & Security sections */
    .page-sports__live-betting-section .page-sports__content-wrapper,
    .page-sports__security-section .page-sports__content-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .page-sports__live-betting-section .page-sports__content-wrapper--reverse {
        flex-direction: column;
    }

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

    .page-sports__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }
}