/* style/expert-analysis.css */
.page-expert-analysis {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--secondary-color); /* Matches body background */
}

.page-expert-analysis__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-expert-analysis__hero-section {
  position: relative;
  padding: 120px 0 60px; /* Adjust padding-top to account for fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 600px;
}

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

.page-expert-analysis__hero-section .page-expert-analysis__container {
  position: relative;
  z-index: 1;
  color: #ffffff;
  max-width: 800px;
}

.page-expert-analysis__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-expert-analysis__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

.page-expert-analysis__btn-primary,
.page-expert-analysis__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;
  box-sizing: border-box;
  text-align: center;
}

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

.page-expert-analysis__btn-primary:hover {
  background-color: #025c2d;
  border-color: #025c2d;
}

.page-expert-analysis__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-expert-analysis__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-expert-analysis__btn-register {
  background-color: #C30808; /* Custom color for register */
  border-color: #C30808;
  color: #FFFFFF; /* Forced white for contrast */
}

.page-expert-analysis__btn-register:hover {
  background-color: #9c0606;
  border-color: #9c0606;
}

.page-expert-analysis__btn-download {
  background-color: #017439; /* Default primary color */
  border-color: #017439;
  color: #FFFFFF;
}

.page-expert-analysis__btn-download:hover {
  background-color: #025c2d;
  border-color: #025c2d;
}

.page-expert-analysis__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-expert-analysis__dark-section .page-expert-analysis__section-title {
  color: #ffffff;
}

.page-expert-analysis__dark-section .page-expert-analysis__section-title::after {
  background-color: #ffffff;
}

.page-expert-analysis__content-area,
.page-expert-analysis__methodology-section,
.page-expert-analysis__tips-section,
.page-expert-analysis__video-section,
.page-expert-analysis__other-games-section,
.page-expert-analysis__responsible-gaming-section,
.page-expert-analysis__faq-section,
.page-expert-analysis__cta-bottom-section {
  padding: 80px 0;
}

.page-expert-analysis__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-expert-analysis__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-expert-analysis__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-expert-analysis__dark-bg .page-expert-analysis__paragraph {
  color: #f0f0f0;
}

.page-expert-analysis__highlight {
  font-weight: bold;
  color: #017439; /* Use brand color for highlights */
}

.page-expert-analysis__dark-bg .page-expert-analysis__highlight {
  color: #FFFF00; /* Yellow for highlights on dark background for visibility */
}

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

.page-expert-analysis__grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-expert-analysis__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-expert-analysis__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-expert-analysis__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-expert-analysis__card-title {
  font-size: 1.4em;
  color: #017439;
  padding: 20px 20px 10px;
  margin: 0;
}

.page-expert-analysis__card-title a {
  color: #017439;
  text-decoration: none;
}

.page-expert-analysis__card-title a:hover {
  text-decoration: underline;
}

.page-expert-analysis__card-description {
  font-size: 0.95em;
  padding: 0 20px 20px;
  margin: 0;
  color: #555555;
}

.page-expert-analysis__list {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-expert-analysis__list-item {
  font-size: 1.1em;
  margin-bottom: 10px;
  padding-left: 10px;
}

.page-expert-analysis__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-expert-analysis__video-section .page-expert-analysis__container {
  text-align: center;
}

.page-expert-analysis__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-expert-analysis__video-wrapper .page-expert-analysis__video,
.page-expert-analysis__video-wrapper .page-expert-analysis__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.page-expert-analysis__video-link {
  cursor: pointer;
  z-index: 2; /* Ensure link is clickable over video */
}

.page-expert-analysis__video {
  max-width: 100%;
  height: auto;
  display: block;
  z-index: 1;
}

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

.page-expert-analysis__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-expert-analysis__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #f9f9f9;
  cursor: pointer;
  font-weight: bold;
  color: #017439;
  transition: background-color 0.3s ease;
}

.page-expert-analysis__faq-question:hover {
  background-color: #f0f0f0;
}

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

.page-expert-analysis__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #017439;
}

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

.page-expert-analysis__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
  color: #333333;
}

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

.page-expert-analysis__cta-bottom-section .page-expert-analysis__container {
  text-align: center;
  color: #ffffff;
}

.page-expert-analysis__cta-bottom-section .page-expert-analysis__paragraph {
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-expert-analysis__hero-title {
    font-size: 3em;
  }
  .page-expert-analysis__hero-description {
    font-size: 1.2em;
  }
  .page-expert-analysis__section-title {
    font-size: 2em;
  }
}

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

  .page-expert-analysis__hero-section {
    padding: var(--header-offset, 120px) 0 40px;
    min-height: 450px;
  }

  .page-expert-analysis__hero-title {
    font-size: 2.2em;
  }

  .page-expert-analysis__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-expert-analysis__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-expert-analysis__btn-primary,
  .page-expert-analysis__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-expert-analysis__section-title {
    font-size: 1.8em;
  }

  .page-expert-analysis__content-area,
  .page-expert-analysis__methodology-section,
  .page-expert-analysis__tips-section,
  .page-expert-analysis__video-section,
  .page-expert-analysis__other-games-section,
  .page-expert-analysis__responsible-gaming-section,
  .page-expert-analysis__faq-section,
  .page-expert-analysis__cta-bottom-section {
    padding: 40px 0;
  }

  .page-expert-analysis__container {
    padding: 0 15px;
  }

  .page-expert-analysis__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-expert-analysis__card-image {
    height: 200px;
  }

  .page-expert-analysis__image-full-width {
    border-radius: 5px;
    margin-bottom: 30px;
  }

  .page-expert-analysis__video-wrapper {
    margin: 30px auto;
    border-radius: 5px;
  }

  .page-expert-analysis img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-expert-analysis__section,
  .page-expert-analysis__card,
  .page-expert-analysis__container,
  .page-expert-analysis__video-section,
  .page-expert-analysis__video-container,
  .page-expert-analysis__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  .page-expert-analysis__faq-question {
    padding: 15px 20px;
  }

  .page-expert-analysis__faq-title {
    font-size: 1.1em;
  }

  .page-expert-analysis__faq-answer {
    padding: 0 20px;
  }

  .page-expert-analysis__faq-item.active .page-expert-analysis__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-expert-analysis__hero-title {
    font-size: 1.8em;
  }
  .page-expert-analysis__section-title {
    font-size: 1.5em;
  }
  .page-expert-analysis__paragraph,
  .page-expert-analysis__list-item {
    font-size: 0.95em;
  }
  .page-expert-analysis__card-title {
    font-size: 1.2em;
  }
}