/* =============================================================
   Sync Cursos — CSS Principal
   Plugin autossuficiente, compativel com qualquer tema WordPress
   ============================================================= */

:root {
    --sc-primary: #25D366;
    --sc-primary-dark: #1da851;
    --sc-price: #e53e3e;
    --sc-bg: #f5f5f5;
    --sc-card-bg: #ffffff;
    --sc-text: #2d2d2d;
    --sc-text-light: #777;
    --sc-border: #e5e5e5;
    --sc-shadow: 0 1px 4px rgba(0,0,0,0.06);
    --sc-shadow-hover: 0 6px 16px rgba(0,0,0,0.1);
    --sc-radius: 8px;
    --sc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* =============================================================
   RESET / ISOLAMENTO DO TEMA
   ============================================================= */

.sc-single,
.sc-archive {
    box-sizing: border-box;
    font-family: var(--sc-font);
    color: var(--sc-text);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    background: var(--sc-bg);
}

.sc-single *,
.sc-archive * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 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;
}

/* Anular padding global do WP (has-global-padding) — sem isso, elementos
   ficam offset ~32px da borda do viewport em temas de bloco (FSE). */
body.sync-cursos-page.has-global-padding,
body.single-cursos.has-global-padding,
body.post-type-archive-cursos.has-global-padding,
body.tax-categoria_curso.has-global-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.sync-cursos-page .has-global-padding,
body.single-cursos .has-global-padding,
body.post-type-archive-cursos .has-global-padding,
body.tax-categoria_curso .has-global-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Override CSS vars do WP: faz o seletor > :where(...) do bloco usar max-width:100% */
body.sync-cursos-page,
body.single-cursos,
body.post-type-archive-cursos,
body.tax-categoria_curso {
    --wp--style--global--content-size: 100%;
    --wp--style--global--wide-size: 100%;
}

body.single-cursos .entry-content,
body.single-cursos .wp-block-post-content,
body.single-cursos .is-layout-constrained,
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-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-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-flow {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* max-width e box-sizing resetados aqui. width e margin-left sao controlados
   por cada tema (ex: style-hotcursos-2.css usa formula full-bleed com CSS var). */
body.sync-cursos-page .sc-hero-hot,
body.sync-cursos-page .sc-page-hero,
body.sync-cursos-page .sc-page-section,
body.sync-cursos-page .sc-page-cta,
body.single-cursos .sc-hero-hot,
body.single-cursos .sc-page-hero,
body.single-cursos .sc-page-section,
body.single-cursos .sc-page-cta,
body.post-type-archive-cursos .sc-hero-hot,
body.post-type-archive-cursos .sc-page-hero,
body.post-type-archive-cursos .sc-page-section,
body.post-type-archive-cursos .sc-page-cta,
body.tax-categoria_curso .sc-hero-hot,
body.tax-categoria_curso .sc-page-hero,
body.tax-categoria_curso .sc-page-section,
body.tax-categoria_curso .sc-page-cta {
    max-width: none !important;
    box-sizing: border-box !important;
}

/* =============================================================
   COMPONENTES COMPARTILHADOS
   ============================================================= */

.sc-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Breadcrumbs */
.sc-breadcrumbs {
    padding: 12px 0;
    font-size: 0.8em;
    color: var(--sc-text-light);
}

.sc-breadcrumbs a {
    color: var(--sc-text-light);
    text-decoration: none;
}

.sc-breadcrumbs a:hover {
    color: var(--sc-primary-dark);
}

.sc-breadcrumbs .sc-sep {
    margin: 0 6px;
    color: #ccc;
}

/* Botao WhatsApp */
.sc-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--sc-primary);
    color: #fff !important;
    padding: 12px 24px;
    font-size: 0.9em;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.sc-btn-whatsapp:hover {
    background: var(--sc-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(37,211,102,0.35);
    color: #fff !important;
}

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

/* Preco */
.sc-preco {
    font-size: 1.6em;
    font-weight: 800;
    color: var(--sc-price);
    line-height: 1.2;
}

.sc-preco-label {
    font-size: 0.5em;
    font-weight: 400;
    color: var(--sc-text-light);
    display: block;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tags */
.sc-tag {
    display: inline-block;
    background: #f0f0f0;
    color: var(--sc-text-light);
    padding: 4px 10px;
    border-radius: 4px;
    margin: 2px 2px 2px 0;
    text-decoration: none;
    font-size: 0.78em;
    transition: all 0.15s;
    border: 1px solid transparent;
}

.sc-tag:hover,
.sc-tag.active {
    background: var(--sc-primary);
    color: #fff;
}

/* =============================================================
   SINGLE CURSO
   ============================================================= */

.sc-single {
    padding-bottom: 40px;
}

/* Hero */
.sc-hero {
    position: relative;
    height: 260px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #222;
}

.sc-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.sc-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px;
}

.sc-hero h1 {
    color: #fff;
    font-size: 1.6em;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.sc-hero-cats {
    margin-bottom: 8px;
}

.sc-hero-cats .sc-tag {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    font-size: 0.72em;
}

/* Layout 2 colunas */
.sc-single-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    max-width: 1100px;
    margin: -30px auto 0;
    padding: 0 16px;
    position: relative;
    z-index: 3;
    align-items: start;
}

/* Conteudo */
.sc-single-main {
    background: var(--sc-card-bg);
    border-radius: var(--sc-radius);
    padding: 28px 32px;
    box-shadow: var(--sc-shadow);
}

.sc-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: 6px;
    background: #000;
}

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

