/* style/upcoming-matches.css */

/* Base Styles & Typography */
.page-upcoming-matches {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text on dark body background */
  line-height: 1.6;
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-upcoming-matches__heading {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for headings */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

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

.page-upcoming-matches__highlight {
  color: #26A9E0;
  font-weight: bold;
}

.page-upcoming-matches__text-center {
  text-align: center;
}

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

.page-upcoming-matches__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-upcoming-matches__btn-primary:hover {
  background-color: #1f8ec4;
  border-color: #1f8ec4;
}

.page-upcoming-matches__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-upcoming-matches__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-upcoming-matches__btn-small {
  font-size: 0.9em;
  padding: 8px 15px;
  background-color: #26A9E0;
  color: #ffffff;
  border: 1px solid #26A9E0;
}

.page-upcoming-matches__btn-small:hover {
  background-color: #1f8ec4;
  border-color: #1f8ec4;
}

.page-upcoming-matches__btn-large {
  font-size: 1.2em;
  padding: 15px 30px;
}

/* Hero Section */
.page-upcoming-matches__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
}

.page-upcoming-matches__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-upcoming-matches__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-upcoming-matches__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-upcoming-matches__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-upcoming-matches__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
}

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

/* General Section Styling */
.page-upcoming-matches__section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark body */
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-upcoming-matches__section:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.08);
}

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

.page-upcoming-matches__match-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-upcoming-matches__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-upcoming-matches__card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-upcoming-matches__card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-upcoming-matches__card-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 5px;
}

/* How to Bet Steps */
.page-upcoming-matches__step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-upcoming-matches__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-upcoming-matches__step-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-upcoming-matches__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Video Section */
.page-upcoming-matches__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 40px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  box-sizing: border-box;
}

.page-upcoming-matches__video-link {
  display: block;
  position: relative;
}

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

.page-upcoming-matches__video-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(38, 169, 224, 0.8);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.5em;
  font-weight: bold;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page-upcoming-matches__video-link:hover .page-upcoming-matches__video-overlay-text {
  opacity: 1;
}

/* Features List */
.page-upcoming-matches__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-upcoming-matches__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-upcoming-matches__feature-icon {
  width: 100%;
  height: 200px; /* Ensure minimum size */
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 5px;
}

.page-upcoming-matches__feature-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-upcoming-matches__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Expert Tips */
.page-upcoming-matches__tip-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-upcoming-matches__tip-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-upcoming-matches__tip-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-upcoming-matches__tip-text {
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-upcoming-matches__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-upcoming-matches__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: #26A9E0;
  transition: background-color 0.3s ease;
}

.page-upcoming-matches__faq-question:hover {
  background-color: #1f8ec4;
}

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

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

.page-upcoming-matches__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-upcoming-matches__faq-item.active .page-upcoming-matches__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 25px;
}

.page-upcoming-matches__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
}

/* Final CTA Section */
.page-upcoming-matches__cta-final {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-upcoming-matches__cta-final .page-upcoming-matches__heading {
  color: #ffffff;
}

.page-upcoming-matches__cta-final .page-upcoming-matches__paragraph {
  max-width: 800px;
  margin: 0 auto 30px auto;
  text-align: center;
}

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

.page-upcoming-matches__cta-final .page-upcoming-matches__btn-primary {
  background-color: #ffffff;
  color: #26A9E0;
  border-color: #ffffff;
}

.page-upcoming-matches__cta-final .page-upcoming-matches__btn-primary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

.page-upcoming-matches__cta-final .page-upcoming-matches__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.page-upcoming-matches__cta-final .page-upcoming-matches__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-upcoming-matches__hero-title {
    font-size: 3em;
  }
  .page-upcoming-matches__hero-description {
    font-size: 1.1em;
  }
  .page-upcoming-matches__heading {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-upcoming-matches {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-upcoming-matches__container {
    padding: 15px;
  }

  .page-upcoming-matches__hero-section {
    height: 500px;
  }

  .page-upcoming-matches__hero-title {
    font-size: 2.2em;
  }

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

  .page-upcoming-matches__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-upcoming-matches__btn-primary,
  .page-upcoming-matches__btn-secondary,
  .page-upcoming-matches__btn-small,
  .page-upcoming-matches__btn-large,
  .page-upcoming-matches a[class*="button"],
  .page-upcoming-matches 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-upcoming-matches__cta-buttons,
  .page-upcoming-matches__button-group,
  .page-upcoming-matches__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;
  }

  .page-upcoming-matches__cta-buttons {
    flex-direction: column;
  }

  .page-upcoming-matches__heading {
    font-size: 1.8em;
  }

  .page-upcoming-matches__match-grid,
  .page-upcoming-matches__step-list,
  .page-upcoming-matches__feature-list,
  .page-upcoming-matches__tip-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-upcoming-matches__card-image,
  .page-upcoming-matches__feature-icon {
    height: 200px;
  }

  .page-upcoming-matches img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-upcoming-matches__section,
  .page-upcoming-matches__card,
  .page-upcoming-matches__container,
  .page-upcoming-matches__video-section,
  .page-upcoming-matches__video-container,
  .page-upcoming-matches__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-upcoming-matches__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-upcoming-matches__video-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-upcoming-matches__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }
}

@media (max-width: 480px) {
  .page-upcoming-matches__hero-title {
    font-size: 1.8em;
  }
  .page-upcoming-matches__hero-description {
    font-size: 0.9em;
  }
  .page-upcoming-matches__heading {
    font-size: 1.5em;
  }
  .page-upcoming-matches__faq-question {
    font-size: 1em;
  }
  .page-upcoming-matches__faq-question span:first-child {
    padding-right: 10px; /* Prevent text from overlapping toggle icon */
  }
}