/* style/expert-predictions.css */
.page-expert-predictions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #FFFFFF;
  padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
}

.page-expert-predictions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  min-height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, #017439, #005f2f);
  color: #FFFFFF;
}

.page-expert-predictions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-expert-predictions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-expert-predictions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-expert-predictions__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFF00; /* Yellow for emphasis */
}

.page-expert-predictions__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.page-expert-predictions__section {
  padding: 80px 20px;
}

.page-expert-predictions__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-expert-predictions__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-expert-predictions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
}

.page-expert-predictions__text-link {
  color: #017439;
  text-decoration: underline;
  font-weight: bold;
}

.page-expert-predictions__text-link:hover {
  color: #005f2f;
}

.page-expert-predictions__keyword {
  font-weight: bold;
  color: #017439;
}

/* Dark background sections */
.page-expert-predictions__dark-bg {
  background-color: #017439;
  color: #FFFFFF;
}

.page-expert-predictions__dark-bg .page-expert-predictions__section-title,
.page-expert-predictions__dark-bg .page-expert-predictions__keyword {
  color: #FFFF00;
}

.page-expert-predictions__dark-bg .page-expert-predictions__text-block {
  color: #FFFFFF;
}

.page-expert-predictions__dark-bg .page-expert-predictions__text-link {
  color: #FFFF00;
}

.page-expert-predictions__dark-bg .page-expert-predictions__text-link:hover {
  color: #FFF;
}

/* Light background sections */
.page-expert-predictions__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-expert-predictions__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-expert-predictions__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-expert-predictions__text-content {
  flex: 1;
}

.page-expert-predictions__image-wrapper {
  flex: 1;
  text-align: center;
}

.page-expert-predictions__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Video Section */
.page-expert-predictions__video-section {
  padding: 80px 20px;
  background: #f0f0f0;
  text-align: center;
}

.page-expert-predictions__video-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-expert-predictions__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.page-expert-predictions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.page-expert-predictions__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* Allow clicks to pass through to video/link */
}

.page-expert-predictions__video-container:hover .page-expert-predictions__video-overlay {
  opacity: 1;
  pointer-events: auto;
}

.page-expert-predictions__video-title {
  font-size: 2.2em;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-expert-predictions__video-description {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-expert-predictions__video-cta {
  background-color: #017439;
  color: #FFFFFF;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-expert-predictions__video-cta:hover {
  background-color: #005f2f;
}

/* FAQ Section */
.page-expert-predictions__faq {
  padding: 80px 20px;
}

.page-expert-predictions__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-expert-predictions__faq-item {
  background-color: #005f2f;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-expert-predictions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #017439;
  color: #FFFFFF;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-expert-predictions__faq-question:hover {
  background-color: #005f2f;
}

.page-expert-predictions__faq-title {
  margin: 0;
  color: #FFFFFF;
  font-size: 1.2em;
}

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

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

.page-expert-predictions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #005f2f;
  color: #FFFFFF;
}

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

.page-expert-predictions__faq-answer p {
  margin-bottom: 0;
  color: #FFFFFF;
}

/* CTA Section */
.page-expert-predictions__cta-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #017439, #005f2f);
  color: #FFFFFF;
}

.page-expert-predictions__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-expert-predictions__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFF00;
  font-weight: bold;
}

.page-expert-predictions__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #FFFFFF;
}

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

.page-expert-predictions__btn-primary,
.page-expert-predictions__btn-register,
.page-expert-predictions__btn-login {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-expert-predictions__btn-primary {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-expert-predictions__btn-primary:hover {
  background-color: #005f2f;
  border-color: #005f2f;
}

.page-expert-predictions__btn-register {
  background-color: #C30808; /* Custom Register color */
  color: #FFFF00; /* Custom Register text color */
  border: 2px solid #C30808;
}

.page-expert-predictions__btn-register:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-expert-predictions__btn-login {
  background-color: #C30808; /* Custom Login color */
  color: #FFFF00; /* Custom Login text color */
  border: 2px solid #C30808;
}

.page-expert-predictions__btn-login:hover {
  background-color: #a00606;
  border-color: #a00606;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-expert-predictions__hero-title {
    font-size: 2.8em;
  }
  .page-expert-predictions__section-title {
    font-size: 2em;
  }
  .page-expert-predictions__content-wrapper {
    flex-direction: column;
  }
  .page-expert-predictions__content-wrapper--reverse {
    flex-direction: column-reverse;
  }
}

@media (max-width: 768px) {
  .page-expert-predictions {
    padding-top: var(--header-offset, 120px) !important;
    font-size: 16px;
    line-height: 1.6;
  }
  .page-expert-predictions__hero-section {
    padding: 40px 15px;
    min-height: 400px;
  }
  .page-expert-predictions__hero-title {
    font-size: 2em;
  }
  .page-expert-predictions__hero-description {
    font-size: 1em;
  }
  .page-expert-predictions__section {
    padding: 50px 15px;
  }
  .page-expert-predictions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-expert-predictions__text-block {
    font-size: 1em;
  }
  .page-expert-predictions__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-expert-predictions__image-wrapper,
  .page-expert-predictions__video-container,
  .page-expert-predictions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-expert-predictions__video-section {
    padding-top: 50px !important; /* Adjust if needed, relative to other content */
  }
  .page-expert-predictions__video-title {
    font-size: 1.5em;
  }
  .page-expert-predictions__video-description {
    font-size: 0.9em;
  }
  .page-expert-predictions__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-expert-predictions__faq-answer {
    padding: 0 15px;
  }
  .page-expert-predictions__faq-item.active .page-expert-predictions__faq-answer {
    padding: 15px;
  }
  .page-expert-predictions__cta-title {
    font-size: 2em;
  }
  .page-expert-predictions__cta-description {
    font-size: 1em;
  }
  .page-expert-predictions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-expert-predictions__btn-primary,
  .page-expert-predictions__btn-register,
  .page-expert-predictions__btn-login {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
  }
  .page-expert-predictions__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-expert-predictions__hero-title {
    font-size: 1.8em;
  }
  .page-expert-predictions__section-title {
    font-size: 1.5em;
  }
  .page-expert-predictions__cta-title {
    font-size: 1.8em;
  }
}