/* style/sports.css */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set for clarity, though shared.css might handle body */
}

/* Header offset for desktop */
.page-sports__hero-section {
    padding-top: var(--header-offset, 120px);
}

.page-sports__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #017439; /* Brand primary color */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-sports__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

.page-sports__section-title--light {
    color: #FFFFFF;
}

.page-sports__section-title--light::after {
    background-color: #FFFFFF;
}

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

.page-sports__text-block {
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__text-block--light {
    color: #f0f0f0;
}

.page-sports__highlight {
    font-weight: bold;
    color: #017439;
}

.page-sports__highlight--light {
    font-weight: bold;
    color: #FFFFFF;
}

.page-sports__text-link--light {
    color: #FFFFFF;
    text-decoration: underline;
}
.page-sports__text-link--light:hover {
    color: #FFFF00; /* Login font color for hover */
}


/* CTA Button general style */
.page-sports__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-sports__cta-button:hover {
    background: #a30606; /* Darker red on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-sports__cta-button--dark {
    background: #017439;
    color: #FFFFFF;
}

.page-sports__cta-button--dark:hover {
    background: #005a2d;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px; /* Adjust as needed */
    background: linear-gradient(135deg, #017439, #005a2d); /* Darker green gradient */
    overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-sports__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

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

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #FFFFFF;
}

.page-sports__hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: #FFFF00; /* Register/Login font color for highlight */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-sports__hero-description {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

/* Introduction Section */
.page-sports__introduction-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background */
}

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

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

.page-sports__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

/* Quick Access Section */
.page-sports__quick-access-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF;
}

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

.page-sports__quick-link-item {
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent white */
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    color: #FFFFFF;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__quick-link-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.page-sports__link-icon {
    font-size: 40px;
    margin-bottom: 15px;
    line-height: 1;
}

.page-sports__link-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

/* Core Games Section */
.page-sports__core-games-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-sports__game-card {
    background: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-sports__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-sports__game-title {
    font-size: 22px;
    color: #017439;
    margin: 20px 15px 10px 15px;
}

.page-sports__game-description {
    font-size: 16px;
    padding: 0 15px 20px 15px;
    color: #555555;
}

.page-sports__btn-primary {
    display: inline-block;
    padding: 10px 25px;
    background: #017439;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.page-sports__btn-primary:hover {
    background: #005a2d;
}

/* Promotions Section */
.page-sports__promotions-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF;
}

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

.page-sports__promo-card {
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent white */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.page-sports__promo-card img {
    width: 100%;
    
    object-fit: cover;
    display: block;
}

.page-sports__promo-title {
    font-size: 22px;
    color: #FFFF00; /* Highlight color */
    margin: 20px 15px 10px 15px;
}

.page-sports__promo-description {
    font-size: 16px;
    padding: 0 15px 20px 15px;
    color: #f0f0f0;
}

.page-sports__btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    background: #FFFF00; /* Yellow for secondary action */
    color: #017439; /* Brand primary color for text */
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.page-sports__btn-secondary:hover {
    background: #e0e000; /* Darker yellow */
}

/* Security & Support Section */
.page-sports__security-support-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

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

.page-sports__info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-sports__info-title {
    font-size: 24px;
    color: #017439;
    margin-bottom: 15px;
}

.page-sports__btn-text {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.page-sports__btn-text:hover {
    color: #005a2d;
}

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

.page-sports__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

/* 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 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.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;
}

/* Vấn đề kiểu dáng */
.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;
}

/* Kiểu dáng tiêu đề câu hỏi */
.page-sports__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Tăng kích thước để dễ đọc hơn */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện nhấp */
  color: #333333;
}

/* Biểu tượng chuyển đổi */
.page-sports__faq-toggle {
  font-size: 28px; /* Tăng kích thước */
  font-weight: bold;
  line-height: 1;
  color: #017439; /* Màu chính của thương hiệu cho biểu tượng chuyển đổi */
  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 nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Tăng kích thước */
  height: 32px; /* Tăng kích thước */
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  color: #C30808; /* Màu đỏ cho biểu tượng chuyển đổi khi hoạt động */
  transform: rotate(45deg); /* Dấu hiệu trực quan cho trạng thái mở rộng */
}


/* Latest Blog Section */
.page-sports__latest-blog-section {
    padding: 80px 0;
    background-color: #017439;
    color: #FFFFFF;
}

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

.page-sports__blog-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-sports__blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.25);
}

.page-sports__blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-sports__blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}