/* style/sports.css */

/* Variables */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #017439;
  --accent-red: #C30808;
  --accent-yellow: #FFFF00;
}

.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
}

.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; /* Adjust height as needed */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  box-sizing: border-box;
}

.page-sports__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

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

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

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

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

/* General Section Styling */
.page-sports__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

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

/* Light Background Sections */
.page-sports__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 60px 0;
}

.page-sports__light-bg .page-sports__section-title {
  color: var(--primary-color);
}

/* Dark Background Sections */
.page-sports__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 60px 0;
}

.page-sports__dark-bg .page-sports__section-title {
  color: var(--text-light);
}

.page-sports__dark-bg .page-sports__text-block {
  color: var(--text-light);
}

/* Buttons */
.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;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
}

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

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

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

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

.page-sports__dark-bg .page-sports__btn-secondary {
  border-color: var(--text-light);
  color: var(--text-light);
}

.page-sports__light-bg .page-sports__btn-secondary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

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

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

/* 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: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: var(--text-light);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-sports__feature-card:hover {
  transform: translateY(-5px);
}

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

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

.page-sports__card-description {
  font-size: 1em;
  line-height: 1.5;
  color: var(--text-light);
}

/* Video Section */
.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 10px;
}

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

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

.page-sports__game-card {
  display: block;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-sports__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.page-sports__game-card .page-sports__card-title {
  padding: 15px 20px 5px;
  margin-bottom: 0;
  font-size: 1.3em;
}

.page-sports__game-card .page-sports__card-description {
  padding: 0 20px 20px;
  font-size: 0.95em;
}

/* Promotions */
.page-sports__promotion-banner {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 40px auto;
  display: block;
  object-fit: cover;
}

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

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.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: var(--text-light);
}

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

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

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

.page-sports__cta-final-section .page-sports__section-title {
  color: var(--primary-color);
}

.page-sports__cta-final-section .page-sports__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.2em;
}

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

@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__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

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

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

  .page-sports__features-grid,
  .page-sports__games-grid {
    grid-template-columns: 1fr;
  }

  .page-sports__feature-card,
  .page-sports__game-card {
    padding: 20px;
  }

  .page-sports__game-image {
    height: 180px;
  }

  .page-sports__promotion-banner {
    margin: 30px auto;
  }

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

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

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

  /* Mobile image responsiveness */
  .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__hero-section,
  .page-sports__intro-section,
  .page-sports__why-choose-us,
  .page-sports__cockfighting-section,
  .page-sports__other-games-section,
  .page-sports__promotions-section,
  .page-sports__faq-section,
  .page-sports__cta-final-section,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  /* Mobile video responsiveness */
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-sports__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 1.8em;
  }
  .page-sports__hero-description {
    font-size: 0.9em;
  }
  .page-sports__section-title {
    font-size: 1.5em;
  }
}