
    /* --- HERO --- */
    .hc-hero {
      width: 100%;
      min-height: 320px;
      background: var(--brand-blue-hero);
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: #fff;
      position: relative;
      padding: 30px 20px;
    }

    .hc-hero::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 0, 0.05) 0%, transparent 50%);
      pointer-events: none;
    }

    .hc-hero-inner {
      max-width: 900px;
      width: 100%;
      padding: 20px;
      position: relative;
      z-index: 2;
      margin-top: -20px;
    }

    /* LOGO CONTAINER NEUTRO */
    .hc-logo-container {
      width: 120px;
      height: 120px;
      margin: 0 auto 20px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .hc-logo-container img {
      width: 80px;
      height: 80px;
      object-fit: contain;
    }

    .hc-title {
      font-family: "Dosis", sans-serif;
      font-size: clamp(2.3rem, 4.5vw, 3.2rem);
      font-weight: 700;
      margin-bottom: 8px;
      color: var(--brand-yellow);
      line-height: 1.2;
    }

    .hc-title span {
      font-weight: 600;
      color: #ffffff;
      font-size: clamp(1.6rem, 3.5vw, 2.2rem);
      display: block;
      margin-top: 5px;
    }

    .hc-subtitle {
      font-family: "DM Sans", system-ui, sans-serif;
      font-size: clamp(1rem, 1.8vw, 1.2rem);
      margin-bottom: 20px;
      color: rgba(255, 255, 255, 0.9);
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
    }

    /* SEARCH BAR */
    .hc-search-form {
      display: flex;
      justify-content: center;
      margin: 0 auto;
      max-width: 600px;
      background: #fff;
      border-radius: 50px;
      overflow: hidden;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
      border: 2px solid var(--brand-yellow);
      margin-top: 15px;
    }

    .hc-search-form input {
      flex: 1;
      padding: 16px 24px;
      font-size: 16px;
      border: none;
      outline: none;
      font-family: "DM Sans", system-ui, sans-serif;
      color: var(--ink-900);
    }

    .hc-search-form input::placeholder {
      color: var(--ink-700);
      opacity: 0.7;
    }

    .hc-search-form button {
      width: 60px;
      border: none;
      background: var(--brand-yellow);
      color: var(--brand-blue-hero);
      cursor: pointer;
      font-size: 20px;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .hc-search-form button:hover {
      background: #fdfd6b;
    }

    /* --- TOPICS --- */
    .hc-topics {
      padding: 80px 40px;
      max-width: 1200px;
      margin: 0 auto;
      background: var(--bg-light);
    }

    .hc-topics h2 {
      text-align: center;
      font-family: "Dosis", sans-serif;
      font-size: clamp(1.8rem, 3vw, 2.2rem);
      font-weight: 600;
      margin-bottom: 50px;
      color: var(--brand-blue);
    }

    /* GRID */
    .hc-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
    }

    /* CARDS */
    .hc-card {
      background: #fff;
      border-radius: var(--radius);
      padding: 30px;
      box-shadow: var(--shadow);
      border-top: 4px solid var(--brand-yellow);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      height: 100%;
      display: flex;
      flex-direction: column;
    }

    .hc-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    }

    .hc-card-icon {
      font-size: 36px;
      margin-bottom: 20px;
      width: 60px;
      height: 60px;
      background: rgba(50, 58, 204, 0.08);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--brand-blue);
    }

    .hc-card h3 {
      font-family: "Dosis", sans-serif;
      font-size: 1.4rem;
      margin-bottom: 20px;
      color: var(--brand-blue);
      font-weight: 600;
      line-height: 1.3;
    }

    .hc-card ul {
      list-style: none;
      padding: 0;
      margin: 0;
      flex: 1;
    }

    .hc-card li {
      margin: 12px 0;
      padding: 0;
      position: relative;
      padding-left: 0;
    }

    .hc-card li:before {
      content: "→";
      color: #FFAA00;
      font-weight: bold;
      margin-right: 10px;
    }

    .hc-card a {
      color: var(--ink-700);
      font-size: 15px;
      text-decoration: none;
      transition: all 0.2s ease;
      font-family: "DM Sans", system-ui, sans-serif;
      display: inline-block;
      line-height: 1.4;
    }

    .hc-card a:hover {
      color: var(--brand-blue);
      text-decoration: underline;
      transform: translateX(3px);
    }

    /* --- SEARCH RESULTS POPUP --- */
    /* CORREÇÃO: O pop-up só aparece quando não está hidden */
    #hc-search-results[hidden] {
      display: none !important;
    }

    #hc-search-results:not([hidden]) {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.7);
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      box-sizing: border-box;
      /* CORREÇÃO CRÍTICA: Previne rolagem na página de fundo */
      overflow: hidden;
    }

    /* CORREÇÃO CRÍTICA: Quando o pop-up está aberto, bloqueia rolagem no body/html */
    body.hc-popup-open,
    html.hc-popup-open {
      overflow: hidden !important;
      height: 100% !important;
      position: fixed !important;
      width: 100% !important;
    }

    #hc-search-results .hc-search-results-inner {
      background: #fff;
      max-width: 800px;
      width: 100%;
      max-height: 80vh;
      /* Altura máxima de 80% da tela */
      border-radius: 20px;
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
      position: relative;
      display: flex;
      flex-direction: column;
      border: 1px solid black;
      overflow: hidden;
      /* Mantém o container externo sem rolagem */
    }


    /* Container de conteúdo dos resultados */
    #hc-search-results .hc-search-results-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      padding: 0;
    }

    /* Título dos resultados */
    #hc-search-results .hc-search-results-title {
      font-family: "Dosis", sans-serif;
      font-size: 1.4rem;
      font-weight: 600;
      color: var(--brand-blue);
      margin: 0 0 15px 0;
      padding: 25px 30px 0 30px;
      flex-shrink: 0;
    }

    /* Lista de resultados com rolagem - CORRIGIDA (sem barra horizontal) */
    #hc-search-results-list {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      /* ADICIONE ESTA LINHA - remove barra horizontal */
      padding: 0 30px 25px 30px;
      margin: 0;
      list-style: none;
      width: 100%;
      box-sizing: border-box;
      /* IMPEDE que padding aumente a largura */
    }

    /* Garante que nenhum elemento interno cause overflow horizontal */
    #hc-search-results .hc-search-results-content,
    #hc-search-results .hc-search-results-inner,
    #hc-search-results {
      overflow-x: hidden !important;
    }

    /* Item individual de resultado - MAIS ESPAÇO */
    #hc-search-results li {
      margin-bottom: 20px;
      background: #fff;
      border-radius: 12px;
      padding: 22px;
      border-left: 4px solid var(--brand-blue);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      transition: all 0.2s ease;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      word-wrap: break-word;
      overflow-wrap: break-word;
    }

    #hc-search-results li:hover {
      transform: translateX(5px);
      box-shadow: 0 8px 20px rgba(50, 58, 204, 0.15);
      border-left-color: var(--brand-yellow);
    }

    /* Links dos resultados */
    #hc-search-results li a {
      font-family: "Dosis", sans-serif;
      font-size: 1.15rem;
      font-weight: 600;
      color: var(--brand-blue);
      text-decoration: none;
      display: block;
      margin-bottom: 10px;
      line-height: 1.3;
      max-width: 100%;
      word-wrap: break-word;
      overflow-wrap: break-word;
    }

    #hc-search-results li a:hover {
      color: var(--brand-blue-hero);
      text-decoration: underline;
    }

    /* Descrição/trecho do resultado */
    #hc-search-results li p {
      font-family: "DM Sans", system-ui, sans-serif;
      font-size: 0.95rem;
      color: var(--ink-700);
      margin: 10px 0 0 0;
      line-height: 1.5;
      max-width: 100%;
      word-wrap: break-word;
      overflow-wrap: break-word;

    }

    /* Botão de fechar - POSIÇÃO CORRIGIDA */
    #hc-search-results .hc-search-close {
      position: absolute;
      top: 22px;
      right: 22px;
      width: 42px;
      height: 42px;
      background: var(--brand-yellow);
      color: var(--brand-blue-hero);
      border: none;
      border-radius: 50%;
      font-size: 24px;
      font-weight: bold;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      z-index: 100;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    #hc-search-results .hc-search-close:hover {
      background: #FFC233;
      transform: scale(1.1);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }

    /* Barra de rolagem personalizada */
    #hc-search-results-list::-webkit-scrollbar {
      width: 10px;
    }

    #hc-search-results-list::-webkit-scrollbar-track {
      background: rgba(247, 248, 255, 0.8);
      border-radius: 5px;
      margin: 5px 0;
    }

    #hc-search-results-list::-webkit-scrollbar-thumb {
      background: var(--brand-blue);
      border-radius: 5px;
      border: 2px solid rgba(247, 248, 255, 0.8);
    }

    #hc-search-results-list::-webkit-scrollbar-thumb:hover {
      background: var(--brand-blue-hero);
    }

    /* Para Firefox */
    #hc-search-results-list {
      scrollbar-width: thin;
      scrollbar-color: var(--brand-blue) rgba(247, 248, 255, 0.8);
    }

    /* Mensagem quando não há resultados - AJUSTADA */
    #hc-search-results .hc-no-results {
      text-align: center;
      padding: 40px 20px;
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    #hc-search-results .hc-no-results h4 {
      font-family: "Dosis", sans-serif;
      font-size: 1.3rem;
      color: var(--ink-900);
      margin-bottom: 12px;
    }

    #hc-search-results .hc-no-results p {
      font-family: "DM Sans", system-ui, sans-serif;
      color: var(--ink-700);
      max-width: 500px;
      margin: 0 auto;
    }


    /* Cabeçalho do popup */
    #hc-search-results .hc-search-results-header {
      background: var(--brand-blue-hero);
      padding: 20px 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 3px solid var(--brand-yellow);
      /* Borda  */
      flex-shrink: 0;
      /* Impede que o cabeçalho encolha */
    }

    #hc-search-results .hc-search-results-header h3 {
      font-family: "Dosis", sans-serif;
      font-size: 1.5rem;
      margin: 0;
      color: var(--brand-yellow);
      font-weight: 600;
    }

    /* Contador de resultados */
    #hc-search-results .hc-search-count {
      background: var(--brand-yellow);
      color: var(--brand-blue-hero);
      padding: 6px 14px;
      border-radius: 20px;
      font-family: "DM Sans", sans-serif;
      font-weight: 700;
      font-size: 0.9rem;
    }

    /* Botão de fechar */
    #hc-search-results .hc-search-close {
      position: absolute;
      top: 18px;
      right: 20px;
      width: 40px;
      height: 40px;
      background: var(--brand-yellow);
      color: var(--brand-blue-hero);
      border: none;
      border-radius: 50%;
      font-size: 24px;
      font-weight: bold;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      z-index: 10;
      flex-shrink: 0;
    }

    #hc-search-results .hc-search-close:hover {
      background: var(--brand-yellow);
      transform: scale(1.1);
    }



    /* Lista de resultados */
    #hc-search-results ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    /* Itens da lista */
    #hc-search-results li {
      margin-bottom: 16px;
      background: #fff;
      border-radius: var(--radius);
      padding: 18px;
      border-left: 4px solid var(--brand-blue);
      box-shadow: var(--shadow);
      transition: all 0.2s ease;
    }

    #hc-search-results li:hover {
      transform: translateX(5px);
      box-shadow: 0 8px 20px rgba(50, 58, 204, 0.15);
      border-left-color: var(--brand-yellow);

    }

    /* Links dos resultados */
    #hc-search-results li a {
      font-family: "Dosis", sans-serif;
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--brand-blue);
      text-decoration: none;
      display: block;
      margin-bottom: 8px;
      line-height: 1.3;
    }

    #hc-search-results li a:hover {
      color: var(--brand-blue-hero);
      text-decoration: underline;
    }

    /* Descrição/trecho do resultado */
    #hc-search-results li p {
      font-family: "DM Sans", system-ui, sans-serif;
      font-size: 0.95rem;
      color: var(--ink-700);
      margin: 8px 0 0;
      line-height: 1.5;
    }

    /* Categoria/breadcrumb do resultado */
    #hc-search-results li .hc-result-category {
      display: inline-block;
      background: rgba(50, 58, 204, 0.1);
      color: var(--brand-blue);
      font-size: 0.8rem;
      padding: 4px 10px;
      border-radius: 12px;
      margin-bottom: 8px;
      font-family: "DM Sans", sans-serif;
      font-weight: 600;
    }

    /* Mensagem quando não há resultados */
    #hc-search-results .hc-no-results {
      text-align: center;
      padding: 40px 20px;
    }

    #hc-search-results .hc-no-results h4 {
      font-family: "Dosis", sans-serif;
      font-size: 1.3rem;
      color: var(--ink-900);
      margin-bottom: 12px;
    }

    #hc-search-results .hc-no-results p {
      font-family: "DM Sans", system-ui, sans-serif;
      color: var(--ink-700);
      max-width: 500px;
      margin: 0 auto;
    }

    /* Barra de rolagem personalizada DENTRO do pop-up */
    #hc-search-results .hc-search-results-content::-webkit-scrollbar {
      width: 10px;
    }

    #hc-search-results .hc-search-results-content::-webkit-scrollbar-track {
      background: rgba(247, 248, 255, 0.8);
      border-radius: 5px;
      margin: 5px 0;
    }

    #hc-search-results .hc-search-results-content::-webkit-scrollbar-thumb {
      background: var(--brand-blue);
      border-radius: 5px;
      border: 2px solid rgba(247, 248, 255, 0.8);
    }

    #hc-search-results .hc-search-results-content::-webkit-scrollbar-thumb:hover {
      background: var(--brand-blue-hero);
    }

    /* Para Firefox - rolagem DENTRO do pop-up */
    #hc-search-results .hc-search-results-content {
      scrollbar-width: thin;
      scrollbar-color: var(--brand-blue) rgba(247, 248, 255, 0.8);
    }



    /* CORREÇÃO FINAL - Remove qualquer barra de rolagem horizontal */
    #hc-search-results * {
      max-width: 100%;
    }

    #hc-search-results li a,
    #hc-search-results li p {
      overflow: hidden;
    }

    /* --- RESPONSIVIDADE --- */
    @media (max-width: 768px) {
      .hc-hero {
        min-height: 280px;
        padding: 25px 20px;
      }

      .hc-hero-inner {
        margin-top: -15px;
      }

      .hc-logo-container {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
      }

      .hc-logo-container img {
        width: 70px;
        height: 70px;
      }

      .hc-title {
        font-size: clamp(2rem, 4vw, 2.8rem);
      }

      .hc-title span {
        font-size: clamp(1.4rem, 3vw, 1.9rem);
      }

      .hc-search-form {
        margin-top: 10px;
      }

      .hc-topics {
        padding: 60px 20px;
      }

      .hc-grid {
        grid-template-columns: 1fr;
        gap: 25px;
      }

      .hc-card {
        padding: 25px;
      }

      /* Responsividade do popup */
      #hc-search-results:not([hidden]) {
        padding: 10px;
      }

      #hc-search-results .hc-search-results-inner {
        max-height: 90vh;
        border-radius: 16px;
      }

      #hc-search-results .hc-search-results-header {
        padding: 16px 20px;
      }

      #hc-search-results .hc-search-results-header h3 {
        font-size: 1.3rem;
      }

      #hc-search-results .hc-search-close {
        top: 14px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 20px;
      }

      #hc-search-results .hc-search-results-content {
        padding: 16px 20px;
      }

      #hc-search-results li {
        padding: 14px;
      }
    }

    @media (max-width: 480px) {
      .hc-hero {
        min-height: 250px;
        padding: 20px 15px;
      }

      .hc-hero-inner {
        margin-top: -10px;
      }

      .hc-logo-container {
        width: 90px;
        height: 90px;
        margin-bottom: 12px;
      }

      .hc-logo-container img {
        width: 60px;
        height: 60px;
      }

      .hc-search-form {
        border-radius: 25px;
      }

      .hc-search-form input {
        padding: 14px 20px;
      }

      .hc-topics {
        padding: 50px 15px;
      }

      .hc-card h3 {
        font-size: 1.2rem;
      }

      /* Responsividade do popup para mobile pequeno */
      #hc-search-results .hc-search-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
      }

      #hc-search-results .hc-search-count {
        align-self: flex-start;
      }
    }

    /* CORREÇÃO PARA HEADER FIXO NO MOBILE */
    /* Aumente o z-index do pop-up para ficar acima do header */
    #hc-search-results:not([hidden]) {
      z-index: 99999;
      /* Valor muito alto para garantir */
    }

    /* Garantir que o pop-up comece abaixo do header */
    #hc-search-results .hc-search-results-inner {
      margin-top: 20px;
      /* Espaço extra no topo no mobile */
    }

    /* Ajuste específico para mobile */
    @media (max-width: 768px) {
      #hc-search-results:not([hidden]) {
        padding-top: 80px;
        /* Espaço para o header */
        align-items: flex-start;
        /* Alinha no topo */
      }

      #hc-search-results .hc-search-results-inner {
        margin-top: 0;
        max-height: calc(90vh - 80px);
        /* Ajusta altura considerando o header */
      }

      /* Aumentar o top do botão de fechar no mobile */
      #hc-search-results .hc-search-close {
        top: 30px;
        /* Aumentado de 14px para 30px */
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 22px;
        background: var(--brand-yellow);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        /* Sombra mais forte para destaque */
      }
    }

    /* Para telas muito pequenas */
    @media (max-width: 480px) {
      #hc-search-results:not([hidden]) {
        padding-top: 70px;
      }

      #hc-search-results .hc-search-close {
        top: 25px;
        right: 15px;
        width: 38px;
        height: 38px;
      }
    }
