/* =========================
   BBPRESS / FORUM
   ========================= */

/* ---------- BASE / ASTRA CLEANUP ---------- */

body.post-type-archive-forum,
body.single-forum,
body.single-topic,
body.single-reply {
  color: #FFFFFF;
}

body.post-type-archive-forum .site-main,
body.single-forum .site-main,
body.single-topic .site-main,
body.single-reply .site-main {
  color: #FFFFFF;
}

body.post-type-archive-forum.ast-separate-container .ast-article-post,
body.single-forum.ast-separate-container .ast-article-single,
body.single-topic.ast-separate-container .ast-article-single,
body.single-reply.ast-separate-container .ast-article-single {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.post-type-archive-forum.ast-separate-container #primary,
body.single-forum.ast-separate-container #primary,
body.single-topic.ast-separate-container #primary,
body.single-reply.ast-separate-container #primary {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.post-type-archive-forum .ast-container,
body.single-forum .ast-container,
body.single-topic .ast-container,
body.single-reply .ast-container {
  max-width: 1280px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

body.post-type-archive-forum .entry-header,
body.single-forum .entry-header,
body.single-topic .entry-header,
body.single-reply .entry-header {
  margin-bottom: 24px;
}

body.post-type-archive-forum .entry-title,
body.single-forum .entry-title,
body.single-topic .entry-title,
body.single-reply .entry-title {
  margin: 0 0 12px !important;
  font-family: "Urbanist", sans-serif !important;
  font-size: 56px !important;
  line-height: 1.02 !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
  color: #FFFFFF !important;
}

body.post-type-archive-forum .entry-meta,
body.single-forum .entry-meta,
body.single-topic .entry-meta,
body.single-reply .entry-meta {
  color: #C5D2DF !important;
  font-size: 14px !important;
}

body.post-type-archive-forum .entry-meta a,
body.single-forum .entry-meta a,
body.single-topic .entry-meta a,
body.single-reply .entry-meta a {
  color: #7DB7EC !important;
  text-decoration: none !important;
}

body.post-type-archive-forum .post-navigation,
body.single-forum .post-navigation,
body.single-topic .post-navigation,
body.single-reply .post-navigation {
  display: none !important;
}

/* ---------- WRAPPER ---------- */

body.post-type-archive-forum #bbpress-forums,
body.single-forum #bbpress-forums,
body.single-topic #bbpress-forums,
body.single-reply #bbpress-forums {
  color: #FFFFFF;
  font-family: "Roboto", sans-serif;
}

/* ---------- ESCONDER PESQUISA ---------- */

body.post-type-archive-forum .bbp-search-form,
body.single-forum .bbp-search-form,
body.single-topic .bbp-search-form,
body.single-reply .bbp-search-form {
  display: none !important;
}

/* ---------- BREADCRUMB + TOP ACTIONS ---------- */

body.post-type-archive-forum .bbp-breadcrumb,
body.single-forum .bbp-breadcrumb,
body.single-topic .bbp-breadcrumb,
body.single-reply .bbp-breadcrumb {
  margin-bottom: 18px !important;
}

body.post-type-archive-forum .bbp-breadcrumb p,
body.single-forum .bbp-breadcrumb p,
body.single-topic .bbp-breadcrumb p,
body.single-reply .bbp-breadcrumb p {
  margin: 0 !important;
  color: #C5D2DF !important;
  font-size: 14px !important;
}

body.post-type-archive-forum .bbp-breadcrumb a,
body.single-forum .bbp-breadcrumb a,
body.single-topic .bbp-breadcrumb a,
body.single-reply .bbp-breadcrumb a,
body.post-type-archive-forum .bbp-breadcrumb-current,
body.single-forum .bbp-breadcrumb-current,
body.single-topic .bbp-breadcrumb-current,
body.single-reply .bbp-breadcrumb-current {
  color: #C5D2DF !important;
  text-decoration: none !important;
}

body.single-forum #subscription-toggle,
body.single-topic #subscription-toggle,
body.single-topic #favorite-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

body.single-topic #subscription-toggle,
body.single-topic #favorite-toggle {
  margin-right: 10px;
}

body.single-forum #subscription-toggle a,
body.single-topic #subscription-toggle a,
body.single-topic #favorite-toggle a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px !important;
  border-radius: 999px !important;
  background: rgba(2, 116, 190, 0.14) !important;
  border: 1px solid rgba(2, 116, 190, 0.22) !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  transition: background 0.25s ease, border-color 0.25s ease !important;
}

body.single-forum #subscription-toggle a:hover,
body.single-topic #subscription-toggle a:hover,
body.single-topic #favorite-toggle a:hover {
  background: rgba(2, 116, 190, 0.22) !important;
  border-color: rgba(2, 116, 190, 0.36) !important;
}

/* ---------- NOTICES ---------- */

body.post-type-archive-forum .bbp-template-notice,
body.single-forum .bbp-template-notice,
body.single-topic .bbp-template-notice,
body.single-reply .bbp-template-notice {
  margin: 0 0 18px !important;
  padding: 14px 16px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(197, 210, 223, 0.08) !important;
}

body.post-type-archive-forum .bbp-template-notice ul,
body.single-forum .bbp-template-notice ul,
body.single-topic .bbp-template-notice ul,
body.single-reply .bbp-template-notice ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.post-type-archive-forum .bbp-template-notice li,
body.single-forum .bbp-template-notice li,
body.single-topic .bbp-template-notice li,
body.single-reply .bbp-template-notice li {
  color: #C5D2DF !important;
  font-size: 14px !important;
}

/* ---------- PAGINATION ---------- */

body.post-type-archive-forum .bbp-pagination,
body.single-forum .bbp-pagination,
body.single-topic .bbp-pagination,
body.single-reply .bbp-pagination {
  margin: 18px 0 !important;
  color: #C5D2DF !important;
  font-size: 14px !important;
}

body.post-type-archive-forum .bbp-pagination-count,
body.single-forum .bbp-pagination-count,
body.single-topic .bbp-pagination-count,
body.single-reply .bbp-pagination-count {
  color: #C5D2DF !important;
}

/* ---------- TABLE / LIST WRAPPERS ---------- */

