/* style/sports.css */

/* Base styles for the page */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #121212; /* Inherited from shared.css body, but explicitly set for sections */
}

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

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

.page-sports__card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-sports__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  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;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

.page-sports__btn-secondary:hover {
  background-color: #FFD700;
  color: #121212;
}

.page-sports__btn-large {
  padding: 15px 30px;
  font-size: 1.1em;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #8B0000 0%, #121212 50%, #8B0000 100%);
}

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

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

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: #ffffff;
}

.page-sports__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.page-sports__hero-description {
  font-size: 1.25em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-sports__feature-card {
  text-align: center;
}

.page-sports__feature-icon {
  width: 100%; /* Ensure large image */
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
}

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

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

/* Categories Section */
.page-sports__categories-section {
  padding: 80px 0;
  background-color: #121212;
}

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

.page-sports__category-card {
  text-align: center;
}

.page-sports__category-image {
  width: 100%; /* Ensure large image */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
}

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

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

/* Live Betting Section */
.page-sports__live-betting-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

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

.page-sports__live-subtitle {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__live-text p {
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-sports__live-video-wrapper {
  flex: 1;
  position: relative;
  padding-bottom: 45%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 0;
  background-color: #121212;
}

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

.page-sports__promo-card {
  text-align: center;
}

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

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

.page-sports__promo-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 25px;
}

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

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

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

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

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

.page-sports__step-text {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Security Section */
.page-sports__security-section {
  padding: 80px 0;
  background-color: #121212;
}

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

.page-sports__security-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: block;
}

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

.page-sports__security-subtitle {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__security-text p {
  margin-bottom: 20px;
  color: #f0f0f0;
}

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

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

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

.page-sports__mobile-subtitle {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__mobile-text p {
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-sports__mobile-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-sports__mobile-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

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

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

.page-sports__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  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: #FFD700;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.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: #f0f0f0;
}

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

.page-sports__faq-answer p {
  margin-bottom: 0;
}

/* CTA Section */
.page-sports__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(90deg, #8B0000 0%, #FFD700 100%);
}

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

.page-sports__cta-title {
  font-size: 3em;
  color: #121212;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-sports__cta-description {
  font-size: 1.2em;
  color: #333333;
  margin-bottom: 40px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__live-content,
  .page-sports__security-content,
  .page-sports__mobile-content {
    flex-direction: column;
    text-align: center;
  }
  .page-sports__security-image,
  .page-sports__mobile-image {
    max-width: 80%;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
  }
  .page-sports__hero-title {
    font-size: 2.5em;
  }
  .page-sports__hero-description {
    font-size: 1.1em;
  }
  .page-sports__hero-buttons,
  .page-sports__cta-buttons,
  .page-sports__mobile-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__section-title {
    font-size: 1.8em;
  }
  .page-sports__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-sports__live-subtitle,
  .page-sports__security-subtitle,
  .page-sports__mobile-subtitle {
    font-size: 1.6em;
  }
  .page-sports__security-image,
  .page-sports__mobile-image {
    max-width: 100%;
  }
  .page-sports__cta-title {
    font-size: 2.2em;
  }
  .page-sports__cta-description {
    font-size: 1em;
  }
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper,
  .page-sports__section,
  .page-sports__card,
  .page-sports__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-sports__live-video-wrapper {
    padding-bottom: 56.25%; /* Adjust aspect ratio for mobile if needed, or keep 45% for wider video feel */
  }
  .page-sports__faq-question {
    font-size: 1.1em;
  }
  .page-sports__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 2em;
  }
  .page-sports__hero-description {
    font-size: 0.95em;
  }
  .page-sports__section-title {
    font-size: 1.5em;
  }
  .page-sports__feature-title,
  .page-sports__category-title,
  .page-sports__promo-title,
  .page-sports__step-title {
    font-size: 1.4em;
  }
  .page-sports__live-subtitle,
  .page-sports__security-subtitle,
  .page-sports__mobile-subtitle {
    font-size: 1.4em;
  }
  .page-sports__cta-title {
    font-size: 1.8em;
  }
  .page-sports__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
  }
}