/* style/sports.css */

/* Base Styles for Page-Sports */
.page-sports {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
}

.page-sports__video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-sports__hero-video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  background-color: #000;
  cursor: pointer;
}

.page-sports__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-sports__hero-content {
  max-width: 900px;
  padding: 20px;
  z-index: 2;
}

.page-sports__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-sports__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

/* General Section Styling */
.page-sports__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-sports__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-sports__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Feature Section */
.page-sports__features-section {
  padding: 60px 0;
}

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

.page-sports__feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

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

.page-sports__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-sports__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Categories Section */
.page-sports__categories-section {
  padding: 60px 0;
}

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

.page-sports__category-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
}

.page-sports__category-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.page-sports__category-title {
  font-size: 1.3em;
  margin: 15px 0 10px;
}

.page-sports__category-link {
  color: #26A9E0;
  text-decoration: none;
}

.page-sports__category-link:hover {
  text-decoration: underline;
}

.page-sports__category-description {
  font-size: 0.95em;
  padding: 0 20px 20px;
  color: #f0f0f0;
}

/* Live Betting Section */
.page-sports__live-betting-section {
  padding: 60px 0;
}

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

.page-sports__live-betting-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__live-betting-text {
  flex: 2;
  min-width: 300px;
  color: #ffffff;
}

.page-sports__live-betting-subtitle {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-sports__live-betting-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-sports__live-betting-text li {
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  padding: 15px;
  border-left: 4px solid #26A9E0;
  border-radius: 5px;
}

.page-sports__live-betting-text strong {
  color: #26A9E0;
}

/* Tips Section */
.page-sports__tips-section {
  padding: 60px 0;
}

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

.page-sports__tip-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-sports__tip-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-sports__tip-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 60px 0;
}

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

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(38, 169, 224, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__faq-question:hover {
  background-color: rgba(38, 169, 224, 0.3);
}

.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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

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

/* CTA Section */
.page-sports__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-sports__cta-button {
  margin-top: 30px;
}

/* Button Styles */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Ensure long words break */
}

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

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

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

.page-sports__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Color Contrast Fixes (if needed) */
.page-sports__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

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

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

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

  .page-sports__feature-item, .page-sports__category-card, .page-sports__tip-card {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    height: auto;
    min-height: 400px;
    padding: 40px 20px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-sports__content-area {
    padding: 40px 15px;
  }

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

  .page-sports__section-intro {
    font-size: 0.95em;
  }

  .page-sports__feature-grid, .page-sports__category-grid, .page-sports__tips-grid {
    grid-template-columns: 1fr;
  }

  .page-sports__feature-image, .page-sports__category-image, .page-sports__live-betting-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__feature-item, .page-sports__category-card, .page-sports__tip-card, .page-sports__live-betting-section .page-sports__content-area, .page-sports__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-sports__live-betting-text {
    min-width: unset;
    width: 100%;
  }

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

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

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

  .page-sports__video-wrapper,
  .page-sports__video-container,
  .page-sports__video-wrapper video {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}