/* 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: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 700px; /* Adjust as needed */
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    color: #ffffff;
    background-color: #017439; /* Brand color as background */
}

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

.page-sports__video-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.page-sports__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.page-sports__hero-content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

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

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

.page-sports__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

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

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

.page-sports__btn-primary:hover {
    background-color: #e02020;
    color: #ffffff;
}

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

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

.page-sports__btn-primary--large,
.page-sports__btn-secondary--large {
    padding: 18px 35px;
    font-size: 1.1em;
}

/* General Section Styles */
.page-sports__section {
    padding: 80px 0;
}

.page-sports__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

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

.page-sports__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit color from section (dark/light bg) */
}

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

.page-sports__text-block strong {
    color: #FFFF00; /* Highlight keywords with custom color */
}

.page-sports__cta-center {
    text-align: center;
    margin-top: 40px;
}

.page-sports__cta-center--bottom {
    margin-top: 60px;
}

.page-sports__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-sports__sports-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark bg */
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

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

.page-sports__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 200px; /* Enforce min image size */
    min-width: 200px; /* Enforce min image size */
}

.page-sports__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #FFFF00; /* Highlight card titles */
}

.page-sports__card-description {
    font-size: 1em;
    line-height: 1.5;
    flex-grow: 1;
}

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

.page-sports__guide-item {
    background-color: #f8f8f8;
    border-left: 5px solid #017439;
    border-radius: 5px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #333333;
}

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

.page-sports__guide-description {
    font-size: 1em;
    line-height: 1.5;
}

.page-sports__guide-description a {
    color: #C30808; /* Link color for actions */
    text-decoration: none;
    font-weight: bold;
}

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

/* Odds Section */
.page-sports__odds-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-sports__odds-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #FFFF00; /* Highlight with custom color */
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-sports__odds-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #FFFF00;
}

.page-sports__odds-description {
    font-size: 1em;
    line-height: 1.5;
}

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

.page-sports__promo-card {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

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

.page-sports__promo-card .page-sports__card-title {
    color: #017439;
}

.page-sports__promo-card .page-sports__btn-primary {
    margin-top: auto; /* Push button to bottom */
}

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

.page-sports__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-sports__feature-icon {
    max-width: 150px; /* Larger than 100px, but still icon-like in purpose */
    height: auto;
    margin-bottom: 20px;
    min-height: 200px; /* Enforce min image size */
    min-width: 200px; /* Enforce min image size */
}

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

.page-sports__feature-description {
    font-size: 1em;
    line-height: 1.5;
}

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

.page-sports__channel-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-sports__channel-description {
    font-size: 1em;
    line-height: 1.5;
    flex-grow: 1;
}

.page-sports__channel-item .page-sports__btn-secondary {
    margin-top: auto;
    background-color: #017439;
    color: #ffffff;
    border-color: #017439;
}

.page-sports__channel-item .page-sports__btn-secondary:hover {
    background-color: #005a2e;
    color: #ffffff;
}

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

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

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

.page-sports__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
}

.page-sports__faq-answer a {
    color: #FFFF00;
    text-decoration: none;
    font-weight: bold;
}

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

/* Conclusion Section */
.page-sports__section--conclusion .page-sports__text-block {
    text-align: center;
}

.page-sports__cta-buttons--bottom {
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        min-height: 500px;
        padding: 40px 20px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-sports__hero-title {
        font-size: 2.2em;
    }
    .page-sports__hero-description {
        font-size: 1.1em;
    }
    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-sports__section {
        padding: 40px 0;
    }
    .page-sports__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-sports__text-block {
        font-size: 1em;
        text-align: left;
    }

    /* Images responsiveness */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

    /* Container responsiveness for images/videos/buttons */
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__sports-card,
    .page-sports__guide-item,
    .page-sports__promo-card,
    .page-sports__feature-item,
    .page-sports__channel-item,
    .page-sports__faq-item,
    .page-sports__hero-content-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-sports__hero-video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-sports__video-link {
        width: 100% !important;
        height: 100% !important;
    }

    .page-sports__faq-question {
        padding: 15px 20px;
    }
    .page-sports__faq-question h3 {
        font-size: 1.1em;
    }
    .page-sports__faq-answer {
        padding: 0 20px;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 10px 20px 20px;
    }

    .page-sports__sports-grid,
    .page-sports__guide-steps,
    .page-sports__promo-cards,
    .page-sports__security-features,
    .page-sports__support-channels,
    .page-sports__odds-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 1.8em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__section-title {
        font-size: 1.5em;
    }
    .page-sports__hero-content-wrapper {
        padding: 20px 15px;
    }
}