/* style/ththao.css */
/* Base styles for the Thể Thao page */
.page-ththao {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Using custom property for text color */
    background-color: var(--bg-color); /* Inherited from shared.css */
}

/* Custom properties for Thể Thao page specific colors */
.page-ththao {
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --card-bg: #11271B;
    --border-color: #2E7A4E;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --button-text-color: #F2FFF6;
    --deep-green: #0A4B2C;
}

/* Hero Section */
.page-ththao__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, header offset handled by body */
    box-sizing: border-box;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-ththao__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    width: 100%; /* Ensure it fills container */
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 8px;
}

.page-ththao__hero-content {
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-ththao__main-title {
    font-size: clamp(2.5rem, 5vw, 3.2rem); /* H1 font-size clamp */
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.page-ththao__hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-ththao__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* General Section Styles */
.page-ththao__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-ththao__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-ththao__section-description {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* Dark background sections */
.page-ththao__dark-section {
    background-color: var(--deep-green); /* Using deep green from custom palette */
    padding: 60px 0;
    color: var(--text-main);
}

/* Card Styles */
.page-ththao__card {
    background-color: var(--card-bg); /* Custom card background */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color); /* Custom border color */
    color: var(--text-main); /* Light text for dark card background */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ththao__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Button Styles */
.page-ththao__btn-primary,
.page-ththao__btn-secondary,
.page-ththao__btn-tertiary,
.page-ththao__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box; /* Include padding in width */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-ththao__btn-primary {
    background: var(--button-gradient); /* Custom button gradient */
    color: var(--button-text-color); /* Custom button text color */
    border: none;
    box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

.page-ththao__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(42, 209, 111, 0.6);
}

.page-ththao__btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
}

.page-ththao__btn-secondary:hover {
    background: rgba(46, 122, 78, 0.2); /* Slightly lighter border color for hover */
    border-color: #2AD16F;
    color: #2AD16F;
}

.page-ththao__btn-tertiary {
    background-color: rgba(46, 122, 78, 0.3);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    font-size: 0.9rem;
}

.page-ththao__btn-tertiary:hover {
    background-color: rgba(46, 122, 78, 0.5);
    border-color: #2AD16F;
}

.page-ththao__btn-link {
    color: #2AD16F; /* A brighter green for links */
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.page-ththao__btn-link:hover {
    color: #57E38D; /* Glow color for hover */
}


/* About Section */
.page-ththao__about-section {
    padding-bottom: 60px;
}

.page-ththao__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-ththao__feature-icon {
    width: 200px; /* Minimum size requirement */
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-ththao__feature-title {
    font-size: 1.4rem;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-ththao__feature-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
}

/* Sports Offerings Section */
.page-ththao__sports-offerings {
    padding: 60px 0;
}

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

.page-ththao__sport-card {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-ththao__sport-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, will be object-fit: cover */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-ththao__sport-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-ththao__sport-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1; /* Push button to bottom */
    margin-bottom: 20px;
}

/* Promotions CTA Section */
.page-ththao__promotions-cta {
    padding: 80px 0;
}

.page-ththao__flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 30px;
}

.page-ththao__promo-content {
    max-width: 700px;
}

.page-ththao__promo-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    width: 600px; /* HTML width attribute */
    height: 450px; /* HTML height attribute */
    object-fit: cover;
}

/* How to Start Section */
.page-ththao__how-to-start {
    padding: 60px 0;
}

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

.page-ththao__step-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-ththao__step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2AD16F; /* Bright green for numbers */
    margin-bottom: 15px;
    background: rgba(42, 209, 111, 0.1);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #2AD16F;
}

.page-ththao__step-title {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-ththao__step-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-ththao__faq-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-ththao__faq-list {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-ththao__faq-item {
    cursor: pointer;
    overflow: hidden; /* For details tag */
}

.page-ththao__faq-item summary {
    list-style: none; /* Hide default marker */
}

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

.page-ththao__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.page-ththao__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2AD16F;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.page-ththao__faq-item[open] .page-ththao__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-ththao__faq-answer {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-top: 15px;
    padding-bottom: 10px;
    /* max-height: 0; */ /* Not needed for <details> tag, browser handles it */
    /* overflow: hidden; */ /* Not needed for <details> tag, browser handles it */
    /* transition: max-height 0.3s ease-out; */ /* Not needed for <details> tag, browser handles it */
}
/* For details tag, the max-height/overflow is not needed as browser handles it */
.page-ththao__faq-item[open] .page-ththao__faq-answer {
    /* max-height: 500px; */ /* Not needed for <details> tag, browser handles it */
    padding-top: 15px;
    padding-bottom: 10px;
}


/* Contact CTA Section */
.page-ththao__contact-cta {
    background-color: var(--deep-green);
    padding: 80px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-ththao__hero-image {
        height: 500px;
    }
    .page-ththao__main-title {
        font-size: clamp(2rem, 4.5vw, 2.8rem);
    }
    .page-ththao__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-ththao__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Consistent small top padding */
    }
    .page-ththao__hero-image {
        height: 300px;
        margin-bottom: 20px;
    }
    .page-ththao__hero-description {
        font-size: 1rem;
    }
    .page-ththao__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-ththao__btn-primary,
    .page-ththao__btn-secondary,
    .page-ththao__btn-tertiary,
    .page-ththao__btn-link,
    .page-ththao a[class*="button"],
    .page-ththao 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 !important;
        padding-right: 15px !important;
    }
    .page-ththao__hero-cta,
    .page-ththao__button-group,
    .page-ththao__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
    }
    .page-ththao__container {
        padding: 0 15px;
    }
    .page-ththao__section-title {
        padding-top: 30px;
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    .page-ththao__section-description {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }
    .page-ththao__features-grid,
    .page-ththao__sport-categories-grid,
    .page-ththao__steps-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }
    .page-ththao__feature-icon {
        width: 200px !important; /* Maintain minimum size */
        height: auto !important;
    }
    .page-ththao__sport-image {
        height: 180px;
    }
    .page-ththao__promo-image {
        width: 100% !important;
        height: auto !important;
    }
    .page-ththao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-ththao__section,
    .page-ththao__card,
    .page-ththao__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-ththao__faq-question {
        font-size: 1rem;
    }
    .page-ththao__faq-answer p {
        font-size: 0.9rem;
    }
    .page-ththao__video-section {
      padding-top: 10px !important; /* body đã xử lý --header-offset, cấm dùng var(--header-offset) ở đây */
    }
}

/* Ensure no filter is used on images */
.page-ththao img {
    filter: none;
}

/* Content area images CSS dimensions lower limit check */
.page-ththao__hero-image,
.page-ththao__feature-icon,
.page-ththao__sport-image,
.page-ththao__promo-image {
    min-width: 200px;
    min-height: 200px;
}
/* Specific override for feature icons that are smaller than 200px width but still meet height/area rules */
.page-ththao__feature-icon {
    width: 200px; /* Enforce min width */
    height: auto;
}
.page-ththao__sport-image {
    width: 100%; /* Make it responsive */
    height: 200px; /* Fixed height, object-fit will ensure minimum visual size */
    min-height: 200px; /* Ensure visual height is not too small */
}
.page-ththao__promo-image {
    width: 600px; /* Desktop width */
    height: 450px; /* Desktop height */
    min-width: 200px;
    min-height: 200px;
}
@media (max-width: 768px) {
    .page-ththao__feature-icon {
        width: 200px !important; /* Ensure it stays above 200px */
        height: auto !important;
    }
    .page-ththao__sport-image {
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important; /* Ensure min height */
    }
    .page-ththao__promo-image {
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
    }
}