/* style/sports.css */

/* Base Styles */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Inherited from body via shared.css */
}

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

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

.page-sports__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__text-block {
    font-size: 1.05em;
    margin-bottom: 1em;
    color: #f0f0f0;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-sports__btn-primary:hover {
    background-color: #005f2c;
    border-color: #005f2c;
}

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

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

/* Specific button colors for Login/Register */
.page-sports__hero-buttons .page-sports__btn-primary,
.page-sports__cta-buttons .page-sports__btn-primary {
    background-color: #C30808; /* Register button */
    border-color: #C30808;
    color: #FFFF00; /* Register/Login font color */
}

.page-sports__hero-buttons .page-sports__btn-primary:hover,
.page-sports__cta-buttons .page-sports__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-sports__cta-buttons .page-sports__btn-secondary {
    background-color: transparent;
    border-color: #C30808;
    color: #C30808;
}

.page-sports__cta-buttons .page-sports__btn-secondary:hover {
    background-color: #C30808;
    color: #FFFF00;
}

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

.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: 900px;
    padding: 0 20px;
}

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

.page-sports__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
}

.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: #1a1a1a; /* Lighter dark background */
    color: #f0f0f0;
}

/* Sports Categories Section */
.page-sports__sports-categories {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
}

.page-sports__sports-categories .page-sports__section-title,
.page-sports__sports-categories .page-sports__section-description {
    color: #ffffff;
}

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

.page-sports__card {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #ffffff;
}

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

.page-sports__card-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #ffffff;
    padding: 0 15px;
}

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

.page-sports__card .page-sports__btn-primary {
    margin-top: auto;
    margin-left: 15px;
    margin-right: 15px;
    width: calc(100% - 30px);
    background-color: #C30808;
    border-color: #C30808;
    color: #FFFF00;
}

.page-sports__card .page-sports__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

/* Live Betting Section */
.page-sports__live-betting-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.page-sports__live-betting-section .page-sports__container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-sports__content-block {
    flex: 1;
}

.page-sports__image-wrapper {
    flex: 1;
    min-width: 200px; /* Ensure min size */
}

.page-sports__image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

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

.page-sports__promotions-section .page-sports__section-title,
.page-sports__promotions-section .page-sports__section-description {
    color: #ffffff;
}

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

.page-sports__promo-card {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

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

.page-sports__promo-title {
    font-size: 1.5em;
    margin: 15px 15px 10px;
    color: #ffffff;
}

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

.page-sports__button-group {
    text-align: center;
}

/* Betting Guide Section */
.page-sports__betting-guide-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.page-sports__betting-guide-section .page-sports__container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-sports__list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-sports__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f0f0f0;
}

.page-sports__list-item::before {
    content: '✅';
    font-size: 1.2em;
}

/* Security Section */
.page-sports__security-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
    text-align: center;
}

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

.page-sports__security-section .page-sports__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

/* Video Section */
.page-sports__video-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #f0f0f0;
    text-align: center;
}

.page-sports__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px; /* Max width for video */
    margin: 0 auto;
    aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio */
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
}

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

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

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

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

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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, padding 0.3s ease;
    color: #f0f0f0;
}

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

.page-sports__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
    color: #f0f0f0;
}

/* CTA Section */
.page-sports__cta-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #f0f0f0;
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }
    .page-sports__hero-description {
        font-size: 1.1em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__betting-guide-section .page-sports__container,
    .page-sports__live-betting-section .page-sports__container {
        flex-direction: column;
    }
    .page-sports__flex-reverse-mobile {
        flex-direction: column-reverse !important;
    }
}

@media (max-width: 768px) {
    .page-sports {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-sports__hero-section {
        height: 60vh;
    }
    .page-sports__hero-title {
        font-size: 2.2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-buttons,
    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__section-description {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    .page-sports__grid {
        grid-template-columns: 1fr;
    }
    .page-sports__card {
        margin: 0 15px;
    }
    .page-sports__promo-grid {
        grid-template-columns: 1fr;
    }
    .page-sports__intro-section,
    .page-sports__sports-categories,
    .page-sports__live-betting-section,
    .page-sports__promotions-section,
    .page-sports__betting-guide-section,
    .page-sports__security-section,
    .page-sports__video-section,
    .page-sports__faq-section,
    .page-sports__cta-section {
        padding: 40px 0;
    }

    /* Images responsive */
    .page-sports img {
        max-width: 100% !important;
        height: auto !important;
        display: block !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;
    }

    /* Container padding for mobile */
    .page-sports__container,
    .page-sports__section,
    .page-sports__card,
    .page-sports__promo-card,
    .page-sports__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-sports__faq-list {
        margin-left: 0;
        margin-right: 0;
    }
}

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