/* ==========================
   Layout & Typography
========================== */
.page-wrapper {
  background: linear-gradient(
    180deg,
    #f8fafc 0%,
    #ffffff 40%,
    #ffffff 100%
  );
}

.portfolio-help {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  line-height: 1.6;
}

.help-intro {
  margin-bottom: 30px;
}

.help-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}

.help-description {
  color: #555;
  font-size: 15px;
}

/* ==========================
   Table of contents
   ====================== */
   .help-index {
  margin: 20px 0 30px;
}

.help-index-toggle {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  color: #083C71;
}

.help-index-list {
  list-style: none;
  padding: 12px 0 0;
  margin: 0;
  display: none;
}

.help-index.is-open .help-index-list {
  display: block;
}

.help-index-list li {
  margin-bottom: 6px;
}

.help-index-list a {
  font-size: 14px;
  color: #296CA5;
  text-decoration: none;
}

.help-index-list a:hover {
  text-decoration: underline;
}

.help-section {
  margin-top: 60px;
  margin-bottom: 60px;
}

.help-section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 22px;
  padding-bottom: 10px;
  color: #0f172a;
  border-bottom: 1px solid #e5e7eb;
  letter-spacing: -0.2px;
}

/* highlight when navigated via index */
.help-section:target .help-section-title {
  color: #296CA5;
  border-bottom-color: rgba(41, 108, 165, 0.4);
}


/* ==========================
   Modern Search Bar (Astra-safe)
========================== */

.portfolio-help .help-search-input[type="search"] {
  width: 100%;
  max-width: 520px;
  padding: 14px 18px 14px 48px;
  font-size: 15px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cline x1='13' y1='13' x2='17' y2='17'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 18px center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  margin-bottom: 20px;
}

.portfolio-help .help-search-input::placeholder {
  color: #9ca3af;
}

.portfolio-help .help-search-input:focus {
  outline: none;
  border-color: #296CA5;
  background-color: #fff;
  box-shadow: 0 12px 36px rgba(41, 108, 165, 0.25);
}

/* ==========================
   Modern Help Items
========================== */

.help-item {    
  padding: 20px 0;
  border-bottom: 1px solid #f0f2f5;
  transition: background 0.2s ease;
}

.help-item:last-child {
  border-bottom: none;
}

.help-question {
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}

.help-item:hover .help-question {
  color: #296CA5;
}

.help-item.is-open .help-question::after {
  content: "−";
}

/* ==========================
   Answers
========================== */

.help-answer {
    display: none;
  margin-top: 14px;
  color: #475569;
  font-size: 14.5px;
  max-width: 720px;
}

.help-item.is-open .help-answer {
  display: block;
}

.help-answer p {
  margin-bottom: 10px;
}

/* Example & Note styling */

.help-example {
  margin-top: 12px;
  background: linear-gradient(90deg, #f8fafc, #ffffff);
  border-left: 3px solid #296CA5;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13.5px;
}

.help-note {
  margin-top: 8px;
  font-size: 13px;
  color: #64748b;
}

.help-example-label {
  font-weight: 600;
  color: #296CA5;
}

/* ==========================
   No Results Message
========================== */

.help-no-results {
  margin-top: 20px;
  padding: 12px 14px;
  background: #fff5f5;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 6px;
  font-size: 14px;
}

/* ==========================
   Mobile tweaks
========================== */

@media (max-width: 600px) {
  .help-title {
    font-size: 22px;
  }

  .help-question {
    font-size: 15px;
  }
}

.page-wrapper .mv-title {
  font-size: 28px;
  margin-bottom: 14px;
  color: #0f172a;
}

.page-wrapper .mv-heading {
  font-size: 20px;
  margin-top: 36px;
  margin-bottom: 8px;
  color: #111827;
}

.page-wrapper .mv-text {
  margin: 10px 0;
  line-height: 1.65;
  color: #374151;
}

.page-wrapper .mv-list,
.page-wrapper .mv-sublist {
  margin-left: 22px;
}

.page-wrapper .mv-list li,
.page-wrapper .mv-sublist li {
  margin-bottom: 6px;
  color: #374151;
}

.page-wrapper .mv-note {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.08),
    rgba(37, 99, 235, 0.03)
  );
  border-left: 4px solid #2563eb;
  padding: 14px 18px;
  margin: 24px 0;
  border-radius: 8px;
  color: #1f2937;
}
