/* style/live-scores.css */

:root {
    --primary-color: #1A202C;
    --secondary-color: #FFD700;
    --accent-color: #4CAF50;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-dark: #000;
    --card-background-light: #ffffff;
    --border-light: #e0e0e0;
}

.page-live-scores {
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--background-dark);
}

/* Hero Section */
.page-live-scores__hero-section {
    position: relative;
    width: 100%;
    padding-top: 0; /* Assumes shared.css handles body padding-top */
    padding-bottom: 0;
    margin-top: 0;
    overflow: hidden;
}

.page-live-scores__hero-container {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-live-scores__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-live-scores__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-live-scores__hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 20px;
    color: var(--text-light);
}

.page-live-scores__hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.page-live-scores__hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-live-scores__hero-cta {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-live-scores__hero-cta:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

/* General Section Styling */
.page-live-scores__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-live-scores__section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.page-live-scores__text-block {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-light);
}

.page-live-scores__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-live-scores__dark-section .page-live-scores__text-block {
    color: var(--text-light);
}

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

.page-live-scores__image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-live-scores__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Features Section */
.page-live-scores__features-section {
    background-color: var(--background-dark);
}

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

.page-live-scores__feature-card {
    background-color: var(--card-background-light);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-live-scores__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-live-scores__feature-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-live-scores__feature-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.page-live-scores__cta-wrapper {
    text-align: center;
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-live-scores__btn-primary,
.page-live-scores__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-live-scores__btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid transparent;
}

.page-live-scores__btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-live-scores__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-live-scores__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Sports Coverage Section */
.page-live-scores__sport-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-live-scores__sport-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-live-scores__sport-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.page-live-scores__sport-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.page-live-scores__sport-item p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
}

.page-live-scores__mobile-app-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 60px auto 0 auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-live-scores__faq-section {
    background-color: var(--background-dark);
}

.page-live-scores__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-live-scores__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--primary-color);
}

.page-live-scores__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-live-scores__faq-question:hover {
    background: #2a3345;
    border-color: rgba(255, 255, 255, 0.2);
}

.page-live-scores__faq-question:active {
    background: #3a475e;
}

.page-live-scores__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-light);
    pointer-events: none;
}

.page-live-scores__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-live-scores__faq-item.active .page-live-scores__faq-toggle {
    transform: rotate(180deg);
    color: var(--secondary-color);
}

.page-live-scores__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: #2a3345;
    color: var(--text-light);
    border-radius: 0 0 8px 8px;
}

.page-live-scores__faq-item.active .page-live-scores__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
}

.page-live-scores__faq-answer p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
}

/* News Section */
.page-live-scores__news-section {
    background-color: var(--primary-color);
}

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

.page-live-scores__news-card {
    background-color: var(--card-background-light);
    color: var(--text-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-live-scores__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-live-scores__news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-live-scores__news-content {
    padding: 20px;
}

.page-live-scores__news-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.4;
}

.page-live-scores__news-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-live-scores__news-title a:hover {
    color: var(--secondary-color);
}

.page-live-scores__news-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.page-live-scores__news-readmore {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-live-scores__news-readmore:hover {
    color: #e6c200;
}

/* Call to Action Section */
.page-live-scores__call-to-action {
    background-color: var(--background-dark);
    text-align: center;
    padding: 80px 20px;
}

.page-live-scores__call-to-action .page-live-scores__section-title {
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.page-live-scores__call-to-action .page-live-scores__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.page-live-scores__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-live-scores__hero-title {
        font-size: 40px;
    }
    .page-live-scores__hero-description {
        font-size: 16px;
    }
    .page-live-scores__section-title {
        font-size: 32px;
    }
    .page-live-scores__faq-list {
        padding: 0 15px;
    }
    .page-live-scores__faq-question h3 {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .page-live-scores__container {
        padding: 30px 15px;
    }
    .page-live-scores__hero-container {
        height: 500px;
    }
    .page-live-scores__hero-overlay {
        padding: 30px 15px;
        margin: 0 10px;
    }
    .page-live-scores__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-live-scores__hero-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-live-scores__hero-cta {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-live-scores__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-live-scores__text-block {
        font-size: 15px;
        line-height: 1.6;
    }
    .page-live-scores__image-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-live-scores__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-live-scores__feature-title {
        font-size: 20px;
    }
    .page-live-scores__feature-card p {
        font-size: 15px;
    }
    .page-live-scores__cta-wrapper {
        flex-direction: column;
        gap: 15px;
        margin-top: 40px;
    }
    .page-live-scores__btn-primary,
    .page-live-scores__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-live-scores__sport-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-live-scores__sport-name {
        font-size: 20px;
    }
    .page-live-scores__sport-item p {
        font-size: 15px;
    }
    .page-live-scores__mobile-app-image {
        margin-top: 40px;
    }
    .page-live-scores__faq-question {
        padding: 15px 20px;
    }
    .page-live-scores__faq-question h3 {
        font-size: 15px;
    }
    .page-live-scores__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-live-scores__faq-answer {
        padding: 0 20px;
    }
    .page-live-scores__faq-item.active .page-live-scores__faq-answer {
        padding: 15px 20px !important;
    }
    .page-live-scores__faq-answer p {
        font-size: 15px;
    }
    .page-live-scores__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-live-scores__news-card img {
        
    }
    .page-live-scores__news-content {
        padding: 15px;
    }
    .page-live-scores__news-title {
        font-size: 18px;
    }
    .page-live-scores__news-excerpt {
        font-size: 14px;
    }
    .page-live-scores__call-to-action {
        padding: 60px 15px;
    }
    .page-live-scores__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure all images are responsive */
    .page-live-scores img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Ensure containers are responsive */
    .page-live-scores__section,
    .page-live-scores__card,
    .page-live-scores__container,
    .page-live-scores__hero-container,
    .page-live-scores__hero-overlay,
    .page-live-scores__image-wrapper,
    .page-live-scores__feature-card,
    .page-live-scores__sport-item,
    .page-live-scores__news-card,
    .page-live-scores__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Specific padding for containers to prevent overflow */
    .page-live-scores__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}