/* style/live-schedule.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --button-text-color: #FFFF00;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --background-light: #FFFFFF;
  --border-light: #e0e0e0;
}

.page-live-schedule {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

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

/* Fixed Header Offset */
.page-live-schedule__hero-section {
  padding-top: var(--header-offset, 120px);
}

.page-live-schedule__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: var(--primary-color);
}

.page-live-schedule__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-live-schedule__hero-section {
  background: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.8)), url('[GALLERY:hero_bg:1920x1080:m88 live background,stadium,sports crowd]') no-repeat center center/cover;
  color: var(--text-light);
  padding: 100px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

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

.page-live-schedule__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-live-schedule__btn-primary,
.page-live-schedule__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;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-live-schedule__btn-primary {
  background-color: var(--register-button-bg);
  color: var(--button-text-color);
  border: 2px solid var(--register-button-bg);
}

.page-live-schedule__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

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

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

/* Video Section */
.page-live-schedule__video-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-live-schedule__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin: 0 auto;
}

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

/* Categories Section */
.page-live-schedule__categories-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-live-schedule__category-card {
  background-color: var(--background-light);
  color: var(--text-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-live-schedule__category-card:hover {
  transform: translateY(-10px);
}

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

.page-live-schedule__card-title {
  font-size: 1.5em;
  margin: 20px 0 10px;
  padding: 0 15px;
}

.page-live-schedule__card-link {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.page-live-schedule__card-link:hover {
  color: #004d2b;
}

.page-live-schedule__card-text {
  padding: 0 15px 20px;
  font-size: 0.95em;
}

/* Upcoming Matches Section */
.page-live-schedule__upcoming-matches-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-live-schedule__match-list {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}

.page-live-schedule__match-item {
  background-color: var(--secondary-color);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-live-schedule__match-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
  font-size: 0.9em;
  color: #666;
}

.page-live-schedule__match-time {
  font-weight: bold;
  color: var(--primary-color);
}

.page-live-schedule__match-league {
  font-style: italic;
}

.page-live-schedule__match-details {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-live-schedule__team {
  color: #000;
}

.page-live-schedule__match-cta {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-live-schedule__match-cta:hover {
  background-color: #004d2b;
}

.page-live-schedule__view-more-cta {
  text-align: center;
  margin-top: 40px;
}

/* How To Watch Section */
.page-live-schedule__how-to-watch-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-live-schedule__step-card {
  background-color: var(--background-light);
  color: var(--text-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
}

.page-live-schedule__step-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

/* Features Section */
.page-live-schedule__features-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--text-dark);
}

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

.page-live-schedule__feature-item {
  padding: 20px;
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-live-schedule__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  object-fit: contain;
}

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

.page-live-schedule__feature-text {
  font-size: 0.95em;
}

/* FAQ Section */
.page-live-schedule__faq-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-live-schedule__faq-list {
  margin-top: 40px;
}

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

.page-live-schedule__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--secondary-color);
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.3s ease;
}

.page-live-schedule__faq-question:hover {
  background-color: #f5f5f5;
}

.page-live-schedule__faq-question h3 {
  margin: 0;
  color: var(--primary-color);
}

.page-live-schedule__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-live-schedule__faq-item.active .page-live-schedule__faq-toggle {
  transform: rotate(45deg);
}

.page-live-schedule__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1em;
}

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

/* Final CTA Section */
.page-live-schedule__cta-final-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--text-dark);
  text-align: center;
}

/* Color Contrast Fixes (as per requirements) */
.page-live-schedule__dark-bg {
  color: var(--text-light);
}

.page-live-schedule__light-bg {
  color: var(--text-dark);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-live-schedule__hero-title {
    font-size: 3em;
  }
  .page-live-schedule__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-live-schedule {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-live-schedule__hero-section {
    padding: 80px 0;
    min-height: 400px;
  }
  .page-live-schedule__hero-title {
    font-size: 2.5em;
  }
  .page-live-schedule__hero-description {
    font-size: 1.1em;
  }
  .page-live-schedule__section-title {
    font-size: 1.8em;
  }
  .page-live-schedule__section-description {
    font-size: 1em;
  }
  .page-live-schedule__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-live-schedule__btn-primary,
  .page-live-schedule__btn-secondary {
    width: 100%;
    padding: 12px 20px;
  }
  
  /* Image, Video, Button Responsiveness */
  .page-live-schedule img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-live-schedule video,
  .page-live-schedule__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-live-schedule__video-wrapper,
  .page-live-schedule__section,
  .page-live-schedule__card,
  .page-live-schedule__container,
  .page-live-schedule__cta-buttons,
  .page-live-schedule__button-group,
  .page-live-schedule__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  
  /* Video section padding-top for mobile */
  .page-live-schedule__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-live-schedule__categories-grid,
  .page-live-schedule__steps-grid,
  .page-live-schedule__features-grid {
    grid-template-columns: 1fr;
  }

  .page-live-schedule__match-item {
    padding: 15px;
  }
  .page-live-schedule__match-header {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
  .page-live-schedule__match-details {
    font-size: 1.1em;
  }
  
  .page-live-schedule__faq-question {
    padding: 15px;
    font-size: 1.1em;
  }
  .page-live-schedule__faq-answer {
    padding: 15px !important;
  }
}