/* style/sports-live-scores.css */

/* --- General Styles --- */
.page-sports-live-scores {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF; /* Default body background */
}

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

.page-sports-live-scores__section {
    padding: 60px 0;
    text-align: center;
}

.page-sports-live-scores__section-title {
    font-size: 36px;
    color: #017439; /* Primary color for titles */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-sports-live-scores__sub-title {
    font-size: 28px;
    color: #017439;
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-sports-live-scores__text-block {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports-live-scores__highlight {
    font-weight: bold;
    color: #017439;
}

.page-sports-live-scores__list {
    list-style: none;
    padding: 0;
    margin: 20px auto 30px auto;
    max-width: 800px;
    text-align: left;
}

.page-sports-live-scores__list-item {
    background-color: #f0f0f0;
    margin-bottom: 10px;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 17px;
    color: #333333;
    display: flex;
    align-items: center;
}

.page-sports-live-scores__list-item::before {
    content: '✅';
    margin-right: 10px;
    color: #017439;
}

.page-sports-live-scores__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-sports-live-scores__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- Specific Button Styles (from custom color config) --- */
.page-sports-live-scores__btn-register {
    background: #C30808; /* Register color */
    color: #FFFF00; /* Register font color */
}

.page-sports-live-scores__btn-register:hover {
    background: #a30606;
}

.page-sports-live-scores__btn-login {
    background: #C30808; /* Login color */
    color: #FFFF00; /* Login font color */
    margin-left: 20px; /* Spacing between register/login */
}

.page-sports-live-scores__btn-login:hover {
    background: #a30606;
}

.page-sports-live-scores__btn-primary {
    background: #017439;
    color: #FFFFFF;
}

.page-sports-live-scores__btn-primary:hover {
    background: #005a2e;
}

.page-sports-live-scores__btn-secondary {
    background: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-sports-live-scores__btn-secondary:hover {
    background: #f0f0f0;
    color: #005a2e;
}

/* --- Hero Section --- */
.page-sports-live-scores__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Header offset */
    background: linear-gradient(135deg, #017439, #005a2e); /* Gradient background for visual appeal */
}

.page-sports-live-scores__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-sports-live-scores__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-sports-live-scores__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-sports-live-scores__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #FFFFFF;
}

.page-sports-live-scores__main-title {
    font-size: 48px;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #FFFF00; /* Yellow for main title, strong contrast */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-sports-live-scores__subtitle {
    font-size: 22px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-sports-live-scores__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between buttons */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 500px; /* Limit button group width */
    margin: 0 auto;
}

/* --- Section Backgrounds --- */
.page-sports-live-scores__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-sports-live-scores__dark-bg {
    background-color: #017439;
    color: #FFFFFF;
}

.page-sports-live-scores__dark-bg .page-sports-live-scores__section-title,
.page-sports-live-scores__dark-bg .page-sports-live-scores__sub-title {
    color: #FFFFFF;
}
.page-sports-live-scores__dark-bg .page-sports-live-scores__highlight {
    color: #FFFF00; /* Yellow highlight on dark background */
}

/* --- Content Grid Layouts --- */
.page-sports-live-scores__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-sports-live-scores__content-grid:nth-child(even) {
    flex-direction: row-reverse; /* Alternate image/text order */
}

.page-sports-live-scores__text-content {
    flex: 1;
}

.page-sports-live-scores__image-wrapper {
    flex: 1;
    min-width: 300px; /* Minimum width for image wrapper */
}

.page-sports-live-scores__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Features Section Grid --- */
.page-sports-live-scores__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports-live-scores__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark bg */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%; /* Ensure cards are same height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-sports-live-scores__feature-card:hover {
    transform: translateY(-5px);
}

.page-sports-live-scores__feature-card img {
    width: 100%;
    max-width: 200px; /* Constrain image size within card */
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-sports-live-scores__feature-title {
    font-size: 22px;
    color: #FFFF00; /* Yellow for feature titles */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-sports-live-scores__feature-description {
    font-size: 16px;
    color: #FFFFFF;
    flex-grow: 1;
}

.page-sports-live-scores__cta-center {
    margin-top: 40px;
    text-align: center;
}

/* --- FAQ Section --- */
.page-sports-live-scores__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-sports-live-scores__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #FFFFFF; /* White background for FAQ items on dark section */
    color: #333333;
}

.page-sports-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 15px;
    opacity: 0;
}

