/* style/sports.css */
:root {
    --primary-color: #007bff;
    --secondary-color: #28a745;
    --accent-color: #ffc107;
    --text-color-dark-bg: #ffffff;
    --text-color-light-bg: #333333;
    --background-color-body: #0a0a0a;
    --card-background-light: #ffffff;
    --card-background-dark: rgba(255, 255, 255, 0.1);
    --border-color: #e0e0e0;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-sports {
    background-color: var(--background-color-body);
    color: var(--text-color-dark-bg);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

.page-sports__main-title {
    font-size: 38px;
    font-weight: bold;
    color: var(--text-color-dark-bg);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
}

.page-sports__section-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-top: 60px;
    margin-bottom: 25px;
    line-height: 1.3;
}

.page-sports__section-title--light {
    color: var(--text-color-dark-bg);
}

.page-sports__section-description {
    font-size: 18px;
    color: var(--text-color-dark-bg);
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__intro-section {
    padding-top: 180px; /* Desktop padding for fixed header */
    padding-bottom: 60px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    text-align: center;
}

.page-sports__intro-text {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--text-color-dark-bg);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__highlight {
    color: var(--accent-color);
    font-weight: bold;
}

.page-sports__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.page-sports__cta-button--primary {
    background: linear-gradient(135deg, var(--secondary-color), #218838);
    color: var(--text-color-dark-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    margin-top: 30px;
}

.page-sports__cta-button--primary:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-sports__cta-button--secondary {
    background: var(--primary-color);
    color: var(--text-color-dark-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
}

.page-sports__cta-button--secondary:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-sports__cta-button--light {
    background: var(--text-color-dark-bg);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
}

.page-sports__cta-button--light:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-sports__long-text {
    margin-top: 40px;
    font-size: 17px;
    line-height: 1.8;
}

/* Game Types Section */
.page-sports__game-types-section {
    padding: 60px 0;
}

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

.page-sports__game-card {
    background: var(--card-background-light);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color-light-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.page-sports__game-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    width: 100%; /* Ensure image takes full width of card */
    min-height: 200px;
}

.page-sports__card-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-sports__card-text {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
    color: var(--text-color-light-bg);
}

/* Promotion Section */
.page-sports__promotion-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
}

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

.page-sports__promo-card {
    background: var(--card-background-dark);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color-dark-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.page-sports__promo-card .page-sports__card-title {
    color: var(--accent-color);
}

.page-sports__promo-card .page-sports__card-text {
    color: var(--text-color-dark-bg);
}

/* Blog Section */
.page-sports__blog-section {
    padding: 60px 0;
}

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

.page-sports__blog-card {
    background: var(--card-background-light);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color-light-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.page-sports__blog-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    width: 100%;
    min-height: 200px;
}

.page-sports__blog-card .page-sports__card-title {
    color: var(--primary-color);
    text-decoration: none;
}

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

.page-sports__blog-card .page-sports__card-title a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.page-sports__blog-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-sports__blog-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #007bff, #0056b3);
}

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

.page-sports__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

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

.page-sports__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

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

.page-sports__faq-toggle {
    font-size: 26px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    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: 30px;
    height: 30px;
}

.page-sports__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: #f9f9f9;
    border-radius: 0 0 8px 8px;
    color: var(--text-color-light-bg);
}

.page-sports__faq-answer p {
    margin-bottom: 10px;
    font-size: 16px;
}

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

.page-sports__faq-item.active .page-sports__faq-toggle {
    color: #333;
    transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__main-title {
        font-size: 32px;
    }

    .page-sports__section-title {
        font-size: 28px;
    }

    .page-sports__section-description,
    .page-sports__intro-text,
    .page-sports__long-text {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .page-sports__intro-section {
        padding-top: 160px !important; /* Mobile padding for fixed header */
        padding-bottom: 40px;
    }

    .page-sports__main-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .page-sports__section-title {
        font-size: 24px;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .page-sports__section-description,
    .page-sports__intro-text,
    .page-sports__long-text {
        font-size: 15px;
    }

    .page-sports__cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }

    .page-sports__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-sports__game-grid,
    .page-sports__promotion-grid,
    .page-sports__blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-sports__game-card,
    .page-sports__promo-card,
    .page-sports__blog-card {
        padding: 20px;
    }

    .page-sports__game-image,
    .page-sports__blog-image {
        min-height: 150px;
    }

    .page-sports__card-title {
        font-size: 20px;
    }

    .page-sports__card-text {
        font-size: 14px;
    }

    .page-sports__faq-section {
        padding: 40px 0;
    }

    .page-sports__faq-question {
        padding: 15px 20px;
    }

    .page-sports__faq-question h3 {
        font-size: 15px;
    }

    .page-sports__faq-toggle {
        font-size: 22px;
        width: 26px;
        height: 26px;
    }

    .page-sports__faq-answer {
        padding: 0 20px;
    }

    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 15px 20px !important;
    }

    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-sports__section,
    .page-sports__card,
    .page-sports__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}