/* style/sports.css */
/* Base styles for the sports page */
.page-sports {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    background-color: #FFFFFF; /* Explicitly set for content area */
}

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

.page-sports__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-sports__section-title {
    font-size: 36px;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-sports__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #555555;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Fading brand color background */
    color: #ffffff; /* Text color for hero section */
}

.page-sports__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-sports__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1; /* Ensure image is below content overlay if any */
}

.page-sports__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    margin-top: -100px; /* Overlap with image for visual effect */
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
}

.page-sports__intro-text {
    font-size: 20px;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07; /* Login color for CTA */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__cta-button:hover {
    background: #c76a06; /* Darker shade on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Why Choose Section */
.page-sports__why-choose-section {
    background-color: #f9f9f9;
    color: #333333;
}

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

.page-sports__feature-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-sports__feature-item img {
    width: 100%;
    height: auto;
    max-height: 250px; /* Limit image height in card */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-sports__feature-item p {
    font-size: 16px;
    color: #555555;
}

/* Top Sports Section */
.page-sports__top-sports-section {
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff; /* White text for contrast */
}

.page-sports__top-sports-section .page-sports__section-title {
    color: #ffffff;
}

.page-sports__top-sports-section .page-sports__section-description {
    color: #f0f0f0;
}

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

.page-sports__sports-card {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on blue */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.page-sports__sports-card:hover {
    background: rgba(255, 255, 255, 0.25);
}

.page-sports__sports-title {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__sports-card p {
    font-size: 16px;
    color: #f0f0f0;
}

/* Guide Section */
.page-sports__guide-section {
    background-color: #ffffff;
    color: #333333;
}

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

.page-sports__guide-step {
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__guide-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.page-sports__guide-step img {
    width: 100%;
    height: auto;
    max-height: 200px; /* Limit image height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-sports__guide-step p {
    font-size: 15px;
    color: #555555;
}

.page-sports__guide-step a {
    color: #26A9E0;
    text-decoration: underline;
    font-weight: bold;
}

.page-sports__guide-step a:hover {
    color: #1e87b8;
}

/* Promotions Section */
.page-sports__promotions-section {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-sports__promotions-section .page-sports__section-title {
    color: #ffffff;
}

.page-sports__promotions-section .page-sports__section-description {
    color: #f0f0f0;
}

.page-sports__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.page-sports__promo-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.page-sports__promo-card:hover {
    background: rgba(255, 255, 255, 0.25);
}

.page-sports__promo-title {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__promo-card p {
    font-size: 16px;
    color: #f0f0f0;
}

.page-sports__cta-container {
    text-align: center;
}

.page-sports__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: #EA7C07; /* Login color for primary button */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-primary:hover {
    background: #c76a06;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Security and Support Section */
.page-sports__security-support-section {
    background-color: #f9f9f9;
    color: #333333;
}

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

.page-sports__info-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-sports__info-item img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-sports__info-title {
    font-size: 24px;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__info-item p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 25px;
}

.page-sports__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: #ffffff;
    color: #26A9E0; /* Brand primary color for text */
    text-decoration: none;
    border: 2px solid #26A9E0;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-sports__btn-secondary:hover {
    background: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-sports__faq-section {
    background-color: #ffffff;
    color: #333333;
}

.page-sports__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

/* FAQ容器样式 */
.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ mặc định - câu trả lời ẩn */
.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 15px;
  opacity: 0;
}

/* FAQ trạng thái mở rộng - 🚨 Sử dụng !important và max-height đủ lớn để đả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 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Câu hỏi FAQ */
.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-sports__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-sports__faq-question:active {
  background: #eeeeee;
}

/* Tiêu đề câu hỏi */
.page-sports__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn h3 chặn sự kiện click */
  color: #333333; /* Đảm bảo độ tương phản */
}

/* Biểu tượng chuyển đổi */
.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn biểu tượng chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  color: #26A9E0; /* Màu thương hiệu khi hoạt động */
  transform: rotate(45deg); /* Xoay cho hiệu ứng 'x' */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-sports__main-title {
        font-size: 40px;
    }
    .page-sports__intro-text {
        font-size: 18px;
    }
    .page-sports__hero-content {
        margin-top: -80px;
        padding: 25px;
    }
    .page-sports__section-title {
        font-size: 30px;
    }
    .page-sports__section-description {
        font-size: 16px;
        margin-bottom: 40px;
    }
    .page-sports__features-grid,
    .page-sports__sports-grid,
    .page-sports__guide-steps,
    .page-sports__promotions-grid,
    .page-sports__info-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-sports__hero-image img {
        border-radius: 4px;
    }
    .page-sports__hero-content {
        margin-top: -60px;
        padding: 20px;
    }
    .page-sports__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-sports__intro-text {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-sports__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-sports__section {
        padding: 40px 0;
    }
    .page-sports__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .page-sports__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* Images responsiveness */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    .page-sports__section,
    .page-sports__container,
    .page-sports__features-grid,
    .page-sports__sports-grid,
    .page-sports__guide-steps,
    .page-sports__promotions-grid,
    .page-sports__info-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        display: flex; /* Đảm bảo các mục flex hoặc grid bao bọc */
        flex-direction: column; /* Xếp chồng các mục theo chiều dọc */
        gap: 20px; /* Điều chỉnh khoảng cách cho thiết bị di động */
    }
    .page-sports__feature-item,
    .page-sports__sports-card,
    .page-sports__guide-step,
    .page-sports__promo-card,
    .page-sports__info-item {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 20px;
    }
    .page-sports__feature-title, .page-sports__sports-title, .page-sports__step-title, .page-sports__promo-title, .page-sports__info-title {
        font-size: 20px;
    }
}