/* ======================= */
/*  BASE / ELEMENTS        */
/* ======================= */
:root {
  --faq-border: #e7e7e9;
  --faq-bg: #ffffff;
  --faq-bar: #f9fafb;
  --ink: #1a1a1a;
  --muted: #6b7280;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: #1a1a1a;
  background: #ffffff;
}

/* ======================= */
/*  HERO (black)           */
/* ======================= */
.faq-hero {
  background-color: #1b1b1b;
  color: #ffffff;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.faq-hero-inner {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.faq-hero .breadcrumbs {
  color: var(--green);
  margin: 0;
}

.faq-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-align: center;
  margin: 0;
}

.faq-hero .hero-sub {
  color: #e5e7eb;
  font-size: 1rem;
  text-align: center;
  margin: 0;
}

/* ======================= */
/*  PAGE WRAPPER           */
/* ======================= */
.faq-page {
  background-color: #f7f7f7;
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.faq-container {
  width: 50%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ======================= */
/*  FILTER                 */
/* ======================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.faq-filter {
  position: sticky;
  top: 12px;
  z-index: 2;
  background: transparent;
  padding-bottom: 0.25rem;
  width: 100%;
}

.faq-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  border: 1px solid var(--faq-border);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0.75rem;
  width: 100%;
}

.faq-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.12), 0 8px 18px rgba(0, 0, 0, 0.06);
}

.faq-search-icon {
  display: inline-grid;
  place-items: center;
  color: #6b7280;
  width: 20px;
  height: 20px;
  margin-left: 0.25rem;
}

.faq-search input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: 0.98rem;
  color: #0f172a;
  padding: 0.5rem 0.25rem;
}

.faq-search input[type="search"]::placeholder {
  color: #9aa3af;
}

.faq-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.faq-clear {
  margin-left: auto;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  line-height: 26px;
  text-align: center;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.faq-clear:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
  .faq-filter {
    top: 8px;
  }
  .faq-search {
    border-radius: 10px;
  }
  .faq-search input[type="search"] {
    font-size: 1rem;
  }
}

/* ======================= */
/*  LIST / ITEMS           */
/* ======================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--faq-bg);
  border: 1px solid var(--faq-border);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* ======================= */
/*  QUESTION HEADINGS      */
/* ======================= */
.faq-heading {
  margin: 0;
}

/* ======================= */
/*  QUESTION BAR           */
/* ======================= */
.faq-bar {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 24px;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--faq-bar);
  border: 0;
  text-align: left;
  cursor: pointer;
}

.faq-bar:focus-visible {
  outline: 3px solid rgba(0, 128, 255, 0.35);
  outline-offset: 2px;
  border-radius: 12px;
}

.faq-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.faq-meta {
  justify-self: start;
  font-size: 12px;
  color: #425466;
  background: #eef2f7;
  border: 1px solid #dee5ee;
  padding: 4px 10px;
  border-radius: 999px;
}

.faq-icon {
  justify-self: end;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0f172a;
  transition: transform 0.2s ease;
}

.faq-bar[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

/* ======================= */
/*  ANSWER PANEL           */
/* ======================= */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height 0.32s cubic-bezier(0.22, 0.9, 0.22, 1), padding 0.24s ease;
  background-color: #ffffff;
}

.faq-answer.open {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.faq-answer p {
  font-family: "Inter", sans-serif;
  font-size: 16.5px;
  line-height: 1.8;
  color: #1a1a1a;
  margin-top: 0;
  margin-bottom: 1rem;
}

.faq-answer ul {
  padding-left: 1.2rem;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

.faq-answer li {
  font-family: "Inter", sans-serif;
  font-size: 16.5px;
  line-height: 1.8;
  color: #1a1a1a;
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.faq-answer li::marker {
  color: #b3b9c4;
}

.faq-answer a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.faq-answer code {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 0 6px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 90%;
  color: #0f172a;
}

.faq-item.open .faq-answer > * {
  animation: faqPop 0.32s cubic-bezier(0.22, 0.9, 0.22, 1);
}

@keyframes faqPop {
  0% {
    transform: translateY(-6px);
  }
  0% {
    opacity: 0.4;
  }
  70% {
    transform: translateY(2px);
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translateY(0);
  }
}

/* ======================= */
/*  HELPFULNESS WIDGET     */
/* ======================= */
.faq-help {
  border-top: 1px solid #eef0f2;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.faq-help .help-prompt {
  font-size: 14px;
  color: #374151;
  margin: 0;
}

.help-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.help-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.help-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.help-btn img {
  width: 18px;
  height: 18px;
  display: block;
}

.help-btn .count {
  font-size: 13px;
  color: #374151;
  min-width: 1ch;
}

.help-btn.up.selected {
  border-color: var(--green);
  background: rgba(35, 206, 107, 0.08);
}

.help-btn.down.selected {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

/* ======================= */
/*  ABOUT + REVIEW         */
/* ======================= */
.about-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 12px;
  width: 50%;
}

.about-author .author-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--blue);
}

.about-author .author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-author .author-details h3 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem 0;
  color: var(--blue);
  font-weight: 700;
  text-align: center;
}

.about-author .author-details p {
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  margin: 0 0 1rem 0;
  color: #333333;
}

.about-author .author-cta {
  display: inline-block;
  color: var(--blue);
  font-weight: 600;
  text-align: center;
  width: 100%;
  text-decoration: underline;
  text-underline-offset: 5px;
  transition: color 0.2s ease-in-out;
}

.about-author .author-cta:hover {
  color: var(--green);
}


.promo-review {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin: 5rem auto;
  max-width: 960px;
  width: 50%;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  padding: 3rem 2rem;
}

.promo-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.promo-text {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 60px;
}

.promo-text h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0;
}

