/* style/sports.css */

/* Base Styles & Typography */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--secondary-color, #FFFFFF);
}

.page-sports h1, .page-sports h2, .page-sports h3 {
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-sports h1 {
    font-size: 2.8em;
    text-align: center;
}

.page-sports h2 {
    font-size: 2.2em;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
}

.page-sports h3 {
    font-size: 1.6em;
}

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

.page-sports__section {
    padding: 60px 0;
}

.page-sports__paragraph {
    margin-bottom: 15px;
    font-size: 1.1em;
    text-align: justify;
}

/* Color Schemes */
.page-sports__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-sports__dark-bg h1, .page-sports__dark-bg h2, .page-sports__dark-bg h3 {
    color: #ffffff;
}

.page-sports__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-sports__light-bg h1, .page-sports__light-bg h2, .page-sports__light-bg h3 {
    color: #26A9E0;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    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: #1e87b7;
    border-color: #1e87b7;
}

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

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

/* Specific button colors */
.page-sports__hero-cta-buttons .page-sports__btn-primary {
    background-color: #EA7C07;
    border-color: #EA7C07;
}

.page-sports__hero-cta-buttons .page-sports__btn-primary:hover {
    background-color: #c76506;
    border-color: #c76506;
}

.page-sports__hero-cta-buttons .page-sports__btn-secondary {
    color: #EA7C07;
    border-color: #EA7C07;
}

.page-sports__hero-cta-buttons .page-sports__btn-secondary:hover {
    background-color: #fce4ce;
    color: #c76506;
    border-color: #c76506;
}

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

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    overflow: hidden;
    text-align: center;
    padding-top: var(--header-offset, 120px);
}

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

.page-sports__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.page-sports__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

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

.page-sports__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Video Section */
.page-sports__video-section {
    text-align: center;
    background-color: #26A9E0;
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-sports__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 1000px;
    margin: 30px auto;
    background-color: #000000;
    border-radius: 10px;
}

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.page-sports__video-cta {
    margin-top: 30px;
}

/* Sports List Section */
.page-sports__sports-list-section {
    text-align: center;
}

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

.page-sports__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}

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

.page-sports__card-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

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

.page-sports__card-description {
    font-size: 0.95em;
    color: #555555;
    flex-grow: 1;
}

/* Promotions Section */
.page-sports__promotions-section {
    text-align: center;
}

.page-sports__promo-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
    text-align: left;
}

.page-sports__promo-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.page-sports__promo-item::before {
    content: '✓';
    color: #ffffff;
    font-weight: bold;
    margin-right: 10px;
}

/* Guide Section */
.page-sports__guide-section {
    text-align: center;
}

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

.page-sports__guide-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    flex: 1 1 calc(33% - 40px);
    max-width: calc(33% - 40px);
    box-sizing: border-box;
}

.page-sports__guide-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 150px;
}

.page-sports__guide-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-sports__guide-description {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
}

.page-sports__app-download-cta {
    margin-top: 60px;
    padding: 30px;
    background-color: #f5f5f5;
    border-radius: 10px;
}

/* Security Section */
.page-sports__security-section {
    text-align: center;
}

.page-sports__security-image {
    max-width: 600px;
    height: auto;
    margin-top: 40px;
    border-radius: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px;
    min-height: 150px;
}

/* Support Section */
.page-sports__support-section {
    text-align: center;
}

/* FAQ Section */
.page-sports__faq-section {
    text-align: center;
}

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

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.page-sports__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #26A9E0;
}

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

.page-sports__faq-item.active .page-sports__faq-question {
    background-color: #eaf7fc;
    border-bottom: none;
}

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

.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;
}

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

.page-sports__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: #555555;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }
    .page-sports__hero-description {
        font-size: 1.2em;
    }
    .page-sports__guide-card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .page-sports {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-sports h1 {
        font-size: 2.5em;
    }
    .page-sports h2 {
        font-size: 1.8em;
    }
    .page-sports h3 {
        font-size: 1.4em;
    }
    .page-sports__hero-section {
        min-height: 60vh;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-sports__hero-title {
        font-size: 2.2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        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__hero-cta-buttons .page-sports__btn-primary,
    .page-sports__hero-cta-buttons .page-sports__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
    }
    .page-sports__container,
    .page-sports__section,
    .page-sports__card,
    .page-sports__video-section,
    .page-sports__video-wrapper,
    .page-sports__guide-card,
    .page-sports__app-download-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-sports__hero-image,
    .page-sports img,
    .page-sports video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__grid {
        grid-template-columns: 1fr;
    }
    .page-sports__guide-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .page-sports__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-sports__promo-list {
        padding: 0 15px;
    }
    .page-sports__faq-question,
    .page-sports__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 1.8em;
    }
    .page-sports__hero-description {
        font-size: 0.9em;
    }
    .page-sports__section-title {
        font-size: 1.6em;
    }
    .page-sports__card-title {
        font-size: 1.2em;
    }
    .page-sports__guide-title {
        font-size: 1.1em;
    }
}