body.post-type-archive-forum ul.bbp-forums,
body.single-forum ul.bbp-topics,
body.single-topic ul.bbp-replies {
  background: linear-gradient(180deg, #0C111D 0%, #07132F 100%) !important;
  border: 1px solid rgba(2, 116, 190, 0.20) !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
  margin: 0 0 18px !important;
}

body.post-type-archive-forum .bbp-header,
body.post-type-archive-forum .bbp-footer,
body.single-forum .bbp-header,
body.single-forum .bbp-footer,
body.single-topic .bbp-header,
body.single-topic .bbp-footer {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 0 !important;
}

body.post-type-archive-forum .bbp-header li,
body.post-type-archive-forum .bbp-footer li,
body.single-forum .bbp-header li,
body.single-forum .bbp-footer li,
body.single-topic .bbp-header div,
body.single-topic .bbp-footer div {
  color: #FFFFFF !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

body.post-type-archive-forum .bbp-body,
body.single-forum .bbp-body,
body.single-topic .bbp-body {
  border: 0 !important;
}

body.post-type-archive-forum .bbp-body > li,
body.single-forum .bbp-body > li,
body.single-topic .bbp-body > li {
  border-top: 1px solid rgba(197, 210, 223, 0.08) !important;
}

/* ---------- INDEX DE FÓRUNS ---------- */

body.post-type-archive-forum .bbp-forum-title {
  font-family: "Urbanist", sans-serif !important;
  font-size: 40px !important;
  line-height: 1.08 !important;
  font-weight: 500 !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

body.post-type-archive-forum .bbp-forum-info,
body.post-type-archive-forum .bbp-forum-topic-count,
body.post-type-archive-forum .bbp-forum-reply-count,
body.post-type-archive-forum .bbp-forum-freshness {
  color: #DCE6F0 !important;
}

body.post-type-archive-forum .ld-bbpress-desc-link,
body.post-type-archive-forum .ld-bbpress-desc-link small,
body.post-type-archive-forum .ld-bbpress-desc-link strong {
  color: #C5D2DF !important;
}

body.post-type-archive-forum .ld-bbpress-desc-link a {
  color: #7DB7EC !important;
  text-decoration: none !important;
}

/* ---------- PÁGINA DE FÓRUM / LISTA DE TÓPICOS ---------- */

body.single-forum .bbp-topic-permalink {
  font-family: "Urbanist", sans-serif !important;
  font-size: 28px !important;
  line-height: 1.1 !important;
  font-weight: 500 !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

body.single-forum .bbp-topic-meta,
body.single-forum .bbp-topic-meta a,
body.single-forum .bbp-topic-freshness a,
body.single-forum .bbp-topic-freshness-author,
body.single-forum .bbp-topic-freshness-author a,
body.single-forum .bbp-topic-voice-count,
body.single-forum .bbp-topic-reply-count {
  color: #C5D2DF !important;
  text-decoration: none !important;
}

/* ---------- PÁGINA DE TÓPICO ---------- */

/* meta topo do post */
body.single-topic .bbp-reply-header {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 0 12px !important;
}

body.single-topic .bbp-reply-header .bbp-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(2, 116, 190, 0.16) !important;
  border-radius: 14px !important;
  color: #C5D2DF !important;
  font-size: 13px !important;
}

/* links de admin/moderação */
body.single-topic .bbp-admin-links,
body.single-topic .bbp-admin-links a {
  color: #7DB7EC !important;
  font-size: 12px !important;
  text-decoration: none !important;
}

body.single-topic .bbp-admin-links a:hover {
  color: #FFFFFF !important;
}

/* permalink # */
body.single-topic .bbp-reply-permalink {
  color: #7DB7EC !important;
  text-decoration: none !important;
}

body.single-topic .bbp-reply-author,
body.single-topic .bbp-reply-content {
  background: transparent !important;
}

body.single-topic .bbp-author-name {
  color: #FFFFFF !important;
}

body.single-topic .bbp-author-role,
body.single-topic .bbp-author-ip,
body.single-topic .bbp-reply-post-date {
  color: #C5D2DF !important;
}

body.single-topic .bbp-author-avatar img {
  border-radius: 999px !important;
  border: 1px solid rgba(197, 210, 223, 0.14) !important;
}

body.single-topic .bbp-reply-content p {
  color: #FFFFFF !important;
  line-height: 1.8 !important;
}

/* ---------- FORMULÁRIOS ---------- */

body.single-forum .bbp-topic-form,
body.single-topic .bbp-reply-form {
  margin-top: 22px;
}

body.single-forum .bbp-form,
body.single-topic .bbp-form {
  background: linear-gradient(180deg, #0C111D 0%, #07132F 100%) !important;
  border: 1px solid rgba(2, 116, 190, 0.20) !important;
  border-radius: 22px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
  padding: 22px !important;
}

body.single-forum .bbp-form legend,
body.single-topic .bbp-form legend {
  font-family: "Urbanist", sans-serif !important;
  font-size: 26px !important;
  font-weight: 600 !important;
  color: #FFFFFF !important;
  padding: 0 0 18px !important;
}

body.single-forum .bbp-form label,
body.single-topic .bbp-form label {
  display: block;
  margin-bottom: 8px;
  color: #DCE6F0 !important;
  font-size: 14px !important;
}

body.single-forum .bbp-form input[type="text"],
body.single-forum .bbp-form select,
body.single-forum .bbp-form textarea,
body.single-topic .bbp-form input[type="text"],
body.single-topic .bbp-form select,
body.single-topic .bbp-form textarea {
  width: 100% !important;
  min-height: 52px;
  padding: 12px 16px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(197, 210, 223, 0.10) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}

body.single-forum .bbp-form textarea,
body.single-topic .bbp-form textarea {
  min-height: 220px;
  resize: vertical;
}

body.single-forum .bbp-form input[type="text"]::placeholder,
body.single-topic .bbp-form input[type="text"]::placeholder,
body.single-forum .bbp-form textarea::placeholder,
body.single-topic .bbp-form textarea::placeholder {
  color: #8FA5BC !important;
}

body.single-forum .bbp-submit-wrapper,
body.single-topic .bbp-submit-wrapper {
  margin-top: 18px;
}

body.single-forum .bbp-submit-wrapper .button,
body.single-topic .bbp-submit-wrapper .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 52px !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #0274BE !important;
  color: #FFFFFF !important;
  font-family: "Roboto", sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

body.single-forum .bbp-submit-wrapper .button:hover,
body.single-topic .bbp-submit-wrapper .button:hover {
  background: #0382D4 !important;
}

/* ---------- QUICKTAGS / EDITOR ---------- */

body.single-forum .bbp-the-content-wrapper,
body.single-topic .bbp-the-content-wrapper {
  margin-bottom: 18px;
}

body.single-forum .quicktags-toolbar,
body.single-topic .quicktags-toolbar,
body.single-forum .wp-editor-container,
body.single-topic .wp-editor-container {
  background: transparent !important;
  border: 0 !important;
}

body.single-forum .wp-editor-area,
body.single-topic .wp-editor-area {
  background: rgba(255, 255, 255, 0.03) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(197, 210, 223, 0.10) !important;
  border-radius: 14px !important;
  padding: 16px !important;
}

/* ---------- CHECKBOXES ---------- */

body.single-forum input[type="checkbox"],
body.single-topic input[type="checkbox"] {
  accent-color: #0274BE;
}

/* ---------- RESPONSIVO ---------- */

@media (max-width: 1024px) {
  body.post-type-archive-forum .entry-title,
  body.single-forum .entry-title,
  body.single-topic .entry-title,
  body.single-reply .entry-title {
    font-size: 42px !important;
  }

  body.post-type-archive-forum .bbp-forum-title {
    font-size: 30px !important;
  }

  body.single-forum .bbp-topic-permalink {
    font-size: 24px !important;
  }
}

@media (max-width: 767px) {
  body.post-type-archive-forum .ast-container,
  body.single-forum .ast-container,
  body.single-topic .ast-container,
  body.single-reply .ast-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  body.post-type-archive-forum .entry-title,
  body.single-forum .entry-title,
  body.single-topic .entry-title,
  body.single-reply .entry-title {
    font-size: 34px !important;
  }

  body.post-type-archive-forum .bbp-forum-title {
    font-size: 24px !important;
  }

  body.single-forum .bbp-topic-permalink {
    font-size: 21px !important;
  }

  body.single-forum .bbp-form,
  body.single-topic .bbp-form {
    padding: 18px !important;
  }

  body.single-forum .bbp-form legend,
  body.single-topic .bbp-form legend {
    font-size: 22px !important;
  }
}


/* =========================================
   BBPRESS – PÁGINA DO TÓPICO
   visual mais moderno / estilo thread
   ========================================= */

/* ---------- wrapper ---------- */

body.single-topic #bbpress-forums {
  color: #FFFFFF;
}

/* ---------- topo ---------- */

body.single-topic .entry-header {
  margin-bottom: 20px !important;
}

body.single-topic .entry-title {
  margin-bottom: 10px !important;
}

body.single-topic .entry-meta {
  margin-bottom: 0 !important;
}

/* breadcrumb + favoritos/subscrever */
body.single-topic .bbp-breadcrumb {
  margin-bottom: 20px !important;
}

body.single-topic .bbp-breadcrumb p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 !important;
  color: #8FA5BC !important;
  font-size: 14px !important;
}

body.single-topic .bbp-breadcrumb a,
body.single-topic .bbp-breadcrumb-current {
  color: #C5D2DF !important;
  text-decoration: none !important;
}

body.single-topic #favorite-toggle,
body.single-topic #subscription-toggle {
  display: inline-flex !important;
  align-items: center;
  margin: 0 0 20px 0 !important;
}

body.single-topic #favorite-toggle {
  margin-right: 10px !important;
}

body.single-topic #favorite-toggle a,
body.single-topic #subscription-toggle a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px !important;
  border-radius: 999px !important;
  background: rgba(2, 116, 190, 0.10) !important;
  border: 1px solid rgba(2, 116, 190, 0.22) !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  font-size: 14px !important;
  transition: background 0.25s ease, border-color 0.25s ease !important;
}

body.single-topic #favorite-toggle a:hover,
body.single-topic #subscription-toggle a:hover {
  background: rgba(2, 116, 190, 0.18) !important;
  border-color: rgba(2, 116, 190, 0.34) !important;
}

/* ---------- notices ---------- */

body.single-topic .bbp-template-notice.info {
  margin-bottom: 18px !important;
}

/* ---------- pagination ---------- */

body.single-topic .bbp-pagination {
  margin: 14px 0 18px !important;
}

body.single-topic .bbp-pagination-count {
  color: #8FA5BC !important;
  font-size: 14px !important;
}

/* ---------- tabela do tópico ---------- */

body.single-topic ul.bbp-replies {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  overflow: visible !important;
}

body.single-topic ul.bbp-replies > .bbp-header,
body.single-topic ul.bbp-replies > .bbp-footer {
  display: none !important;
}

body.single-topic ul.bbp-replies > .bbp-body {
  border: 0 !important;
}

body.single-topic ul.bbp-replies > .bbp-body > li {
  border: 0 !important;
}

/* ---------- meta strip acima do post ---------- */

body.single-topic .bbp-reply-header {
  margin: 0 0 10px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

body.single-topic .bbp-reply-header .bbp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 16px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(197, 210, 223, 0.08) !important;
  border-radius: 14px !important;
  color: #8FA5BC !important;
  font-size: 13px !important;
}

body.single-topic .bbp-reply-post-date {
  color: #8FA5BC !important;
}

body.single-topic .bbp-reply-permalink {
  color: #7DB7EC !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

body.single-topic .bbp-admin-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #7DB7EC !important;
}

body.single-topic .bbp-admin-links a {
  color: #7DB7EC !important;
  text-decoration: none !important;
  font-size: 12px !important;
  opacity: 0.92;
}

body.single-topic .bbp-admin-links a:hover {
  color: #FFFFFF !important;
  opacity: 1;
}

/* ---------- card principal da thread ---------- */

body.single-topic .bbp-body > .topic,
body.single-topic .bbp-body > .reply {
  display: grid !important;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0 !important;
  background: linear-gradient(180deg, #0C111D 0%, #07132F 100%) !important;
  border: 1px solid rgba(2, 116, 190, 0.20) !important;
  border-radius: 22px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
  overflow: hidden !important;
  margin-bottom: 22px !important;
}

/* ---------- coluna autor ---------- */

body.single-topic .bbp-reply-author {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 26px 20px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border-right: 1px solid rgba(197, 210, 223, 0.08) !important;
  text-align: center !important;
}

body.single-topic .bbp-author-avatar {
  display: block;
  margin-bottom: 14px !important;
}

body.single-topic .bbp-author-avatar img {
  width: 88px !important;
  height: 88px !important;
  border-radius: 999px !important;
  border: 2px solid rgba(197, 210, 223, 0.12) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
}

body.single-topic .bbp-author-name {
  display: block !important;
  margin-bottom: 8px !important;
  font-family: "Urbanist", sans-serif !important;
  font-size: 22px !important;
  line-height: 1.1 !important;
  font-weight: 600 !important;
  color: #FFFFFF !important;
}

body.single-topic .bbp-author-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(2, 116, 190, 0.12);
  border: 1px solid rgba(2, 116, 190, 0.20);
  color: #C5D2DF !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  margin-bottom: 10px !important;
}

body.single-topic .bbp-reply-ip {
  margin-top: 10px !important;
}

