/* style/sports.css */

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

.page-sports__content-container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

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

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

/* Hero Section */
.page-sports__hero-section {
    background-color: #f8f8f8;
    padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
    padding-bottom: 60px;
}

.page-sports__hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 40px 16px;
    max-width: 1170px;
    margin: 0 auto;
}

.page-sports__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
}

.page-sports__hero-title {
    font-size: clamp(2em, 4vw, 3.2em);
    font-weight: 800;
    color: #26A9E0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-sports__hero-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
}

.page-sports__hero-cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page-sports__hero-image {
    flex: 1 1 40%;
    text-align: center;
    min-width: 300px;
}

.page-sports__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    transition: all 0.3s ease;
    text-align: center;
    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: #1e87b8;
    border-color: #1e87b8;
}

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

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

.page-sports__btn-primary--large {
    padding: 18px 36px;
    font-size: 1.2em;
}

/* Intro Section */
.page-sports__intro-section {
    padding: 60px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-sports__icon-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.page-sports__icon-box {
    flex: 1 1 30%;
    min-width: 280px;
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-sports__icon-box:hover {
    transform: translateY(-5px);
}

.page-sports__icon-box-media {
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #26A9E0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px rgba(38, 169, 224, 0.2);
}

.page-sports__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.page-sports__icon-box-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-sports__icon-box-text {
    font-size: 1em;
    color: #666666;
}

/* Game Tabs Section */
.page-sports__game-tabs {
    background-color: #26A9E0;
    padding: 60px 0;
    color: #ffffff;
}

.page-sports__tab-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.page-sports__tab-button {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-sports__tab-button:hover {
    background-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.page-sports__tab-button.is-active {
    background-color: #ffffff;
    color: #26A9E0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__tab-content {
    margin-top: 30px;
}

.page-sports__game-panel {
    display: none;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    align-items: center;
    gap: 40px;
    color: #333333;
}

.page-sports__game-panel.is-active {
    display: flex;
    flex-wrap: wrap;
}

.page-sports__game-panel-image {
    flex: 1 1 45%;
    min-width: 300px;
}

.page-sports__game-panel-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.page-sports__game-panel-text {
    flex: 1 1 50%;
    min-width: 300px;
}

.page-sports__game-panel-title {
    font-size: 2em;
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-sports__game-panel-description {
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* CTA Banner */
.page-sports__cta-banner {
    background-color: #26A9E0;
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

.page-sports__cta-banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-sports__cta-banner-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-sports__cta-banner-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

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

.page-sports__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-sports__faq-item summary {
    display: block;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: 600;
    color: #26A9E0;
    position: relative;
    list-style: none;
    transition: background-color 0.3s ease;
}

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

.page-sports__faq-item summary:hover {
    background-color: #f0f8ff;
}

.page-sports__faq-qtext {
    display: inline-block;
    max-width: calc(100% - 30px);
}

.page-sports__faq-toggle {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
    content: '−';
}

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

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

.page-sports__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-sports__faq-answer a:hover {
    color: #1e87b8;
}

/* General Image styles for content area */
.page-sports img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-sports__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-sports__hero-content,
    .page-sports__hero-image {
        flex: 1 1 100%;
        max-width: 600px;
    }

    .page-sports__hero-cta-buttons {
        justify-content: center;
    }

    .page-sports__game-panel.is-active {
        flex-direction: column;
        text-align: center;
    }

    .page-sports__game-panel-image,
    .page-sports__game-panel-text {
        flex: 1 1 100%;
    }

    .page-sports__game-panel-image {
        margin-bottom: 30px;
    }
}

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

    .page-sports__content-container,
    .page-sports__hero-container,
    .page-sports__cta-banner-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-sports__section-title {
        font-size: 2em;
        margin-top: 40px;
        margin-bottom: 30px;
    }

    /* HERO Section */
    .page-sports__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

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

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

    .page-sports__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .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: 12px 20px;
        font-size: 1em;
    }

    /* Intro Section (Module 1) */
    .page-sports__intro-section {
        padding: 40px 0;
    }

    .page-sports__icon-boxes {
        flex-direction: column;
        gap: 20px;
    }

    .page-sports__icon-box {
        flex: 1 1 100%;
        min-width: unset;
        padding: 25px;
    }

    .page-sports__icon-box-media {
        width: 150px;
        height: 150px;
        margin-bottom: 20px;
        border-width: 3px;
        box-shadow: 0 0 0 6px rgba(38, 169, 224, 0.2);
    }

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

    .page-sports__icon-box-text {
        font-size: 0.95em;
    }

    /* Game Tabs Section */
    .page-sports__game-tabs {
        padding: 40px 0;
    }

    .page-sports__tab-nav {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 30px;
    }

    .page-sports__tab-button {
        font-size: 1em;
        padding: 10px 20px;
        width: 100%;
        max-width: 100%;
    }

    .page-sports__game-panel {
        padding: 30px;
        gap: 30px;
    }

    .page-sports__game-panel-title {
        font-size: 1.6em;
    }

    .page-sports__game-panel-description {
        font-size: 1em;
    }

    /* CTA Banner */
    .page-sports__cta-banner {
        padding: 60px 0;
    }

    .page-sports__cta-banner-title {
        font-size: 1.8em;
    }

    .page-sports__cta-banner-description {
        font-size: 1em;
    }

    .page-sports__btn-primary--large {
        padding: 14px 25px;
        font-size: 1.1em;
    }

    /* FAQ Section */
    .page-sports__faq-section {
        padding: 40px 0;
    }

    .page-sports__faq-list {
        margin-top: 30px;
    }

    .page-sports__faq-item summary {
        font-size: 1.05em;
        padding: 18px 20px;
    }

    .page-sports__faq-qtext {
        max-width: calc(100% - 40px);
    }

    .page-sports__faq-toggle {
        right: 20px;
        font-size: 1.3em;
    }

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

    /* Generic images and containers */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-sports__hero-section,
    .page-sports__intro-section,
    .page-sports__game-tabs,
    .page-sports__cta-banner,
    .page-sports__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}