/* style/sports.css */

:root {
  --primary-color: #0A2463;
  --secondary-color: #E0B14A;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #121212; /* From shared.css body background */
  --background-light: #f8f9fa;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --card-bg-light: #ffffff;
}

.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for the page content, contrasting with body background */
  background-color: var(--background-dark); /* Ensure main content background is consistent or contrasting */
}

.page-sports__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-sports__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
}

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-sports__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

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

.page-sports__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--text-light);
  font-weight: bold;
}

.page-sports__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: var(--text-light);
}

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

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  min-width: 180px;
}

.page-sports__btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

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

.page-sports__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-sports__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-sports__mt-20 {
  margin-top: 20px;
}

.page-sports__mt-40 {
  margin-top: 40px;
}

/* Section Titles and Paragraphs */
.page-sports__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.page-sports__intro-section .page-sports__section-title,
.page-sports__categories-section .page-sports__section-title,
.page-sports__guide-section .page-sports__section-title,
.page-sports__mobile-app-section .page-sports__section-title,
.page-sports__faq-section .page-sports__section-title {
  color: var(--primary-color);
}

.page-sports__features-section .page-sports__section-title,
.page-sports__live-betting-section .page-sports__section-title,
.page-sports__promotions-section .page-sports__section-title,
.page-sports__security-section .page-sports__section-title,
.page-sports__cta-final-section .page-sports__section-title {
  color: var(--text-light);
}

.page-sports__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-sports__intro-section .page-sports__paragraph,
.page-sports__categories-section .page-sports__paragraph,
.page-sports__guide-section .page-sports__paragraph,
.page-sports__mobile-app-section .page-sports__paragraph,
.page-sports__faq-section .page-sports__paragraph {
  color: var(--text-dark);
}

.page-sports__features-section .page-sports__paragraph,
.page-sports__live-betting-section .page-sports__paragraph,
.page-sports__promotions-section .page-sports__paragraph,
.page-sports__security-section .page-sports__paragraph,
.page-sports__cta-final-section .page-sports__paragraph {
  color: var(--text-light);
}

/* General Section Padding */
.page-sports__intro-section,
.page-sports__features-section,
.page-sports__categories-section,
.page-sports__live-betting-section,
.page-sports__guide-section,
.page-sports__promotions-section,
.page-sports__mobile-app-section,
.page-sports__security-section,
.page-sports__faq-section,
.page-sports__cta-final-section {
  padding: 80px 0;
}

/* Features Grid */
.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: var(--card-bg-dark);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-sports__feature-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-sports__feature-text {
  color: var(--text-light);
  font-size: 1em;
}

/* Categories Grid */
.page-sports__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__category-card {
  background-color: var(--card-bg-light);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
}

.page-sports__category-image {
  width: 100%;
  height: 220px; /* Min height for content images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-sports__category-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-sports__category-link {
  color: var(--primary-color);
  text-decoration: none;
}

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

.page-sports__category-description {
  font-size: 0.95em;
  color: var(--text-dark);
}

/* Live Betting Section */
.page-sports__live-betting-content,
.page-sports__mobile-app-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-sports__live-betting-section .page-sports__text-block,
.page-sports__mobile-app-section .page-sports__text-block {
  flex: 1;
}

.page-sports__live-betting-section .page-sports__image-block,
.page-sports__mobile-app-section .page-sports__image-block {
  flex: 1;
  text-align: center;
}

.page-sports__live-betting-image,
.page-sports__mobile-app-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Global image size requirement */
  min-height: 200px; /* Global image size requirement */
}

/* Guide Section */
.page-sports__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-sports__guide-item {
  background-color: var(--card-bg-light);
  border-left: 5px solid var(--primary-color);
  padding: 20px 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: var(--text-dark);
}

.page-sports__guide-step-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-sports__guide-step-description {
  font-size: 1em;
  color: var(--text-dark);
}

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

.page-sports__promotion-card {
  background-color: var(--card-bg-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-dark);
}

.page-sports__promotion-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-sports__promotion-description {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.page-sports__cta-promotions {
  text-align: center;
}

/* Mobile App Section - already handled by flex in .page-sports__live-betting-content */
.page-sports__mobile-app-benefits {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-sports__benefit-item {
  font-size: 1.1em;
  color: var(--text-dark);
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-sports__benefit-item::before {
  content: '✔';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* Security Section - handled by dark-bg and general styles */

/* FAQ Section */
.page-sports__faq-list {
  margin-top: 40px;
}

.page-sports__faq-item {
  background-color: var(--card-bg-light);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  color: var(--text-dark);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #f0f0f0; /* Light background for question */
  border-bottom: 1px solid #e0e0e0;
}

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

.page-sports__faq-title {
  font-size: 1.2em;
  color: var(--primary-color);
  margin: 0;
}

.page-sports__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--primary-color);
  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;
}

.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 .page-sports__paragraph {
  color: var(--text-dark);
  margin-bottom: 0;
}

/* Final CTA Section - handled by dark-bg and general styles */
.page-sports__cta-final-section .page-sports__paragraph,
.page-sports__cta-final-section .page-sports__section-title {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-sports__hero-title {
    font-size: 2.8em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__live-betting-content,
  .page-sports__mobile-app-content {
    flex-direction: column;
    text-align: center;
  }
  .page-sports__live-betting-section .page-sports__text-block,
  .page-sports__mobile-app-section .page-sports__text-block {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-sports__hero-title {
    font-size: 2.2em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__paragraph,
  .page-sports__feature-text,
  .page-sports__category-description,
  .page-sports__guide-step-description,
  .page-sports__promotion-description,
  .page-sports__benefit-item,
  .page-sports__faq-answer .page-sports__paragraph {
    font-size: 0.95em;
  }
  .page-sports__features-grid,
  .page-sports__categories-grid,
  .page-sports__promotions-grid {
    grid-template-columns: 1fr;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-sports__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__intro-section,
  .page-sports__features-section,
  .page-sports__categories-section,
  .page-sports__live-betting-section,
  .page-sports__guide-section,
  .page-sports__promotions-section,
  .page-sports__mobile-app-section,
  .page-sports__security-section,
  .page-sports__faq-section,
  .page-sports__cta-final-section {
    padding: 60px 0;
  }
  .page-sports__container {
    padding: 0 15px;
  }

  /* Mobile image and video responsiveness */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !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,
  .page-sports__text-block,
  .page-sports__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .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;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 1.8em;
  }
  .page-sports__section-title {
    font-size: 1.5em;
  }
  .page-sports__hero-section {
    height: 400px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    min-width: unset;
  }
}