body.single-topic .bbp-author-ip {
  color: #7E93A8 !important;
  font-size: 12px !important;
}

/* ---------- conteúdo ---------- */

body.single-topic .bbp-reply-content {
  margin-left: 0 !important;
  padding: 28px 30px !important;
  background: transparent !important;
}

body.single-topic .bbp-reply-content p:first-child {
  margin-top: 0 !important;
}

body.single-topic .bbp-reply-content p:last-child {
  margin-bottom: 0 !important;
}

body.single-topic .bbp-reply-content p,
body.single-topic .bbp-reply-content li {
  font-family: "Roboto", sans-serif !important;
  font-size: 17px !important;
  line-height: 1.8 !important;
  color: #DCE6F0 !important;
}

body.single-topic .bbp-reply-content h1,
body.single-topic .bbp-reply-content h2,
body.single-topic .bbp-reply-content h3,
body.single-topic .bbp-reply-content h4 {
  font-family: "Urbanist", sans-serif !important;
  color: #FFFFFF !important;
}

/* ---------- resposta ---------- */

body.single-topic .bbp-reply-form {
  margin-top: 28px !important;
}

body.single-topic .bbp-reply-form .bbp-form {
  padding: 24px !important;
}

body.single-topic .bbp-reply-form legend {
  font-family: "Urbanist", sans-serif !important;
  font-size: 34px !important;
  line-height: 1.05 !important;
  font-weight: 600 !important;
  color: #FFFFFF !important;
  padding-bottom: 18px !important;
}

body.single-topic .bbp-reply-form .bbp-template-notice {
  margin-bottom: 18px !important;
}

body.single-topic .bbp-reply-form label {
  margin-bottom: 8px !important;
  color: #C5D2DF !important;
  font-size: 14px !important;
}

body.single-topic .bbp-reply-form input[type="text"],
body.single-topic .bbp-reply-form textarea {
  width: 100% !important;
  border-radius: 14px !important;
  border: 1px solid rgba(197, 210, 223, 0.10) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}

body.single-topic .bbp-reply-form textarea {
  min-height: 220px !important;
}

/* ---------- quicktags / toolbar ---------- */

body.single-topic .bbp-the-content-wrapper {
  margin-bottom: 18px !important;
}

body.single-topic .quicktags-toolbar {
  background: transparent !important;
  border: 0 !important;
  margin-bottom: 8px !important;
}

body.single-topic .quicktags-toolbar input.button.button-small {
  min-height: 36px !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(197, 210, 223, 0.08) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: #C5D2DF !important;
  box-shadow: none !important;
}

body.single-topic .quicktags-toolbar input.button.button-small:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #FFFFFF !important;
}

/* ---------- botão enviar ---------- */

body.single-topic .bbp-submit-wrapper {
  margin-top: 20px !important;
}

body.single-topic .bbp-submit-wrapper .button.submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 52px !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #0274BE !important;
  color: #FFFFFF !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  transition: background 0.25s ease !important;
}

body.single-topic .bbp-submit-wrapper .button.submit:hover {
  background: #0382D4 !important;
}

/* ---------- mobile ---------- */

@media (max-width: 1024px) {
  body.single-topic .bbp-body > .topic,
  body.single-topic .bbp-body > .reply {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  body.single-topic .bbp-author-name {
    font-size: 19px !important;
  }

  body.single-topic .bbp-reply-content p,
  body.single-topic .bbp-reply-content li {
    font-size: 16px !important;
  }
}

@media (max-width: 767px) {
  body.single-topic .bbp-reply-header .bbp-meta {
    padding: 10px 12px !important;
  }

  body.single-topic .bbp-body > .topic,
  body.single-topic .bbp-body > .reply {
    grid-template-columns: 1fr !important;
  }

  body.single-topic .bbp-reply-author {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(197, 210, 223, 0.08) !important;
    text-align: left !important;
    padding: 18px 18px 16px !important;
  }

  body.single-topic .bbp-author-link {
    display: flex !important;
    align-items: center;
    gap: 14px;
  }

  body.single-topic .bbp-author-avatar {
    margin: 0 !important;
  }

  body.single-topic .bbp-author-avatar img {
    width: 64px !important;
    height: 64px !important;
  }

  body.single-topic .bbp-author-name {
    margin-bottom: 4px !important;
    font-size: 18px !important;
  }

  body.single-topic .bbp-author-role {
    margin-bottom: 0 !important;
  }

  body.single-topic .bbp-reply-ip {
    display: none !important;
  }

  body.single-topic .bbp-reply-content {
    padding: 20px 18px !important;
  }

  body.single-topic .bbp-reply-form .bbp-form {
    padding: 18px !important;
  }

  body.single-topic .bbp-reply-form legend {
    font-size: 26px !important;
  }
}


/* esconder caixa informativa acima do tópico */
.single-topic #bbpress-forums .bbp-template-notice.info {
  display: none !important;
}

/* dar mais respiro à esquerda nas tabelas/listas */
.post-type-archive-forum #bbpress-forums ul.bbp-forums > .bbp-header,
.post-type-archive-forum #bbpress-forums ul.bbp-forums > .bbp-body > li,
.single-forum #bbpress-forums ul.bbp-topics > .bbp-header,
.single-forum #bbpress-forums ul.bbp-topics > .bbp-body > li {
  padding-left: 26px !important;
  padding-right: 26px !important;
}

/* respiro extra na coluna principal */
.post-type-archive-forum #bbpress-forums .bbp-forum-info,
.single-forum #bbpress-forums .bbp-topic-title {
  padding-left: 12px !important;
}

/* títulos menos colados à esquerda */
.post-type-archive-forum #bbpress-forums .bbp-forum-title,
.single-forum #bbpress-forums .bbp-topic-permalink {
  display: inline-block;
  margin-left: 0 !important;
}


/* esconder meta do header do tópico/fórum */
.single-forum article.forum .entry-meta,
.single-topic article.topic .entry-meta,
.post-type-archive-forum article.forum .entry-meta {
  display: none !important;
}

/* opcional: menos espaço no header depois de esconder */
.single-forum article.forum .entry-header,
.single-topic article.topic .entry-header {
  margin-bottom: 18px !important;
}


/* =========================================
   BBPRESS – TÓPICO / RESPOSTAS
   visual mais clean
   ========================================= */

/* menos espaço colado à esquerda no topo */
.single-topic .entry-header,
.single-topic #bbpress-forums,
.single-topic .bbp-breadcrumb,
.single-topic .bbp-pagination {
  padding-left: 8px;
  padding-right: 8px;
}

/* esconder meta do header do post */
.single-topic article.topic .entry-meta {
  display: none !important;
}

/* barras de info acima de cada resposta */
.single-topic .bbp-reply-header {
  margin: 18px 0 8px !important;
  padding: 10px 14px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(2, 116, 190, 0.16) !important;
  border-radius: 14px !important;
}

.single-topic .bbp-reply-header .bbp-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: center !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: #9FB0C3 !important;
}

.single-topic .bbp-reply-header a {
  color: #7DB7EC !important;
  text-decoration: none !important;
}

.single-topic .bbp-reply-header a:hover {
  color: #FFFFFF !important;
}

/* card principal de cada resposta */
.single-topic .bbp-body > .topic,
.single-topic .bbp-body > .reply {
  display: grid !important;
  grid-template-columns: 170px minmax(0, 1fr) !important;
  gap: 0 !important;
  margin: 0 0 18px !important;
  background: linear-gradient(180deg, #0C111D 0%, #07132F 100%) !important;
  border: 1px solid rgba(2, 116, 190, 0.18) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16) !important;
}

/* coluna autor */
.single-topic .bbp-reply-author {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 26px 18px !important;
  border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  text-align: center !important;
}

.single-topic .bbp-author-avatar img {
  width: 74px !important;
  height: 74px !important;
  border-radius: 999px !important;
  border: 2px solid rgba(125, 183, 236, 0.22) !important;
  object-fit: cover !important;
  margin-bottom: 10px !important;
}

.single-topic .bbp-author-name {
  display: block !important;
  margin-top: 6px !important;
  font-family: "Urbanist", sans-serif !important;
  font-size: 18px !important;
  line-height: 1.15 !important;
  font-weight: 600 !important;
  color: #FFFFFF !important;
}

.single-topic .bbp-author-role {
  margin-top: 8px !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  color: #7DB7EC !important;
  background: rgba(2, 116, 190, 0.10) !important;
  border: 1px solid rgba(2, 116, 190, 0.18) !important;
  border-radius: 999px !important;
  padding: 4px 10px !important;
  display: inline-block !important;
}

.single-topic .bbp-reply-ip {
  margin-top: 12px !important;
  font-size: 11px !important;
  color: rgba(197, 210, 223, 0.55) !important;
}

/* conteúdo */
.single-topic .bbp-reply-content {
  margin-left: 0 !important;
  padding: 26px 26px 28px !important;
  border-left: 0 !important;
  text-align: left !important;
}

.single-topic .bbp-reply-content p:last-child {
  margin-bottom: 0 !important;
}

.single-topic .bbp-reply-content,
.single-topic .bbp-reply-content p,
.single-topic .bbp-reply-content li {
  font-family: "Roboto", sans-serif !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
  color: #DCE6F0 !important;
}

/* header/footer da tabela antiga */
.single-topic .bbp-replies .bbp-header,
.single-topic .bbp-replies .bbp-footer {
  display: none !important;
}

/* paginação mais discreta */
.single-topic .bbp-pagination-count {
  font-size: 14px !important;
  color: #B7C6D8 !important;
}

