/* style/sports.css */
.page-sports {
    color: #ffffff; /* Body background is dark, so text is light */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Inherit from shared.css body */
}

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

.page-sports__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    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;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    box-sizing: border-box;
}

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

.page-sports__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.page-sports__hero-content {
    z-index: 1;
    color: #ffffff;
    max-width: 900px;
    padding: 0 20px;
}

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

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

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

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

.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: #a00606;
    border-color: #a00606;
}

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

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

/* General Content Sections */
.page-sports__about-section,
.page-sports__why-choose-section,
.page-sports__bet-types-section,
.page-sports__promotions-section,
.page-sports__cta-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background for content */
}

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

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

.page-sports__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-sports__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-sports__text-block {
    flex: 1;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-sports__text-block h3 {
    color: #FFFF00; /* Register/Login font color */
    font-size: 1.8em;
    margin-bottom: 15px;
}

.page-sports__text-block p {
    margin-bottom: 15px;
}

.page-sports__text-block a {
    color: #FFFF00;
    text-decoration: underline;
}

.page-sports__text-block a:hover {
    color: #FFD700;
}

.page-sports__image-right,
.page-sports__image-left {
    flex: 1;
    border-radius: 10px;
    object-fit: cover;
    max-width: 100%;
    height: auto;
}

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

.page-sports__feature-card {
    padding: 30px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-sports__feature-card .page-sports__card-title {
    font-size: 1.5em;
    color: #FFFF00;
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* Video Section */
.page-sports__video-section {
    padding: 80px 0;
    text-align: center;
}

.page-sports__video-wrapper {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-sports__video-overlay-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #C30808;
    color: #FFFF00;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Initially not clickable */
}

.page-sports__video-wrapper:hover .page-sports__video-overlay-button {
    opacity: 1;
    pointer-events: all; /* Make clickable on hover */
}

/* Grid 3 Column */
.page-sports__grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-sports__card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
    transition: transform 0.3s ease;
}

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

.page-sports__card-title {
    font-size: 1.6em;
    color: #FFFF00;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__card p {
    font-size: 1em;
    line-height: 1.5;
}

.page-sports__card a {
    color: #FFFF00;
    text-decoration: underline;
}

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

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

.page-sports__promo-grid .page-sports__card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-sports__promo-grid .page-sports__card .page-sports__btn-primary {
    margin-top: auto;
    display: block;
    width: calc(100% - 30px); /* Adjust for padding in card */
    margin-left: 15px;
    margin-right: 15px;
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 80px 0;
}

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

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: #017439;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.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 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: rgba(255, 255, 255, 0.05);
    color: #f0f0f0;
}

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

.page-sports__faq-answer p {
    margin-bottom: 0;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }
    .page-sports__hero-description {
        font-size: 1.3em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__content-wrapper {
        flex-direction: column;
    }
    .page-sports__content-wrapper--reverse {
        flex-direction: column;
    }
    .page-sports__image-right,
    .page-sports__image-left {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        height: auto;
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-sports__hero-title {
        font-size: 2.2em;
    }
    .page-sports__hero-description {
        font-size: 1.1em;
    }
    .page-sports__hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        width: 90% !important;
        max-width: 300px !important;
        padding: 12px 20px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__section-description {
        font-size: 1em;
    }
    .page-sports__about-section, .page-sports__why-choose-section, .page-sports__bet-types-section, .page-sports__promotions-section, .page-sports__cta-section, .page-sports__live-betting-section, .page-sports__video-section, .page-sports__faq-section {
        padding: 40px 0;
    }
    .page-sports__container {
        padding: 0 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .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__promo-grid .page-sports__card .page-sports__btn-primary {
        width: calc(100% - 30px) !important;
        margin-left: 15px !important;
        margin-right: 15px !important;
    }
    .page-sports__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 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.5em;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        font-size: 0.9em;
    }
}