.page-sports-live-scores__faq-item.active .page-sports-live-scores__faq-answer {
    max-height: 2000px !important; /* 🚨 Use!important ensure priority, value large enough */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-sports-live-scores__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-sports-live-scores__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-sports-live-scores__faq-question:active {
    background: #eeeeee;
}

.page-sports-live-scores__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px; /* Increased font size for better readability */
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: #017439; /* FAQ question color */
}

.page-sports-live-scores__faq-toggle {
    font-size: 28px; /* Increased size for toggle icon */
    font-weight: bold;
    line-height: 1;
    color: #017439; /* Toggle icon color */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Increased size */
    height: 32px; /* Increased size */
}

.page-sports-live-scores__faq-item.active .page-sports-live-scores__faq-toggle {
    color: #C30808; /* Red when active for contrast */
    transform: rotate(45deg); /* Visual cue for open state */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-sports-live-scores__main-title {
        font-size: 40px;
    }
    .page-sports-live-scores__subtitle {
        font-size: 20px;
    }
    .page-sports-live-scores__section-title {
        font-size: 32px;
    }
    .page-sports-live-scores__sub-title {
        font-size: 24px;
    }
    .page-sports-live-scores__text-block,
    .page-sports-live-scores__list-item,
    .page-sports-live-scores__feature-description {
        font-size: 16px;
    }
    .page-sports-live-scores__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-sports-live-scores__content-grid {
        flex-direction: column;
        text-align: center;
    }
    .page-sports-live-scores__content-grid:nth-child(even) {
        flex-direction: column;
    }
    .page-sports-live-scores__image-wrapper {
        order: -1; /* Image always on top in column layout */
        margin-bottom: 20px;
    }
    .page-sports-live-scores__feature-card img {
        
    }
}

@media (max-width: 768px) {
    .page-sports-live-scores__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-sports-live-scores__main-title {
        font-size: 32px;
    }
    .page-sports-live-scores__subtitle {
        font-size: 18px;
    }
    .page-sports-live-scores__section {
        padding: 40px 0;
    }
    .page-sports-live-scores__section-title {
        font-size: 28px;
    }
    .page-sports-live-scores__sub-title {
        font-size: 22px;
    }
    .page-sports-live-scores__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Limit button group width */
        margin: 0 auto;
    }
    .page-sports-live-scores__btn-login {
        margin-left: 0; /* Remove left margin for stacked buttons */
    }

    /* --- Mobile Image Responsiveness (Crucial) --- */
    .page-sports-live-scores img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    .page-sports-live-scores__section,
    .page-sports-live-scores__card,
    .page-sports-live-scores__container,
    .page-sports-live-scores__hero-container,
    .page-sports-live-scores__content-grid,
    .page-sports-live-scores__features-grid,
    .page-sports-live-scores__feature-card,
    .page-sports-live-scores__faq-list,
    .page-sports-live-scores__cta-buttons,
    .page-sports-live-scores__cta-center {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-sports-live-scores__text-block {
        padding: 0 15px; /* Add padding to text blocks */
    }
    .page-sports-live-scores__list {
        padding: 0 15px;
    }
    .page-sports-live-scores__list-item {
        padding: 10px 15px;
        font-size: 15px;
    }

    /* FAQ Mobile */
    .page-sports-live-scores__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-sports-live-scores__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-sports-live-scores__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    .page-sports-live-scores__faq-answer {
        padding: 0 15px;
    }
    .page-sports-live-scores__faq-item.active .page-sports-live-scores__faq-answer {
        padding: 15px !important;
    }

    /* Ensure content area images are not smaller than 200px */
    .page-sports-live-scores__image-wrapper img,
    .page-sports-live-scores__feature-card img {
        min-width: 200px;
        min-height: 200px;
    }
}

/* Ensure no filter on images */
.page-sports-live-scores img {
    filter: none;
}