/* style/expert-analysis.css */
.page-expert-analysis {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensure body is dark */
}

.page-expert-analysis__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  min-height: 500px;
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(135deg, #017439, #004d2a);
  color: #ffffff;
  overflow: hidden;
}

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

.page-expert-analysis__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Register/Login font color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

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

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

.page-expert-analysis__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
  overflow: hidden;
}

.page-expert-analysis__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%); /* Allowed to add stylistic filters that don't change color */
}

.page-expert-analysis__content-section {
  padding: 60px 20px;
}

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

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

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

.page-expert-analysis__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  color: #017439; /* Brand color for titles on light background */
}

.page-expert-analysis__dark-bg .page-expert-analysis__section-title {
  color: #FFFF00; /* Yellow for titles on dark background */
}

.page-expert-analysis__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-expert-analysis__highlight {
  font-weight: bold;
  color: #017439; /* Brand green for highlights on light background */
}

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

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

.page-expert-analysis__grid-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly visible card on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-expert-analysis__grid-item-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow for card titles on dark background */
  font-weight: bold;
}

.page-expert-analysis__image-card {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

.page-expert-analysis__feature-card {
  background-color: #017439; /* Brand green for feature cards */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-expert-analysis__feature-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow for titles on brand green background */
  font-weight: bold;
}

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

.page-expert-analysis__strategy-item {
  background-color: #f8f8f8;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.page-expert-analysis__strategy-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #017439; /* Brand green for titles on light background */
  font-weight: bold;
}

.page-expert-analysis__faq-section {
  padding: 60px 20px;
}

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

.page-expert-analysis__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-expert-analysis__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFF00; /* Yellow for FAQ questions */
  transition: background-color 0.3s ease;
}

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

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

.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;
  color: #f0f0f0;
}

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

.page-expert-analysis__cta-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #017439; /* Brand green for CTA section */
  color: #ffffff;
}

.page-expert-analysis__cta-section .page-expert-analysis__section-title {
  color: #FFFF00; /* Yellow for titles on brand green background */
}

.page-expert-analysis__cta-section .page-expert-analysis__text-block {
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-expert-analysis__btn-primary,
.page-expert-analysis__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  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;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-expert-analysis__btn-primary {
  background-color: #C30808; /* Register/Login red */
  color: #FFFF00; /* Register/Login font yellow */
  border: 2px solid #C30808;
}

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

.page-expert-analysis__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font yellow */
  border: 2px solid #FFFF00;
}

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

.page-expert-analysis__large-btn {
  min-width: 220px;
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Links within text */
.page-expert-analysis a {
  color: #FFFF00; /* Yellow for links within text */
  text-decoration: underline;
}

.page-expert-analysis a:hover {
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-expert-analysis__hero-title {
    font-size: 2.8em;
  }
  .page-expert-analysis__section-title {
    font-size: 2em;
  }
  .page-expert-analysis__grid-item-title,
  .page-expert-analysis__feature-title,
  .page-expert-analysis__strategy-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-expert-analysis {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-expert-analysis__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing on mobile */
    min-height: 400px;
  }
  .page-expert-analysis__hero-title {
    font-size: 2.2em;
  }
  .page-expert-analysis__hero-description {
    font-size: 1em;
  }
  .page-expert-analysis__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-expert-analysis__btn-primary,
  .page-expert-analysis__btn-secondary {
    width: 100%;
    max-width: 300px; /* Constrain max width for buttons */
    margin: 0 auto;
    display: block;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-expert-analysis__large-btn {
    min-width: unset;
  }
  .page-expert-analysis__section-title {
    font-size: 1.8em;
  }
  .page-expert-analysis__grid-container,
  .page-expert-analysis__feature-grid,
  .page-expert-analysis__strategy-grid {
    grid-template-columns: 1fr;
  }
  .page-expert-analysis__image-card {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-expert-analysis__content-section,
  .page-expert-analysis__faq-section,
  .page-expert-analysis__cta-section {
    padding: 40px 15px;
  }
  .page-expert-analysis__container {
    padding: 0;
  }
  .page-expert-analysis__faq-question {
    padding: 15px 20px;
    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;
  }
  /* Ensuring all images and containers are responsive */
  .page-expert-analysis img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-expert-analysis__section,
  .page-expert-analysis__card,
  .page-expert-analysis__container,
  .page-expert-analysis__hero-cta-buttons,
  .page-expert-analysis__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
}