/* style/sports.css */

/* Body background color is handled by shared.css var(--background-color) */
.page-sports {
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-sports__section-title {
  font-size: 2.5em;
  color: #FFD36B; /* Glow */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-sports__paragraph {
  font-size: 1.1em;
  color: #FFF6D6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-sports__hero-content {
  text-align: center;
  padding: 40px 20px;
  background: rgba(17, 17, 17, 0.8); /* Card B G with opacity */
  width: 100%;
  max-width: 900px;
  margin-top: 20px;
  border-radius: 8px;
  box-sizing: border-box;
}

.page-sports__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #F2C14E; /* Main Color */
  margin-bottom: 15px;
  /* No fixed font-size, rely on clamp if needed, otherwise relative units */
  font-size: clamp(2em, 4vw, 3.5em);
}

.page-sports__hero-description {
  font-size: 1.2em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
}

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

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

.page-sports__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #0A0A0A; /* Ensure contrast with dark text on light gold */
  border: none;
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
}

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

.page-sports__btn-secondary:hover {
  background: #F2C14E; /* Main Color */
  color: #0A0A0A; /* Ensure contrast with dark text on light gold */
}

.page-sports__btn-center {
  margin-top: 20px;
}

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

/* Features Section */
.page-sports__features-section {
  padding: 60px 0;
  background-color: #111111; /* Card B G */
}

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

.page-sports__feature-card {
  background-color: #111111; /* Card B G */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__feature-icon {
  width: 200px; /* Minimum size 200x200 */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-sports__card-title {
  font-size: 1.5em;
  color: #FFD36B; /* Glow */
  margin-bottom: 10px;
}

.page-sports__card-description {
  font-size: 1em;
  color: #FFF6D6; /* Text Main */
}

/* Sports Categories Section */
.page-sports__categories-section {
  padding: 60px 0;
  background-color: #0A0A0A; /* Background */
}

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

.page-sports__sport-item {
  background-color: #111111; /* Card B G */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-sports__sport-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-bottom: 10px;
}

.page-sports__sport-name {
  font-size: 1.1em;
  color: #FFF6D6; /* Text Main */
  font-weight: bold;
}

/* Getting Started Section */
.page-sports__getting-started-section {
  padding: 60px 0;
  background-color: #111111; /* Card B G */
}

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

.page-sports__step-item {
  background-color: #111111; /* Card B G */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-sports__step-title {
  font-size: 1.4em;
  color: #F2C14E; /* Main Color */
  margin-bottom: 15px;
}

.page-sports__step-description {
  font-size: 1em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-sports__app-section .page-sports__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

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

.page-sports__app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Casino Promo Section */
.page-sports__casino-promo-section {
  padding: 60px 0;
  background-color: #111111; /* Card B G */
}

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

.page-sports__casino-card {
  background-color: #111111; /* Card B G */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__casino-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 150px;
  object-fit: cover;
}

/* Brand Clarification Section */
.page-sports__brand-clarification-section {
  padding: 60px 0;
  background-color: #0A0A0A; /* Background */
}

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

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

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  cursor: pointer;
  background-color: #111111;
  transition: background-color 0.3s ease;
}

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

.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; /* Text Main */
  font-size: 1em;
}

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

/* Partners Section */
.page-sports__partners-section {
  padding: 60px 0;
  background-color: #0A0A0A; /* Background */
}

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

.page-sports__partner-item {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #111111; /* Card B G */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  padding: 10px;
  width: 167px;
  height: 127px;
  box-sizing: border-box;
}

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

/* CTA Bottom Section */
.page-sports__cta-bottom-section {
  padding: 60px 0;
  background-color: #111111; /* Card B G */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-image {
    max-height: 500px;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-sports__app-section .page-sports__container {
    flex-direction: column-reverse;
  }
  .page-sports__app-content {
    text-align: center;
  }
  .page-sports__app-image-wrapper {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-sports__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
  }

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

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

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

  .page-sports__hero-description {
    font-size: 1em;
  }

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

  .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;
  }
  
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-sports__app-content,
  .page-sports__app-image-wrapper {
    padding: 0;
  }

  .page-sports__section-title {
    font-size: 1.8em;
  }

  .page-sports__paragraph {
    font-size: 0.95em;
  }

  /* Image responsiveness for all images within .page-sports */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__app-section .page-sports__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Specific overrides for small icons if they exist and need to be smaller */
  .page-sports__sport-icon {
    width: 30px !important;
    height: 30px !important;
  }
  .page-sports__partner-logo {
    width: 167px !important;
    height: 127px !important;
  }

  .page-sports__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-sports__faq-answer {
    padding: 0 15px;
  }

  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px !important;
  }

  .page-sports__partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Adjust for smaller screens */
    gap: 10px;
  }
  .page-sports__partner-item {
    width: 120px;
    height: 90px;
  }
  .page-sports__partner-logo {
    width: 120px !important;
    height: 90px !important;
  }

}

@media (max-width: 480px) {
  .page-sports__section-title {
    font-size: 1.5em;
  }
  .page-sports__main-title {
    font-size: clamp(1.2em, 8vw, 2em);
  }
  .page-sports__features-grid,
  .page-sports__process-steps,
  .page-sports__casino-grid {
    grid-template-columns: 1fr;
  }
  .page-sports__partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}