/* style/expert-interviews.css */

/* Variables and base styles from shared.css are assumed */

.page-expert-interviews {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared.css or default to white */
}

/* --- Section Styling --- */
.page-expert-interviews__section {
  padding: 60px 20px;
  text-align: center;
}

.page-expert-interviews__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-expert-interviews__dark-bg {
  background-color: #26A9E0; /* Primary brand color */
  color: #FFFFFF; /* White text for dark background */
}

/* Adjust text color for specific elements within dark-bg if needed */
.page-expert-interviews__dark-bg .page-expert-interviews__section-description,
.page-expert-interviews__dark-bg .page-expert-interviews__sub-title,
.page-expert-interviews__dark-bg p {
  color: #FFFFFF;
}

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

/* --- Hero Content Section (First Section with H1) --- */
.page-expert-interviews__hero-content-section {
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #e0f2f7, #ffffff); /* Light gradient for intro */
  text-align: center;
  position: relative;
  z-index: 1; /* Ensure it's above other elements if any */
}

.page-expert-interviews__main-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for main title */
  line-height: 1.2;
}

.page-expert-interviews__intro-paragraph {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

/* --- General Headings --- */
.page-expert-interviews__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: inherit; /* Inherit from section background */
}

.page-expert-interviews__section-description {
  font-size: 17px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit; /* Inherit from section background */
}

.page-expert-interviews__sub-title {
  font-size: 24px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit; /* Inherit from section background */
}

/* --- CTA Buttons --- */
.page-expert-interviews__cta-wrapper {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-expert-interviews__btn-primary,
.page-expert-interviews__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsive behavior */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-expert-interviews__btn-primary {
  background-color: #26A9E0; /* Primary brand color */
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-expert-interviews__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-expert-interviews__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-expert-interviews__btn-secondary:hover {
  background-color: #f0f8ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- Content Grids --- */
.page-expert-interviews__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-expert-interviews__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-expert-interviews__text-block {
  flex: 1;
}

.page-expert-interviews__image-block {
  flex: 1;
  min-width: 200px; /* Minimum size for content images */
}

.page-expert-interviews__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px; /* Enforce minimum image size */
}

/* --- Feature Grid (Cards) --- */
.page-expert-interviews__feature-grid,
.page-expert-interviews__mistakes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-expert-interviews__card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #333333; /* Ensure text is dark on light card */
}

.page-expert-interviews__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for card titles */
}

.page-expert-interviews__card img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px; /* Enforce minimum image size */
}

.page-expert-interviews__card p {
  font-size: 16px;
  color: #555555;
}

/* --- FAQ Section --- */
.page-expert-interviews__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-expert-interviews__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-expert-interviews__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-expert-interviews__faq-item.active .page-expert-interviews__faq-answer {
  max-height: 2000px !important; /* Use !important and sufficiently large value */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-expert-interviews__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-expert-interviews__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-expert-interviews__faq-question:active {
  background: #eeeeee;
}

.page-expert-interviews__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #333333; /* Ensure dark text on light background */
}

.page-expert-interviews__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-expert-interviews__faq-item.active .page-expert-interviews__faq-toggle {
  color: #333;
  transform: rotate(45deg); /* Plus to X effect */
}

.page-expert-interviews__faq-answer p a {
    color: #26A9E0; /* Brand color for links in FAQ answer */
    text-decoration: underline;
}

/* --- Keyword Highlighting --- */
.page-expert-interviews__keyword {
  font-weight: bold;
  color: #26A9E0; /* Highlight keywords with brand color */
}

/* --- Final CTA Section --- */
.page-expert-interviews__cta-final {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #FFFFFF;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-expert-interviews__main-title {
    font-size: 38px;
  }
  .page-expert-interviews__section-title {
    font-size: 32px;
  }
  .page-expert-interviews__sub-title {
    font-size: 22px;
  }
}

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

  .page-expert-interviews__hero-content-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-expert-interviews__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-expert-interviews__intro-paragraph {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-expert-interviews__section {
    padding: 40px 15px;
  }

  .page-expert-interviews__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-expert-interviews__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-expert-interviews__sub-title {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  /* Image and Content Grids */
  .page-expert-interviews__content-grid,
  .page-expert-interviews__content-grid--reverse {
    flex-direction: column;
    gap: 30px;
  }

  .page-expert-interviews__image-block {
    order: -1; /* Image appears above text on mobile for default grid */
  }
  .page-expert-interviews__content-grid--reverse .page-expert-interviews__image-block {
    order: 0; /* Image appears below text for reversed grid on mobile */
  }
  
  .page-expert-interviews__image-block img,
  .page-expert-interviews__card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Ensure min size on mobile */
    min-height: 200px !important; /* Ensure min size on mobile */
  }

  /* Card Layout */
  .page-expert-interviews__feature-grid,
  .page-expert-interviews__mistakes-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-expert-interviews__card {
    padding: 25px;
  }

  .page-expert-interviews__card-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  /* CTA Buttons */
  .page-expert-interviews__cta-wrapper {
    flex-direction: column;
    gap: 15px;
  }

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

  /* FAQ */
  .page-expert-interviews__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-expert-interviews__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-expert-interviews__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-expert-interviews__faq-answer {
    padding: 0 15px;
  }
  
  .page-expert-interviews__faq-item.active .page-expert-interviews__faq-answer {
    padding: 15px !important;
  }
}

/* Ensure all content containers are responsive */
.page-expert-interviews__container,
.page-expert-interviews__content-grid,
.page-expert-interviews__feature-grid,
.page-expert-interviews__mistakes-grid,
.page-expert-interviews__card,
.page-expert-interviews__text-block,
.page-expert-interviews__image-block,
.page-expert-interviews__faq-list,
.page-expert-interviews__faq-item {
    box-sizing: border-box;
}

/* Image CSS rules for min-size and no filter */
.page-expert-interviews img {
  filter: none; /* Absolutely no filter allowed */
}

/* Content area image minimum size enforcement for all selectors within .page-expert-interviews */
.page-expert-interviews img:not([class*="logo"]):not([class*="icon"]):not([class*="social"]) {
  min-width: 200px;
  min-height: 200px;
}

@media (max-width: 768px) {
  .page-expert-interviews__section,
  .page-expert-interviews__card,
  .page-expert-interviews__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}