/* style/sports.css */

/* --- General Page Styles --- */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is dark (#000000) from shared.css, so use light text */
    background-color: #000000; /* Ensure main content area has a dark background consistent with body */
}

.page-sports__section-title {
    font-size: 38px;
    font-weight: bold;
    color: #E3B505; /* Secondary color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
    line-height: 1.2;
}

.page-sports__subsection-title {
    font-size: 28px;
    font-weight: bold;
    color: #E3B505;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-sports__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-sports__list li {
    margin-bottom: 10px;
}

.page-sports__list strong {
    color: #E3B505;
}

/* --- Hero Section --- */
.page-sports__hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero:1920x1080:89bet,sports_betting,stadium_background,dynamic_action]') no-repeat center center/cover;
    padding: 100px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-sports__hero-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-sports__main-title {
    font-size: 52px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #E3B505; /* Gold for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.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;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-sports__cta-button--primary {
    background-color: #E3B505; /* Secondary color for primary action */
    color: #0A2463; /* Dark blue text for contrast */
}

.page-sports__cta-button--primary:hover {
    background-color: #d1a404; /* Slightly darker gold */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-sports__cta-button--secondary {
    background-color: transparent;
    color: #E3B505;
    border: 2px solid #E3B505;
}

.page-sports__cta-button--secondary:hover {
    background-color: #E3B505;
    color: #0A2463;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* --- Features Section --- */
.page-sports__features-section {
    padding: 80px 20px;
    background-color: #0A2463; /* Primary color for dark background */
    color: #ffffff;
}

.page-sports__features-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.page-sports__feature-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark blue */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-sports__feature-icon {
    width: 100%; /* Ensure image fills card width */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Cover the area */
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-sports__feature-title {
    font-size: 24px;
    font-weight: bold;
    color: #E3B505;
    margin-bottom: 15px;
}

.page-sports__feature-description {
    font-size: 16px;
    color: #f0f0f0;
}

/* --- How To Start Section --- */
.page-sports__how-to-start-section {
    padding: 80px 20px;
    background-color: #000000;
    color: #ffffff;
}

.page-sports__how-to-start-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.page-sports__step-card {
    background-color: rgba(255, 255, 255, 0.05); /* Lighter transparent white on black */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-sports__step-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 25px;
    border-radius: 8px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-sports__step-title {
    font-size: 26px;
    font-weight: bold;
    color: #E3B505;
    margin-bottom: 15px;
}

.page-sports__step-description {
    font-size: 16px;
    color: #f0f0f0;
    margin-bottom: 25px;
}

.page-sports__step-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #0A2463; /* Primary color for button */
    color: #E3B505; /* Secondary color text for contrast */
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
}

.page-sports__step-button:hover {
    background-color: #1a3a73; /* Slightly lighter primary color */
    color: #ffffff;
}

/* --- Promotions Section --- */
.page-sports__promotions-section {
    padding: 80px 20px;
    background-color: #0A2463;
    color: #ffffff;
}

.page-sports__promotions-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-sports__promotions-intro {
    font-size: 18px;
    margin-bottom: 50px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-sports__promo-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-sports__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-sports__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-sports__promo-title {
    font-size: 22px;
    font-weight: bold;
    color: #E3B505;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow title to take available space */
}

.page-sports__promo-title a {
    color: #E3B505;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-sports__promo-title a:hover {
    color: #d1a404;
    text-decoration: underline;
}

.page-sports__promo-description {
    font-size: 15px;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-sports__promo-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #E3B505;
    color: #0A2463;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
}

.page-sports__promo-button:hover {
    background-color: #d1a404;
    color: #ffffff;
}

.page-sports__all-promos-cta {
    margin-top: 30px;
}

/* --- FAQ Section --- */
.page-sports__faq-section {
    padding: 80px 20px;
    background-color: #000000;
    color: #ffffff;
}

.page-sports__faq-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.page-sports__faq-list {
    margin-top: 40px;
    text-align: left;
}

/* FAQ容器样式 */
.page-sports__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05); /* Light transparent background on black */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* FAQ默认状态 - 答案隐藏 */
.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;
    color: #f0f0f0;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo mở rộng */
.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
    padding: 20px 25px !important;
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.03); /* Slightly lighter transparent for active answer */
    border-radius: 0 0 8px 8px;
}

/* Question style */
.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: rgba(255, 255, 255, 0.08); /* Transparent white on dark */
    border: 1px solid rgba(255, 255, 255, 0.15);
    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-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.page-sports__faq-question:active {
    background-color: rgba(255, 255, 255, 0.12);
}

/* Question title style */
.page-sports__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #E3B505; /* Gold for FAQ question titles */
    pointer-events: none; /* Prevent h3 from blocking click events */
}

/* Toggle icon */
.page-sports__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #E3B505;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click events */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}