/* style/sports.css */

/* Base styles for the sports page, ensuring text contrast on dark background */
.page-sports {
  background-color: #0A0A0A; /* Custom background color */
  color: #FFF6D6; /* Custom text main color for contrast */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Section padding and container for consistent layout */
.page-sports__section-padding {
  padding: 80px 0;
}

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

.page-sports__section-title {
  font-size: clamp(2em, 3.5vw, 2.8em);
  font-weight: 700;
  color: #F2C14E;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-sports__section-subtitle {
  font-size: clamp(1em, 2vw, 1.2em);
  color: #FFF6D6;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Card styles */
.page-sports__card {
  background: #111111; /* Custom card background */
  border: 1px solid #3A2A12; /* Custom border color */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #FFF6D6;
  text-align: center;
}

/* Primary Button Style */
.page-sports__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
  color: #0A0A0A; /* Text color for gradient button */
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

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

/* Secondary Button Style */
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: transparent;
  color: #F2C14E; /* Main brand color for text */
  border: 2px solid #F2C14E; /* Main brand color for border */
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

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

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

.page-sports__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  color: #FFF6D6;
}

.page-sports__hero-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  font-weight: 900;
  color: #FFD36B; /* Glow color for main title */
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-sports__hero-description {
  font-size: clamp(1.1em, 2.5vw, 1.4em);
  margin-bottom: 40px;
  line-height: 1.5;
}

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

/* About Section - General text block */
.page-sports__about-section .page-sports__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Categories Section */
.page-sports__dark-bg {
  background-color: #0A0A0A;
  color: #FFF6D6;
}

.page-sports__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.page-sports__category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  min-height: 150px;
}

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

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

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

/* Betting Types Section */
.page-sports__betting-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-sports__bet-type-card {
  text-align: left;
}

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

.page-sports__bet-type-description {
  font-size: 1em;
  color: #FFF6D6;
}

/* Live Betting Section */
.page-sports__dark-section {
  background-color: #111111;
  color: #FFF6D6;
}

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

.page-sports__live-betting-text {
  flex: 1;
}

.page-sports__live-betting-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-sports__live-betting-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Promotions Section */
.page-sports__promos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-sports__promo-card {
  padding: 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-sports__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-sports__promo-description {
  font-size: 1em;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Get Started Section */
.page-sports__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-sports__step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
}

.page-sports__step-number {
  width: 60px;
  height: 60px;
  background-color: #F2C14E;
  color: #0A0A0A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

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

.page-sports__step-description {
  font-size: 1em;
  color: #FFF6D6;
  margin-bottom: 20px;
}

/* Responsible Gaming Section */
.page-sports__responsible-gaming-section {
  text-align: center;
}

/* Mobile App Section */
.page-sports__mobile-app-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-direction: row-reverse; /* Image on right, text on left */
}

.page-sports__mobile-app-text {
  flex: 1;
}

.page-sports__mobile-app-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-sports__mobile-app-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-sports__app-download-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Why Choose Section */
.page-sports__features-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 800px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.page-sports__feature-item {
  background: #111111;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  padding: 20px;
  font-size: 1.05em;
  color: #FFF6D6;
  text-align: left;
}

.page-sports__feature-item strong {
  color: #F2C14E;
}

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

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

.page-sports__faq-item {
  background: #111111;
  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;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2C14E;
  background: #111111;
  transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
  background-color: #1a1a1a;
}

.page-sports__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

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

.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-align: left;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__live-betting-content,
  .page-sports__mobile-app-content {
    flex-direction: column;
  }
  .page-sports__live-betting-text, .page-sports__mobile-app-text {
    text-align: center;
  }
  .page-sports__app-download-buttons {
    justify-content: center;
  }
  .page-sports__features-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-sports__section-padding {
    padding: 60px 0;
  }

  .page-sports__hero-title {
    font-size: 2.2em;
  }

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

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

  /* Mobile image and container adaptation */
  .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-section,
  .page-sports__about-section,
  .page-sports__categories-section,
  .page-sports__betting-types-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__get-started-section,
  .page-sports__responsible-gaming-section,
  .page-sports__mobile-app-section,
  .page-sports__why-choose-section,
  .page-sports__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons mobile adaptation */
  .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__hero-cta-buttons,
  .page-sports__app-download-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }

  /* FAQ specific mobile styles */
  .page-sports__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-sports__faq-answer {
    padding: 0 15px;
  }
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 10px 15px 15px 15px;
  }
}

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