/* style/sports.css */

/* --- General Styles --- */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main color */
  background: #B71C1C; /* Background color */
}

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

.page-sports__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD86A; /* Gold-ish for titles */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-sports__sub-heading {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #F4D34D; /* Gold color */
}

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

.page-sports ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-sports ul li {
  background: #D32F2F; /* Card BG color */
  margin-bottom: 10px;
  padding: 15px;
  border-radius: 8px;
  font-size: 17px;
  display: flex;
  align-items: center;
  border: 1px solid #F2B544; /* Border color */
}

.page-sports ul li::before {
  content: '✓';
  color: #FFD86A;
  font-weight: bold;
  margin-right: 10px;
}

/* --- Buttons --- */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* For responsive */
  box-sizing: border-box; /* For responsive */
  white-space: normal; /* For responsive */
  word-wrap: break-word; /* For responsive */
}

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

.page-sports__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-sports__btn-secondary:hover {
  background: rgba(255, 216, 106, 0.1);
  transform: translateY(-2px);
}

.page-sports__btn-text-link {
  background: none;
  border: none;
  color: #FFD86A;
  text-decoration: underline;
  padding: 0;
  font-size: 16px;
  font-weight: normal;
}

.page-sports__btn-text-link:hover {
  color: #F4D34D;
}

/* --- Image Responsive Base --- */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Hero Section --- */
.page-sports__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  background: #B71C1C;
  color: #FFF5E1;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio (1080/1920) */
  overflow: hidden;
}

.page-sports__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image for text readability */
}

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

.page-sports__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: #FFD86A;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
}

.page-sports__description {
  font-size: 20px;
  margin-bottom: 40px;
  line-height: 1.5;
}

.page-sports__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%; /* For responsive */
  max-width: 100%; /* For responsive */
  box-sizing: border-box; /* For responsive */
  overflow: hidden; /* For responsive */
}

/* --- Features Section --- */
.page-sports__features-section {
  padding: 60px 0;
  background: #7A0E0E; /* Deep Red for contrast */
  color: #FFF5E1;
}

.page-sports__feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-sports__feature-item {
  background: #D32F2F; /* Card BG color */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544; /* Border color */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports__feature-heading {
  font-size: 22px;
  font-weight: bold;
  color: #FFD86A;
  margin-bottom: 10px;
}

.page-sports__feature-text {
  font-size: 16px;
  line-height: 1.5;
  flex-grow: 1;
}

/* --- Popular Sports Section --- */
.page-sports__popular-sports-section {
  padding: 60px 0;
  background: #B71C1C; /* Background color */
  color: #FFF5E1;
}

.page-sports__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr; /* Three columns: 2 lists and an image */
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.page-sports__sports-list,
.page-sports__betting-types {
  padding: 20px;
  background: #D32F2F; /* Card BG color */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544; /* Border color */
}

.page-sports__image-right {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #D32F2F; /* Card BG color */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544; /* Border color */
  padding: 20px;
}

.page-sports__product-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* --- Promotions Section --- */
.page-sports__promotions-section {
  padding: 60px 0;
  background: #7A0E0E; /* Deep Red */
  color: #FFF5E1;
}

.page-sports__promo-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-sports__promo-card {
  background: #D32F2F; /* Card BG color */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544; /* Border color */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports__promo-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD86A;
  margin-bottom: 10px;
}

.page-sports__promo-text {
  font-size: 16px;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-sports__cta-promotions {
  text-align: center;
}

/* --- FAQ Section --- */
.page-sports__faq-section {
  padding: 60px 0;
  background: #B71C1C; /* Background color */
  color: #FFF5E1;
}

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

details.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #F2B544; /* Border color */
  overflow: hidden;
  background: #D32F2F; /* Card BG color */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

details.page-sports__faq-item summary.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFD86A; /* Question text color */
  font-weight: bold;
  font-size: 18px;
}

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: #E53935; /* Auxiliary color on hover */
}

.page-sports__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-sports__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFD86A; /* Toggle icon color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-sports__faq-item .page-sports__faq-answer {
  padding: 0 25px 25px;
  background: #B71C1C; /* Background color for answer */
  border-radius: 0 0 10px 10px;
  color: #FFF5E1; /* Text Main color */
  font-size: 16px;
  line-height: 1.6;
}

/* --- Responsive Styles (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .page-sports__hero-content {
    padding: 40px 20px;
  }

  .page-sports__main-title {
    font-size: 42px;
  }

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

  .page-sports__section-title {
    font-size: 32px;
  }

  .page-sports__feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-sports__content-grid {
    grid-template-columns: 1fr 1fr; /* Two columns for lists, image below */
  }
  
  .page-sports__image-right {
    grid-column: span 2; /* Image spans both columns */
    order: 3; /* Move image to bottom */
  }

  .page-sports__promo-cards {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

/* --- Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-sports__container {
    padding: 0 15px !important; /* Ensure padding is applied */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-sports__hero-section {
    padding-top: 10px !important; /* Small top padding, relying on body for header offset */
  }

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

  .page-sports__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

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

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }

  .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 !important;
    padding-right: 15px !important;
  }
  
  /* Features Section */
  .page-sports__features-section {
    padding: 40px 0;
  }

  .page-sports__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-sports__text-block {
    font-size: 16px;
  }

  .page-sports__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__feature-item {
    padding: 20px;
  }

  .page-sports__feature-image {
    height: 180px;
  }

  .page-sports__feature-heading {
    font-size: 20px;
  }

  /* Popular Sports Section */
  .page-sports__popular-sports-section {
    padding: 40px 0;
  }

  .page-sports__content-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 30px;
  }

  .page-sports__sports-list,
  .page-sports__betting-types,
  .page-sports__image-right {
    padding: 15px;
  }

  .page-sports ul li {
    font-size: 16px;
    padding: 12px;
  }

  /* Promotions Section */
  .page-sports__promotions-section {
    padding: 40px 0;
  }

  .page-sports__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__promo-card {
    padding: 20px;
  }

  .page-sports__promo-image {
    height: 200px;
  }

  .page-sports__promo-title {
    font-size: 20px;
  }

  .page-sports__promo-text {
    font-size: 15px;
  }

  /* FAQ Section */
  .page-sports__faq-section {
    padding: 40px 0;
  }

  .page-sports__faq-list {
    margin-top: 30px;
  }

  details.page-sports__faq-item summary.page-sports__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  
  .page-sports__faq-qtext {
    font-size: 16px;
  }

  .page-sports__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }

  details.page-sports__faq-item .page-sports__faq-answer {
    padding: 0 20px 20px;
    font-size: 15px;
  }
}