/* style/sports.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần lặp lại */

:root {
  --page-sports-primary-color: #11A84E;
  --page-sports-secondary-color: #22C768;
  --page-sports-bg-dark: #08160F;
  --page-sports-card-bg: #11271B;
  --page-sports-text-main: #F2FFF6;
  --page-sports-text-secondary: #A7D9B8;
  --page-sports-border-color: #2E7A4E;
  --page-sports-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-sports {
  font-family: 'Arial', sans-serif;
  color: var(--page-sports-text-main); /* Default text color for dark background */
  background-color: var(--page-sports-bg-dark); /* Main background color */
}

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

.page-sports__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--page-sports-text-main);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-sports__section-description {
  font-size: 18px;
  color: var(--page-sports-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-sports__text-block {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--page-sports-text-main);
}

.page-sports__list-item {
  font-size: 16px;
  line-height: 1.7;
  color: var(--page-sports-text-main);
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-sports__list-item::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: var(--page-sports-secondary-color);
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--page-sports-bg-dark);
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

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

.page-sports__main-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  color: var(--page-sports-text-main);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-sports__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--page-sports-text-secondary);
  margin-bottom: 40px;
  line-height: 1.5;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-sports__btn-primary {
  background: var(--page-sports-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-sports__btn-secondary {
  background: transparent;
  color: var(--page-sports-primary-color);
  border: 2px solid var(--page-sports-primary-color);
}

.page-sports__btn-secondary:hover {
  background: var(--page-sports-primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-sports__btn-small {
  padding: 10px 20px;
  font-size: 16px;
}

.page-sports__btn-large {
  padding: 18px 35px;
  font-size: 20px;
}

.page-sports__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* General Section Styling */
.page-sports__introduction-section,
.page-sports__odds-section,
.page-sports__promotions-section,
.page-sports__security-section,
.page-sports__cta-final-section {
  padding: 80px 0;
}

.page-sports__games-section,
.page-sports__live-betting-section,
.page-sports__guide-section,
.page-sports__faq-section {
  padding: 80px 0;
}

.page-sports__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__text-block,
.page-sports__light-bg .page-sports__list-item,
.page-sports__light-bg .page-sports__faq-qtext,
.page-sports__light-bg .page-sports__faq-answer p {
  color: #333333;
}

.page-sports__light-bg .page-sports__section-description,
.page-sports__light-bg .page-sports__text-secondary {
  color: #666666;
}

.page-sports__light-bg .page-sports__card {
  background-color: #f9f9f9;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-sports__light-bg .page-sports__card-title,
.page-sports__light-bg .page-sports__card-text {
  color: #333333;
}

.page-sports__light-bg .page-sports__btn-secondary {
  color: var(--page-sports-primary-color);
  border-color: var(--page-sports-primary-color);
}

.page-sports__light-bg .page-sports__btn-secondary:hover {
  background: var(--page-sports-primary-color);
  color: #ffffff;
}

.page-sports__dark-bg {
  background-color: var(--page-sports-bg-dark);
  color: var(--page-sports-text-main);
}

.page-sports__dark-bg .page-sports__card {
  background-color: var(--page-sports-card-bg);
  color: var(--page-sports-text-main);
  border: 1px solid var(--page-sports-border-color);
}

.page-sports__dark-bg .page-sports__card-title,
.page-sports__dark-bg .page-sports__card-text {
  color: var(--page-sports-text-main);
}

/* Grid Container */
.page-sports__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Card Styling */
.page-sports__game-card,
.page-sports__promo-card,
.page-sports__step-card {
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-sports__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-sports__game-card .page-sports__card-image {
  height: 200px;
}

.page-sports__promo-card .page-sports__card-image {
  height: 180px;
}

.page-sports__card-title {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 15px 10px;
  line-height: 1.3;
  flex-grow: 1;
}

.page-sports__card-link {
  color: inherit;
  text-decoration: none;
}

.page-sports__card-link:hover {
  color: var(--page-sports-primary-color);
}

.page-sports__card-text {
  font-size: 15px;
  line-height: 1.6;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-sports__game-card .page-sports__btn-primary,
.page-sports__promo-card .page-sports__btn-secondary {
  margin: 0 15px 20px;
  width: calc(100% - 30px);
}

/* Odds & Live Betting Sections */
.page-sports__content-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-sports__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-sports__text-content {
  flex: 1;
}

.page-sports__image-content {
  flex: 1;
  text-align: center;
}

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

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

.page-sports__step-card .page-sports__card-image {
  display: none; /* Hide image for step cards, use icon */
}

.page-sports__step-icon {
  width: 80px;
  height: 80px;
  margin: 30px auto 20px;
  background-color: var(--page-sports-primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-sports__step-icon img {
  
  
  filter: invert(1);
  max-width: 100%;
  height: auto;
}

/* FAQ Section */
.page-sports__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__faq-item {
  background-color: var(--page-sports-card-bg);
  border: 1px solid var(--page-sports-border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-sports__faq-item.active {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: var(--page-sports-text-main);
  transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
  background-color: #1a3026; /* Slightly lighter dark background */
}

.page-sports__faq-qtext {
  flex-grow: 1;
}

.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  margin-left: 15px;
  color: var(--page-sports-primary-color);
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  padding: 0 20px;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 500px; /* Adjust as needed for content height */
  padding: 10px 20px 20px;
}

.page-sports__faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--page-sports-text-secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-sports__hero-image-wrapper {
    max-height: 500px;
  }

  .page-sports__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-sports__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-sports__text-content,
  .page-sports__image-content {
    flex: none;
    width: 100%;
  }

  .page-sports__content-image {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

  .page-sports__hero-description {
    font-size: clamp(16px, 4vw, 20px);
  }

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-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__cta-buttons {
    padding: 0 15px;
  }

  .page-sports__section-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 20px;
  }

  .page-sports__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-sports__text-block,
  .page-sports__list-item,
  .page-sports__faq-answer p {
    font-size: 15px;
  }

  .page-sports__grid-container,
  .page-sports__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__game-card,
  .page-sports__promo-card,
  .page-sports__step-card {
    margin: 0 15px;
  }

  .page-sports__content-image {
    max-width: 100%;
  }

  /* Ensure all images are responsive */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all video elements are responsive */
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all containers are responsive and have padding */
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-section,
  .page-sports__introduction-section,
  .page-sports__games-section,
  .page-sports__odds-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__guide-section,
  .page-sports__security-section,
  .page-sports__faq-section,
  .page-sports__cta-final-section,
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper,
  .page-sports__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-sports__faq-item {
    margin: 0 15px 15px;
  }

  .page-sports__faq-question {
    font-size: 16px;
    padding: 15px;
  }

  .page-sports__faq-answer {
    padding: 0 15px;
  }

  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 10px 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-sports__main-title {
    font-size: clamp(28px, 9vw, 36px);
  }

  .page-sports__hero-description {
    font-size: clamp(15px, 4.5vw, 18px);
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    font-size: 16px;
    padding: 12px 20px;
  }

  .page-sports__section-title {
    font-size: clamp(22px, 8vw, 30px);
  }

  .page-sports__section-description,
  .page-sports__text-block,
  .page-sports__list-item,
  .page-sports__faq-answer p {
    font-size: 14px;
  }
}