/* style/sports.css */

/* --- General Page Styles --- */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

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

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

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

.page-sports__btn-primary {
    display: inline-block;
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: 2px solid #26A9E0;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-sports__btn-primary:hover {
    background-color: #1a8cc4; /* Slightly darker */
}

.page-sports__btn-secondary {
    display: inline-block;
    background-color: #FFFFFF;
    color: #26A9E0; /* Brand primary color */
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #26A9E0;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-sports__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-sports a {
    color: #26A9E0;
    text-decoration: none;
}

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

/* --- Section Specific Styles --- */

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-sports__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-sports__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-sports__hero-content {
    position: relative;
    z-index: 3;
    color: #FFFFFF;
    max-width: 900px;
    padding: 20px;
}

.page-sports__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
}

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

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

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

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

.page-sports__intro-item {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-sports__intro-heading {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

/* Games Section */
.page-sports__games-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Dark background (brand color) */
    color: #FFFFFF;
}

.page-sports__games-section .page-sports__section-title,
.page-sports__games-section .page-sports__section-description {
    color: #FFFFFF;
}

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

.page-sports__game-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-sports__game-card:hover {
    transform: translateY(-10px);
}

.page-sports__game-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-sports__game-title {
    font-size: 1.4em;
    color: #FFFFFF;
    padding: 15px 15px 0;
}

.page-sports__game-title a {
    color: #FFFFFF;
    text-decoration: none;
}

.page-sports__game-title a:hover {
    text-decoration: underline;
}

.page-sports__game-text {
    color: #f0f0f0;
    padding: 0 15px 20px;
    font-size: 0.95em;
}

/* Guide Section */
.page-sports__guide-section {
    padding: 80px 0;
    background-color: #FFFFFF;
    color: #333333;
}

.page-sports__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-sports__step-item {
    text-align: center;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    position: relative;
}

.page-sports__step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #26A9E0;
    color: #FFFFFF;
    border-radius: 50%;
    font-size: 1.8em;
    font-weight: bold;
    margin: -45px auto 20px;
    box-shadow: 0 4px 10px rgba(38, 169, 224, 0.3);
}

.page-sports__step-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-sports__guide-image-wrapper {
    text-align: center;
}

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

/* Tips Section */
.page-sports__tips-section {
    padding: 80px 0;
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-sports__tips-section .page-sports__section-title,
.page-sports__tips-section .page-sports__section-description {
    color: #FFFFFF;
}

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

.page-sports__tip-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__tip-title {
    font-size: 1.5em;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.page-sports__tip-text {
    color: #f0f0f0;
}

/* Promotions Section */
.page-sports__promotions-section {
    padding: 80px 0;
    background-color: #FFFFFF;
    color: #333333;
}

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

.page-sports__promo-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    padding-bottom: 30px;
}

.page-sports__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-sports__promo-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-sports__promo-text {
    color: #555555;
    margin-bottom: 25px;
    padding: 0 15px;
}

/* Support Section */
.page-sports__support-section {
    padding: 80px 0;
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-sports__support-section .page-sports__section-title,
.page-sports__support-section .page-sports__section-description {
    color: #FFFFFF;
}

.page-sports__support-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.page-sports__support-text-block {
    flex: 1;
    min-width: 300px;
}

.page-sports__support-heading {
    font-size: 1.8em;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.page-sports__support-paragraph {
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-sports__support-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

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

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

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

.page-sports__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #f8f8f8;
    cursor: pointer;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
    background-color: #eef;
}

.page-sports__faq-heading {
    font-size: 1.1em;
    margin: 0;
    color: #333333;
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
    transform: rotate(45deg);
}

.page-sports__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #FFFFFF;
    color: #555555;
}

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to accommodate content */
    padding: 15px 25px;
}

.page-sports__faq-text {
    margin-top: 0;
    margin-bottom: 15px;
}

/* --- Global Image/Video/Button Responsive Rules (MUST BE LAST) --- */
/* Ensure images are responsive and do not overflow */
.page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Content area images CSS dimensions must not make display size < 200px */
.page-sports__intro-item img,
.page-sports__game-card img,
.page-sports__guide-image,
.page-sports__promo-image,
.page-sports__support-image {
    min-width: 200px;
    min-height: 200px;
}

/* Video Responsive */
.page-sports video,
.page-sports__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-sports__video-section,
.page-sports__video-container,
.page-sports__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Media Queries for Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        height: 500px;
    }

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

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

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

    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        width: 100%;
        max-width: 300px; /* Limit button width on smaller screens */
        margin: 0 auto;
        padding: 10px 20px;
    }

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

    .page-sports__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-sports__intro-grid,
    .page-sports__games-grid,
    .page-sports__guide-steps,
    .page-sports__tips-grid,
    .page-sports__promo-grid {
        grid-template-columns: 1fr;
    }

    .page-sports__guide-steps {
        gap: 40px; /* Increase gap for clarity */
    }

    .page-sports__support-content {
        flex-direction: column;
    }

    .page-sports__container {
        padding: 0 15px; /* Smaller padding on mobile */
    }

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

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

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

    /* Mobile forced image/video/button responsive styles */
    .page-sports img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }}