@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* Reset agressivo do Twenty Twenty-Five e outros temas de bloco */
body.single-cursos,
body.post-type-archive-cursos,
body.tax-categoria_curso,
body.sync-cursos-page {
  --wp--style--global--content-size: 100% !important;
  --wp--style--global--wide-size: 100% !important;
}

body.single-cursos .wp-site-blocks,
body.post-type-archive-cursos .wp-site-blocks,
body.tax-categoria_curso .wp-site-blocks,
body.sync-cursos-page .wp-site-blocks {
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body.single-cursos .entry-content,
body.single-cursos .wp-block-post-content,
body.single-cursos .is-layout-constrained,
body.single-cursos .is-layout-constrained>*,
body.single-cursos .is-layout-flow,
body.single-cursos .is-layout-flow>*,
body.post-type-archive-cursos .entry-content,
body.post-type-archive-cursos .wp-block-post-content,
body.post-type-archive-cursos .is-layout-constrained,
body.post-type-archive-cursos .is-layout-constrained>*,
body.post-type-archive-cursos .is-layout-flow,
body.post-type-archive-cursos .is-layout-flow>*,
body.tax-categoria_curso .entry-content,
body.tax-categoria_curso .wp-block-post-content,
body.tax-categoria_curso .is-layout-constrained,
body.tax-categoria_curso .is-layout-constrained>*,
body.tax-categoria_curso .is-layout-flow,
body.tax-categoria_curso .is-layout-flow>*,
body.sync-cursos-page .entry-content,
body.sync-cursos-page .wp-block-post-content,
body.sync-cursos-page .is-layout-constrained,
body.sync-cursos-page .is-layout-constrained>*,
body.sync-cursos-page .is-layout-flow,
body.sync-cursos-page .is-layout-flow>* {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.sc-single,
.sc-archive {
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

/* ========== PLAYFUL GEOMETRIC ========== */

.sc-single,
.sc-archive {
  background: #FFFDF5;
  color: #1E293B;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  line-height: 1.7;
}

.sc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Hero --- */
.sc-hero {
  background: #FFFDF5;
  position: relative;
  overflow: hidden;
  padding: 48px 0 40px;
}

.sc-hero-img {
  display: none;
}

.sc-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.sc-hero h1 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: #1E293B;
  margin: 20px 0 16px;
  line-height: 1.15;
}

.sc-hero-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sc-hero-cats .sc-tag {
  background: #8B5CF6;
  color: #fff;
}

.sc-hero-cats .sc-tag:nth-child(2) {
  background: #F472B6;
}

.sc-hero-cats .sc-tag:nth-child(3) {
  background: #FBBF24;
  color: #1E293B;
}

.sc-hero-cats .sc-tag:nth-child(4) {
  background: #34D399;
  color: #1E293B;
}

/* --- Breadcrumbs --- */
.sc-breadcrumbs {
  font-size: 0.85rem;
  color: #64748B;
  padding: 16px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.sc-breadcrumbs a {
  color: #8B5CF6;
  text-decoration: none;
  font-weight: 600;
}

.sc-breadcrumbs a:hover {
  text-decoration: underline;
}

.sc-breadcrumbs .sc-sep {
  margin: 0 8px;
  color: #CBD5E1;
}

/* --- Layout --- */
.sc-single-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

.sc-single-main {
  min-width: 0;
}

/* --- Content --- */
.sc-content {
  font-size: 1.05rem;
  color: #1E293B;
  line-height: 1.8;
}

.sc-content h2 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1E293B;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1E293B;
}

.sc-content h3 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #8B5CF6;
  margin: 28px 0 12px;
}

.sc-content p {
  margin: 0 0 16px;
}

.sc-content ul,
.sc-content ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.sc-content li {
  margin-bottom: 8px;
}

.sc-content strong {
  font-weight: 700;
  color: #0F172A;
}

/* --- Embed --- */
.sc-embed-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border: 2px solid #1E293B;
  border-radius: 16px;
  box-shadow: 4px 4px 0px 0px #1E293B;
  margin: 24px 0;
}