/* Conteudo do curso */
.sc-content {
    font-size: 0.92em;
    line-height: 1.75;
    color: #444;
}

.sc-content p {
    margin-bottom: 0.9em;
}

.sc-content h2 {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--sc-text);
    margin: 1.6em 0 0.5em 0;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--sc-border);
}

.sc-content h3 {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--sc-text);
    margin: 1.3em 0 0.4em 0;
}

.sc-content strong {
    color: var(--sc-text);
    font-weight: 600;
}

.sc-content ul,
.sc-content ol {
    margin: 0.6em 0;
    padding-left: 1.4em;
}

.sc-content li {
    margin-bottom: 0.35em;
    line-height: 1.6;
}

.sc-content li::marker {
    color: var(--sc-primary);
}

/* Sidebar */
.sc-sidebar {
    position: sticky;
    top: 20px;
}

.sc-sidebar-card {
    background: var(--sc-card-bg);
    border-radius: var(--sc-radius);
    padding: 20px;
    box-shadow: var(--sc-shadow);
}

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

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

.sc-sidebar-info {
    border-top: 1px solid var(--sc-border);
    padding-top: 14px;
    margin-top: 6px;
}

.sc-sidebar-info h4 {
    font-size: 0.72em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sc-text-light);
    margin: 0 0 8px 0;
}

/* Relacionados */
.sc-relacionados {
    max-width: 1100px;
    margin: 36px auto 0;
    padding: 0 16px;
    font-family: var(--sc-font);
    font-size: 15px;
    color: var(--sc-text);
    line-height: 1.6;
}

.sc-relacionados * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.sc-relacionados h2 {
    font-size: 1.15em;
    font-weight: 700;
    margin-bottom: 16px;
}

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

/* Modulos do curso */
.sc-modulos { margin-top: 32px; }
.sc-modulos h2 { font-size: 1.2em; font-weight: 700; margin-bottom: 16px; }
.sc-modulos-list { display: flex; flex-direction: column; gap: 8px; }
.sc-modulo-item { display: flex; gap: 16px; padding: 16px; border: 1px solid var(--sc-border); border-radius: 8px; }
.sc-modulo-numero { width: 36px; height: 36px; border-radius: 50%; background: var(--sc-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9em; flex-shrink: 0; }
.sc-modulo-info h3 { font-size: 0.95em; font-weight: 600; margin: 0; }
.sc-modulo-info p { font-size: 0.85em; color: var(--sc-text-light); margin: 4px 0 0; }
.sc-modulo-info span { font-size: 0.78em; color: var(--sc-text-light); }

/* FAB WhatsApp mobile */
.sc-fab-whatsapp {
    display: none;
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 9999;
    width: 52px;
    height: 52px;
    background: var(--sc-primary);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(37,211,102,0.4);
    text-decoration: none;
}

.sc-fab-whatsapp svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}

/* =============================================================
   ARCHIVE / GRID
   ============================================================= */

.sc-archive {
    min-height: 50vh;
    padding: 24px 0 48px;
}

.sc-archive-header {
    margin-bottom: 16px;
}

.sc-archive-header h1 {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0 0 2px 0;
}

.sc-archive-count {
    color: var(--sc-text-light);
    font-size: 0.82em;
}

/* Filtros */
.sc-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--sc-card-bg);
    border-radius: var(--sc-radius);
    box-shadow: var(--sc-shadow);
}

.sc-filters-label {
    font-weight: 600;
    font-size: 0.8em;
    color: var(--sc-text-light);
    margin-right: 4px;
}

