/* style/sports.css */

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

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

.page-sports__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Main Color */
}

.page-sports__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  color: #FFF6D6; /* Text Main */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px auto;
}

.page-sports__tagline {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__text-block {
  font-size: 1.1em;
  margin-bottom: 1em;
  color: #FFF6D6;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button Color */
  color: #111111; /* Dark text for contrast */
  border: none;
}

.page-sports__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-sports__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Main Color */
  border: 2px solid #F2C14E;
}

.page-sports__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
}

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #0A0A0A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure sufficient height */
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Limit height for aesthetic */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  text-align: center;
  max-width: 1200px;
  margin-top: -100px; /* Adjust to overlap slightly without obscuring */
}

/* About Section */
.page-sports__about-section {
  padding: 80px 0;
  background-color: #0A0A0A;
  color: #FFF6D6;
}

/* Categories Section */
.page-sports__categories-section {
  padding: 80px 0;
  background-color: #111111; /* Card BG */
}

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

.page-sports__category-card {
  background: #0A0A0A;
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-sports__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.2);
}

.page-sports__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
  display: inline-block;
}

.page-sports__category-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-sports__category-description {
  font-size: 0.95em;
  color: #FFF6D6;
}

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

/* Live Betting Section */
.page-sports__live-betting-section {
  padding: 80px 0;
  background-color: #0A0A0A;
  color: #FFF6D6;
}

.page-sports__live-betting-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-sports__live-betting-text,
.page-sports__live-betting-image-wrapper {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-sports__live-betting-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

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

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

.page-sports__promo-card {
  background: #0A0A0A;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(255, 211, 107, 0.3);
}

.page-sports__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
}

.page-sports__promo-card h3 {
  font-size: 1.3em;
  color: #F2C14E;
  padding: 20px 20px 10px;
}

.page-sports__promo-card p {
  font-size: 0.95em;
  color: #FFF6D6;
  padding: 0 20px 20px;
}

.page-sports__promo-card .page-sports__btn-secondary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

/* App Section */
.page-sports__app-section {
  padding: 80px 0;
  background-color: #0A0A0A;
  color: #FFF6D6;
}

.page-sports__app-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  flex-direction: row-reverse; /* Image on right, text on left */
}

.page-sports__app-text,
.page-sports__app-image-wrapper {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-sports__app-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.page-sports__app-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Partners Section */
.page-sports__partners-section {
  padding: 80px 0;
  background-color: #111111;
}

.page-sports__partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(167px, 1fr)); /* 2x5 grid for 10 items, 167px width */
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
}

.page-sports__partner-item {
  background: #0A0A0A;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 127px; /* Fixed height for partner game images */
}

.page-sports__partner-logo {
  max-width: 100%;
  max-height: 100%;
  width: 167px; /* Fixed width */
  height: 127px; /* Fixed height */
  object-fit: contain;
}

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

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

.page-sports__faq-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background: #111111;
  color: #F2C14E;
  font-weight: bold;
  font-size: 1.2em;
}

.page-sports__faq-question:hover {
  background: rgba(242, 193, 78, 0.1);
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg);
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 20px;
}

/* Final CTA Section */
.page-sports__cta-final-section {
  padding: 80px 0;
  background-color: #F2C14E; /* Main Color */
  color: #111111; /* Dark text for contrast */
  text-align: center;
}

.page-sports__cta-final-section .page-sports__section-title {
  color: #111111;
}

.page-sports__cta-final-section .page-sports__text-block {
  color: #111111;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-sports__cta-final-section .page-sports__btn-primary {
  background: #111111;
  color: #F2C14E;
  border: 2px solid #111111;
}

.page-sports__cta-final-section .page-sports__btn-primary:hover {
  background: rgba(17, 17, 17, 0.8);
  color: #FFD36B;
}

.page-sports__cta-final-section .page-sports__btn-secondary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: none;
}

.page-sports__cta-final-section .page-sports__btn-secondary:hover {
  filter: brightness(1.1);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-sports__hero-content {
    margin-top: -80px;
  }
}

@media (max-width: 768px) {
  .page-sports__section-title {
    font-size: 2em;
  }

  .page-sports__main-title {
    font-size: clamp(2em, 8vw, 2.8em);
  }

  .page-sports__tagline {
    font-size: 1em;
  }

  .page-sports__hero-content {
    padding: 20px;
    margin-top: -60px;
  }

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

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
  }

  .page-sports__live-betting-content,
  .page-sports__app-content {
    flex-direction: column;
  }

  .page-sports__live-betting-text,
  .page-sports__live-betting-image-wrapper,
  .page-sports__app-text,
  .page-sports__app-image-wrapper {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-sports__promo-image {
    height: 200px; /* Adjust height for mobile */
  }

  .page-sports__app-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Mobile image and container adjustments */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-image-wrapper,
  .page-sports__live-betting-image-wrapper,
  .page-sports__app-image-wrapper,
  .page-sports__cta-buttons,
  .page-sports__app-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-sports__partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* More compact grid for partners */
  }
}

@media (max-width: 480px) {
  .page-sports__section-title {
    font-size: 1.8em;
  }

  .page-sports__main-title {
    font-size: clamp(1.8em, 10vw, 2.5em);
  }

  .page-sports__hero-content {
    margin-top: -40px;
  }

  .page-sports__categories-grid,
  .page-sports__promos-grid {
    grid-template-columns: 1fr;
  }
}