.sc-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Price / CTA --- */
.sc-preco {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #8B5CF6;
  margin: 8px 0;
}

.sc-preco-label {
  font-size: 0.85rem;
  color: #64748B;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sc-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #34D399;
  color: #1E293B;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 32px;
  border: 2px solid #1E293B;
  border-radius: 999px;
  box-shadow: 4px 4px 0px 0px #1E293B;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.sc-btn-whatsapp:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px 0px #1E293B;
}

.sc-btn-whatsapp svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* --- Tags --- */
.sc-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 999px;
  border: 2px solid #1E293B;
  background: #8B5CF6;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.sc-tag:nth-child(4n+2) {
  background: #F472B6;
  color: #fff;
}

.sc-tag:nth-child(4n+3) {
  background: #FBBF24;
  color: #1E293B;
}

.sc-tag:nth-child(4n+4) {
  background: #34D399;
  color: #1E293B;
}

.sc-tag:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px 0px #1E293B;
}

.sc-tag.active {
  background: #1E293B;
  color: #fff;
}

/* --- Sidebar --- */
.sc-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sc-sidebar-card {
  background: #fff;
  border: 2px solid #1E293B;
  border-radius: 16px;
  box-shadow: 4px 4px 0px 0px #1E293B;
  padding: 28px 24px;
}

.sc-sidebar-card .sc-preco {
  margin-bottom: 20px;
  text-align: center;
}

.sc-sidebar-card .sc-btn-whatsapp {
  margin-bottom: 24px;
}

.sc-sidebar-info {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
}

.sc-sidebar-info h4 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1E293B;
  margin: 0 0 12px;
}

/* --- Related courses --- */
.sc-relacionados {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 60px;
}

.sc-relacionados h2 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #1E293B;
  margin: 0 0 28px;
}

.sc-relacionados-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- FAB WhatsApp Mobile --- */
.sc-fab-whatsapp {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: #34D399;
  color: #1E293B;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 2px solid #1E293B;
  box-shadow: 4px 4px 0px 0px #1E293B;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 28px;
}

/* --- Archive --- */
.sc-archive {
  padding-bottom: 60px;
}

.sc-archive-header h1 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #1E293B;
  margin: 0 0 8px;
}

.sc-archive-count {
  font-size: 0.95rem;
  color: #64748B;
  margin-bottom: 28px;
}

.sc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.sc-filters-label {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1E293B;
}

.sc-search-form {
  display: flex;
  gap: 0;
  max-width: 400px;
  width: 100%;
}

.sc-search-input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid #1E293B;
  border-right: 0;
  border-radius: 999px 0 0 999px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  background: #fff;
  color: #1E293B;
  outline: none;
}

.sc-search-input:focus {
  border-color: #8B5CF6;
}

.sc-search-btn {
  padding: 12px 24px;
  background: #8B5CF6;
  color: #fff;
  border: 2px solid #1E293B;
  border-radius: 0 999px 999px 0;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.sc-search-btn:hover {
  background: #7C3AED;
}

/* --- Grid / Cards --- */
.sc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.sc-card {
  background: #fff;
  border: 2px solid #1E293B;
  border-radius: 16px;
  box-shadow: 4px 4px 0px 0px #1E293B;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.sc-card::before {
  content: '';
  display: block;
  height: 6px;
  background: #8B5CF6;
}

.sc-card:nth-child(4n+2)::before {
  background: #F472B6;
}

.sc-card:nth-child(4n+3)::before {
  background: #FBBF24;
}

.sc-card:nth-child(4n+4)::before {
  background: #34D399;
}

.sc-card:hover {
  transform: rotate(-1deg) translate(-2px, -2px);
  box-shadow: 6px 6px 0px 0px #1E293B;
}

.sc-card-img-wrapper {
  position: relative;
  overflow: hidden;
  background: #EDE9FE;
}

.sc-card-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  display: block;
}