.sc-search-form {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.sc-search-input {
    padding: 6px 12px;
    border: 1px solid var(--sc-border);
    border-radius: 4px;
    font-size: 0.82em;
    width: 180px;
    font-family: var(--sc-font);
}

.sc-search-input:focus {
    outline: none;
    border-color: var(--sc-primary);
    box-shadow: 0 0 0 2px rgba(37,211,102,0.12);
}

.sc-search-btn {
    padding: 6px 14px;
    background: var(--sc-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.82em;
    font-family: var(--sc-font);
}

.sc-search-btn:hover {
    background: var(--sc-primary-dark);
}

/* Grid — sempre 4 colunas desktop, reduz responsivamente */
.sc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
@media (max-width: 1024px) {
    .sc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .sc-grid { grid-template-columns: 1fr; }
}

/* Card */
.sc-card {
    background: var(--sc-card-bg);
    border-radius: var(--sc-radius);
    overflow: hidden;
    box-shadow: var(--sc-shadow);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.sc-card:hover {
    box-shadow: var(--sc-shadow-hover);
    transform: translateY(-2px);
}

.sc-card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 160px;
    background: #e9ecef;
}

.sc-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s;
}

.sc-card:hover .sc-card-img {
    transform: scale(1.04);
}

.sc-card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 0.82em;
}

.sc-card-cat {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.68em;
    font-weight: 600;
}

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

.sc-card-title {
    font-size: 0.88em;
    font-weight: 600;
    color: var(--sc-text);
    margin: 0 0 10px 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sc-card-title a {
    color: inherit;
    text-decoration: none;
}

.sc-card-title a:hover {
    color: var(--sc-primary-dark);
}

.sc-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--sc-border);
}

.sc-card-preco {
    font-size: 1em;
    font-weight: 700;
    color: var(--sc-price);
}

.sc-card-btn {
    display: inline-block;
    background: var(--sc-primary);
    color: #fff !important;
    padding: 6px 14px;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.78em;
    transition: background 0.15s;
}

.sc-card-btn:hover {
    background: var(--sc-primary-dark);
    color: #fff !important;
}

/* Paginacao */
.sc-pagination {
    text-align: center;
    margin-top: 24px;
}

.sc-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.sc-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--sc-border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--sc-text);
    font-size: 0.85em;
    font-weight: 500;
}

.sc-pagination .page-numbers.current {
    background: var(--sc-primary);
    color: #fff;
    border-color: var(--sc-primary);
}

.sc-pagination .page-numbers:hover:not(.current) {
    border-color: var(--sc-primary);
    color: var(--sc-primary);
}

/* Sem resultados */
.sc-no-results {
    text-align: center;
    padding: 48px 20px;
    background: var(--sc-card-bg);
    border-radius: var(--sc-radius);
    box-shadow: var(--sc-shadow);
}

.sc-no-results h2 {
    font-size: 1.15em;
    margin-bottom: 8px;
}

.sc-no-results p {
    color: var(--sc-text-light);
    font-size: 0.9em;
}

