/* style/sports.css */

/* Custom Colors from palette */
:root {
    --suncity888-primary: #11A84E;
    --suncity888-secondary: #22C768;
    --suncity888-card-bg: #11271B;
    --suncity888-background: #08160F;
    --suncity888-text-main: #F2FFF6;
    --suncity888-text-secondary: #A7D9B8;
    --suncity888-border: #2E7A4E;
    --suncity888-glow: #57E38D;
    --suncity888-gold: #F2C14E;
    --suncity888-divider: #1E3A2A;
    --suncity888-deep-green: #0A4B2C;
}

.page-sports {
    background-color: var(--suncity888-background); /* Body background from custom palette */
    color: var(--suncity888-text-main); /* Main text color for contrast */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    font-size: 1rem;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--suncity888-deep-green); /* Deep Green for hero background */
    box-sizing: border-box;
}

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

.page-sports__hero-content {
    max-width: 900px;
    text-align: center;
    color: var(--suncity888-text-main);
}

.page-sports__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--suncity888-gold); /* Gold for main title */
}

.page-sports__hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--suncity888-text-secondary);
}

.page-sports__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: var(--suncity888-text-main);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    display: inline-block; /* For proper padding/width on buttons */
}

.page-sports__btn-primary:hover,
.page-sports__btn-secondary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

.page-sports__btn-secondary {
    background: var(--suncity888-card-bg);
    border: 2px solid var(--suncity888-primary);
}

.page-sports__btn-secondary:hover {
    background: var(--suncity888-primary);
    border-color: var(--suncity888-secondary);
}

.page-sports__btn-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 300px; /* Limit width for centered buttons */
}

.page-sports__link-in-text {
    color: var(--suncity888-gold);
    text-decoration: underline;
}

.page-sports__link-in-text:hover {
    color: var(--suncity888-glow);
}

/* Sections */
.page-sports__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-sports__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--suncity888-gold); /* Gold for section titles */
}

.page-sports__section-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--suncity888-primary);
}

.page-sports__text-block p {
    margin-bottom: 15px;
    color: var(--suncity888-text-secondary);
}

.page-sports__text-block ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--suncity888-text-secondary);
}

.page-sports__text-block li {
    margin-bottom: 8px;
}

.page-sports__text-block strong {
    color: var(--suncity888-text-main);
}

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

.page-sports__card {
    background-color: var(--suncity888-card-bg); /* Card BG */
    border: 1px solid var(--suncity888-border); /* Border */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--suncity888-text-main); /* Main text color for cards */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-sports__card-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-sports__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--suncity888-gold); /* Gold for card titles */
}

.page-sports__card-description {
    font-size: 1rem;
    color: var(--suncity888-text-secondary);
}

.page-sports__image-full-width {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 30px;
    border-radius: 8px;
    object-fit: cover;
}

/* Ensure content area images are not smaller than 200px */
.page-sports__content-area img,
.page-sports__card img {
    min-width: 200px; /* Minimum width for content images */
    min-height: 200px; /* Minimum height for content images */
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-sports__faq-item {
    background-color: var(--suncity888-card-bg); /* Card BG */
    border: 1px solid var(--suncity888-border); /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--suncity888-text-main);
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--suncity888-deep-green); /* Deep Green for question background */
    color: var(--suncity888-text-main);
    transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
    background-color: var(--suncity888-primary);
}

.page-sports__faq-qtext {
    flex-grow: 1;
}

.page-sports__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--suncity888-gold); /* Gold for toggle icon */
}

/* For <details> tag, native handling for toggle */
.page-sports__faq-item details > summary {
    list-style: none; /* Hide default marker */
}
.page-sports__faq-item details > summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-sports__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: var(--suncity888-text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-sports__faq-item[open] .page-sports__faq-answer {
    max-height: 500px; /* Sufficient height for most answers */
    padding-top: 15px;
}
.page-sports__faq-item[open] .page-sports__faq-toggle {
    content: "−"; /* Update toggle for open state */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-sports {
        font-size: 15px;
    }
    .page-sports__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding on mobile */
    }

    .page-sports__hero-title {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
    }

    .page-sports__hero-description {
        font-size: 0.95rem;
    }

    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-sports__section {
        padding: 40px 15px;
    }

    .page-sports__section-title {
        font-size: 2rem;
    }

    .page-sports__section-subtitle {
        font-size: 1.5rem;
    }

    .page-sports__card {
        padding: 20px;
    }

    .page-sports__card-title {
        font-size: 1.3rem;
    }

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

    .page-sports__faq-question {
        font-size: 1rem;
        padding: 15px;
    }

    .page-sports__faq-answer {
        font-size: 0.9rem;
        padding: 0 15px 15px;
    }

    /* Force responsive images/videos/buttons/containers on mobile */
    .page-sports img,
    .page-sports video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__cta-buttons,
    .page-sports__button-group,
    .page-sports__btn-container,
    .page-sports__hero-section,
    .page-sports__text-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }
}