/* ------------------------------------------ */
/* sports.css - Page Specific Styles for Thể Thao */
/* ------------------------------------------ */

/* Base styles for the page content wrapper */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background: var(--page-bg, #f8f8f8); /* Inherit from shared or default light gray */
}

/* Section spacing and padding */
.page-sports__section {
  padding: 40px 0;
}

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

/* Color contrast classes */
.page-sports__dark-section {
  background: #B71C1C; /* Custom background color */
  color: #FFF5E1; /* Custom text color */
}

.page-sports__light-bg {
  background: #ffffff; /* Default light background */
  color: #333333;
}

/* Section Titles */
.page-sports__section-title {
  font-size: clamp(28px, 4vw, 36px); /* h2 clamp font size */
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #C91F17; /* Brand primary color */
  line-height: 1.2;
}

.page-sports__section-title--white {
  color: #FFF5E1;
}

.page-sports__section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 18px;
  line-height: 1.6;
}

.page-sports__section-intro--white {
  color: #FFF5E1;
}

/* Card Styling */
.page-sports__card {
  background: #D32F2F; /* Custom card background */
  color: #FFF5E1; /* Custom card text color */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%; /* Ensure cards in a grid have equal height */
}

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

.page-sports__card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  display: block;
}

.page-sports__card--dark-bg {
  background: #7A0E0E; /* Deep Red for darker cards */
  color: #FFF5E1;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.2;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
  color: #7A0E0E; /* Deep Red text for contrast */
  border: none;
  box-shadow: 0 4px 10px rgba(255, 216, 106, 0.4);
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 216, 106, 0.6);
}

.page-sports__btn-secondary {
  background: transparent;
  color: #FFF5E1; /* Custom text color */
  border: 2px solid #F2B544; /* Custom border color */
}

.page-sports__btn-secondary:hover {
  background: #F2B544;
  color: #7A0E0E; /* Deep Red text for contrast */
  transform: translateY(-2px);
}

.page-sports__btn--small {
  padding: 8px 18px;
  font-size: 14px;
  border-radius: 30px;
  margin-top: 15px;
}

/* CTA Buttons Container */
.page-sports__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-sports__cta-buttons--center {
  justify-content: center;
}

/* ------------------------------------------ */
/* Hero Section */
/* ------------------------------------------ */
.page-sports__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding-top: 10px; /* Small top padding */
  min-height: 600px;
  justify-content: center;
}

.page-sports__hero-image {
  width: 100%;
  max-height: 500px; /* Limit image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-sports__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover the container */
  border-radius: 0;
  max-width: 100%;
  min-height: 300px; /* Ensure a minimum height */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px 20px;
  max-width: 900px;
}

.page-sports__main-title {
  font-size: clamp(32px, 5vw, 48px); /* H1 clamp font size */
  font-weight: 900;
  margin-bottom: 20px;
  color: #FFF5E1;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-sports__description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #FFF5E1;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-sports__feature-item .page-sports__feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFF5E1;
}

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

/* ------------------------------------------ */
/* Betting Types Section */
/* ------------------------------------------ */
.page-sports__betting-types {
  background: #B71C1C;
}

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

.page-sports__betting-item .page-sports__betting-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFF5E1;
}

.page-sports__betting-item p {
  font-size: 16px;
  color: #FFF5E1;
}

/* ------------------------------------------ */
/* How to Bet Section */
/* ------------------------------------------ */
.page-sports__how-to-bet {
  background: #ffffff;
  color: #333333;
}

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

.page-sports__step-item {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-sports__step-icon {
  background: #C91F17;
  color: #FFF5E1;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-sports__step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #C91F17;
}

.page-sports__step-item p {
  font-size: 16px;
  color: #555555;
  flex-grow: 1;
}

/* ------------------------------------------ */
/* Promotions Section */
/* ------------------------------------------ */
.page-sports__promotions {
  background: #B71C1C;
}

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

.page-sports__promo-item .page-sports__promo-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFF5E1;
}

.page-sports__promo-item p {
  font-size: 16px;
  color: #FFF5E1;
}

/* ------------------------------------------ */
/* Popular Sports Section */
/* ------------------------------------------ */
.page-sports__popular-sports {
  background: #ffffff;
  color: #333333;
}

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

.page-sports__sport-item .page-sports__sport-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFF5E1;
}

.page-sports__sport-item p {
  font-size: 16px;
  color: #FFF5E1;
}

/* ------------------------------------------ */
/* FAQ Section */
/* ------------------------------------------ */
details.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-sports__faq-item summary.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-sports__faq-item summary.page-sports__faq-question::-webkit-details-marker {
  display: none;
}
details.page-sports__faq-item summary.page-sports__faq-question:hover {
  background: #f5f5f5;
}
.page-sports__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-sports__faq-item .page-sports__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* ------------------------------------------ */
/* Responsive Styles */
/* ------------------------------------------ */

/* Tablet/Smaller Desktop (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-sports__container {
    padding: 0 15px;
  }

  .page-sports__main-title {
    font-size: clamp(30px, 4.5vw, 42px);
  }

  .page-sports__description {
    font-size: 18px;
  }

  .page-sports__section-title {
    font-size: clamp(26px, 3.5vw, 32px);
  }

  .page-sports__features-grid,
  .page-sports__betting-grid,
  .page-sports__steps-grid,
  .page-sports__promo-grid,
  .page-sports__sports-carousel {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
  }

  .page-sports__card {
    padding: 20px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    padding: 10px 20px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-sports__section {
    padding: 30px 0;
  }

  .page-sports__container {
    padding: 0 15px !important; /* Ensure padding on mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO 主图区域 */
  .page-sports__hero-section {
    padding-top: 10px; /* Small top padding */
    min-height: auto;
  }

  .page-sports__hero-image {
    max-height: 300px;
  }

  .page-sports__hero-image img {
    object-fit: contain !important; /* Prevent cropping */
    aspect-ratio: unset !important;
    min-height: 200px;
  }

  .page-sports__hero-content {
    padding: 20px 15px;
  }

  .page-sports__main-title {
    font-size: clamp(28px, 8vw, 38px); /* H1 clamp font size for mobile */
    margin-bottom: 15px;
  }

  .page-sports__description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  /* CTA Buttons */
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports a[class*="button"],
  .page-sports 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;
    padding-right: 15px;
  }

  /* 通用图片与容器 */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-sports__card {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 产品展示图区域 / Features Grid */
  .page-sports__features-grid,
  .page-sports__betting-grid,
  .page-sports__steps-grid,
  .page-sports__promo-grid,
  .page-sports__sports-carousel {
    grid-template-columns: 1fr; /* Single column layout for most grids */
    gap: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* For specific 2-column mobile layout if needed (e.g., 2x3 for 6 cards), adjust minmax */
  /* Example for 2-column products grid on mobile (if 6 cards are present): */
  /* .page-sports__products-grid { grid-template-columns: repeat(2, 1fr); } */

  /* 装饰主标题 + 长文 SEO 区 */
  .page-sports__section-title {
    font-size: clamp(24px, 7vw, 30px); /* Smaller clamp for mobile */
  }

  .page-sports__section-intro {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* FAQ Section */
  details.page-sports__faq-item summary.page-sports__faq-question { padding: 15px; }
  .page-sports__faq-qtext { font-size: 15px; }
  .page-sports__faq-toggle { font-size: 20px; width: 24px; }
  details.page-sports__faq-item .page-sports__faq-answer { padding: 0 15px 15px; }
}

/* Ensure no image filters are used */
.page-sports img {
  filter: none !important;
}