/* style/sports.css */

/* Custom Colors */
:root {
  --fly88-primary-color: #11A84E;
  --fly88-secondary-color: #22C768;
  --fly88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --fly88-card-bg: #11271B;
  --fly88-background: #08160F;
  --fly88-text-main: #F2FFF6;
  --fly88-text-secondary: #A7D9B8;
  --fly88-border-color: #2E7A4E;
  --fly88-glow-color: #57E38D;
  --fly88-gold-color: #F2C14E;
  --fly88-divider-color: #1E3A2A;
  --fly88-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--fly88-text-main); /* Default text color for dark background */
  background-color: var(--fly88-background);
}

/* General container for content sections */
.page-sports__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-sports__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--fly88-text-main);
  line-height: 1.2;
}

.page-sports__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--fly88-text-secondary);
  text-align: justify;
}

/* --- Hero Section --- */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
  background-color: var(--fly88-background);
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-sports__hero-content {
  max-width: 900px;
  z-index: 1;
  padding: 20px;
  background: rgba(8, 22, 15, 0.7); /* Slightly transparent background for readability */
  border-radius: 10px;
}

.page-sports__main-title {
  font-weight: 800;
  color: var(--fly88-text-main);
  margin-bottom: 20px;
  /* Using clamp for responsive font size, avoiding fixed large values */
  font-size: clamp(2em, 4vw, 3.2em);
  line-height: 1.1;
}

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

.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: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-sports__btn-primary {
  background: var(--fly88-button-gradient);
  color: var(--fly88-text-main);
  border: 2px solid transparent;
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px var(--fly88-glow-color);
}

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

.page-sports__btn-secondary:hover {
  background-color: var(--fly88-primary-color);
  color: var(--fly88-text-main);
  box-shadow: 0 0 15px rgba(17, 168, 78, 0.5);
}

/* --- General Sections --- */
.page-sports__introduction-section,
.page-sports__bet-types-section,
.page-sports__app-section,
.page-sports__news-section,
.page-sports__contact-section {
  padding: 80px 0;
}

.page-sports__why-choose-us,
.page-sports__guide-section,
.page-sports__video-section,
.page-sports__faq-section {
  padding: 80px 0;
  background-color: var(--fly88-card-bg);
}

/* Contrast adjustments for light/dark sections */
.page-sports__dark-section {
  color: var(--fly88-text-main);
  background-color: var(--fly88-background);
}

.page-sports__light-bg {
  color: #333333; /* Darker text for light background */
  background-color: #f8f8f8;
}

.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__text-block {
  color: #333333;
}

.page-sports__light-bg .page-sports__news-title a,
.page-sports__light-bg .page-sports__list-title {
  color: var(--fly88-primary-color);
}

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

.page-sports__feature-card {
  background-color: var(--fly88-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid var(--fly88-border-color);
}

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

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

/* --- Bet Types List --- */
.page-sports__bet-types-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-sports__bet-types-list .page-sports__list-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-sports__bet-types-list .page-sports__list-title {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--fly88-primary-color);
  margin-bottom: 10px;
}

.page-sports__bet-types-list p {
  color: #555555;
}

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

.page-sports__step-card {
  background-color: var(--fly88-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--fly88-border-color);
}

.page-sports__step-title {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--fly88-gold-color);
  margin-bottom: 15px;
}

.page-sports__step-card p {
  color: var(--fly88-text-secondary);
  margin-bottom: 20px;
}

/* --- App Section --- */
.page-sports__app-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-sports__app-text,
.page-sports__app-image-wrapper {
  flex: 1;
  min-width: 300px;
}

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

.page-sports__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

/* --- Video Section --- */
.page-sports__video-section .page-sports__container {
  text-align: center;
}

.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-top: 30px;
  border-radius: 10px;
  width: 100%; /* Ensure desktop width is 100% */
  box-sizing: border-box;
}

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

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

.page-sports__news-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #333333;
}

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

.page-sports__news-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-sports__news-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1;
}

.page-sports__news-title a {
  color: var(--fly88-primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-sports__news-title a:hover {
  color: var(--fly88-secondary-color);
}

.page-sports__news-date {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 10px;
}

.page-sports__news-excerpt {
  font-size: 1em;
  color: #555;
}

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

.page-sports__faq-item {
  background-color: var(--fly88-card-bg);
  border: 1px solid var(--fly88-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--fly88-text-main);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--fly88-gold-color);
  user-select: none;
  list-style: none;
}

.page-sports__faq-question::-webkit-details-marker {
  display: none;
}

.page-sports__faq-item summary {
  list-style: none;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
  transform: rotate(45deg);
}

.page-sports__faq-answer {
  padding: 0 20px 20px;
  font-size: 1.1em;
  color: var(--fly88-text-secondary);
}

/* --- Contact Section --- */
.page-sports__contact-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-sports__contact-text,
.page-sports__contact-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-sports__contact-image-wrapper {
  text-align: center;
}

.page-sports__contact-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

/* --- Global Image & Element Styling --- */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
  /* No filter property to change image color */
}

.page-sports__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 30px;
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
  .page-sports__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-sports__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-sports__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

  .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__hero-cta-buttons,
  .page-sports__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-sports__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-sports__text-block {
    font-size: 1em;
  }

  .page-sports__introduction-section,
  .page-sports__bet-types-section,
  .page-sports__app-section,
  .page-sports__news-section,
  .page-sports__contact-section,
  .page-sports__why-choose-us,
  .page-sports__guide-section,
  .page-sports__video-section,
  .page-sports__faq-section {
    padding: 40px 0;
  }

  .page-sports__features-grid,
  .page-sports__guide-steps,
  .page-sports__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__app-content,
  .page-sports__contact-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-sports__video-wrapper {
    margin-top: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .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,
  .page-sports__app-content,
  .page-sports__contact-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-sports__faq-answer {
    padding: 0 15px 15px;
    font-size: 1em;
  }
}