/* style/news-match-preview.css */
.page-news-match-preview {
  font-family: Arial, sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Matches body background for consistency */
}

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

.page-news-match-preview__dark-bg {
  background-color: #000080; /* Auxiliary color */
  color: #ffffff;
}

.page-news-match-preview__light-bg {
  background-color: #f8f9fa; /* Light background for contrast */
  color: #333333;
}

/* Hero Section */
.page-news-match-preview__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  box-sizing: border-box;
}

.page-news-match-preview__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: 1;
}

.page-news-match-preview__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

.page-news-match-preview__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Primary color for title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news-match-preview__hero-description {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* General Section Styling */
.page-news-match-preview__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD700; /* Primary color for section titles */
}

.page-news-match-preview__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-news-match-preview__latest-matches,
.page-news-match-preview__upcoming-events,
.page-news-match-preview__expert-analysis,
.page-news-match-preview__faq-section {
  padding: 60px 0;
}

/* Match Grid */
.page-news-match-preview__match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-news-match-preview__match-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark bg */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

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

.page-news-match-preview__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-news-match-preview__card-content {
  padding: 25px;
}

.page-news-match-preview__card-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-news-match-preview__card-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news-match-preview__card-title a:hover {
  color: #ffffff;
}

.page-news-match-preview__card-text {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* Buttons */
.page-news-match-preview__btn-primary,
.page-news-match-preview__btn-secondary,
.page-news-match-preview__btn-small {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news-match-preview__btn-primary {
  background-color: #FFD700; /* Primary brand color */
  color: #000080; /* Dark text for contrast on gold */
  border: 2px solid #FFD700;
}

.page-news-match-preview__btn-primary:hover {
  background-color: #e6c200;
  color: #000050;
}

.page-news-match-preview__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Primary brand color for text */
  border: 2px solid #FFD700;
}

.page-news-match-preview__btn-secondary:hover {
  background-color: #FFD700;
  color: #000080;
}

.page-news-match-preview__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
  background-color: #FFD700;
  color: #000080;
  border: 1px solid #FFD700;
}

.page-news-match-preview__btn-small:hover {
  background-color: #e6c200;
}

.page-news-match-preview__mt-large {
  margin-top: 40px;
}

/* Upcoming Events */
.page-news-match-preview__upcoming-events .page-news-match-preview__section-title,
.page-news-match-preview__upcoming-events .page-news-match-preview__section-description {
  color: #ffffff;
}

.page-news-match-preview__event-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.page-news-match-preview__event-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news-match-preview__event-date {
  font-weight: bold;
  color: #FFD700;
  min-width: 120px;
}

.page-news-match-preview__event-name {
  flex-grow: 1;
  margin: 0 20px;
}

/* Expert Analysis */
.page-news-match-preview__expert-analysis .page-news-match-preview__section-title,
.page-news-match-preview__expert-analysis .page-news-match-preview__section-description {
  color: #000080;
}

.page-news-match-preview__analysis-item {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  overflow: hidden;
  color: #333333;
}

.page-news-match-preview__analysis-image {
  width: 40%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.page-news-match-preview__analysis-content {
  width: 60%;
  padding: 30px;
}

.page-news-match-preview__analysis-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #000080;
}

.page-news-match-preview__analysis-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #555555;
}

/* CTA Banner */
.page-news-match-preview__cta-banner {
  padding: 80px 0;
  text-align: center;
  background-color: #000080; /* Auxiliary color */
  color: #ffffff;
}

.page-news-match-preview__cta-content {
  max-width: 900px;
}

.page-news-match-preview__cta-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-news-match-preview__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-news-match-preview__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-news-match-preview__faq-section .page-news-match-preview__section-title {
  color: #000080;
}

.page-news-match-preview__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-news-match-preview__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-news-match-preview__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #000080; /* Auxiliary color for questions */
  cursor: pointer;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

.page-news-match-preview__faq-question:hover {
  background-color: #e0e0e0;
}

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

.page-news-match-preview__faq-item.active .page-news-match-preview__faq-toggle {
  transform: rotate(45deg);
}

.page-news-match-preview__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  line-height: 1.6;
}

.page-news-match-preview__faq-item.active .page-news-match-preview__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news-match-preview__hero-title {
    font-size: 3em;
  }
  .page-news-match-preview__hero-description {
    font-size: 1.1em;
  }
  .page-news-match-preview__section-title,
  .page-news-match-preview__cta-title {
    font-size: 2em;
  }
  .page-news-match-preview__analysis-image {
    height: 220px;
  }
  .page-news-match-preview__analysis-content {
    padding: 20px;
  }
}

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

  .page-news-match-preview__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-news-match-preview__hero-title {
    font-size: 2.2em;
  }

  .page-news-match-preview__hero-description {
    font-size: 1em;
  }

  .page-news-match-preview__section-title,
  .page-news-match-preview__cta-title {
    font-size: 1.8em;
  }

  .page-news-match-preview__match-grid {
    grid-template-columns: 1fr;
  }

  .page-news-match-preview__card-image,
  .page-news-match-preview img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news-match-preview__section,
  .page-news-match-preview__card,
  .page-news-match-preview__container,
  .page-news-match-preview__cta-banner,
  .page-news-match-preview__faq-list,
  .page-news-match-preview__analysis-item,
  .page-news-match-preview__match-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-news-match-preview__analysis-item {
    flex-direction: column;
  }

  .page-news-match-preview__analysis-image {
    width: 100%;
    height: 250px;
  }

  .page-news-match-preview__analysis-content {
    width: 100%;
    padding: 20px;
  }

  .page-news-match-preview__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-news-match-preview__btn-primary,
  .page-news-match-preview__btn-secondary,
  .page-news-match-preview a[class*="button"],
  .page-news-match-preview 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-news-match-preview__event-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  .page-news-match-preview__event-date {
    margin-bottom: 5px;
  }
  .page-news-match-preview__event-name {
    margin: 0 0 10px 0;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .page-news-match-preview__hero-title {
    font-size: 1.8em;
  }
  .page-news-match-preview__hero-description {
    font-size: 0.9em;
  }
  .page-news-match-preview__section-title,
  .page-news-match-preview__cta-title {
    font-size: 1.5em;
  }
  .page-news-match-preview__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-news-match-preview__faq-answer {
    padding: 10px 20px;
  }
}