/* style/sports.css */

/* Custom CSS Variables for this page if needed, but primarily use shared.css variables */
:root {
  --primary-color: #017439; /* Brand Green */
  --secondary-color: #FFFFFF; /* Brand White */
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-register: #C30808; /* Specific Register Button Red */
  --button-login: #C30808; /* Specific Login Button Red */
  --button-font-register-login: #FFFF00; /* Specific Register/Login Font Yellow */
  --border-light: #e0e0e0;
  --background-light: #f9f9f9;
}

.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--secondary-color); /* Page background is white */
}

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

.page-sports__text-center {
  text-align: center;
}

.page-sports__section-title {
  font-size: 38px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-sports__text-block {
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* 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); /* Fixed header offset */
  background: linear-gradient(135deg, var(--primary-color) 0%, #018e47 100%); /* Green gradient for hero */
  color: var(--text-light);
}

.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;
  max-width: 900px; /* Constrain hero image width */
}

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

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

.page-sports__hero-title {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.1;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.page-sports__hero-description {
  font-size: 22px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Button responsive */
  box-sizing: border-box; /* Button responsive */
  white-space: normal; /* Button responsive */
  word-wrap: break-word; /* Button responsive */
}

.page-sports__cta-button--register {
  background: var(--button-register); /* Specific red */
  color: var(--button-font-register-login); /* Specific yellow */
  border: 2px solid var(--button-font-register-login);
}

.page-sports__cta-button--register:hover {
  background: #a90707;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__cta-button--login {
  background: var(--button-login); /* Specific red */
  color: var(--button-font-register-login); /* Specific yellow */
  border: 2px solid var(--button-font-register-login);
}

.page-sports__cta-button--login:hover {
  background: #a90707;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-sports__intro-section {
  padding: 80px 0;
  background-color: var(--secondary-color); /* White background */
}

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

.page-sports__feature-item {
  background: var(--background-light); /* Light grey background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-sports__feature-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-sports__feature-item p {
  font-size: 16px;
  color: var(--text-dark);
}

/* Sports Categories Section */
.page-sports__sports-categories-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark green background */
  color: var(--text-light);
}

.page-sports__sports-categories-section .page-sports__section-title {
  color: var(--text-light);
}

.page-sports__sports-categories-section .page-sports__text-block {
  color: rgba(255, 255, 255, 0.9);
}

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

.page-sports__category-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
}

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

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

.page-sports__card-title {
  font-size: 22px;
  font-weight: 700;
  padding: 15px 20px 10px;
  margin-bottom: 0;
}

.page-sports__card-title a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-sports__card-title a:hover {
  color: var(--button-font-register-login); /* Yellow on hover */
}

.page-sports__category-card p {
  font-size: 15px;
  padding: 0 20px 20px;
  color: rgba(255, 255, 255, 0.8);
}

.page-sports__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap; /* Responsive button group */
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 100%; /* Button responsive */
  box-sizing: border-box; /* Button responsive */
  white-space: normal; /* Button responsive */
  word-wrap: break-word; /* Button responsive */
}

.page-sports__btn-primary {
  background: var(--button-register); /* Red */
  color: var(--button-font-register-login); /* Yellow */
  border: 2px solid var(--button-font-register-login);
}

.page-sports__btn-primary:hover {
  background: #a90707;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-secondary {
  background: var(--secondary-color); /* White */
  color: var(--primary-color); /* Green */
  border: 2px solid var(--primary-color);
}

.page-sports__btn-secondary:hover {
  background: #e0f2e7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Live Betting Section */
.page-sports__live-betting-section {
  padding: 80px 0;
  background-color: var(--secondary-color); /* White background */
}

.page-sports__content-layout {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.page-sports__content-text {
  flex: 1;
}

.page-sports__content-text p {
  font-size: 18px;
  margin-bottom: 20px;
}

.page-sports__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-sports__list li {
  font-size: 17px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
  color: var(--text-dark);
}

.page-sports__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 20px;
  line-height: 1;
}

.page-sports__content-image {
  flex: 1;
  text-align: center;
}

.page-sports__content-image img {
  width: 100%;
  height: auto;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark green background */
  color: var(--text-light);
}

.page-sports__promotions-section .page-sports__section-title {
  color: var(--text-light);
}

.page-sports__promotions-section .page-sports__text-block {
  color: rgba(255, 255, 255, 0.9);
}

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

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

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

.page-sports__promo-card img {
  width: 100%;
  height: 220px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
}

.page-sports__promo-card .page-sports__card-title {
  font-size: 20px;
  padding: 15px 20px 10px;
  margin-bottom: 0;
}

.page-sports__promo-card .page-sports__card-title a {
  color: var(--text-light);
  text-decoration: none;
}

.page-sports__promo-card .page-sports__card-title a:hover {
  color: var(--button-font-register-login);
}

.page-sports__promo-card p {
  font-size: 15px;
  padding: 0 20px 20px;
  color: rgba(255, 255, 255, 0.8);
}

/* How To Start Section */
.page-sports__how-to-start-section {
  padding: 80px 0;
  background-color: var(--secondary-color); /* White background */
}

.page-sports__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: center;
}

.page-sports__step-item {
  background: var(--background-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  padding-top: 60px; /* Space for step number */
}

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

.page-sports__step-number {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__step-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-sports__step-item p {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.page-sports__btn-text {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 5px;
  transition: all 0.3s ease;
}

.page-sports__btn-text:hover {
  color: #004d2b;
  border-color: #004d2b;
}

/* Betting Tips Section */
.page-sports__betting-tips-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark green background */
  color: var(--text-light);
}

.page-sports__betting-tips-section .page-sports__section-title {
  color: var(--text-light);
}

.page-sports__betting-tips-section .page-sports__text-block {
  color: rgba(255, 255, 255, 0.9);
}

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

.page-sports__tip-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__tip-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-sports__tip-title {
  font-size: 22px;
  color: var(--text-light);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-sports__tip-item p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

/* Responsible Gambling Section */
.page-sports__responsible-gambling-section {
  padding: 80px 0;
  background-color: var(--secondary-color); /* White background */
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 0;
  background-color: var(--background-light); /* Light grey background */
}

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

/* FAQ容器样式 */
.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* 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;
  padding: 0 20px; /* Adjusted padding */
  opacity: 0;
  background: var(--background-light);
  color: var(--text-dark);
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important and large value */
  padding: 20px !important; /* Adjusted padding */
  opacity: 1;
  background: var(--background-light);
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color); /* White background */
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, border-radius 0.3s ease;
  position: relative;
  z-index: 1; /* Ensure it's above the answer's border-radius if active */
}

.page-sports__faq-item.active .page-sports__faq-question {
  border-radius: 8px 8px 0 0; /* Rounded top, sharp bottom when active */
  border-bottom-color: transparent; /* Hide bottom border when active */
}

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

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