.promo-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444444;
  margin: 0;
}

.btn.btn-review {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  background-color: var(--blue);
  color: #ffffff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn.btn-review:hover {
  background-color: var(--green);
  color: #000000;
}

.promo-image {
  flex: 1 1 30%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.resume-mock {
  width: 216px;
  height: 312px;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 6px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: rotate(-5deg);
  transition: transform 0.4s ease;
}

.resume-mock:hover {
  transform: rotate(-3deg) scale(1.02);
}

.resume-mock img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ======================= */
/*  RESPONSIVE             */
/* ======================= */
@media (max-width: 1024px) {
  .faq-hero-inner {
    width: 70%;
  }
  .faq-container {
    width: 70%;
  }
  .about-author {
    width: 70%;
  }
  .promo-review {
    width: 70%;
  }
}

@media (max-width: 768px) {
  .faq-hero-inner {
    width: 90%;
  }
  .faq-container {
    width: 95%;
  }
  .faq-bar {
    grid-template-columns: 1fr 24px;
  }
  .faq-bar {
    row-gap: 0.4rem;
  }
  .faq-meta {
    grid-column: 1 / -1;
  }
  .faq-meta {
    justify-self: start;
  }
  .faq-answer {
    padding-left: 1rem;
  }
  .faq-answer {
    padding-right: 1rem;
  }
  .faq-help {
    flex-direction: column;
  }
  .faq-help {
    align-items: flex-start;
  }
  .faq-help {
    gap: 0.6rem;
  }
  .about-author {
    width: 100%;
  }
  .about-author {
    padding: 1.5rem;
  }
  .promo-review {
    width: 100%;
  }
  .promo-review {
    flex-direction: column-reverse;
  }
  .promo-text {
    padding-right: 0;
  }
  .promo-text {
    align-items: center;
  }
  .promo-text {
    text-align: center;
  }
  .promo-image {
    justify-content: center;
  }
  .resume-mock {
    transform: rotate(-3deg);
  }
}

/* ======================= */
/* Submit a Question       */
/* ======================= */

#submit-question {
  scroll-margin-top: 100px;
}

.faq-submit {
  width: 100%;
}

.faq-submit-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  border: 1px solid var(--faq-border);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0.5rem 0.5rem 0.75rem;
  width: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.faq-submit-inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.faq-submit-inner:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.12), 0 8px 18px rgba(0, 0, 0, 0.06);
}

.faq-submit-icon {
  display: inline-grid;
  place-items: center;
  color: #6b7280;
  width: 20px;
  height: 20px;
  margin-left: 0.25rem;
  flex: 0 0 auto;
}

.faq-submit-input {
  border: 0;
  outline: 0;
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: 0.98rem;
  color: #0f172a;
  padding: 0.6rem 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
}

.faq-submit-input::placeholder {
  color: #9aa3af;
}

.faq-submit-btn {
  flex: 0 0 auto;
  padding: 0.65rem 1rem;
  background-color: var(--blue);
  color: #ffffff;
  border: 0;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.faq-submit-btn:hover {
  background-color: var(--green);
  color: #000000;
  transform: translateY(-1px);
}

.faq-submit-msg {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #374151;
}

/* ======================= */
/*  FIX: hidden button text */
/* ======================= */
.faq-heading > .faq-bar {
  color: #0f172a !important;
  font-size: 1rem;
  line-height: 1.35;
  -webkit-text-fill-color: #0f172a;
}

.faq-heading > .faq-bar .faq-title {
  display: block;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a;
  text-indent: 0;
  opacity: 1;
  visibility: visible;
  white-space: normal;
  overflow: visible;
}

.faq-heading > .faq-bar.btn,
.faq-heading > .faq-bar.button {
  all: unset;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto 24px;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--faq-bar);
  border: 0;
  text-align: left;
  cursor: pointer;
  color: #0f172a;
}