/* formulário de resposta */
.single-topic .bbp-reply-form .bbp-form {
  background: linear-gradient(180deg, #0C111D 0%, #07132F 100%) !important;
  border: 1px solid rgba(2, 116, 190, 0.18) !important;
  border-radius: 22px !important;
  padding: 26px !important;
}

.single-topic .bbp-reply-form legend {
  font-family: "Urbanist", sans-serif !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #FFFFFF !important;
  padding: 0 !important;
  margin-bottom: 20px !important;
}

.single-topic .bbp-reply-form label {
  font-size: 13px !important;
  color: #C5D2DF !important;
}

.single-topic .bbp-reply-form input[type="text"],
.single-topic .bbp-reply-form textarea,
.single-topic .bbp-topic-form input[type="text"],
.single-topic .bbp-topic-form textarea {
  width: 100% !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(197, 210, 223, 0.10) !important;
  border-radius: 14px !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}

.single-topic .bbp-reply-form input[type="text"],
.single-topic .bbp-topic-form input[type="text"] {
  min-height: 46px !important;
  padding: 0 14px !important;
}

.single-topic .bbp-reply-form textarea,
.single-topic .bbp-topic-form textarea {
  min-height: 220px !important;
  padding: 14px !important;
}

.single-topic .bbp-submit-wrapper {
  margin-top: 18px !important;
}

.single-topic .bbp-submit-wrapper .button,
.single-topic button#bbp_reply_submit {
  min-height: 48px !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #0274BE !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}

.single-topic .bbp-submit-wrapper .button:hover,
.single-topic button#bbp_reply_submit:hover {
  background: #0382D4 !important;
}

/* checkboxes */
.single-topic input[type="checkbox"] {
  accent-color: #0274BE;
}

/* avisos */
.single-topic .bbp-template-notice {
  border-radius: 14px !important;
  padding: 12px 14px !important;
}

/* esconder IP para não-admin */
body:not(.role-administrator) .single-topic .bbp-reply-ip {
  display: none !important;
}

/* mobile */
@media (max-width: 767px) {
  .single-topic .bbp-body > .topic,
  .single-topic .bbp-body > .reply {
    grid-template-columns: 1fr !important;
  }

  .single-topic .bbp-reply-author {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    text-align: left !important;
    padding: 18px !important;
  }

  .single-topic .bbp-author-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .single-topic .bbp-author-avatar img {
    width: 52px !important;
    height: 52px !important;
    margin-bottom: 0 !important;
  }

  .single-topic .bbp-author-name {
    margin-top: 0 !important;
    font-size: 16px !important;
  }

  .single-topic .bbp-reply-content {
    padding: 20px !important;
  }

  .single-topic .bbp-reply-form .bbp-form {
    padding: 18px !important;
  }
}


/* esconder IP mesmo para ti no front, se preferires */
.single-topic .bbp-reply-ip {
  display: none !important;
}

/* admin links mais discretos */
.single-topic .bbp-admin-links {
  opacity: 0.72;
}
.single-topic .bbp-admin-links:hover {
  opacity: 1;
}

/* =========================================
   BBPRESS – FORUM SINGLE
   mais espaço no topo + lista tipo feed
   ========================================= */

/* respiro abaixo do menu */
body.single-forum #primary {
  padding-top: 28px !important;
}

body.single-forum .site-main {
  padding-top: 8px !important;
}

body.single-forum article.forum .entry-header {
  margin-bottom: 28px !important;
}

body.single-forum article.forum .entry-title {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

body.single-forum article.forum .entry-meta {
  display: none !important;
}

/* breadcrumb e ações */
body.single-forum #bbpress-forums {
  padding-top: 4px !important;
}

body.single-forum .bbp-breadcrumb,
body.single-forum .bbp-pagination,
body.single-forum #subscription-toggle,
body.single-forum #favorite-toggle {
  margin-left: 8px !important;
  margin-right: 8px !important;
}

body.single-forum .bbp-breadcrumb {
  margin-bottom: 18px !important;
}

body.single-forum #subscription-toggle,
body.single-forum #favorite-toggle {
  display: inline-flex !important;
  align-items: center !important;
  margin-bottom: 18px !important;
}

body.single-forum #subscription-toggle a,
body.single-forum #favorite-toggle a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  background: rgba(2, 116, 190, 0.10) !important;
  border: 1px solid rgba(2, 116, 190, 0.22) !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

body.single-forum #subscription-toggle a:hover,
body.single-forum #favorite-toggle a:hover {
  background: rgba(2, 116, 190, 0.18) !important;
  border-color: rgba(2, 116, 190, 0.36) !important;
}

/* aviso superior */
body.single-forum .bbp-template-notice.info {
  margin: 0 8px 20px !important;
  border-radius: 16px !important;
}

/* esconder footer/header antigos da tabela */
body.single-forum .bbp-topics > .bbp-footer {
  display: none !important;
}

/* wrapper principal */
body.single-forum ul.bbp-topics {
  border: 0 !important;
  background: transparent !important;
  margin: 0 8px 26px !important;
  padding: 0 !important;
}

