/* style/sports.css */

/* Base styles for the page */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherit from shared.css or ensure consistency */
}

.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: #ffffff;
  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 40px auto;
}

/* Color themes for sections */
.page-sports__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter than body for contrast */
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__section-description,
.page-sports__light-bg .page-sports__advantage-title,
.page-sports__light-bg .page-sports__advantage-text,
.page-sports__light-bg .page-sports__step-title,
.page-sports__light-bg .page-sports__step-text,
.page-sports__light-bg .page-sports__app-text p {
  color: #333333;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
}

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

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

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

.page-sports__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
  border-color: #005f2e;
}

/* Specific button overrides for Register/Login */
.page-sports__hero-cta-buttons .page-sports__btn-primary,
.page-sports__register-cta .page-sports__btn-primary,
.page-sports__cta-buttons .page-sports__btn-primary {
  background-color: #C30808;
  color: #ffffff; /* Overridden for contrast, originally #FFFF00 */
  border-color: #C30808;
}

.page-sports__hero-cta-buttons .page-sports__btn-primary:hover,
.page-sports__register-cta .page-sports__btn-primary:hover,
.page-sports__cta-buttons .page-sports__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

/* Hero Section */
.page-sports__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
  overflow: hidden;
}

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

.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: 1;
  max-width: 900px;
  text-align: center;
  color: #ffffff;
}

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

.page-sports__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
}

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

/* Intro Video Section */
.page-sports__intro-video-section {
  padding: 80px 0;
  text-align: center;
}

.page-sports__video-link-wrapper {
  display: block;
  max-width: 800px;
  margin: 40px auto 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.page-sports__video {
  width: 100%;
  height: auto;
  display: block;
}

/* Advantages Section */
.page-sports__advantages-section {
  padding: 80px 0;
}

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

.page-sports__advantage-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-sports__advantage-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
}

.page-sports__advantage-text {
  font-size: 1em;
  color: #555555;
}

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

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

.page-sports__category-card {
  background-color: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.page-sports__category-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-sports__category-title {
  font-size: 1.4em;
  margin: 20px 20px 10px 20px;
  color: #017439;
}

.page-sports__category-text {
  font-size: 0.95em;
  padding: 0 20px 20px 20px;
  color: #e0e0e0;
  flex-grow: 1;
}

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

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

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

.page-sports__live-betting-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #333333;
}

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

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

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

.page-sports__promotion-card {
  background-color: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  text-align: center;
}

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

.page-sports__promotion-title {
  font-size: 1.4em;
  margin: 20px 20px 10px 20px;
  color: #017439;
}

.page-sports__promotion-text {
  font-size: 0.95em;
  padding: 0 20px 20px 20px;
  color: #e0e0e0;
  flex-grow: 1;
}

.page-sports__promotion-card .page-sports__btn-secondary {
  margin: 0 20px 20px 20px;
}

/* Register Guide Section */
.page-sports__register-guide-section {
  padding: 80px 0;
}

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

.page-sports__step-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  padding-top: 60px;
}

.page-sports__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #017439;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-sports__step-text {
  font-size: 1em;
  color: #555555;
}

.page-sports__register-cta {
  text-align: center;
  margin-top: 60px;
}

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

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

.page-sports__faq-item {
  background-color: #2a2a2a;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #017439; /* Brand color for question background */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

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

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

.page-sports__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  width: 30px;
  text-align: center;
  flex-shrink: 0;
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: #3a3a3a; /* Darker background for answer */
  color: #e0e0e0;
}

.page-sports__faq-answer p {
  margin: 0;
  padding-bottom: 20px;
  font-size: 0.95em;
}

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

.page-sports__faq-item.active .page-sports__faq-question {
  background-color: #005f2e;
}

/* App Download Section */
.page-sports__app-download-section {
  padding: 80px 0;
}

.page-sports__app-download-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

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

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

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

.page-sports__app-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #333333;
}

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

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__hero-description {
    font-size: 1.1em;
  }
  .page-sports__live-betting-content,
  .page-sports__app-download-content {
    flex-direction: column;
    text-align: center;
  }
  .page-sports__live-betting-text,
  .page-sports__app-text {
    order: 2;
  }
  .page-sports__live-betting-image-wrapper,
  .page-sports__app-image-wrapper {
    order: 1;
    margin-bottom: 30px;
  }
  .page-sports__advantages-grid,
  .page-sports__categories-grid,
  .page-sports__promotions-grid,
  .page-sports__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-sports__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }
  .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;
  }
  .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__cta-buttons,
  .page-sports__hero-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }
  .page-sports__intro-video-section,
  .page-sports__advantages-section,
  .page-sports__categories-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__register-guide-section,
  .page-sports__faq-section,
  .page-sports__app-download-section,
  .page-sports__contact-cta-section {
    padding: 50px 15px;
  }
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-sports__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section top padding for mobile */
  }
  .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: 15px;
  }
}