/* style/sports-popular-matches.css */

/* Custom properties for colors */
:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --card-bg: #17191F;
    --page-bg: #0D0E12; /* This should be inherited from body, but good to define */
    --text-main: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
    --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}

/* Base styles for the page content */
.page-sports-popular-matches {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for dark background */
    background-color: var(--page-bg); /* Ensure consistency if body bg is not explicitly set by shared */
    line-height: 1.6;
}

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

.page-sports-popular-matches__section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

/* Highlight keyword */
.page-sports-popular-matches .highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

/* Hero Section */
.page-sports-popular-matches__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding-bottom: 60px; /* Space below content */
    background-color: var(--page-bg); /* Consistent background */
    overflow: hidden; /* Ensure image doesn't overflow */
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-sports-popular-matches__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 40px; /* Space between image and text */
}

.page-sports-popular-matches__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-sports-popular-matches__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

.page-sports-popular-matches__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font-size clamp */
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-sports-popular-matches__description {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports-popular-matches__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
}

.page-sports-popular-matches__btn-primary,
.page-sports-popular-matches__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-sports-popular-matches__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text for contrast */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(255, 165, 58, 0.3);
}

.page-sports-popular-matches__btn-primary:hover {
    background: linear-gradient(180deg, var(--deep-orange) 0%, var(--secondary-color) 100%);
    box-shadow: 0 6px 20px rgba(255, 165, 58, 0.5);
    transform: translateY(-2px);
}

.page-sports-popular-matches__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-sports-popular-matches__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(255, 140, 26, 0.3);
    transform: translateY(-2px);
}

/* Intro Section */
.page-sports-popular-matches__intro-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
}

.page-sports-popular-matches__intro-section p {
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Factors Section */
.page-sports-popular-matches__factors-section {
    padding: 80px 0;
    background-color: var(--page-bg); /* Dark background */
    color: var(--text-main); /* Light text */
}

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

.page-sports-popular-matches__factor-card {
    background-color: var(--card-bg); /* Dark card background */
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

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

.page-sports-popular-matches__factor-image {
    width: 100%; /* Ensure images fill card width */
    max-width: 400px; /* Max width for larger screens */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size for content images */
    min-height: 200px; /* Min size for content images */
}

.page-sports-popular-matches__card-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-sports-popular-matches__factor-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
}

/* Leagues Section */
.page-sports-popular-matches__leagues-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

.page-sports-popular-matches__leagues-section p {
    font-size: 1.05rem;
    margin-bottom: 30px;
    line-height: 1.7;
    text-align: center;
}

.page-sports-popular-matches__league-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.page-sports-popular-matches__tab-item {
    padding: 12px 25px;
    background-color: #f0f0f0;
    color: #555555;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.page-sports-popular-matches__tab-item:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.page-sports-popular-matches__tab-item--active {
    background: var(--button-gradient);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(255, 165, 58, 0.4);
}

.page-sports-popular-matches__tab-content {
    display: none;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.page-sports-popular-matches__tab-content--active {
    display: block;
}

.page-sports-popular-matches__tab-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    min-width: 200px; /* Min size for content images */
    min-height: 200px; /* Min size for content images */
}

.page-sports-popular-matches__tab-subtitle {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-sports-popular-matches__tab-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #333333;
}

/* Strategy Section */
.page-sports-popular-matches__strategy-section {
    padding: 80px 0;
    background-color: var(--page-bg); /* Dark background */
    color: var(--text-main); /* Light text */
}

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

.page-sports-popular-matches__strategy-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-sports-popular-matches__strategy-item:hover {
    transform: translateY(-5px);
}

.page-sports-popular-matches__item-title {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-sports-popular-matches__strategy-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
}

.page-sports-popular-matches__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Why Choose Us Section */
.page-sports-popular-matches__why-choose-us {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

.page-sports-popular-matches__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-sports-popular-matches__benefit-item {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-sports-popular-matches__benefit-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Min size for content images */
    min-height: 200px; /* Min size for content images */
}

.page-sports-popular-matches__benefit-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
}

/* FAQ Section */
.page-sports-popular-matches__faq-section {
    padding: 80px 0;
    background-color: var(--page-bg); /* Dark background */
    color: var(--text-main); /* Light text */
}

.page-sports-popular-matches__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-sports-popular-matches__faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-sports-popular-matches__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter for contrast */
    transition: background-color 0.3s ease;
}

.page-sports-popular-matches__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-sports-popular-matches__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-left: 15px;
}

.page-sports-popular-matches__faq-item[open] .page-sports-popular-matches__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-sports-popular-matches__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
}

.page-sports-popular-matches__faq-answer p {
    margin-bottom: 10px;
}

.page-sports-popular-matches__faq-answer a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Final CTA Section */
.page-sports-popular-matches__cta-final {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
    text-align: center;
}

.page-sports-popular-matches__cta-final-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-sports-popular-matches__cta-final p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.7;
    color: #333333;
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-sports-popular-matches__section-title {
        font-size: 2rem;
    }
    .page-sports-popular-matches__main-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }
    .page-sports-popular-matches__factors-grid,
    .page-sports-popular-matches__strategy-grid,
    .page-sports-popular-matches__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* General mobile typography */
    .page-sports-popular-matches {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-sports-popular-matches__container {
        padding: 0 15px;
    }
    .page-sports-popular-matches__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-sports-popular-matches__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-sports-popular-matches__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    /* Hero section adjustments */
    .page-sports-popular-matches__hero-section {
        padding-top: 10px !important; /* body already handles header offset */
        padding-bottom: 40px;
    }
    .page-sports-popular-matches__hero-image-wrapper {
        margin-bottom: 30px;
    }

    /* Buttons responsive */
    .page-sports-popular-matches__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-sports-popular-matches__btn-primary,
    .page-sports-popular-matches__btn-secondary,
    .page-sports-popular-matches a[class*="button"],
    .page-sports-popular-matches a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Image responsive */
    .page-sports-popular-matches img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports-popular-matches__section,
    .page-sports-popular-matches__card,
    .page-sports-popular-matches__container,
    .page-sports-popular-matches__hero-image-wrapper,
    .page-sports-popular-matches__intro-section,
    .page-sports-popular-matches__factors-section,
    .page-sports-popular-matches__leagues-section,
    .page-sports-popular-matches__strategy-section,
    .page-sports-popular-matches__why-choose-us,
    .page-sports-popular-matches__faq-section,
    .page-sports-popular-matches__cta-final {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Section padding */
    .page-sports-popular-matches__intro-section,
    .page-sports-popular-matches__factors-section,
    .page-sports-popular-matches__leagues-section,
    .page-sports-popular-matches__strategy-section,
    .page-sports-popular-matches__why-choose-us,
    .page-sports-popular-matches__faq-section,
    .page-sports-popular-matches__cta-final {
        padding: 40px 0;
    }

    /* Card/Item adjustments */
    .page-sports-popular-matches__factor-card,
    .page-sports-popular-matches__strategy-item,
    .page-sports-popular-matches__benefit-item {
        padding: 20px;
    }
    .page-sports-popular-matches__card-title,
    .page-sports-popular-matches__item-title {
        font-size: 1.3rem;
    }
    .page-sports-popular-matches__factor-image,
    .page-sports-popular-matches__tab-image,
    .page-sports-popular-matches__benefit-icon {
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* FAQ adjustments */
    .page-sports-popular-matches__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-sports-popular-matches__faq-answer {
        padding: 0 20px 15px;
    }
}