/* style/sports.css */

/* Base styles for the page */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000000; /* Assuming body background is black from shared.css */
}

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

/* Section styles */
.page-sports__section-title {
    font-size: 2.5em;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-sports__section-text {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

.page-sports__dark-section {
    background-color: #017439;
    color: #ffffff;
    padding: 80px 0;
}

.page-sports__light-bg {
    background-color: #FFFFFF;
    color: #333333;
    padding: 80px 0;
}

.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__section-text {
    color: #333333;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 0; /* Assumes shared.css handles body padding-top for header offset */
}

.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);
    z-index: 2;
}

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

.page-sports__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: #FFFF00; /* Highlighted color for title */
}

.page-sports__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
}

/* Call to Action Buttons */
.page-sports__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.page-sports__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-sports__btn-primary:hover {
    background-color: #e02020;
    transform: translateY(-2px);
}

.page-sports__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
    margin-left: 20px;
}

.page-sports__btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.page-sports__button-group {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Video Section */
.page-sports__introduction-section {
    position: relative;
}

.page-sports__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.page-sports__video {
    width: 100%;
    height: auto;
    display: block;
}

.page-sports__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

/* Game Types Grid */
.page-sports__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-sports__card {
    background-color: #FFFFFF;
    color: #333333;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-sports__card-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
    padding: 0 20px;
}

.page-sports__card-text {
    font-size: 1em;
    color: #555555;
    padding: 0 20px;
    flex-grow: 1;
}

.page-sports__card-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

/* Advantages Section */
.page-sports__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.page-sports__feature-item {
    background-color: #f8f8f8;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-sports__feature-icon {
    width: 150px; /* Min size 200px, but for icons, adjust to fit design while being large enough */
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-sports__feature-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
}

.page-sports__feature-description {
    font-size: 1em;
    color: #555555;
}

/* Guide Section */
.page-sports__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-sports__guide-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__guide-item-title {
    font-size: 1.6em;
    color: #FFFF00;
    margin-bottom: 10px;
}

.page-sports__guide-item-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 10px;
}

.page-sports__link-text {
    color: #FFFF00;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-sports__link-text:hover {
    color: #e02020;
}

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

.page-sports__promo-card {
    background-color: #017439;
    color: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-sports__promo-title {
    font-size: 1.8em;
    color: #FFFF00;
    margin-bottom: 15px;
}

.page-sports__promo-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Strategy Section */
.page-sports__strategy-list {
    list-style: disc;
    text-align: left;
    max-width: 800px;
    margin: 40px auto 0 auto;
    padding-left: 20px;
    color: #f0f0f0;
}

.page-sports__strategy-item {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #f0f0f0;
}

/* FAQ Section */
.page-sports__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

.page-sports__faq-q-text {
    font-size: 1.2em;
    color: #333333;
    margin: 0;
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    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 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: #FFFFFF;
    color: #555555;
}

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

.page-sports__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
    text-align: left;
}

/* Conclusion Section */
.page-sports__conclusion-section .page-sports__section-text {
    color: #f0f0f0;
}

/* Responsive Design */
@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: 2em;
    }
    .page-sports__section-text {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        height: 500px;
    }
    .page-sports__hero-title {
        font-size: 2.2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        margin: 10px 0 0 0 !important; /* Override desktop margin */
        width: 100% !important; /* Full width for mobile buttons */
    }
    .page-sports__btn-secondary {
        margin-left: 0 !important;
    }
    .page-sports__button-group {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-sports__dark-section, .page-sports__light-bg {
        padding: 60px 0;
    }
    .page-sports__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-sports__container {
        padding: 0 15px;
    }

    /* Images responsive */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__card-image {
        height: auto !important;
    }
    .page-sports__feature-icon {
        width: 150px !important;
        height: auto !important;
    }

    /* Video responsive */
    .page-sports video,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__video-section,
    .page-sports__video-container,
    .page-sports__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-sports__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* General content container responsive */
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__promo-card,
    .page-sports__feature-item,
    .page-sports__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-sports__guide-item {
        padding: 20px;
    }

    .page-sports__guide-list, .page-sports__strategy-list {
        padding-left: 15px; /* Adjust list padding for mobile */
    }

    .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.5em;
    }
    .page-sports__section-text {
        font-size: 0.9em;
    }
    .page-sports__card-title {
        font-size: 1.5em;
    }
    .page-sports__feature-title, .page-sports__promo-title {
        font-size: 1.3em;
    }
    .page-sports__guide-item-title {
        font-size: 1.3em;
    }
    .page-sports__faq-q-text {
        font-size: 1em;
    }
}