/* style/sports.css */

/* Base styles for page-sports */
.page-sports {
  font-family: 'Arial', sans-serif;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  line-height: 1.6;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: #0D0E12;
}

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

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

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

.page-sports__main-title {
  color: #FFF3E6;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255,176,77,0.5);
}

.page-sports__subtitle {
  color: #FFF3E6;
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
}

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

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
  max-width: 100%;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255,165,58,0.4);
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,165,58,0.6);
}

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

.page-sports__btn-secondary:hover {
  background-color: #FFA53A;
  color: #0D0E12;
  transform: translateY(-2px);
}

.page-sports__btn-tertiary {
  background-color: #A84F0C;
  color: #FFF3E6;
  border: none;
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 5px;
}

.page-sports__btn-tertiary:hover {
  background-color: #D96800;
}

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

.page-sports__section-title {
  color: #FFF3E6;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(255,176,77,0.3);
}

.page-sports__section-description {
  color: #FFF3E6;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Feature Section */
.page-sports__features-section {
  background-color: #0D0E12;
  padding: 60px 0;
}

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

.page-sports__feature-card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(255,176,77,0.2);
}

.page-sports__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-sports__feature-title {
  color: #FFA53A;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.page-sports__feature-text {
  color: #FFF3E6;
  font-size: 1rem;
}

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

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

.page-sports__sport-card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__sport-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(255,176,77,0.2);
}

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

.page-sports__sport-name {
  color: #FFA53A;
  font-size: 1.8rem;
  font-weight: 600;
  padding: 20px 20px 10px 20px;
}

.page-sports__sport-desc {
  color: #FFF3E6;
  font-size: 1rem;
  padding: 0 20px 20px 20px;
}

/* Betting Guide Section */
.page-sports__betting-guide-section {
  background-color: #0D0E12;
  padding: 60px 0;
}

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

.page-sports__guide-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-sports__guide-step-title {
  color: #FFA53A;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-sports__guide-step-text {
  color: #FFF3E6;
  font-size: 1rem;
  margin-bottom: 20px;
}

/* Promotions Section */
.page-sports__promotions-section {
  background-color: #0D0E12;
  padding: 60px 0;
}

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

.page-sports__promotion-card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__promotion-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(255,176,77,0.2);
}

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

.page-sports__promotion-title {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 20px 20px 10px 20px;
}

.page-sports__promotion-title a {
  color: #FFA53A;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-sports__promotion-title a:hover {
  color: #FFB04D; /* Glow */
}

.page-sports__promotion-text {
  color: #FFF3E6;
  font-size: 1rem;
  padding: 0 20px 20px 20px;
}

.page-sports__btn-container {
  text-align: center;
}

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

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

.page-sports__faq-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #FFA53A;
  cursor: pointer;
  background-color: #17191F;
  transition: background-color 0.3s ease;
  list-style: none; /* For <details> summary */
}

.page-sports__faq-question:hover {
  background-color: #2a2e38;
}

.page-sports__faq-item details > summary::-webkit-details-marker { display: none; }
.page-sports__faq-item details > summary::marker { display: none; }

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

.page-sports__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #FFA53A;
  margin-left: 15px;
}

.page-sports__faq-answer {
  padding: 0 20px 20px 20px;
  color: #FFF3E6;
  font-size: 1rem;
  line-height: 1.6;
}

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

@media (max-width: 768px) {
  .page-sports__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-sports__subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
  }

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-tertiary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__container {
    padding: 30px 15px;
  }

  .page-sports__section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }

  .page-sports__section-description {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
  }

  /* Mobile image/video/content container overrides */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .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;
  }

  .page-sports__video-section {
    padding-top: 10px !important;
  }

  .page-sports__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-sports__faq-question {
    font-size: 1rem;
  }
  .page-sports__faq-answer {
    font-size: 0.9rem;
  }

  .page-sports__feature-icon {
    max-width: 150px;
  }
  .page-sports__sport-image {
    height: 180px;
  }
  .page-sports__promotion-image {
    height: 150px;
  }
  
  .page-sports__hero-section {
    padding-bottom: 40px;
  }
  .page-sports__hero-image-wrapper {
    max-height: 400px;
  }
}

@media (max-width: 480px) {
  .page-sports__main-title {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }

  .page-sports__subtitle {
    font-size: clamp(0.85rem, 3vw, 0.95rem);
  }

  .page-sports__section-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .page-sports__feature-title,
  .page-sports__sport-name,
  .page-sports__promotion-title {
    font-size: 1.3rem;
  }

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