/* style/sports-match-details.css */
.page-sports-match-details {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--bg-color, #FFFFFF);
}

.page-sports-match-details__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-sports-match-details__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-sports-match-details__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

.page-sports-match-details__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

/* Hero Section */
.page-sports-match-details__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  background-color: #26A9E0; /* Brand primary color for dark bg */
  color: #ffffff;
  overflow: hidden;
  text-align: center;
  padding: 60px 20px;
}

.page-sports-match-details__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-sports-match-details__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

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

.page-sports-match-details__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Buttons */
.page-sports-match-details__btn-primary,
.page-sports-match-details__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-sports-match-details__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  margin: 10px;
}

.page-sports-match-details__btn-primary:hover {
  background-color: #1a8ccb;
  border-color: #1a8ccb;
}

.page-sports-match-details__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  margin: 10px;
}

.page-sports-match-details__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a8ccb;
  border-color: #1a8ccb;
}

.page-sports-match-details__btn-full-width {
  display: block;
  width: fit-content;
  margin: 30px auto;
  min-width: 250px;
}

/* Overview Section */
.page-sports-match-details__overview-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-sports-match-details__match-info p {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-sports-match-details__odds-summary {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-top: 30px;
}

.page-sports-match-details__odds-summary h3 {
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-sports-match-details__odds-summary ul {
  list-style: none;
  padding: 0;
}

.page-sports-match-details__odds-summary li {
  margin-bottom: 8px;
}

/* Betting Markets Section */
.page-sports-match-details__betting-markets-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-sports-match-details__betting-markets-section .page-sports-match-details__section-title,
.page-sports-match-details__betting-markets-section .page-sports-match-details__section-description {
  color: #ffffff;
}

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

.page-sports-match-details__market-card {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-sports-match-details__market-card:hover {
  transform: translateY(-5px);
}

.page-sports-match-details__market-title {
  color: #ffffff;
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-sports-match-details__market-card p {
  color: #f0f0f0;
  margin-bottom: 10px;
}

.page-sports-match-details__market-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 40px auto 0 auto;
}

/* Live Updates Section */
.page-sports-match-details__live-updates-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-sports-match-details__live-content {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-sports-match-details__video-wrapper {
  flex: 1;
  min-width: 300px;
  position: relative;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-sports-match-details__video {
  width: 100%;
  height: auto;
  display: block;
}

.page-sports-match-details__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  cursor: pointer;
}

.page-sports-match-details__stats-block {
  flex: 1;
  min-width: 300px;
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-sports-match-details__live-events {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-sports-match-details__live-events li {
  margin-bottom: 10px;
  padding-left: 15px;
  position: relative;
}

.page-sports-match-details__live-events li::before {
  content: '•';
  color: #26A9E0;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.page-sports-match-details__team-stats {
  margin-top: 20px;
}

.page-sports-match-details__team-stat-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #e0e0e0;
}

.page-sports-match-details__team-stat-item:last-child {
  border-bottom: none;
}

.page-sports-match-details__stats-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 30px;
}

/* Analysis Section */
.page-sports-match-details__analysis-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-sports-match-details__analysis-section .page-sports-match-details__section-title,
.page-sports-match-details__analysis-section .page-sports-match-details__section-description {
  color: #ffffff;
}

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

.page-sports-match-details__analysis-card {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports-match-details__analysis-card p {
  color: #f0f0f0;
  margin-bottom: 10px;
}

.page-sports-match-details__card-title {
  color: #ffffff;
  font-size: 1.4em;
  margin-bottom: 15px;
}

.page-sports-match-details__analysis-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 40px auto 0 auto;
}

/* Responsible Gaming Section */
.page-sports-match-details__responsible-gaming-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-sports-match-details__responsible-content {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.page-sports-match-details__text-block {
  flex: 1;
  min-width: 300px;
}

.page-sports-match-details__text-block h3 {
  color: #26A9E0;
  margin-bottom: 15px;
  font-size: 1.5em;
}

.page-sports-match-details__text-block ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-sports-match-details__text-block li {
  margin-bottom: 8px;
}

.page-sports-match-details__responsible-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* FAQ Section */
.page-sports-match-details__faq-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-sports-match-details__faq-section .page-sports-match-details__section-title {
  color: #ffffff;
}

.page-sports-match-details__faq-list {
  margin-top: 40px;
}

.page-sports-match-details__faq-item {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports-match-details__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  color: #ffffff;
  position: relative;
}

.page-sports-match-details__faq-item summary::-webkit-details-marker {
  display: none;
}

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

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

.page-sports-match-details__faq-answer {
  padding: 15px 25px 20px;
  color: #f0f0f0;
  font-size: 1.05em;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* CTA Section */
.page-sports-match-details__cta-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
  text-align: center;
}

.page-sports-match-details__cta-content {
  max-width: 800px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports-match-details__hero-title {
    font-size: 2.8em;
  }
  .page-sports-match-details__hero-description {
    font-size: 1.1em;
  }
  .page-sports-match-details__section-title {
    font-size: 2em;
  }
  .page-sports-match-details__live-content,
  .page-sports-match-details__responsible-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-sports-match-details__video-wrapper,
  .page-sports-match-details__stats-block,
  .page-sports-match-details__text-block,
  .page-sports-match-details__responsible-image {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-sports-match-details__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure proper spacing for mobile header */
  }
  .page-sports-match-details__hero-title {
    font-size: 2.2em;
  }
  .page-sports-match-details__hero-description {
    font-size: 1em;
  }
  .page-sports-match-details__section-title {
    font-size: 1.8em;
  }
  .page-sports-match-details__section-description {
    font-size: 0.95em;
  }
  .page-sports-match-details__btn-primary,
  .page-sports-match-details__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    margin: 5px 0;
  }
  .page-sports-match-details__btn-full-width {
    width: 100%;
  }
  .page-sports-match-details__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-sports-match-details__container {
    padding: 0 15px;
  }
  /* Images and Video responsiveness */
  .page-sports-match-details img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports-match-details video,
  .page-sports-match-details__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports-match-details__section,
  .page-sports-match-details__card,
  .page-sports-match-details__container,
  .page-sports-match-details__video-wrapper,
  .page-sports-match-details__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-sports-match-details__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-sports-match-details__faq-answer {
    padding: 10px 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-sports-match-details__hero-title {
    font-size: 1.8em;
  }
  .page-sports-match-details__section-title {
    font-size: 1.5em;
  }
  .page-sports-match-details__sub-title {
    font-size: 1.4em;
  }
}

/* Color contrast classes for different backgrounds */
.page-sports-match-details__dark-bg {
  color: #ffffff;
  background: #26A9E0;
}

.page-sports-match-details__light-bg {
  color: #333333;
  background: #ffffff;
}