/* =============================================================
   RESPONSIVO
   ============================================================= */

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

    .sc-sidebar {
        position: static;
        order: -1;
    }

    .sc-sidebar-card {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    .sc-sidebar-card .sc-preco {
        margin-bottom: 0;
    }

    .sc-sidebar-card .sc-btn-whatsapp {
        margin-bottom: 0;
        width: auto;
        flex: 1;
        min-width: 180px;
    }

    .sc-sidebar-info {
        width: 100%;
    }

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

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

    .sc-hero {
        height: 200px;
    }

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

@media (max-width: 540px) {
    .sc-single,
    .sc-archive {
        font-size: 14px;
    }

    .sc-hero {
        height: 180px;
    }

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

    .sc-single-main {
        padding: 20px;
    }

    .sc-card-img-wrapper {
        height: 120px;
    }

    .sc-card-body {
        padding: 10px;
    }

    .sc-card-title {
        font-size: 0.8em;
    }

    .sc-card-preco {
        font-size: 0.85em;
    }

    .sc-card-btn {
        padding: 5px 10px;
        font-size: 0.72em;
    }

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

    .sc-search-form {
        margin-left: 0;
    }

    .sc-search-input {
        width: 100%;
    }

    .sc-sidebar-card {
        flex-direction: column;
        text-align: center;
    }

    .sc-sidebar-card .sc-btn-whatsapp {
        width: 100%;
    }

    .sc-relacionados-grid {
        grid-template-columns: 1fr;
    }

    .sc-archive-header h1 {
        font-size: 1.2em;
    }
}

/* Informacoes adicionais do curso */
.sc-info-adicional { margin-top: 24px; padding: 16px; border: 1px solid var(--sc-border); border-radius: 8px; }
.sc-info-adicional p { margin: 4px 0; font-size: 0.9em; }
.sc-info-adicional strong { color: var(--sc-text); }

/* Aviso global (mensagem para todos os cursos) */
.sc-aviso-global { margin-top: 20px; padding: 14px 18px; background: #fef3c7; border: 1px solid #fcd34d; border-radius: 8px; }
.sc-aviso-global p { margin: 0; font-size: 0.88em; color: #92400e; font-weight: 500; }

/* ---- PAGINAS GERADAS ---- */
.sc-page { font-family: var(--sc-font); color: var(--sc-text); }

.sc-page-hero {
    background: var(--sc-bg, #111);
    padding: 0;
    text-align: left;
}

/* Wrapper interno: limita largura e centraliza o conteudo dentro do hero full-bleed */
.sc-page-hero-content {
    max-width: min(calc(100% - 48px), 1320px);
    margin: 0 auto;
    padding: 80px 24px 64px;
    text-align: left;
}

.sc-page-hero h1 { color: var(--sc-text, #fff); font-size: clamp(2rem, 5vw, 3.8em); font-weight: 900; line-height: 1.0; letter-spacing: -0.03em; margin: 0 0 18px; }
.sc-page-hero p { color: var(--sc-text-light, rgba(255,255,255,0.75)); font-size: 1.05em; line-height: 1.6; margin: 0 0 28px; max-width: 580px; }
.sc-page-section { padding: 48px 0; }
.sc-page-section-alt { background: var(--sc-bg, #f5f5f5); }
.sc-page-section-title { text-align: center; font-size: 1.6em; font-weight: 700; margin-bottom: 32px; }
.sc-page-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sc-page-step { text-align: center; padding: 24px; }
.sc-page-step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--sc-primary, #25D366); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2em; margin: 0 auto 16px; }
.sc-page-step h3 { font-size: 1.1em; font-weight: 700; margin: 0 0 8px; }
.sc-page-step p { font-size: 0.9em; color: var(--sc-text-light, #777); margin: 0; }
.sc-page-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sc-page-cta { background: var(--sc-primary, #25D366); padding: 56px 24px; text-align: center; }
.sc-page-cta h2 { color: #fff; font-size: 1.8em; 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: 1px solid var(--sc-border, #e5e5e5); }
.sc-page-faq-item:last-child { border-bottom: none; }
.sc-page-faq-item h3 { font-size: 1em; font-weight: 600; margin: 0 0 8px; }
.sc-page-faq-item p { font-size: 0.9em; color: var(--sc-text-light, #777); 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: var(--sc-primary, #25D366); 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-brand { }
.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; }
}

/* =============================================================
   SC-HERO-HOT — Base (funciona em qualquer tema via CSS vars)
   O tema hotcursos-2 sobrescreve com animacoes e dark styling.
   ============================================================= */

/* Ocultar title do WP quando a pagina tem o hero_hot */
body.sync-cursos-page .wp-block-post-title,
body.sync-cursos-page .entry-title,
body.sync-cursos-page h1.page-title,
body.sync-cursos-page .page-header,
body.sync-cursos-page .page-header-content {
    display: none !important;
}

/* Ocultar padding/margin extras do WP que empurram o hero pra baixo */
body.sync-cursos-page .wp-site-blocks,
body.sync-cursos-page .entry-content,
body.sync-cursos-page .wp-block-post-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.sc-hero-hot {
    position: relative;
    width: 100%;
    padding: 80px 24px 64px;
    text-align: center;
    background: var(--sc-bg, #f5f5f5);
    color: var(--sc-text, #2d2d2d);
    box-sizing: border-box;
}

.sc-hero-hot-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.sc-hero-hot-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.sc-hero-hot-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--sc-card-bg, #ffffff);
    border: 1px solid var(--sc-border, #e5e5e5);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--sc-text, #2d2d2d);
}

.sc-hero-hot-title {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--sc-text, #2d2d2d);
    margin: 0;
}

.sc-hero-hot-accent {
    color: var(--sc-primary, #25D366);
}

.sc-hero-hot-copy {
    font-size: 1.05rem;
    color: var(--sc-text-light, #777);
    max-width: 560px;
    line-height: 1.7;
    margin: 0;
}

.sc-hero-hot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.sc-hero-hot-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: opacity 200ms ease;
    cursor: pointer;
}

.sc-hero-hot-btn:hover { opacity: 0.88; }

.sc-hero-hot-btn-primary {
    background: var(--sc-primary, #25D366);
    color: #fff;
}

.sc-hero-hot-btn-secondary {
    background: transparent;
    border: 2px solid var(--sc-primary, #25D366);
    color: var(--sc-primary, #25D366);
}

.sc-hero-hot-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--sc-text-light, #777);
    margin-top: 8px;
}

.sc-hero-hot-proof > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.sc-hero-hot-proof strong {
    color: var(--sc-text, #2d2d2d);
    font-weight: 700;
}

/* Ring e sparks so existem no hotcursos-2 */
.sc-hero-hot-ring,
.sc-hero-hot-sparks { display: none; }

@media (max-width: 600px) {
    .sc-hero-hot { padding: 56px 20px 48px; }
    .sc-hero-hot-title { font-size: clamp(1.5rem, 8vw, 2.2rem); }
    .sc-hero-hot-proof { gap: 16px; }
}