.sc-card-no-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #EDE9FE, #FDF2F8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8B5CF6;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.sc-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #8B5CF6;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  border: 2px solid #1E293B;
}

.sc-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sc-card-title {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.3;
}

.sc-card-title a {
  color: #1E293B;
  text-decoration: none;
}

.sc-card-title a:hover {
  color: #8B5CF6;
}

.sc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
}

.sc-card-preco {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #8B5CF6;
}

.sc-card-btn {
  display: inline-block;
  background: #34D399;
  color: #1E293B;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 20px;
  border: 2px solid #1E293B;
  border-radius: 999px;
  box-shadow: 3px 3px 0px 0px #1E293B;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.sc-card-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px 0px #1E293B;
}

/* --- Pagination --- */
.sc-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}

.sc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1E293B;
  background: #fff;
  border: 2px solid #1E293B;
  border-radius: 16px;
  box-shadow: 3px 3px 0px 0px #1E293B;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.sc-pagination .page-numbers:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px 0px #1E293B;
}

.sc-pagination .page-numbers.current {
  background: #8B5CF6;
  color: #fff;
}

/* --- No results --- */
.sc-no-results {
  text-align: center;
  padding: 80px 24px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.1rem;
  color: #64748B;
}

/* --- Modules --- */
.sc-modulos {
  margin: 40px 0;
}

.sc-modulos h2 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #1E293B;
  margin: 0 0 20px;
  border-bottom: 2px solid #1E293B;
  padding-bottom: 8px;
}

.sc-modulos-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sc-modulo-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 2px solid #1E293B;
  border-radius: 16px;
  box-shadow: 4px 4px 0px 0px #1E293B;
  padding: 20px;
}

.sc-modulo-numero {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  background: #8B5CF6;
  border: 2px solid #1E293B;
}

.sc-modulo-item:nth-child(4n+2) .sc-modulo-numero {
  background: #F472B6;
}

.sc-modulo-item:nth-child(4n+3) .sc-modulo-numero {
  background: #FBBF24;
  color: #1E293B;
}

.sc-modulo-item:nth-child(4n+4) .sc-modulo-numero {
  background: #34D399;
  color: #1E293B;
}

.sc-modulo-info h3 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1E293B;
  margin: 0 0 4px;
}

.sc-modulo-info p {
  font-size: 0.92rem;
  color: #475569;
  margin: 0 0 4px;
}

.sc-modulo-info span {
  font-size: 0.8rem;
  color: #8B5CF6;
  font-weight: 600;
}

/* --- Info adicional --- */
.sc-info-adicional {
  margin: 32px 0;
  padding: 24px;
  background: #FEF9C3;
  border: 2px solid #1E293B;
  border-radius: 16px;
  box-shadow: 4px 4px 0px 0px #1E293B;
}

