/* style/expert-predictions.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f9fa;
  --background-dark: #0d0d0d; /* Assuming shared.css defines --dark-bg-1 similar to this */
  --button-register: #C30808;
  --button-login: #C30808;
  --button-font-color: #FFFF00;
}

/* Base styles for the page content */
.page-expert-predictions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Inherited from body, ensuring contrast */
}

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

.page-expert-predictions__section {
  padding: 60px 0;
}

.page-expert-predictions__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-expert-predictions__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-light);
}

/* Color contrast specific classes */
.page-expert-predictions__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-expert-predictions__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-expert-predictions__light-bg .page-expert-predictions__section-title,
.page-expert-predictions__light-bg .page-expert-predictions__section-description,
.page-expert-predictions__light-bg .page-expert-predictions__feature-title,
.page-expert-predictions__light-bg .page-expert-predictions__feature-text,
.page-expert-predictions__light-bg .page-expert-predictions__factor-name,
.page-expert-predictions__light-bg .page-expert-predictions__factor-detail,
.page-expert-predictions__light-bg p,
.page-expert-predictions__light-bg h3 {
  color: var(--text-dark);
}

/* Hero Section */
.page-expert-predictions__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: var(--header-offset, 120px);
}

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

.page-expert-predictions__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.page-expert-predictions__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;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-expert-predictions__hero-content {
  max-width: 900px;
  padding: 20px;
  z-index: 2;
}

.page-expert-predictions__hero-title {
  font-size: 3.5em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-expert-predictions__hero-description {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin-bottom: 30px;
}

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

/* Buttons */
.page-expert-predictions__btn-primary,
.page-expert-predictions__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;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-expert-predictions__btn-primary {
  background-color: var(--button-register);
  color: var(--button-font-color);
  border: 2px solid var(--button-register);
}

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

.page-expert-predictions__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-expert-predictions__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* Why Choose Section */
.page-expert-predictions__why-choose {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-expert-predictions__why-choose .page-expert-predictions__section-title,
.page-expert-predictions__why-choose .page-expert-predictions__section-description {
  color: var(--text-dark);
}

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

.page-expert-predictions__feature-card {
  background-color: #f0f0f0;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: var(--text-dark);
}

.page-expert-predictions__feature-card:hover {
  transform: translateY(-10px);
}

.page-expert-predictions__feature-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-expert-predictions__feature-text {
  font-size: 1em;
  color: var(--text-dark);
}

/* Methodology Section */
.page-expert-predictions__methodology-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-expert-predictions__methodology-image {
  flex: 1;
  min-width: 400px;
  border-radius: 10px;
  object-fit: cover;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-expert-predictions__methodology-list {
  flex: 1;
  min-width: 400px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-expert-predictions__methodology-list li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-expert-predictions__methodology-list li:last-child {
  margin-bottom: 0;
}

.page-expert-predictions__list-title {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.page-expert-predictions__methodology-list p {
  color: var(--text-light);
}

/* Factors Section */
.page-expert-predictions__factors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-expert-predictions__factor-item {
  background-color: #f0f0f0;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  color: var(--text-dark);
}

.page-expert-predictions__factor-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  max-width: 100%;
  display: block;
}

.page-expert-predictions__factor-name {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-expert-predictions__factor-detail {
  font-size: 0.95em;
  color: var(--text-dark);
}

/* How to Use Section */
.page-expert-predictions__how-to-use-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

.page-expert-predictions__how-to-use-image {
  flex: 1;
  min-width: 400px;
  border-radius: 10px;
  object-fit: cover;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-expert-predictions__how-to-use-list {
  flex: 1;
  min-width: 400px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-expert-predictions__how-to-use-list li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-expert-predictions__how-to-use-list li:last-child {
  margin-bottom: 0;
}

.page-expert-predictions__how-to-use-list p {
  color: var(--text-light);
}

.page-expert-predictions__cta-buttons--centered {
  margin-top: 50px;
  text-align: center;
}

/* FAQ Section */
.page-expert-predictions__faq {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-expert-predictions__faq .page-expert-predictions__section-title {
  color: var(--text-dark);
}

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

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

.page-expert-predictions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: var(--secondary-color);
  color: var(--text-dark);
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

.page-expert-predictions__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--text-dark);
}

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

.page-expert-predictions__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  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;
  color: var(--text-dark);
}

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

.page-expert-predictions__faq-answer p {
  margin: 0;
  color: var(--text-dark);
}

.page-expert-predictions__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Expert Advice Section */
.page-expert-predictions__expert-advice {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-expert-predictions__advice-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-expert-predictions__advice-image {
  flex: 1;
  min-width: 400px;
  border-radius: 10px;
  object-fit: cover;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-expert-predictions__advice-list {
  flex: 1;
  min-width: 400px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-expert-predictions__advice-list li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-expert-predictions__advice-list li:last-child {
  margin-bottom: 0;
}

.page-expert-predictions__advice-list h3 {
  color: var(--secondary-color);
}

.page-expert-predictions__advice-list p {
  color: var(--text-light);
}

/* Image and Video Global Responsive Styles */
.page-expert-predictions img,
.page-expert-predictions video {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

.page-expert-predictions__methodology-image,
.page-expert-predictions__how-to-use-image,
.page-expert-predictions__factor-image,
.page-expert-predictions__advice-image {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-expert-predictions__hero-title {
    font-size: 3em;
  }
  .page-expert-predictions__section-title {
    font-size: 2em;
  }
  .page-expert-predictions__methodology-image,
  .page-expert-predictions__methodology-list,
  .page-expert-predictions__how-to-use-image,
  .page-expert-predictions__how-to-use-list,
  .page-expert-predictions__advice-image,
  .page-expert-predictions__advice-list {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-expert-predictions__hero-section {
    height: 70vh;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-expert-predictions__hero-title {
    font-size: 2.2em;
  }
  .page-expert-predictions__hero-description {
    font-size: 1em;
  }
  .page-expert-predictions__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-expert-predictions__btn-primary,
  .page-expert-predictions__btn-secondary,
  .page-expert-predictions a[class*="button"],
  .page-expert-predictions 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-expert-predictions__cta-buttons,
  .page-expert-predictions__button-group,
  .page-expert-predictions__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-expert-predictions__cta-buttons {
    flex-direction: column;
  }

  .page-expert-predictions__section {
    padding: 40px 0;
  }
  .page-expert-predictions__section-title {
    font-size: 1.8em;
  }
  .page-expert-predictions__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-expert-predictions__features-grid,
  .page-expert-predictions__factors-grid {
    grid-template-columns: 1fr;
  }
  .page-expert-predictions__methodology-content,
  .page-expert-predictions__how-to-use-content,
  .page-expert-predictions__advice-grid {
    flex-direction: column;
    gap: 30px;
  }
  .page-expert-predictions__methodology-image,
  .page-expert-predictions__how-to-use-image,
  .page-expert-predictions__advice-image {
    width: 100%;
    height: auto;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* Mobile image and video specific overrides */
  .page-expert-predictions img,
  .page-expert-predictions video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-expert-predictions__section,
  .page-expert-predictions__card,
  .page-expert-predictions__container,
  .page-expert-predictions__video-section,
  .page-expert-predictions__video-container,
  .page-expert-predictions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-expert-predictions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-expert-predictions__methodology-list li,
  .page-expert-predictions__how-to-use-list li,
  .page-expert-predictions__advice-list li {
    padding: 15px;
  }
  .page-expert-predictions__faq-question,
  .page-expert-predictions__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-expert-predictions__faq-item.active .page-expert-predictions__faq-answer {
    padding: 15px 15px;
  }
}