/* style/sports.css */

:root {
  --rich9-primary: #F2C14E;
  --rich9-secondary: #FFD36B;
  --rich9-background: #0A0A0A;
  --rich9-card-bg: #111111;
  --rich9-text-main: #FFF6D6;
  --rich9-border: #3A2A12;
  --rich9-glow: #FFD36B;
  --rich9-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-sports {
  font-family: Arial, sans-serif;
  color: var(--rich9-text-main); /* Default text color for the page content */
  background-color: var(--rich9-background);
}

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

.page-sports__dark-section {
  background-color: var(--rich9-background);
  color: var(--rich9-text-main);
  padding: 60px 0;
}

.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-sports__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px;
  background: linear-gradient(0deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.7) 50%, rgba(10,10,10,0) 100%);
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-sports__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  color: var(--rich9-text-main);
  margin-bottom: 15px;
  letter-spacing: 0.05em;
}

.page-sports__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--rich9-text-main);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--rich9-text-main);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.page-sports__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--rich9-primary);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-sports__section-description,
.page-sports__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--rich9-text-main);
  margin-bottom: 25px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-sports__btn-primary {
  background: var(--rich9-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-sports__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

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

.page-sports__btn-secondary:hover {
  background: var(--rich9-primary);
  color: var(--rich9-background);
  transform: translateY(-2px);
}

.page-sports__info-video-section {
  padding: 60px 0;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-sports__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 30px auto 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  background-color: #000;
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

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

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

.page-sports__card {
  background-color: var(--rich9-card-bg);
  border: 1px solid var(--rich9-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

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

.page-sports__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--rich9-primary);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-sports__card-text {
  font-size: 1em;
  line-height: 1.6;
  color: var(--rich9-text-main);
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-sports__btn-link {
  display: inline-block;
  color: var(--rich9-primary);
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
  position: relative;
  padding-bottom: 5px;
}

.page-sports__btn-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--rich9-primary);
  transition: width 0.3s ease;
}

.page-sports__btn-link:hover::after {
  width: 0;
}

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

.page-sports__step-item {
  background-color: var(--rich9-card-bg);
  border: 1px solid var(--rich9-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__step-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px rgba(242, 193, 78, 0.5));
}

.page-sports__step-title {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--rich9-primary);
  margin-bottom: 10px;
}

.page-sports__step-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--rich9-text-main);
}

.page-sports__mobile-app-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.page-sports__app-info {
  flex: 1;
  text-align: left;
}

.page-sports__app-title {
  font-size: 2em;
  font-weight: 700;
  color: var(--rich9-primary);
  margin-bottom: 20px;
}

.page-sports__app-description {
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--rich9-text-main);
  margin-bottom: 30px;
}

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

.page-sports__app-image-wrapper {
  flex: 1;
  text-align: center;
  min-width: 300px;
}

.page-sports__app-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

.page-sports__faq-item {
  background-color: var(--rich9-card-bg);
  border: 1px solid var(--rich9-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--rich9-primary);
  background-color: rgba(242, 193, 78, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: 1em; /* Adjust to match parent font-size */
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--rich9-primary);
  transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--rich9-text-main);
  text-align: left;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-sports__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
}

.page-sports__media-partners {
  padding: 60px 0;
  text-align: center;
}

.page-sports__partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columns for desktop */
  gap: 20px;
  margin-top: 40px;
  align-items: center;
  justify-items: center;
}

.page-sports__partners-grid img {
  
  
  object-fit: contain;
  filter: brightness(0.8) grayscale(0.7);
  transition: filter 0.3s ease;
}

.page-sports__partners-grid img:hover {
  filter: brightness(1) grayscale(0);
}

.page-sports__final-cta {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(180deg, rgba(10,10,10,1) 0%, rgba(242,193,78,0.1) 100%);
}

/* --- Responsive Styles --- */

/* All images base responsive style */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Tablet and Mobile adjustments */
@media (max-width: 992px) {
  .page-sports__hero-section {
    padding-top: 10px; /* Ensure small padding */
  }
  .page-sports__hero-content {
    padding: 30px 15px;
  }
  .page-sports__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__section-description,
  .page-sports__text-block {
    font-size: 1em;
  }
  .page-sports__mobile-app-flex {
    flex-direction: column-reverse; /* Image on top for mobile */
    gap: 30px;
    text-align: center;
  }
  .page-sports__app-info {
    text-align: center;
  }
  .page-sports__app-buttons {
    justify-content: center;
  }
  .page-sports__partners-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for tablet */
  }
}

/* Mobile specific styles */
@media (max-width: 768px) {
  .page-sports__hero-image {
    filter: brightness(0.6) !important; /* Darken more for better contrast on smaller screens */
  }
  .page-sports__hero-content {
    position: relative;
    background: none;
    padding-top: 0;
  }
  .page-sports__hero-section {
    flex-direction: column;
    padding-top: 10px !important;
  }
  .page-sports__main-title {
    font-size: clamp(1.6em, 7vw, 2.5em);
  }
  .page-sports__hero-description {
    font-size: 0.95em;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__dark-section {
    padding: 40px 0;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__section-description,
  .page-sports__text-block {
    font-size: 0.9em;
  }
  .page-sports__video-wrapper {
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-sports__grid-3-col,
  .page-sports__grid-2-col,
  .page-sports__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-sports__card-image {
    height: 180px;
  }
  .page-sports__app-title {
    font-size: 1.8em;
  }
  .page-sports__app-description {
    font-size: 0.9em;
  }
  .page-sports__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-sports__faq-answer {
    padding: 0 20px;
  }
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px 20px;
  }
  .page-sports__partners-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
  }
  .page-sports__partners-grid img {
    width: 100% !important;
    height: auto !important;
     /* Retain original max-width */
  }

  /* Force responsive images and containers */
  .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__video-wrapper,
  .page-sports__app-image-wrapper,
  .page-sports__cta-buttons,
  .page-sports__app-buttons,
  .page-sports__partners-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-sports__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__video-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }
  .page-sports__app-buttons {
    flex-direction: column;
    gap: 10px;
  }
}