.sc-info-adicional p {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.sc-info-adicional p:last-child {
  margin-bottom: 0;
}

.sc-info-adicional strong {
  font-weight: 700;
  color: #0F172A;
}

/* --- Global notice --- */
.sc-aviso-global {
  background: #FDF2F8;
  border: 2px solid #1E293B;
  border-radius: 16px;
  box-shadow: 4px 4px 0px 0px #1E293B;
  padding: 20px 28px;
  margin: 24px auto;
  max-width: 1200px;
}

.sc-aviso-global p {
  margin: 0;
  font-size: 0.95rem;
  color: #1E293B;
  font-weight: 500;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 900px) {
  .sc-single-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sc-grid,
  .sc-relacionados-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .sc-hero h1 {
    font-size: 2rem;
  }

  .sc-fab-whatsapp {
    display: flex;
  }
}

@media (max-width: 560px) {

  .sc-grid,
  .sc-relacionados-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sc-hero h1 {
    font-size: 1.6rem;
  }

  .sc-hero-content {
    padding: 0 16px;
  }

  .sc-single-layout {
    padding: 20px 16px 40px;
  }

  .sc-container {
    padding: 0 16px;
  }

  .sc-archive-header h1 {
    font-size: 1.6rem;
  }

  .sc-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .sc-search-form {
    max-width: 100%;
  }

  .sc-card-img {
    height: 180px;
  }

  .sc-card-no-img {
    height: 180px;
  }

  .sc-breadcrumbs {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sc-relacionados {
    padding: 32px 16px 40px;
  }
}

/* ---- PAGINAS GERADAS ---- */
.sc-page {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: #1E293B;
  background: #FFFDF5;
}

.sc-page-hero {
  background: #8B5CF6;
  padding: 60px 24px;
  text-align: center;
}

.sc-page-hero h1 {
  color: #fff;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 2.2em;
  font-weight: 800;
  margin: 0 0 12px;
}

.sc-page-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1em;
  margin: 0 0 24px;
  max-width: 600px;
  margin-right: auto;
}

.sc-page-section {
  padding: 48px 0;
}

.sc-page-section-alt {
  background: #FDF2F8;
}

.sc-page-section-title {
  text-align: center;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.6em;
  font-weight: 800;
  margin-bottom: 32px;
  color: #1E293B;
}

.sc-page-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sc-page-step {
  text-align: center;
  padding: 24px;
  background: #fff;
  border: 2px solid #1E293B;
  border-radius: 16px;
  box-shadow: 4px 4px 0px 0px #1E293B;
}

.sc-page-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #8B5CF6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2em;
  margin: 0 auto 16px;
  border: 2px solid #1E293B;
}

.sc-page-step:nth-child(2) .sc-page-step-num {
  background: #F472B6;
}

.sc-page-step:nth-child(3) .sc-page-step-num {
  background: #34D399;
  color: #1E293B;
}

.sc-page-step h3 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.1em;
  font-weight: 700;
  margin: 0 0 8px;
}

.sc-page-step p {
  font-size: 0.9em;
  color: #64748B;
  margin: 0;
}

.sc-page-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.sc-page-cta {
  background: #8B5CF6;
  padding: 56px 24px;
  text-align: center;
}

.sc-page-cta h2 {
  color: #fff;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.8em;
  font-weight: 800;
  margin: 0 0 12px;
}

.sc-page-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 24px;
}

.sc-page-faq {
  max-width: 700px;
  margin: 0 auto;
}

.sc-page-faq-item {
  padding: 20px 0;
  border-bottom: 2px solid #1E293B;
}

.sc-page-faq-item:last-child {
  border-bottom: none;
}

.sc-page-faq-item h3 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1em;
  font-weight: 700;
  margin: 0 0 8px;
}

.sc-page-faq-item p {
  font-size: 0.9em;
  color: #64748B;
  margin: 0;
}

@media (max-width: 768px) {
  .sc-page-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sc-page-hero h1 {
    font-size: 1.6em;
  }

  .sc-page-cta h2 {
    font-size: 1.3em;
  }
}

/* Paginas legais */
.sc-page-legal-content {
  font-size: 0.95em;
  line-height: 1.8;
}

.sc-page-legal-content p {
  margin-bottom: 1em;
}

.sc-page-legal-content h3 {
  font-size: 1.15em;
  font-weight: 700;
  margin: 1.5em 0 0.5em;
}

.sc-page-legal-content strong {
  font-weight: 700;
}

.sc-page-legal-content a {
  color: #8B5CF6;
  text-decoration: underline;
}

/* ---- NAVEGACAO DO PLUGIN ---- */

