/* style/sports.css */

/* Base Styles */
.page-sports {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000; /* Body background is dark */
}

.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: #FFB800;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-sports__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #f0f0f0;
  text-align: justify;
}

.page-sports__list-item {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 10px;
  color: #f0f0f0;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-sports__btn-primary {
  background-color: #E44D26;
  color: #ffffff;
  border: 2px solid #E44D26;
}

.page-sports__btn-primary:hover {
  background-color: #ff6633;
  border-color: #ff6633;
}

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

.page-sports__btn-secondary:hover {
  background-color: #FFB800;
  color: #000000;
}

.page-sports__btn-link {
  background-color: transparent;
  color: #FFB800;
  border: 1px solid #FFB800;
  padding: 8px 15px;
  font-size: 0.9em;
  margin-top: 10px;
}

.page-sports__btn-link:hover {
  background-color: #FFB800;
  color: #000000;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  overflow: hidden;
  background-color: #000; /* Dark background for hero */
  color: #ffffff;
}

.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.5); /* Darken image for text readability */
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.page-sports__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  color: #FFB800;
  font-weight: bold;
  line-height: 1.2;
}

.page-sports__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  line-height: 1.5;
  color: #f0f0f0;
}

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

/* About Section */
.page-sports__about-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #f0f0f0;
}

/* Features Section */
.page-sports__features-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Darker background */
  color: #ffffff;
}

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

.page-sports__feature-card {
  background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white for card background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.page-sports__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-sports__card-title {
  font-size: 1.8em;
  color: #FFB800;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__card-description {
  font-size: 1em;
  line-height: 1.6;
  color: #cccccc;
  flex-grow: 1;
}

/* Betting Types Section */
.page-sports__betting-types-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-sports__betting-list {
  list-style: disc inside;
  padding-left: 20px;
}

/* Guide Section */
.page-sports__guide-section {
  padding: 80px 0;
  background-color: #E44D26; /* Brand color as background */
  color: #ffffff;
}

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

.page-sports__step-card {
  background-color: rgba(0, 0, 0, 0.3); /* Darker overlay for card background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.page-sports__step-number {
  font-size: 2.5em;
  color: #FFB800;
  font-weight: bold;
  margin-bottom: 15px;
  border: 3px solid #FFB800;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tips Section */
.page-sports__tips-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

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

.page-sports__tips-text {
  flex: 1;
}

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

.page-sports__tips-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-sports__tips-list {
  list-style: decimal inside;
  padding-left: 20px;
  margin-top: 20px;
}

/* Events Section */
.page-sports__events-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #ffffff;
}

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

.page-sports__event-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
  box-sizing: border-box;
}

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

.page-sports__event-list .page-sports__list-item {
  margin-bottom: 8px;
  color: #cccccc;
  position: relative;
  padding-left: 20px;
}

.page-sports__event-list .page-sports__list-item::before {
  content: '•';
  color: #FFB800;
  position: absolute;
  left: 0;
}

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

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

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFB800;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.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); /* Plus to X */
}

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

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

/* CTA Section */
.page-sports__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #E44D26; /* Brand color */
  color: #ffffff;
}

.page-sports__cta-content {
  max-width: 800px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3em;
  }

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

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

  .page-sports__tips-content {
    flex-direction: column;
  }

  .page-sports__tips-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }

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

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

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

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-link {
    width: 100% !important;
    max-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 {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }

  .page-sports__container,
  .page-sports__section,
  .page-sports__card,
  .page-sports__cta-section,
  .page-sports__hero-section,
  .page-sports__about-section,
  .page-sports__features-section,
  .page-sports__betting-types-section,
  .page-sports__guide-section,
  .page-sports__tips-section,
  .page-sports__events-section,
  .page-sports__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__feature-image,
  .page-sports__tips-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

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

  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 10px 20px;
  }
}

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

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

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

  .page-sports__feature-card,
  .page-sports__step-card,
  .page-sports__event-card {
    padding: 20px;
  }

  .page-sports__card-title {
    font-size: 1.5em;
  }

  .page-sports__text-block,
  .page-sports__list-item {
    font-size: 0.95em;
  }
}