/* cabeçalho */
body.single-forum ul.bbp-topics > .bbp-header {
  margin-bottom: 12px !important;
  background: linear-gradient(180deg, #171D29 0%, #111A2D 100%) !important;
  border: 1px solid rgba(2, 116, 190, 0.18) !important;
  border-radius: 18px 18px 0 0 !important;
  overflow: hidden !important;
}

body.single-forum ul.bbp-topics > .bbp-header .forum-titles {
  display: grid !important;
  grid-template-columns: minmax(0, 1.8fr) 140px 140px 220px !important;
  gap: 0 !important;
  margin: 0 !important;
}

body.single-forum ul.bbp-topics > .bbp-header .forum-titles li {
  padding: 18px 20px !important;
  font-family: "Roboto", sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #FFFFFF !important;
  border: 0 !important;
}

/* body */
body.single-forum ul.bbp-topics > .bbp-body {
  margin: 0 !important;
  border: 1px solid rgba(2, 116, 190, 0.18) !important;
  border-top: 0 !important;
  border-radius: 0 0 22px 22px !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, #0C111D 0%, #07132F 100%) !important;
}

/* cada tópico */
body.single-forum ul.bbp-topics > .bbp-body > ul {
  display: grid !important;
  grid-template-columns: minmax(0, 1.8fr) 140px 140px 220px !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.single-forum ul.bbp-topics > .bbp-body > ul + ul {
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* colunas */
body.single-forum ul.bbp-topics > .bbp-body > ul > li {
  float: none !important;
  width: auto !important;
  min-height: 100% !important;
  padding: 22px 20px !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #DCE6F0 !important;
}

/* coluna principal */
body.single-forum .bbp-topic-title {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 10px !important;
}

body.single-forum .bbp-topic-permalink {
  display: inline-block !important;
  font-family: "Urbanist", sans-serif !important;
  font-size: 22px !important;
  line-height: 1.08 !important;
  font-weight: 600 !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

body.single-forum .bbp-topic-permalink:hover {
  color: #7DB7EC !important;
}

body.single-forum .bbp-topic-meta {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #B7C6D8 !important;
}

body.single-forum .bbp-topic-meta a {
  color: #DCE6F0 !important;
  text-decoration: none !important;
}

body.single-forum .bbp-topic-meta a:hover {
  color: #7DB7EC !important;
}

/* contagens */
body.single-forum .bbp-topic-voice-count,
body.single-forum .bbp-topic-reply-count {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: "Roboto", sans-serif !important;
  font-size: 28px !important;
  font-weight: 500 !important;
  color: #FFFFFF !important;
}

/* frescura */
body.single-forum .bbp-topic-freshness {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 10px !important;
  text-align: left !important;
}

body.single-forum .bbp-topic-freshness > a {
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

body.single-forum .bbp-topic-freshness > a:hover {
  color: #7DB7EC !important;
}

body.single-forum .bbp-topic-freshness .bbp-topic-meta {
  margin: 0 !important;
}

/* avatars pequenos */
body.single-forum .bbp-topic-meta .avatar,
body.single-forum .bbp-topic-freshness .avatar {
  width: 18px !important;
  height: 18px !important;
  border-radius: 999px !important;
  vertical-align: middle !important;
  margin-right: 6px !important;
}

/* remover padding excessivo do li do tópico */
body.single-forum .bbp-body .ast-article-single {
  box-shadow: none !important;
  background: transparent !important;
}

/* form criar tópico */
body.single-forum .bbp-topic-form .bbp-form {
  margin: 0 8px !important;
  background: linear-gradient(180deg, #0C111D 0%, #07132F 100%) !important;
  border: 1px solid rgba(2, 116, 190, 0.18) !important;
  border-radius: 22px !important;
  padding: 26px !important;
}

body.single-forum .bbp-topic-form legend {
  font-family: "Urbanist", sans-serif !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #FFFFFF !important;
  padding: 0 !important;
  margin-bottom: 18px !important;
}

/* mobile */
@media (max-width: 900px) {
  body.single-forum ul.bbp-topics > .bbp-header {
    display: none !important;
  }

  body.single-forum ul.bbp-topics > .bbp-body {
    border-top: 1px solid rgba(2, 116, 190, 0.18) !important;
    border-radius: 22px !important;
  }

  body.single-forum ul.bbp-topics > .bbp-body > ul {
    grid-template-columns: 1fr !important;
  }

  body.single-forum ul.bbp-topics > .bbp-body > ul > li {
    padding: 14px 18px !important;
  }

  body.single-forum .bbp-topic-voice-count,
  body.single-forum .bbp-topic-reply-count {
    justify-content: flex-start !important;
    font-size: 16px !important;
    color: #B7C6D8 !important;
    padding-top: 0 !important;
  }

  body.single-forum .bbp-topic-voice-count::before {
    content: "Utilizadores: ";
    margin-right: 6px;
    color: #7DB7EC;
    font-size: 13px;
  }

  body.single-forum .bbp-topic-reply-count::before {
    content: "Artigos: ";
    margin-right: 6px;
    color: #7DB7EC;
    font-size: 13px;
  }

  body.single-forum .bbp-topic-freshness::before {
    content: "Último artigo";
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7DB7EC;
  }

  body.single-forum #primary {
    padding-top: 18px !important;
  }
}

/* tirar pesquisa da página geral de fóruns */
body.post-type-archive-forum .bbp-search-form,
body.single-forum .bbp-search-form {
  display: none !important;
}

/* tirar fundo branco do archive geral de fóruns */
body.post-type-archive-forum.ast-separate-container .ast-article-post,
body.post-type-archive-forum.ast-separate-container .ast-article-single {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

body.single-topic .bbp-topic-description,
body.single-topic .bbp-template-notice.info {
  display: none !important;
}

body.single-forum ul.bbp-topics > .bbp-header .forum-titles,
body.single-forum ul.bbp-topics > .bbp-body > ul {
  grid-template-columns: minmax(0, 1.8fr) 140px 140px 260px !important;
}

body.single-forum .bbp-header .bbp-topic-freshness,
body.single-forum .bbp-header .bbp-forum-freshness {
  white-space: nowrap !important;
  word-break: keep-all !important;
}

/* RESPIRO GERAL NAS PÁGINAS BBPRESS */
body.post-type-archive-forum #primary,
body.single-forum #primary,
body.single-topic #primary {
  padding-top: 56px !important;
}

/* RESPIRO EXTRA DENTRO DO CONTEÚDO */
body.post-type-archive-forum #bbpress-forums,
body.single-forum #bbpress-forums,
body.single-topic #bbpress-forums {
  padding-top: 18px !important;
}

/* MAIS ESPAÇO NO BLOCO DA LISTA */
body.post-type-archive-forum ul.bbp-forums,
body.single-forum ul.bbp-topics,
body.single-topic ul.bbp-replies {
  margin-top: 22px !important;
}

/* TÍTULO DO FÓRUM COM MAIS RESPIRO */
body.post-type-archive-forum .bbp-forum-title,
body.single-forum .bbp-forum-title {
  display: block !important;
  margin: 0 0 22px 0 !important;
  line-height: 1.02 !important;
}

/* MAIS PADDING NA PRIMEIRA COLUNA */
body.post-type-archive-forum .bbp-forum-info,
body.single-forum .bbp-forum-info {
  padding: 34px 34px 30px 34px !important;
}

/* HEADER DA TABELA DO FÓRUM MAIS CONTIDO */
body.post-type-archive-forum .bbp-header,
body.single-forum .bbp-header {
  padding: 0 !important;
}

body.post-type-archive-forum .bbp-header .forum-titles,
body.single-forum .bbp-header .forum-titles {
  min-height: auto !important;
}

body.post-type-archive-forum .bbp-header .bbp-forum-info,
body.post-type-archive-forum .bbp-header .bbp-forum-topic-count,
body.post-type-archive-forum .bbp-header .bbp-forum-reply-count,
body.post-type-archive-forum .bbp-header .bbp-forum-freshness,
body.single-forum .bbp-header .bbp-forum-info,
body.single-forum .bbp-header .bbp-forum-topic-count,
body.single-forum .bbp-header .bbp-forum-reply-count,
body.single-forum .bbp-header .bbp-forum-freshness {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

body.post-type-archive-forum .bbp-header .bbp-forum-info,
body.single-forum .bbp-header .bbp-forum-info {
  padding-left: 28px !important;
}


/* ALINHAR HEADER E LINHAS DA LISTA DE TÓPICOS */
body.single-forum ul.bbp-topics > li.bbp-header > ul.forum-titles,
body.single-forum ul.bbp-topics > li.bbp-body > ul[id^="bbp-topic-"] {
  display: grid !important;
  grid-template-columns: minmax(0, 1.9fr) 140px 140px 260px !important;
  align-items: center !important;
  column-gap: 24px !important;
}

/* header */
body.single-forum ul.bbp-topics > li.bbp-header > ul.forum-titles {
  padding: 0 !important;
}

body.single-forum ul.bbp-topics > li.bbp-header > ul.forum-titles > li {
  width: auto !important;
  float: none !important;
  padding: 18px 0 !important;
  margin: 0 !important;
}

body.single-forum ul.bbp-topics > li.bbp-header > ul.forum-titles > li.bbp-topic-title {
  padding-left: 28px !important;
}

body.single-forum ul.bbp-topics > li.bbp-header > ul.forum-titles > li.bbp-topic-voice-count,
body.single-forum ul.bbp-topics > li.bbp-header > ul.forum-titles > li.bbp-topic-reply-count {
  text-align: center !important;
}

body.single-forum ul.bbp-topics > li.bbp-header > ul.forum-titles > li.bbp-topic-freshness {
  text-align: left !important;
}

/* rows */
body.single-forum ul.bbp-topics > li.bbp-body > ul[id^="bbp-topic-"] > li {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}

body.single-forum ul.bbp-topics > li.bbp-body > ul[id^="bbp-topic-"] > li.bbp-topic-title {
  padding: 26px 0 26px 28px !important;
}

body.single-forum ul.bbp-topics > li.bbp-body > ul[id^="bbp-topic-"] > li.bbp-topic-voice-count,
body.single-forum ul.bbp-topics > li.bbp-body > ul[id^="bbp-topic-"] > li.bbp-topic-reply-count {
  text-align: center !important;
}

body.single-forum ul.bbp-topics > li.bbp-body > ul[id^="bbp-topic-"] > li.bbp-topic-freshness {
  text-align: left !important;
  padding-right: 28px !important;
}

/* mobile */
@media (max-width: 767px) {
  body.single-forum ul.bbp-topics > li.bbp-header > ul.forum-titles,
  body.single-forum ul.bbp-topics > li.bbp-body > ul[id^="bbp-topic-"] {
    grid-template-columns: minmax(0, 1fr) 90px 90px 150px !important;
    column-gap: 12px !important;
  }

  body.single-forum ul.bbp-topics > li.bbp-header > ul.forum-titles > li.bbp-topic-title,
  body.single-forum ul.bbp-topics > li.bbp-body > ul[id^="bbp-topic-"] > li.bbp-topic-title {
    padding-left: 18px !important;
  }

  body.single-forum ul.bbp-topics > li.bbp-body > ul[id^="bbp-topic-"] > li.bbp-topic-freshness {
    padding-right: 18px !important;
  }
}

/* autor do bbPress sem aspeto de link */
#bbpress-forums .bbp-author-link {
  pointer-events: none !important;
  cursor: default !important;
  text-decoration: none !important;
}


body.post-type-archive-forum #forums-list-0 .bbp-body .bbp-forum-topic-count,
body.post-type-archive-forum #forums-list-0 .bbp-body .bbp-forum-reply-count {
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
  color: #FFFFFF !important;
}

body.post-type-archive-forum #forums-list-0 .bbp-body .bbp-forum-freshness > a {
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

body.post-type-archive-forum #forums-list-0 .bbp-body .bbp-forum-freshness .bbp-topic-meta,
body.post-type-archive-forum #forums-list-0 .bbp-body .bbp-forum-freshness .bbp-topic-freshness-author,
body.post-type-archive-forum #forums-list-0 .bbp-body .bbp-forum-freshness .bbp-author-name {
  font-size: 14px !important;
  line-height: 1.3 !important;
  color: #C5D2DF !important;
}

body.post-type-archive-forum #forums-list-0 .bbp-body .bbp-forum-freshness .avatar {
  width: 14px !important;
  height: 14px !important;
}

/* esconder resumo "This forum has..." e "This topic contains..." */
body.forum #bbpress-forums .bbp-forum-description,
body.topic #bbpress-forums .bbp-topic-description,
body.single-forum #bbpress-forums .bbp-forum-description,
body.single-topic #bbpress-forums .bbp-topic-description {
  display: none !important;
}

body.forum #bbpress-forums .bbp-template-notice.info:has(.bbp-forum-description),
body.topic #bbpress-forums .bbp-template-notice.info:has(.bbp-topic-description),
body.single-forum #bbpress-forums .bbp-template-notice.info:has(.bbp-forum-description),
body.single-topic #bbpress-forums .bbp-template-notice.info:has(.bbp-topic-description) {
  display: none !important;
}

/* =========================================
   bbPRESS — EDITAR RESPOSTA / EDITAR TÓPICO
   ========================================= */

/* respiro no topo por causa do menu fixo */
body.reply-edit #primary,
body.topic-edit #primary,
body.reply-edit .site-main,
body.topic-edit .site-main {
  padding-top: 56px !important;
}

/* tirar caixa branca do Astra */
body.reply-edit.ast-separate-container .ast-article-single,
body.topic-edit.ast-separate-container .ast-article-single,
body.reply-edit.ast-separate-container .ast-article-post,
body.topic-edit.ast-separate-container .ast-article-post {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* título/meta nativos do post */
body.reply-edit .entry-header,
body.topic-edit .entry-header {
  margin-bottom: 22px !important;
}

body.reply-edit .entry-title,
body.topic-edit .entry-title {
  font-family: "Urbanist", sans-serif !important;
  font-size: 48px !important;
  line-height: 1.02 !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
  color: #FFFFFF !important;
  margin: 0 0 10px !important;
}

body.reply-edit .entry-meta,
body.topic-edit .entry-meta {
  color: #9FB1C7 !important;
  font-size: 14px !important;
}

body.reply-edit .entry-meta a,
body.topic-edit .entry-meta a {
  color: #7DB7EC !important;
  text-decoration: none !important;
}

/* wrapper geral */
body.reply-edit #bbpress-forums,
body.topic-edit #bbpress-forums {
  color: #DCE6F0 !important;
}

/* breadcrumb */
body.reply-edit .bbp-breadcrumb,
body.topic-edit .bbp-breadcrumb {
  margin: 0 0 22px !important;
  color: #9FB1C7 !important;
  font-size: 14px !important;
}

