/* style/sports.css */
/* body đã có padding-top: var(--header-offset)；tránh trùng lặp */

/* General page styling for light body background */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f4f4f4; /* Ensures contrast with main text */
}

.page-sports__section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    color: #333333; /* Default text color for light sections */
}

/* Dark background sections */
.page-sports__section--dark-bg {
    background-color: #08160F; /* Custom background color */
    color: #F2FFF6; /* Main text color for dark background */
}

.page-sports__section--dark-bg .page-sports__section-title,
.page-sports__section--dark-bg .page-sports__feature-title,
.page-sports__section--dark-bg .page-sports__category-title,
.page-sports__section--dark-bg .page-sports__list-item-title,
.page-sports__section--dark-bg .page-sports__promo-title {
    color: #F2FFF6; /* Ensure titles are light on dark background */
}

.page-sports__section--dark-bg .page-sports__text-block,
.page-sports__section--dark-bg p {
    color: #A7D9B8; /* Secondary text color for dark background */
}

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: #08160F; /* Dark background for hero area */
    color: #F2FFF6;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-sports__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-height: 600px; /* Limit hero image height */
}

.page-sports__hero-content {
    position: relative; /* Ensure content is above image */
    z-index: 1;
    max-width: 800px;
    margin-top: 40px; /* Space between image and content */
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-sports__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F2FFF6;
    letter-spacing: 1px;
}

.page-sports__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #A7D9B8;
}

/* Section Titles */
.page-sports__section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 40px;
    color: #11A84E; /* Use primary color for titles in light sections */
    text-align: center;
}

/* Call to Action Button */
.page-sports__cta-button {
    display: inline-block;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-sports__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__cta-link {
    color: #57E38D; /* Glow color for links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-sports__cta-link:hover {
    color: #F2C14E; /* Gold on hover */
}

/* Text Blocks */
.page-sports__text-block {
    font-size: 1rem;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

/* Images within content */
.page-sports__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Feature Grid */
.page-sports__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-sports__feature-card {
    background-color: #11271B; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #A7D9B8;
}

.page-sports__feature-card .page-sports__feature-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #F2FFF6;
}

/* Sport Categories Grid */
.page-sports__sport-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-sports__category-card {
    background-color: #11271B; /* Card BG */
    padding: 25px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #A7D9B8;
}

.page-sports__category-card .page-sports__category-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #F2FFF6;
}

/* Feature List (ul) */
.page-sports__feature-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 900px;
    text-align: left;
}

.page-sports__feature-list li {
    background-color: #11271B; /* Card BG */
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #A7D9B8;
}

.page-sports__feature-list .page-sports__list-item-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #F2FFF6;
}

/* Guide List (ol) */
.page-sports__guide-list {
    list-style: none;
    counter-reset: guide-counter;
    padding: 0;
    margin: 40px auto;
    max-width: 900px;
    text-align: left;
}

.page-sports__guide-list li {
    background-color: #ffffff; /* Light background for guide steps */
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
    position: relative;
    padding-left: 60px;
}

.page-sports__guide-list li::before {
    counter-increment: guide-counter;
    content: counter(guide-counter);
    position: absolute;
    left: 20px;
    top: 25px;
    background-color: #11A84E;
    color: #F2FFF6;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.page-sports__guide-list .page-sports__list-item-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #11A84E;
}

.page-sports__guide-list li p {
    color: #555555;
}

.page-sports__guide-list li a {
    color: #11A84E;
    text-decoration: underline;
}

.page-sports__guide-list li a:hover {
    color: #22C768;
}

/* Promotions Grid */
.page-sports__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-sports__promo-card {
    background-color: #11271B; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #A7D9B8;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-sports__promo-card .page-sports__promo-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #F2FFF6;
}

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

.page-sports__faq-item {
    background-color: #ffffff; /* Light background for FAQ items */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-sports__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    color: #11A84E;
    list-style: none; /* Hide default marker */
}

.page-sports__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-sports__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
    transform: rotate(45deg);
}

.page-sports__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #555555;
}

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

.page-sports__faq-answer a {
    color: #11A84E;
    text-decoration: underline;
}

.page-sports__faq-answer a:hover {
    color: #22C768;
}

/* CTA Section at bottom */
.page-sports__section--cta {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green background for final CTA */
    color: #F2FFF6;
}

.page-sports__section--cta .page-sports__section-title {
    color: #F2FFF6;
    margin-bottom: 25px;
}

.page-sports__section--cta .page-sports__text-block {
    color: #A7D9B8;
    margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-sports__section-title {
        font-size: 2rem;
    }
    .page-sports__hero-content {
        margin-top: 20px;
    }
    .page-sports__hero-image {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-sports__section {
        padding: 40px 0;
    }
    .page-sports__container {
        padding: 0 15px; /* Add padding to containers on mobile */
    }
    .page-sports__hero-section {
        padding-bottom: 40px;
    }
    .page-sports__hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    .page-sports__hero-description {
        font-size: 1rem;
    }
    .page-sports__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-sports__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        max-width: 100% !important; /* Force full width on mobile */
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important; /* Allow text wrap */
        word-wrap: break-word !important; /* Allow text wrap */
    }

    /* Images */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 20px auto !important; /* Adjust margin for mobile */
    }
    .page-sports__hero-image {
        max-height: 300px;
    }
    
    /* All containers with images/content */
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__feature-card,
    .page-sports__category-card,
    .page-sports__promo-card,
    .page-sports__feature-list li,
    .page-sports__guide-list li,
    .page-sports__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Ensure content is not flush with screen edge */
        padding-right: 15px; /* Ensure content is not flush with screen edge */
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video (if any) - not present in this content, but for completeness */
    .page-sports video,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__video-section,
    .page-sports__video-container,
    .page-sports__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-sports__video-section {
        padding-top: 10px !important;
    }

    .page-sports__features-grid,
    .page-sports__sport-categories,
    .page-sports__promotions-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .page-sports__guide-list li {
        padding-left: 50px; /* Adjust for smaller screens */
    }
    .page-sports__guide-list li::before {
        left: 15px;
        top: 20px;
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }
    .page-sports__faq-item summary {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-sports__faq-answer {
        padding: 0 20px 15px;
    }
}