.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #f8f8f8;
}

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

.page-sports__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #003366;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

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

.page-sports__dark-bg {
  background-color: #003366;
  color: #ffffff;
}

.page-sports__dark-bg .page-sports__section-title {
  color: #FFCC00;
}

.page-sports__dark-bg .page-sports__section-description,
.page-sports__dark-bg p,
.page-sports__dark-bg a {
  color: #ffffff;
}

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

.page-sports__light-bg .page-sports__section-title {
  color: #003366;
}

.page-sports__light-bg .page-sports__section-description,
.page-sports__light-bg p,
.page-sports__light-bg a {
  color: #333333;
}

.page-sports__cta-button {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  margin: 10px;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

.page-sports__btn-primary {
  background: #FFCC00;
  color: #003366;
  border: 2px solid #FFCC00;
}

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

.page-sports__btn-secondary {
  background: #003366;
  color: #FFCC00;
  border: 2px solid #FFCC00;
}

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

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

/* 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 */
  overflow: hidden;
}

.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;
}

.page-sports__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-sports__hero-title {
  font-size: 48px;
  font-weight: 900;
  color: #FFCC00;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-sports__hero-description {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

/* General Content Grid */
.page-sports__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

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

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

.page-sports__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.7;
}

.page-sports__image-block {
  flex: 1;
  min-width: 300px;
}

.page-sports__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* Categories Grid */
.page-sports__categories-grid,
.page-sports__bet-types-grid,
.page-sports__promotions-grid,
.page-sports__guide-steps-grid,
.page-sports__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-sports__category-card,
.page-sports__bet-type-card,
.page-sports__promo-card,
.page-sports__guide-step,
.page-sports__feature-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__dark-bg .page-sports__category-card,
.page-sports__dark-bg .page-sports__bet-type-card,
.page-sports__dark-bg .page-sports__promo-card,
.page-sports__dark-bg .page-sports__guide-step,
.page-sports__dark-bg .page-sports__feature-item {
    background-color: #0a437d; /* Slightly lighter dark blue for cards */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__dark-bg .page-sports__category-card h3 a,
.page-sports__dark-bg .page-sports__bet-type-card h3,
.page-sports__dark-bg .page-sports__promo-card h3 a,
.page-sports__dark-bg .page-sports__guide-step h3,
.page-sports__dark-bg .page-sports__feature-item h3 {
    color: #FFCC00;
}

.page-sports__dark-bg .page-sports__category-card p,
.page-sports__dark-bg .page-sports__bet-type-card p,
.page-sports__dark-bg .page-sports__promo-card p,
.page-sports__dark-bg .page-sports__guide-step p,
.page-sports__dark-bg .page-sports__feature-item p {
    color: #f0f0f0;
}

.page-sports__category-card:hover,
.page-sports__bet-type-card:hover,
.page-sports__promo-card:hover,
.page-sports__guide-step:hover,
.page-sports__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-sports__category-card img,
.page-sports__promo-card img {
  width: 100%;
  max-width: 250px;
  
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 10px;
}

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

.page-sports__card-title a:hover {
    text-decoration: underline;
}

.page-sports__category-card p,
.page-sports__bet-type-card p,
.page-sports__promo-card p,
.page-sports__guide-step p,
.page-sports__feature-item p {
  font-size: 16px;
  color: #555555;
  line-height: 1.6;
}

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

.page-sports__dark-bg .page-sports__feature-title {
    color: #FFCC00;
}

.page-sports__button-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.page-sports__button-group--center {
    text-align: center;
}

/* FAQ Section */
.page-sports__faq-section {
  padding-bottom: 80px;
}

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

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

.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;
  opacity: 0;
  background-color: #f9f9f9;
  color: #555555;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important; /* Ensure content fully expands */
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-sports__faq-item.active .page-sports__faq-question {
    border-radius: 8px 8px 0 0;
    border-bottom-color: transparent;
}

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

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

.page-sports__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #003366;
  pointer-events: none;
}

.page-sports__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFCC00;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  color: #003366;
  transform: rotate(180deg);
}

/* Global image responsiveness */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__section-title {
    font-size: 32px;
  }
  .page-sports__hero-title {
    font-size: 42px;
  }
  .page-sports__hero-description {
    font-size: 20px;
  }
  .page-sports__content-grid {
    flex-direction: column;
  }
  .page-sports__content-grid--reverse {
    flex-direction: column;
  }
  .page-sports__text-block, .page-sports__image-block {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-sports__container {
    padding: 30px 15px;
  }
  .page-sports__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-sports__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  /* HERO Section Mobile */
  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__hero-title {
    font-size: 32px;
  }
  .page-sports__hero-description {
    font-size: 18px;
  }
  .page-sports__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-sports__cta-button,
  .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;
    margin: 5px 0;
  }
  .page-sports__hero-image img {
    border-radius: 4px;
  }

  /* Cards and Grids Mobile */
  .page-sports__categories-grid,
  .page-sports__bet-types-grid,
  .page-sports__promotions-grid,
  .page-sports__guide-steps-grid,
  .page-sports__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  .page-sports__category-card,
  .page-sports__bet-type-card,
  .page-sports__promo-card,
  .page-sports__guide-step,
  .page-sports__feature-item {
    padding: 20px;
    border-radius: 8px;
  }
  .page-sports__category-card img,
  .page-sports__promo-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
  }
  .page-sports__card-title {
    font-size: 20px;
  }
  .page-sports__feature-title {
      font-size: 18px;
  }
  .page-sports__text-block p {
    font-size: 16px;
  }
  .page-sports__button-group {
    flex-direction: column;
    gap: 10px;
  }

  /* FAQ Mobile */
  .page-sports__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-sports__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }
  .page-sports__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-sports__faq-answer {
    padding: 0 15px;
  }
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px !important;
  }
  
  /* Ensure all content area images are responsive */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
}