/* style/sports.css */
/* 
 * Màu sắc chính: #017439
 * Màu sắc phụ: #FFFFFF
 * Màu đăng ký/đăng nhập: #C30808
 * Màu chữ đăng ký/đăng nhập: #FFFF00
 * Màu nền body (từ shared.css): #121212 (dark) -> Văn bản chính phải màu sáng
 */

.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background from shared.css */
}

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    background-color: #017439; /* Brand color for hero background */
    color: #ffffff; /* Light text for dark brand background */
    padding-top: calc(100px + var(--header-offset, 120px)); /* Ensure content is below header */
}

.page-sports__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-sports__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Buttons */
.page-sports__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-sports__btn-primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-sports__btn-primary:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
    transform: translateY(-2px);
}

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

.page-sports__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
    transform: translateY(-2px);
}

.page-sports__btn-primary--video-cta {
    margin-top: 30px;
}

.page-sports__btn-link {
    background-color: transparent;
    color: #017439; /* Brand color for link button */
    border: 1px solid #017439;
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
}

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

.page-sports__btn-link--light {
    color: #ffffff;
    border-color: #ffffff;
}

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

/* Section Titles & Descriptions */
.page-sports__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #017439; /* Brand color for light background sections */
    font-weight: bold;
}

.page-sports__section-title--light {
    color: #ffffff; /* White for dark background sections */
}

.page-sports__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #555555; /* Darker grey for light background sections */
}

.page-sports__section-description--light {
    color: #f0f0f0; /* Lighter grey for dark background sections */
}

/* General Section Styles */
.page-sports__features-section,
.page-sports__guide-section,
.page-sports__faq-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background for these sections */
    color: #333333; /* Dark text for light background */
}

.page-sports__categories-section,
.page-sports__promotions-section,
.page-sports__final-cta-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background for these sections, slightly lighter than body to provide visual separation */
    color: #ffffff; /* Light text for dark background */
}

/* Video Section */
.page-sports__video-section {
    position: relative;
    padding: 80px 0;
    background-color: #017439; /* Brand color background for video section */
    color: #ffffff;
    text-align: center;
}

.page-sports__responsive-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer; /* Indicate clickable */
}

/* Cards */
.page-sports__card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff; /* Default for dark sections */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__features-section .page-sports__card,
.page-sports__guide-section .page-sports__card,
.page-sports__faq-section .page-sports__card {
    background-color: #f8f8f8; /* Light background for cards in light sections */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #333333; /* Dark text for light cards */
    border: 1px solid #e0e0e0;
}

.page-sports__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__card-title {
    font-size: 1.5em;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #017439; /* Brand color for titles in light cards */
    font-weight: bold;
}

.page-sports__card-title--light {
    color: #ffffff; /* White for titles in dark cards */
}

.page-sports__card-text {
    font-size: 1em;
    line-height: 1.5;
    color: #666666; /* Dark grey for light cards */
}

.page-sports__card-text--light {
    color: #cccccc; /* Light grey for dark cards */
}

.page-sports__feature-icon,
.page-sports__category-image,
.page-sports__step-icon,
.page-sports__promo-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px; /* Enforce minimum image size */
}

/* Grids */
.page-sports__features-grid,
.page-sports__categories-grid,
.page-sports__guide-steps,
.page-sports__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* FAQ Section */
.page-sports__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f8f8;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #ffffff;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #017439;
    list-style: none; /* For details/summary */
}

.page-sports__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-sports__faq-item summary::marker {
    display: none;
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #C30808; /* Use accent color for toggle */
    transition: transform 0.3s ease;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-sports__faq-answer {
    padding: 15px 25px 20px;
    background-color: #fefefe;
    border-top: 1px solid #e0e0e0;
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
}

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


/* Final CTA Section */
.page-sports__final-cta-section {
    text-align: center;
    padding: 100px 0;
    background-color: #017439; /* Brand color for final CTA */
    color: #ffffff;
}

.page-sports__cta-container {
    max-width: 900px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        padding: 80px 0;
        padding-top: calc(80px + var(--header-offset, 120px));
    }
    .page-sports__hero-title {
        font-size: 2.5em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .page-sports__btn-link {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__section-description {
        font-size: 0.95em;
        margin-bottom: 40px;
    }
    .page-sports__features-section,
    .page-sports__categories-section,
    .page-sports__guide-section,
    .page-sports__promotions-section,
    .page-sports__faq-section,
    .page-sports__final-cta-section,
    .page-sports__video-section {
        padding: 50px 0;
    }
    .page-sports__container {
        padding: 0 15px; /* Add padding to content containers */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Images and Videos Responsive */
    .page-sports img,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px;
        min-height: 200px;
    }
    .page-sports__responsive-video {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: 0 !important;
        overflow: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-sports__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section top padding is correct */
    }
    .page-sports__features-grid,
    .page-sports__categories-grid,
    .page-sports__guide-steps,
    .page-sports__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-sports__card {
        padding: 20px;
    }
    .page-sports__card-title {
        font-size: 1.3em;
    }
    .page-sports__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-sports__faq-answer {
        padding: 10px 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 2em;
    }
    .page-sports__section-title {
        font-size: 1.5em;
    }
}