/* style/expert-predictions.css */

:root {
  --keo88-gold: #FFD700;
  --keo88-dark-red: #8B0000;
  --keo88-dark-bg: #121212;
  --keo88-light-text: #ffffff;
  --keo88-dark-text: #333333;
  --keo88-gray-border: #e0e0e0;
}

.page-expert-predictions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--keo88-light-text); /* Default text color for dark body background */
  background-color: var(--keo88-dark-bg); /* Ensure consistency with body background */
}

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

.page-expert-predictions__hero-section {
  position: relative;
  padding: 120px 0 60px; /* Adjusted padding to account for header offset, then add specific padding */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--keo88-light-text);
}

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

.page-expert-predictions__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--keo88-gold);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-expert-predictions__hero-description {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--keo88-light-text);
}

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

.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;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-expert-predictions__btn-primary {
  background-color: var(--keo88-gold);
  color: var(--keo88-dark-text);
  border: 2px solid var(--keo88-gold);
}

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

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

.page-expert-predictions__btn-secondary:hover {
  background-color: var(--keo88-gold);
  color: var(--keo88-dark-text);
}

.page-expert-predictions__section-title {
  font-size: 2.5em;
  color: var(--keo88-gold);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-expert-predictions__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--keo88-dark-red);
  border-radius: 2px;
}

.page-expert-predictions__introduction-section,
.page-expert-predictions__categories-section,
.page-expert-predictions__how-to-use-section,
.page-expert-predictions__faq-section,
.page-expert-predictions__cta-final-section {
  padding: 80px 0;
}

.page-expert-predictions__why-trust-section,
.page-expert-predictions__benefits-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
}

.page-expert-predictions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--keo88-light-text);
  text-align: justify;
}

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

.page-expert-predictions__feature-card,
.page-expert-predictions__category-card,
.page-expert-predictions__benefit-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--keo88-light-text);
}

.page-expert-predictions__feature-card:hover,
.page-expert-predictions__category-card:hover,
.page-expert-predictions__benefit-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-expert-predictions__feature-image,
.page-expert-predictions__category-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure images are block elements for proper sizing */
}

.page-expert-predictions__card-title {
  font-size: 1.6em;
  color: var(--keo88-gold);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-expert-predictions__card-link {
  color: var(--keo88-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-expert-predictions__card-link:hover {
  color: var(--keo88-dark-red);
}

.page-expert-predictions__card-text {
  font-size: 1em;
  color: var(--keo88-light-text);
  flex-grow: 1;
}

.page-expert-predictions__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-expert-predictions__list-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px 25px;
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: var(--keo88-light-text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-expert-predictions__list-item strong {
  color: var(--keo88-gold);
}

.page-expert-predictions__benefit-title {
  font-size: 1.8em;
  color: var(--keo88-gold);
  margin-bottom: 10px;
}

.page-expert-predictions__benefit-text {
  font-size: 1em;
  color: var(--keo88-light-text);
}

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

.page-expert-predictions__cta-final-section {
  background-color: var(--keo88-dark-red);
  text-align: center;
  color: var(--keo88-light-text);
  padding: 100px 0;
}

.page-expert-predictions__cta-final-section .page-expert-predictions__section-title {
  color: var(--keo88-gold);
}

.page-expert-predictions__cta-final-section .page-expert-predictions__section-title::after {
  background-color: var(--keo88-gold);
}

.page-expert-predictions__faq-list {
  margin-top: 40px;
}

.page-expert-predictions__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-expert-predictions__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-expert-predictions__faq-title {
  margin: 0;
  color: inherit;
}

.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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--keo88-light-text);
}

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

/* Ensure images within content sections are responsive and meet min size */
.page-expert-predictions img {
  max-width: 100%;
  height: auto;
  display: block; /* Ensure images are block elements */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-expert-predictions__hero-title {
    font-size: 3em;
  }
  .page-expert-predictions__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-expert-predictions__hero-section {
    padding: calc(var(--header-offset, 120px) + 40px) 0 40px; /* Apply header offset */
  }
  .page-expert-predictions__hero-title {
    font-size: 2.5em;
  }
  .page-expert-predictions__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-expert-predictions__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-expert-predictions__btn-primary,
  .page-expert-predictions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-expert-predictions__container {
    padding: 0 15px;
  }
  .page-expert-predictions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-expert-predictions__introduction-section,
  .page-expert-predictions__categories-section,
  .page-expert-predictions__how-to-use-section,
  .page-expert-predictions__faq-section,
  .page-expert-predictions__cta-final-section,
  .page-expert-predictions__why-trust-section,
  .page-expert-predictions__benefits-section {
    padding: 50px 0;
  }
  .page-expert-predictions__features-grid,
  .page-expert-predictions__category-grid,
  .page-expert-predictions__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-expert-predictions__feature-card,
  .page-expert-predictions__category-card,
  .page-expert-predictions__benefit-item {
    padding: 20px;
  }
  .page-expert-predictions__feature-image,
  .page-expert-predictions__category-image {
    height: 200px;
  }
  .page-expert-predictions__card-title {
    font-size: 1.4em;
  }
  .page-expert-predictions__list-item {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-expert-predictions__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-expert-predictions__faq-answer {
    padding: 0 20px;
  }
  .page-expert-predictions__faq-item.active .page-expert-predictions__faq-answer {
    padding: 10px 20px 20px;
  }

  /* Mobile image, video, button specific overrides */
  .page-expert-predictions img {
    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__cta-group,
  .page-expert-predictions__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-expert-predictions__cta-group {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-expert-predictions__hero-title {
    font-size: 2em;
  }
  .page-expert-predictions__section-title {
    font-size: 1.5em;
  }
  .page-expert-predictions__text-block {
    font-size: 0.95em;
  }
}