/* Esconder header/footer do tema nas paginas do plugin */
body.single-cursos .wp-site-blocks>header,
body.single-cursos .wp-site-blocks>.wp-block-template-part:first-child,
body.post-type-archive-cursos .wp-site-blocks>header,
body.post-type-archive-cursos .wp-site-blocks>.wp-block-template-part:first-child,
body.tax-categoria_curso .wp-site-blocks>header,
body.tax-categoria_curso .wp-site-blocks>.wp-block-template-part:first-child,
body.sync-cursos-page .wp-site-blocks>header,
body.sync-cursos-page .wp-site-blocks>.wp-block-template-part:first-child {
  display: none !important;
}

body.single-cursos .wp-site-blocks>footer,
body.single-cursos .wp-site-blocks>.wp-block-template-part:last-child,
body.post-type-archive-cursos .wp-site-blocks>footer,
body.post-type-archive-cursos .wp-site-blocks>.wp-block-template-part:last-child,
body.tax-categoria_curso .wp-site-blocks>footer,
body.tax-categoria_curso .wp-site-blocks>.wp-block-template-part:last-child,
body.sync-cursos-page .wp-site-blocks>footer,
body.sync-cursos-page .wp-site-blocks>.wp-block-template-part:last-child {
  display: none !important;
}

.sc-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--sc-card-bg, #fff);
  border-bottom: 1px solid var(--sc-border, #e5e5e5);
}

.sc-nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.sc-nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.sc-nav-logo-img {
  height: 48px;
  width: auto;
}

.sc-nav-logo-text {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--sc-text, #1a1a1a);
}

.sc-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sc-nav-link {
  padding: 8px 14px;
  font-size: 0.88em;
  font-weight: 500;
  color: var(--sc-text-light, #666);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s;
}

.sc-nav-link:hover {
  color: var(--sc-text, #1a1a1a);
  background: var(--sc-bg, #f5f5f5);
}

.sc-nav-cta {
  padding: 8px 18px;
  font-size: 0.85em;
  font-weight: 600;
  color: #fff;
  background: var(--sc-primary, #25D366);
  text-decoration: none;
  border-radius: 6px;
  margin-left: 8px;
  transition: opacity 0.15s;
}

.sc-nav-cta:hover {
  opacity: 0.9;
  color: #fff;
}

.sc-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
}

.sc-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--sc-text, #1a1a1a);
  border-radius: 1px;
  transition: all 0.2s;
}

/* ---- RODAPE DO PLUGIN ---- */
.sc-footer {
  background: var(--sc-text, #1a1a1a);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 0;
  margin-top: 48px;
}

.sc-footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.sc-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
}

.sc-footer-logo {
  font-size: 1.3em;
  font-weight: 700;
  color: #fff;
}

.sc-footer-desc {
  font-size: 0.88em;
  margin-top: 8px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

.sc-footer-links h4 {
  font-size: 0.82em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
}

.sc-footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sc-footer-links li {
  margin-bottom: 8px;
}

.sc-footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.88em;
  transition: color 0.15s;
}

.sc-footer-links a:hover {
  color: #fff;
}

.sc-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.sc-footer-bottom p {
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  text-align: center;
}

/* Nav e Footer responsivo */
@media (max-width: 768px) {
  .sc-nav-toggle {
    display: flex;
  }

  .sc-nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--sc-card-bg, #fff);
    border-bottom: 1px solid var(--sc-border, #e5e5e5);
    flex-direction: column;
    padding: 12px;
    gap: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .sc-nav.sc-nav-open .sc-nav-links {
    display: flex;
  }

  .sc-nav-link {
    padding: 12px 16px;
    width: 100%;
  }

  .sc-nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }

  .sc-footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Playful nav/footer overrides */
.sc-nav {
  border-bottom: 2px solid #1E293B;
}

.sc-nav-cta {
  border: 2px solid #1E293B;
  box-shadow: 2px 2px 0px #1E293B;
}

.sc-nav-cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #1E293B;
}



/* === Thumb da sidebar do single-curso (v2.3.20) === */
.sc-sidebar-thumb {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  margin-bottom: 18px;
}