body.reply-edit .bbp-breadcrumb a,
body.topic-edit .bbp-breadcrumb a {
  color: #DCE6F0 !important;
  text-decoration: none !important;
}

/* caixa principal do form */
body.reply-edit .bbp-reply-form .bbp-form,
body.topic-edit .bbp-topic-form .bbp-form,
body.reply-edit .bbp-topic-form .bbp-form,
body.topic-edit .bbp-reply-form .bbp-form {
  background: linear-gradient(180deg, #0C111D 0%, #07132F 100%) !important;
  border: 1px solid rgba(2, 116, 190, 0.18) !important;
  border-radius: 22px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
  padding: 26px !important;
}

/* legend */
body.reply-edit .bbp-form > legend,
body.topic-edit .bbp-form > legend {
  padding: 0 !important;
  margin: 0 0 18px !important;
  border: 0 !important;
  font-family: "Urbanist", sans-serif !important;
  font-size: 34px !important;
  line-height: 1.08 !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  color: #FFFFFF !important;
}

/* notice */
body.reply-edit .bbp-template-notice,
body.topic-edit .bbp-template-notice {
  margin: 0 0 20px !important;
  padding: 14px 18px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(197, 210, 223, 0.08) !important;
}

body.reply-edit .bbp-template-notice ul,
body.topic-edit .bbp-template-notice ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.reply-edit .bbp-template-notice li,
body.topic-edit .bbp-template-notice li {
  margin: 0 !important;
  color: #C5D2DF !important;
  font-size: 14px !important;
}

/* labels */
body.reply-edit .bbp-form label,
body.topic-edit .bbp-form label {
  display: inline-block !important;
  margin: 0 0 8px !important;
  color: #DCE6F0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

/* campos */
body.reply-edit .bbp-form input[type="text"],
body.reply-edit .bbp-form input[type="url"],
body.reply-edit .bbp-form input[type="email"],
body.reply-edit .bbp-form input[type="number"],
body.reply-edit .bbp-form select,
body.reply-edit .bbp-form textarea,
body.topic-edit .bbp-form input[type="text"],
body.topic-edit .bbp-form input[type="url"],
body.topic-edit .bbp-form input[type="email"],
body.topic-edit .bbp-form input[type="number"],
body.topic-edit .bbp-form select,
body.topic-edit .bbp-form textarea {
  width: 100% !important;
  min-height: 52px !important;
  padding: 0 16px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(197, 210, 223, 0.10) !important;
  border-radius: 14px !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}

body.reply-edit .bbp-form textarea,
body.topic-edit .bbp-form textarea {
  min-height: 220px !important;
  padding: 16px !important;
  resize: vertical !important;
}

body.reply-edit .bbp-form input:focus,
body.reply-edit .bbp-form select:focus,
body.reply-edit .bbp-form textarea:focus,
body.topic-edit .bbp-form input:focus,
body.topic-edit .bbp-form select:focus,
body.topic-edit .bbp-form textarea:focus {
  outline: 0 !important;
  border-color: rgba(2, 116, 190, 0.45) !important;
  box-shadow: 0 0 0 1px rgba(2, 116, 190, 0.18) !important;
}

/* espaçamento dos blocos */
body.reply-edit .bbp-form p,
body.topic-edit .bbp-form p {
  margin: 0 0 18px !important;
}

/* editor wrapper */
body.reply-edit .bbp-the-content-wrapper,
body.topic-edit .bbp-the-content-wrapper {
  margin: 0 0 18px !important;
}

body.reply-edit .wp-editor-wrap,
body.topic-edit .wp-editor-wrap,
body.reply-edit .wp-editor-container,
body.topic-edit .wp-editor-container {
  border: 0 !important;
  background: transparent !important;
}

body.reply-edit .quicktags-toolbar,
body.topic-edit .quicktags-toolbar {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(197, 210, 223, 0.10) !important;
  border-bottom: 0 !important;
  border-radius: 14px 14px 0 0 !important;
  padding: 10px !important;
}

body.reply-edit .wp-editor-area,
body.topic-edit .wp-editor-area {
  border-radius: 0 0 14px 14px !important;
}

/* fieldset interno da edição */
body.reply-edit .bbp-form fieldset.bbp-form,
body.topic-edit .bbp-form fieldset.bbp-form {
  margin: 18px 0 0 !important;
  padding: 18px !important;
  border: 1px solid rgba(197, 210, 223, 0.10) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

body.reply-edit .bbp-form fieldset.bbp-form legend,
body.topic-edit .bbp-form fieldset.bbp-form legend {
  padding: 0 8px !important;
  margin: 0 0 12px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #DCE6F0 !important;
}

/* checkboxes */
body.reply-edit .bbp-form input[type="checkbox"],
body.topic-edit .bbp-form input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  margin-right: 8px !important;
  vertical-align: middle !important;
}

/* submit */
body.reply-edit .bbp-submit-wrapper,
body.topic-edit .bbp-submit-wrapper {
  display: flex !important;
  justify-content: flex-end !important;
  margin-top: 24px !important;
}

body.reply-edit .bbp-submit-wrapper .button,
body.reply-edit .bbp-submit-wrapper button,
body.topic-edit .bbp-submit-wrapper .button,
body.topic-edit .bbp-submit-wrapper button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 118px !important;
  min-height: 52px !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #0274BE !important;
  color: #FFFFFF !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

body.reply-edit .bbp-submit-wrapper .button:hover,
body.reply-edit .bbp-submit-wrapper button:hover,
body.topic-edit .bbp-submit-wrapper .button:hover,
body.topic-edit .bbp-submit-wrapper button:hover {
  background: #0382D4 !important;
}

/* responsivo */
@media (max-width: 767px) {
  body.reply-edit #primary,
  body.topic-edit #primary,
  body.reply-edit .site-main,
  body.topic-edit .site-main {
    padding-top: 34px !important;
  }

  body.reply-edit .entry-title,
  body.topic-edit .entry-title {
    font-size: 34px !important;
  }

  body.reply-edit .bbp-reply-form .bbp-form,
  body.topic-edit .bbp-topic-form .bbp-form,
  body.reply-edit .bbp-topic-form .bbp-form,
  body.topic-edit .bbp-reply-form .bbp-form {
    padding: 18px !important;
  }

  body.reply-edit .bbp-form > legend,
  body.topic-edit .bbp-form > legend {
    font-size: 26px !important;
  }
}


.quicktags-toolbar.hide-if-no-js {
  display: block !important;
}

.quicktags-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}


/* =========================================
   POPUP ADICIONAR LIGAÇÃO
   ========================================= */

#wp-link-backdrop {
  background: rgba(2, 8, 28, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99998;
}

#wp-link-wrap {
  z-index: 99999;
  max-width: 920px;
  width: calc(100vw - 40px);
  margin: 40px auto 0;
  border: 1px solid rgba(70, 110, 190, 0.22);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #07132e 0%, #081735 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  color: #ffffff;
}

#wp-link {
  background: transparent;
}

#wp-link-wrap *,
#wp-link-wrap *::before,
#wp-link-wrap *::after {
  box-sizing: border-box;
}

#wp-link-wrap h1#link-modal-title {
  margin: 0;
  padding: 26px 32px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: #ffffff;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

#wp-link-wrap #wp-link-close {
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  transition: 0.2s ease;
}

#wp-link-wrap #wp-link-close:hover,
#wp-link-wrap #wp-link-close:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(77, 150, 255, 0.35);
  box-shadow: none;
}

#wp-link-wrap #wp-link-close::before {
  color: #ffffff;
}

#wp-link-wrap #link-selector {
  padding: 28px 32px 24px;
}

#wp-link-wrap #link-options,
#wp-link-wrap #search-panel {
  margin: 0;
}

#wp-link-wrap p.howto,
#wp-link-wrap .query-notice {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.5;
}

#wp-link-wrap #link-options > div,
#wp-link-wrap .link-search-wrapper,
#wp-link-wrap .link-target {
  margin-bottom: 18px;
}

#wp-link-wrap label span,
#wp-link-wrap .search-label {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

#wp-link-wrap input[type="text"],
#wp-link-wrap input[type="search"] {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(92, 118, 168, 0.26);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  box-shadow: none;
}

#wp-link-wrap input[type="text"]::placeholder,
#wp-link-wrap input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

#wp-link-wrap input[type="text"]:focus,
#wp-link-wrap input[type="search"]:focus {
  border-color: rgba(52, 133, 255, 0.65);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(52, 133, 255, 0.16);
  outline: none;
}

#wp-link-wrap .link-target label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

#wp-link-wrap .link-target input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #1990ff;
}

#wp-link-wrap #search-panel {
  margin-top: 26px;
}

#wp-link-wrap #search-results,
#wp-link-wrap #most-recent-results {
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid rgba(92, 118, 168, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

#wp-link-wrap .query-notice {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

#wp-link-wrap #search-results ul,
#wp-link-wrap #most-recent-results ul {
  max-height: 320px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
}

#wp-link-wrap #search-results li,
#wp-link-wrap #most-recent-results li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: 0.18s ease;
}

#wp-link-wrap #search-results li:last-child,
#wp-link-wrap #most-recent-results li:last-child {
  border-bottom: 0;
}

#wp-link-wrap #search-results li:hover,
#wp-link-wrap #most-recent-results li:hover,
#wp-link-wrap #search-results li.selected,
#wp-link-wrap #most-recent-results li.selected {
  background: rgba(25, 144, 255, 0.12);
}

#wp-link-wrap .item-title {
  color: #ffffff;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}

#wp-link-wrap .item-info {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#wp-link-wrap .submitbox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 20px 32px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

#wp-link-wrap #wp-link-cancel,
#wp-link-wrap #wp-link-update {
  margin: 0;
}

#wp-link-wrap .submitbox .button,
#wp-link-wrap .submitbox .button-primary {
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid rgba(92, 118, 168, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 50px;
  box-shadow: none;
  text-shadow: none;
  transition: 0.18s ease;
}

#wp-link-wrap .submitbox .button:hover,
#wp-link-wrap .submitbox .button:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(77, 150, 255, 0.35);
  color: #ffffff;
}

#wp-link-wrap .submitbox .button-primary {
  border-color: transparent;
  background: #1990ff;
}

#wp-link-wrap .submitbox .button-primary:hover,
#wp-link-wrap .submitbox .button-primary:focus {
  background: #37a0ff;
  color: #ffffff;
}

#wp-link-wrap .spinner {
  float: none;
  margin-top: 0;
  opacity: 0.75;
  filter: brightness(1.4);
}

@media (max-width: 767px) {
  #wp-link-wrap {
    width: calc(100vw - 20px);
    margin-top: 10px;
    border-radius: 18px;
  }

  #wp-link-wrap h1#link-modal-title,
  #wp-link-wrap #link-selector,
  #wp-link-wrap .submitbox {
    padding-left: 18px;
    padding-right: 18px;
  }

  #wp-link-wrap .submitbox {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  #wp-link-wrap .submitbox .button,
  #wp-link-wrap .submitbox .button-primary {
    width: 100%;
    text-align: center;
  }

  #wp-link-wrap #search-results li,
  #wp-link-wrap #most-recent-results li {
    grid-template-columns: 1fr;
  }
}

#wp-link-wrap .submitbox {
  margin: 0 !important;
  padding: 24px 36px 34px !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  background: rgba(255,255,255,0.02) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 18px !important;
  box-sizing: border-box !important;
}

#wp-link-wrap #wplink-link-existing-content,
#wp-link-wrap #search-panel {
  display: none !important;
}


.il-user-course-forums {
  display: grid;
  gap: 20px;
}

.il-user-course-forum-card {
  padding: 28px;
  border: 1px solid rgba(2, 116, 190, 0.22);
  border-radius: 24px;
  background: linear-gradient(180deg, #0c111d 0%, #07132f 100%);
}

.il-user-course-forum-title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.08;
}

.il-user-course-forum-title a {
  color: #fff;
  text-decoration: none;
}

.il-user-course-forum-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
}

/* Título dentro da tab de fóruns */
.il-course-forums-title {
  margin: 3em 0 1em 0.5em;
}

/* Cards já usados no perfil */
.il-user-course-forums {
  display: grid;
  gap: 20px;
}

.il-user-course-forum-card {
  padding: 28px;
  border: 1px solid rgba(2, 116, 190, 0.22);
  border-radius: 24px;
  background: linear-gradient(180deg, #0c111d 0%, #07132f 100%);
}

.il-user-course-forum-title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.08;
}

.il-user-course-forum-title a {
  color: #fff;
  text-decoration: none;
}

.il-user-course-forum-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
}

.il-course-forums-empty {
  margin: 3em 0 1em 0.5em;
  color: rgba(255,255,255,0.72);
}

#bbpress-forums .bbp-reply-ip,
#bbpress-forums .bbp-author-ip {
  display: none !important;
}

.il-user-course-forums-heading {
  margin: 3em 0 0.5em 1em;
}

.il-user-course-forums-heading {
  margin-top: 1em;
  margin-right: 0;
  margin-bottom: 0.5em;
  margin-left: 0.25em;
  font-weight: 700 !important;
}


body .learndash-wrapper .ld-navigation__previous-link,
body .learndash-wrapper .ld-navigation__next-link,
body .learndash-wrapper .ld-navigation__back-to-course-link,
body .learndash-wrapper .ld-navigation .learndash_mark_complete_button,
body .learndash-wrapper .ld-navigation__progress-mark-complete-button {
  background: #0d8fe8 !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 50px !important;
  transform: translateY(0);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease, border-radius .2s ease;
}

body .learndash-wrapper .ld-navigation__previous-link svg,
body .learndash-wrapper .ld-navigation__next-link svg,
body .learndash-wrapper .ld-navigation__back-to-course-link svg,
body .learndash-wrapper .ld-navigation .learndash_mark_complete_button svg,
body .learndash-wrapper .ld-navigation__progress-mark-complete-button svg {
  color: inherit !important;
}

body .learndash-wrapper .ld-navigation__previous-link:hover,
body .learndash-wrapper .ld-navigation__previous-link:focus,
body .learndash-wrapper .ld-navigation__next-link:hover,
body .learndash-wrapper .ld-navigation__next-link:focus,
body .learndash-wrapper .ld-navigation__back-to-course-link:hover,
body .learndash-wrapper .ld-navigation__back-to-course-link:focus,
body .learndash-wrapper .ld-navigation .learndash_mark_complete_button:hover,
body .learndash-wrapper .ld-navigation .learndash_mark_complete_button:focus,
body .learndash-wrapper .ld-navigation__progress-mark-complete-button:hover,
body .learndash-wrapper .ld-navigation__progress-mark-complete-button:focus {
  background: #0b74bf !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  transform: translateY(-3px);
}

body .learndash-wrapper .ld-navigation__next-link[aria-disabled="true"],
body .learndash-wrapper .ld-navigation__previous-link[aria-disabled="true"],
body .learndash-wrapper .ld-navigation a.ld-disabled,
body .learndash-wrapper .ld-navigation button[disabled] {
  opacity: .45;
}



body .learndash-wrapper .ld-navigation__previous-link,
body .learndash-wrapper .ld-navigation__next-link,
body .learndash-wrapper .ld-navigation__back-to-course-link,
body .learndash-wrapper .ld-navigation .learndash_mark_complete_button,
body .learndash-wrapper .ld-navigation__progress-mark-complete-button,
body .learndash-wrapper .ld-navigation__previous-link:hover,
body .learndash-wrapper .ld-navigation__previous-link:focus,
body .learndash-wrapper .ld-navigation__next-link:hover,
body .learndash-wrapper .ld-navigation__next-link:focus,
body .learndash-wrapper .ld-navigation__back-to-course-link:hover,
body .learndash-wrapper .ld-navigation__back-to-course-link:focus,
body .learndash-wrapper .ld-navigation .learndash_mark_complete_button:hover,
body .learndash-wrapper .ld-navigation .learndash_mark_complete_button:focus,
body .learndash-wrapper .ld-navigation__progress-mark-complete-button:hover,
body .learndash-wrapper .ld-navigation__progress-mark-complete-button:focus {
  padding: 15px 40px 16px 40px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1em !important;
  letter-spacing: 0 !important;
  border-radius: 50px !important;
  border: 0 !important;
  text-decoration: none !important;
}

/* =========================================================
   MOBILE FIXES - bbPress forum/topic
   ========================================================= */
@media (max-width: 767px) {
  

  .ld-navigation__progress {
    align-items: center;
  }
  
  .il-user-course-forums-heading { 
    text-align: center;
  }

  /* espaço no topo por causa do menu fixo */
  body.forum #primary,
  body.topic #primary,
  body.reply #primary,
  body.reply-edit #primary,
  body.topic-edit #primary,
  body.forum-archive #primary {
    padding-top: 1.5rem;
  }

  /* =========================================================
     TABELA/LISTA DE TÓPICOS DO FÓRUM
     ========================================================= */
  body.forum #bbpress-forums ul.bbp-topics > li.bbp-header,
  body.forum #bbpress-forums ul.bbp-forums > li.bbp-header {
    display: none;
  }

  body.forum #bbpress-forums ul.bbp-topics,
  body.forum-archive #bbpress-forums ul.bbp-forums {
    border: 0;
    background: transparent;
  }

  body.forum #bbpress-forums ul.bbp-topics > li.bbp-body,
  body.forum-archive #bbpress-forums ul.bbp-forums > li.bbp-body {
    border: 0;
    background: transparent;
    padding: 0;
  }

  body.forum #bbpress-forums ul.bbp-topics > li.bbp-body > ul,
  body.forum-archive #bbpress-forums ul.bbp-forums > li.bbp-body > ul {
    display: block;
    padding: 18px 18px 20px;
    border-radius: 24px;
    margin: 0 0 18px;
    background: linear-gradient(90deg, rgba(18, 29, 58, 0.96) 0%, rgba(6, 15, 40, 0.96) 100%);
    border: 1px solid rgba(34, 86, 181, 0.28);
  }

  body.forum #bbpress-forums ul.bbp-topics > li.bbp-body > ul > li,
  body.forum-archive #bbpress-forums ul.bbp-forums > li.bbp-body > ul > li {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    padding-left: 12px;
  }

  body.forum #bbpress-forums li.bbp-topic-title,
  body.forum-archive #bbpress-forums li.bbp-forum-info {
    margin-bottom: 16px;
  }

  body.forum #bbpress-forums .bbp-topic-title .bbp-topic-permalink,
  body.forum-archive #bbpress-forums .bbp-forum-info .bbp-forum-title {
    display: block;
    font-size: 2rem;
    line-height: 1.08;
    margin-bottom: 10px;
    word-break: break-word;
  }

  body.forum #bbpress-forums .bbp-topic-meta,
  body.forum-archive #bbpress-forums .bbp-topic-meta,
  body.forum-archive #bbpress-forums .ld-bbpress-desc-link {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  body.forum #bbpress-forums .bbp-topic-meta .bbp-author-avatar,
  body.forum #bbpress-forums .bbp-topic-freshness .bbp-author-avatar,
  body.forum-archive #bbpress-forums .bbp-topic-freshness .bbp-author-avatar,
  body.forum-archive #bbpress-forums .ld-bbpress-desc-link .bbp-author-avatar {
    display: none !important;
  }

  body.forum #bbpress-forums li.bbp-topic-voice-count,
  body.forum #bbpress-forums li.bbp-topic-reply-count,
  body.forum #bbpress-forums li.bbp-topic-freshness,
  body.forum-archive #bbpress-forums li.bbp-forum-topic-count,
  body.forum-archive #bbpress-forums li.bbp-forum-reply-count,
  body.forum-archive #bbpress-forums li.bbp-forum-freshness {
    width: 100%;
    text-align: left;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.95rem;
  }

  body.forum #bbpress-forums li.bbp-topic-voice-count::before {
    content: "Utilizadores: ";
    font-weight: 600;
    opacity: 0.9;
  }

  body.forum #bbpress-forums li.bbp-topic-reply-count::before {
    content: "Artigos: ";
    font-weight: 600;
    opacity: 0.9;
  }

  body.forum #bbpress-forums li.bbp-topic-freshness::before {
    content: "Último artigo";
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
    opacity: 0.9;
  }

  body.forum-archive #bbpress-forums li.bbp-forum-topic-count::before {
    content: "Tópicos: ";
    font-weight: 600;
    opacity: 0.9;
  }

  body.forum-archive #bbpress-forums li.bbp-forum-reply-count::before {
    content: "Artigos: ";
    font-weight: 600;
    opacity: 0.9;
  }

  body.forum-archive #bbpress-forums li.bbp-forum-freshness::before {
    content: "Último artigo";
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
    opacity: 0.9;
  }

  body.forum #bbpress-forums .bbp-topic-freshness .bbp-topic-meta,
  body.forum-archive #bbpress-forums .bbp-forum-freshness .bbp-topic-meta {
    margin-top: 6px;
  }

  /* =========================================================
     TÓPICO / RESPOSTAS
     ========================================================= */
  body.topic #bbpress-forums .bbp-reply-author {
    width: 100%;
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 14px 16px 12px;
    text-align: left;
  }

  body.topic #bbpress-forums .bbp-reply-content {
    margin-left: 0;
    padding: 16px;
  }

  body.topic #bbpress-forums .bbp-author-avatar {
    display: none !important;
  }

  body.topic #bbpress-forums .bbp-author-name {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
    margin: 0 0 4px;
  }

  body.topic #bbpress-forums .bbp-author-role,
  body.topic #bbpress-forums .bbp-reply-ip {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  body.topic #bbpress-forums .bbp-reply-header .bbp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 10px 14px;
    line-height: 1.35;
  }

  body.topic #bbpress-forums .bbp-reply-header .bbp-admin-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  /* header autor/artigos do tópico */
  body.topic #bbpress-forums ul.bbp-replies > li.bbp-header,
  body.topic #bbpress-forums ul.bbp-replies > li.bbp-footer {
    display: none;
  }

  /* =========================================================
     FORMS
     ========================================================= */
  body.forum #bbpress-forums .bbp-form,
  body.topic #bbpress-forums .bbp-form,
  body.reply #bbpress-forums .bbp-form,
  body.reply-edit #bbpress-forums .bbp-form,
  body.topic-edit #bbpress-forums .bbp-form {
    padding: 18px 14px;
  }

  body.forum #bbpress-forums .quicktags-toolbar,
  body.topic #bbpress-forums .quicktags-toolbar,
  body.reply #bbpress-forums .quicktags-toolbar,
  body.reply-edit #bbpress-forums .quicktags-toolbar,
  body.topic-edit #bbpress-forums .quicktags-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  body.forum #bbpress-forums .quicktags-toolbar input,
  body.topic #bbpress-forums .quicktags-toolbar input,
  body.reply #bbpress-forums .quicktags-toolbar input,
  body.reply-edit #bbpress-forums .quicktags-toolbar input,
  body.topic-edit #bbpress-forums .quicktags-toolbar input {
    font-size: 0.7rem;
    padding: 8px 10px;
    min-height: 36px;
  }

  body.forum #bbpress-forums textarea,
  body.topic #bbpress-forums textarea,
  body.reply #bbpress-forums textarea,
  body.reply-edit #bbpress-forums textarea,
  body.topic-edit #bbpress-forums textarea {
    min-height: 220px;
  }

  /* notices muito apertados no mobile */
  body.forum #bbpress-forums .bbp-template-notice,
  body.topic #bbpress-forums .bbp-template-notice,
  body.reply #bbpress-forums .bbp-template-notice,
  body.reply-edit #bbpress-forums .bbp-template-notice,
  body.topic-edit #bbpress-forums .bbp-template-notice {
    padding: 14px 16px;
    font-size: 0.92rem;
    line-height: 1.45;
  }
  
  body.single-topic .bbp-author-role,
  #bbpress-forums .bbp-body div.bbp-reply-author, #bbpress-forums .bbp-body div.bbp-topic-author {
    min-height: auto !important;
  }
  
  body.single-forum ul.bbp-topics > .bbp-body > ul,
  body.single-forum ul.bbp-topics > li.bbp-header > ul.forum-titles, body.single-forum ul.bbp-topics > li.bbp-body > ul[id^="bbp-topic-"] {
      grid-template-columns: 1fr !important;
    }
  }
}
/* ---------- Respostas da equipa / respostas em destaque ---------- */
#bbpress-forums .il-bbp-admin-action {
  white-space: nowrap;
}

#bbpress-forums .il-bbp-reply-highlight {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 170, 255, 0.45);
  border-radius: 14px;
  background: rgba(0, 115, 190, 0.10);
}

#bbpress-forums .il-bbp-reply-highlight.is-team {
  border-color: rgba(76, 195, 255, 0.58);
  background: rgba(20, 120, 190, 0.14);
}

#bbpress-forums .il-bbp-reply-highlight-label {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 151, 230, 0.18);
  color: #8cd5ff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

#bbpress-forums .il-bbp-reply-highlight > :last-child {
  margin-bottom: 0;
}

#bbpress-forums .il-bbp-top-reply {
  margin: 0 0 22px;
  padding: 22px;
  border: 1px solid rgba(76, 195, 255, 0.5);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 112, 190, 0.2), rgba(2, 14, 35, 0.82));
}

#bbpress-forums .il-bbp-top-reply-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

#bbpress-forums .il-bbp-top-reply-head strong {
  color: #8cd5ff;
  font-size: 16px;
}

#bbpress-forums .il-bbp-top-reply-head span {
  color: rgba(255,255,255,.65);
  font-size: 13px;
}

#bbpress-forums .il-bbp-top-reply .il-bbp-reply-highlight {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

#bbpress-forums .il-bbp-top-reply-link {
  display: inline-flex;
  margin-top: 16px;
  color: #8cd5ff;
  font-weight: 700;
}

@media (max-width: 544px) {
  #bbpress-forums .il-bbp-top-reply {
    padding: 16px;
  }
  #bbpress-forums .il-bbp-top-reply-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Destaque suave: a moldura passa para o cartão nativo da resposta. */
#bbpress-forums .il-bbp-is-featured .bbp-reply-content,
#bbpress-forums .il-bbp-is-team .bbp-reply-content {
  border-color: rgba(76, 195, 255, 0.62);
}

#bbpress-forums .il-bbp-reply-highlight-label {
  margin: 0 0 12px;
}

#bbpress-forums .il-bbp-reply-highlight {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#bbpress-forums .il-bbp-top-reply {
  padding: 18px;
}

#bbpress-forums .il-bbp-top-reply-head {
  margin-bottom: 14px;
}

#bbpress-forums .il-bbp-top-reply-clone {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(76, 195, 255, 0.62);
  border-radius: 16px;
  background: rgba(2, 14, 35, 0.45);
}

#bbpress-forums .il-bbp-top-reply-clone .bbp-reply-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

#bbpress-forums .il-bbp-top-reply-clone .bbp-author-avatar img {
  border-radius: 50%;
}

#bbpress-forums .il-bbp-top-reply-clone .bbp-author-name {
  color: #fff;
  font-weight: 700;
}

#bbpress-forums .il-bbp-top-reply-clone .bbp-author-role {
  margin: 0;
}

#bbpress-forums .il-bbp-top-reply-clone .bbp-reply-content {
  min-width: 0;
  padding: 20px 22px;
  border: 0;
  background: transparent;
}

@media (max-width: 700px) {
  #bbpress-forums .il-bbp-top-reply-clone {
    grid-template-columns: 1fr;
  }

  #bbpress-forums .il-bbp-top-reply-clone .bbp-reply-author {
    flex-direction: row;
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: left;
  }
}

/* Ajuste final: destaque discreto na resposta original e sem caixa exterior no topo. */
.single-topic #bbpress-forums .il-bbp-is-featured {
  border: 1px solid rgba(76, 195, 255, 0.68) !important;
  border-radius: 16px !important;
  overflow: hidden;
}

.single-topic #bbpress-forums .il-bbp-is-featured .bbp-reply-content {
  border: 0 !important;
  background: transparent !important;
}

/* A resposta da equipa mantém apenas a tag, sem forçar moldura. */
.single-topic #bbpress-forums .il-bbp-is-team:not(.il-bbp-is-featured) .bbp-reply-content {
  border-color: inherit !important;
}

#bbpress-forums .il-bbp-top-reply {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#bbpress-forums .il-bbp-top-reply-head {
  margin: 0 0 10px;
  padding: 0 2px;
}

#bbpress-forums .il-bbp-top-reply-clone {
  border-color: rgba(255,255,255,0.10);
  background: transparent;
}

/* Resposta fixa: faixa própria, largura total e destaque igual ao original. */
.single-topic #bbpress-forums .il-bbp-top-reply {
  display: block;
  clear: both;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 30px !important;
  padding: 0 !important;
}

.single-topic #bbpress-forums .il-bbp-top-reply-head {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 10px !important;
  padding: 0 !important;
}

.single-topic #bbpress-forums .il-bbp-top-reply-clone {
  border-color: rgba(76, 195, 255, 0.68) !important;
  background: transparent !important;
}
