/* ==========================================================
   site.css — layout de SITE para a área do participante:
   header full-bleed, shell 1280px, blog com sidebar, footer.
   ========================================================== */

:root {
    --site-max: 1280px;
    --shadow-lg: 0 20px 48px rgba(5, 86, 83, .18);
}

body { background: #F6FBFB; }

/* ---------- Header full-bleed ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: linear-gradient(135deg, var(--brand-darker) 0%, var(--brand-dark) 60%, var(--brand) 130%);
    box-shadow: 0 1px 0 rgba(255,255,255,.06) inset;
    transition: box-shadow .2s ease;
}

.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(4, 48, 46, .25); }

.site-header-inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 92px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.site-logo img { height: 66px; }
.site-logo-text { color: #fff; font-weight: 800; font-size: 16px; letter-spacing: .01em; display: none; }
@media (min-width: 560px) { .site-logo-text { display: inline; } }

.site-nav { display: flex; align-items: center; gap: 6px; flex: 1; }

.site-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 999px;
    color: rgba(255,255,255,.82);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.site-nav-link svg { flex-shrink: 0; opacity: .9; }
.site-nav-link:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.site-nav-link.active { background: rgba(255,255,255,.96); color: var(--brand-darker); }

.site-header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.site-search { position: relative; display: flex; align-items: center; }
.site-search-toggle {
    width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center;
    transition: background .15s ease;
}
.site-search-toggle:hover { background: rgba(255,255,255,.24); }
.site-search #site-search-input {
    width: 0; opacity: 0; padding: 0; border: none; margin-left: 0;
    height: 38px; border-radius: 999px; background: rgba(255,255,255,.96);
    transition: width .2s ease, opacity .2s ease, padding .2s ease, margin .2s ease;
    position: absolute; right: 44px; box-shadow: var(--shadow-sm);
}
.site-search.is-open #site-search-input { width: 240px; opacity: 1; padding: 8px 16px; margin-left: 8px; }

.notif-bell svg { color: #fff; display: block; }

.site-user-menu { position: relative; }
.site-user-btn {
    display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: none;
    border-radius: 999px; padding: 6px 12px 6px 6px; cursor: pointer; color: #fff; font: inherit;
    transition: background .15s ease;
}
.site-user-btn:hover { background: rgba(255,255,255,.22); }
.site-user-avatar {
    width: 30px; height: 30px; border-radius: 50%; background: var(--brand-light); color: var(--brand-darker);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0;
}
.site-user-name { font-size: 13.5px; font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: none; }
@media (min-width: 900px) { .site-user-name { display: inline; } }

.site-user-dropdown {
    position: absolute; right: 0; top: 46px; width: 200px; background: #fff; border-radius: 12px;
    box-shadow: var(--shadow-lg); overflow: hidden; z-index: 50; padding: 6px;
}
.site-user-dropdown a {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14px;
    font-weight: 600; color: var(--ink); text-decoration: none;
}
.site-user-dropdown a:hover { background: var(--brand-pale); text-decoration: none; }
.site-user-dropdown-logout { color: var(--danger) !important; }

.site-burger {
    display: none; width: 38px; height: 38px; border-radius: 10px; border: none; background: rgba(255,255,255,.14);
    color: #fff; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}

@media (max-width: 900px) {
    .site-header-inner { gap: 14px; height: 64px; }
    .site-nav {
        position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
        background: var(--brand-darker); padding: 10px; gap: 4px; box-shadow: var(--shadow-lg);
        max-height: 0; overflow: hidden; transition: max-height .22s ease;
    }
    .site-nav.is-open { max-height: 260px; }
    .site-nav-link { justify-content: flex-start; padding: 12px 14px; }
    .site-search.is-open #site-search-input { width: 160px; }
    .site-user-name { display: none; }
    .site-burger { display: flex; }
}

/* ---------- Shell principal (largura de site) ---------- */

.site-shell { max-width: var(--site-max); margin: 0 auto; padding: 28px 24px 56px; }

@media (max-width: 560px) { .site-shell { padding: 18px 16px 40px; } }

/* ---------- Hero / banner carousel em destaque ---------- */

.banner-carousel {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 32px;
    background: linear-gradient(135deg, var(--brand-darker), var(--brand));
}
.banner-carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 7;
    min-height: 320px;
    max-height: 440px;
}
@media (max-width: 720px) { .banner-carousel-track { min-height: 200px; aspect-ratio: 16/9; } }

.banner-nav { width: 46px; height: 46px; }
.banner-nav.prev { left: 18px; }
.banner-nav.next { right: 18px; }
.banner-dots { bottom: 18px; gap: 10px; }
.banner-dot { width: 10px; height: 10px; }

/* ---------- Cabeçalho de seção (blog / vitrine) ---------- */

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-heading h1, .section-heading h2 { margin: 0 0 4px; font-size: 26px; color: var(--brand-darker); font-weight: 800; letter-spacing: -.01em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Barra de filtros ---------- */

.filter-bar {
    display: flex; gap: 14px; flex-wrap: wrap; align-items: end; padding: 20px 22px; margin-bottom: 22px;
}
.filter-bar .field-group { display: flex; flex-direction: column; gap: 4px; }
.filter-bar label { margin: 0; }

/* ---------- Layout de blog: conteúdo + sidebar ---------- */

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 980px) { .blog-layout { grid-template-columns: 1fr; } }

.blog-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 92px; }
@media (max-width: 980px) { .blog-sidebar { position: static; } }

.widget { background: #fff; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); padding: 20px; }
.widget-title {
    display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; letter-spacing: .03em;
    text-transform: uppercase; color: var(--brand-darker); margin: 0 0 14px;
}
.widget-title svg { color: var(--brand); }

.category-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.category-list li a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 8px;
    color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s ease, color .15s ease;
}
.category-list li a:hover { background: var(--brand-pale); color: var(--brand-darker); text-decoration: none; }
.category-list li a.active { background: var(--brand-pale); color: var(--brand-darker); }
.category-list li a span {
    background: var(--brand-pale); color: var(--brand-darker); font-size: 11.5px; font-weight: 800; border-radius: 999px;
    padding: 2px 8px; min-width: 24px; text-align: center;
}
.category-list li a.active span, .category-list li a:hover span { background: var(--brand); color: #fff; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
    display: inline-flex; align-items: center; gap: 5px; padding: 6px 13px; border-radius: 999px; background: var(--brand-pale);
    color: var(--brand-darker); font-size: 12.5px; font-weight: 700; text-decoration: none; transition: background .15s ease, transform .15s ease;
}
.tag-chip:hover { background: var(--brand); color: #fff; text-decoration: none; transform: translateY(-1px); }
.tag-chip span { opacity: .75; font-weight: 600; }

.recent-list { display: flex; flex-direction: column; gap: 12px; }
.recent-item { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.recent-thumb {
    width: 58px; height: 58px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--brand-pale);
}
.recent-thumb-placeholder {
    width: 58px; height: 58px; border-radius: 10px; flex-shrink: 0; background: linear-gradient(135deg, var(--brand-pale), var(--brand-light));
    display: flex; align-items: center; justify-content: center; color: var(--brand-darker);
}
.recent-item-body h5 { margin: 0 0 4px; font-size: 13.5px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.recent-item:hover .recent-item-body h5 { color: var(--brand-dark); }
.recent-item-body span { font-size: 11.5px; color: var(--muted); }

.widget-cta { text-align: center; padding: 22px 18px; }
.widget-cta p { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }

.footer-widget-empty, .site-footer-empty { color: var(--muted); font-size: 13px; }

/* ---------- Cards de post (feed / blog) ---------- */

.feed-card {
    border-radius: 18px;
    position: relative;
}
.feed-card-img-wrap { position: relative; overflow: hidden; border-radius: 18px 18px 0 0; aspect-ratio: 16/9; background: var(--brand-pale); }
.feed-grid.is-list .feed-card-img-wrap { border-radius: 14px 0 0 14px; aspect-ratio: auto; height: 100%; }
.feed-card-img { transition: transform .35s ease; height: 100%; aspect-ratio: auto; }
.feed-card:hover .feed-card-img { transform: scale(1.06); }
.feed-card:hover { box-shadow: 0 18px 40px rgba(5, 86, 83, .22); }

.feed-card-badge {
    position: absolute; top: 12px; left: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff; font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 999px; box-shadow: 0 4px 10px rgba(0,0,0,.18);
    text-transform: uppercase; letter-spacing: .03em;
}
.feed-card-body h3 { font-size: 18.5px; font-weight: 800; line-height: 1.32; letter-spacing: -.01em; }
.feed-card-meta { align-items: center; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.feed-card-meta .meta-icon { display: inline-flex; align-items: center; gap: 4px; }
.feed-card-meta .meta-icon svg { opacity: .7; }
.feed-card-author {
    width: 22px; height: 22px; border-radius: 50%; background: var(--brand-pale); color: var(--brand-darker);
    display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; margin-right: 4px;
}

/* ---------- Vitrine de cursos ---------- */

.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }

.course-card {
    display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden;
    border: 1px solid var(--border); box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
    transition: transform .18s ease, box-shadow .18s ease;
}
.course-card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(5, 86, 83, .26); text-decoration: none; }

.course-card-img-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, var(--brand-pale), var(--brand-light)); }
.course-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.course-card:hover .course-card-img-wrap img { transform: scale(1.05); }

.course-badge {
    position: absolute; top: 14px; left: 14px; background: linear-gradient(135deg, #F5A524, #E8890C); color: #fff;
    font-size: 11px; font-weight: 800; padding: 6px 13px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em;
    box-shadow: 0 6px 14px rgba(232,137,12,.35);
}

.course-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-card-body h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.course-card-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; flex: 1; }

.course-meta-row { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.course-meta-row svg { color: var(--brand); flex-shrink: 0; }

.course-price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; padding-top: 14px; border-top: 1px dashed var(--border); }
.course-price-row > div { display: flex; flex-direction: column; gap: 2px; }
.course-price { font-size: 24px; font-weight: 900; color: #E8890C; letter-spacing: -.02em; line-height: 1.1; }
.course-price-row small { font-size: 12px; font-weight: 700; color: var(--muted); }
.course-cta {
    display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; border-radius: 10px; font-weight: 800; font-size: 14px;
    color: #fff; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); box-shadow: var(--shadow-sm);
    white-space: nowrap; transition: transform .12s ease, box-shadow .12s ease;
}
.course-card:hover .course-cta { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(7,127,122,.35); }

/* ---------- Footer full-bleed ---------- */

.site-footer {
    margin-top: 40px;
    background: linear-gradient(180deg, var(--brand-darker) 0%, #033330 100%);
    color: rgba(255,255,255,.85);
}
.site-footer-inner {
    max-width: var(--site-max); margin: 0 auto; padding: 52px 24px 32px;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
@media (max-width: 860px) { .site-footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer-inner { grid-template-columns: 1fr; } }

.site-footer-brand img { height: 48px; margin-bottom: 14px; }
.site-footer-brand p { font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.62); margin: 0; max-width: 320px; }

.site-footer-inner-guest {
    grid-template-columns: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.site-footer-guest-logo { height: 78px; flex-shrink: 0; }
.site-footer-inner-guest p {
    font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.72); margin: 0;
    text-align: right; max-width: 420px;
}
@media (max-width: 640px) {
    .site-footer-inner-guest { justify-content: center; text-align: center; }
    .site-footer-inner-guest p { text-align: center; }
}

.site-footer-col h4 { color: #fff; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 16px; }
.site-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer-col a, .site-footer-col button {
    color: rgba(255,255,255,.72); text-decoration: none; font-size: 14px; font-weight: 500; background: none; border: none;
    padding: 0; cursor: pointer; font-family: inherit; text-align: left; display: flex; justify-content: space-between; gap: 8px;
}
.site-footer-col a:hover, .site-footer-col button:hover { color: #fff; text-decoration: underline; }
.site-footer-col a span { color: rgba(255,255,255,.45); font-weight: 700; font-size: 12px; }

.site-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12); padding: 18px 24px; text-align: center; font-size: 12.5px; color: rgba(255,255,255,.55);
}

/* ---------- Página de post/curso individual: hero de conteúdo ---------- */

.content-hero-img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: 18px; margin-bottom: 20px; box-shadow: var(--shadow-md); }
.content-article { background: #fff; border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); padding: 32px; }
.content-article h1 { font-size: 30px; font-weight: 900; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 14px; color: var(--brand-darker); }

/* ---------- Fórum ---------- */
.forum-list { display: flex; flex-direction: column; gap: 12px; }
.forum-item { display: flex; gap: 16px; align-items: stretch; padding: 16px 18px; text-decoration: none; color: inherit; transition: box-shadow .15s ease, transform .15s ease; }
.forum-item:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); text-decoration: none; }
.forum-thumb { width: 92px; height: 72px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.forum-item-body { min-width: 0; flex: 1; }
.forum-item-body h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; color: var(--brand-darker); line-height: 1.3; overflow-wrap: anywhere; }
.forum-item-body p { margin: 0 0 10px; font-size: 14px; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.forum-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); align-items: center; }
.forum-meta strong { color: var(--ink); }
.forum-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #eef2f2; color: #4b5d5c; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; vertical-align: middle; margin-right: 4px; }
.forum-chip-pin { background: var(--brand-pale); color: var(--brand-darker); }
.forum-chip-team { background: var(--brand); color: #fff; margin: 0 0 0 4px; }
.forum-form .field-group { margin-bottom: 16px; }
.forum-form textarea { width: 100%; resize: vertical; }
.forum-topico { padding: 26px 28px; }
.forum-topico h1 { margin: 0 0 10px; font-size: 26px; font-weight: 900; color: var(--brand-darker); line-height: 1.25; overflow-wrap: anywhere; }
.forum-texto { font-size: 15.5px; line-height: 1.7; overflow-wrap: anywhere; }
.forum-imagem { display: block; max-width: 100%; max-height: 520px; margin-top: 18px; border-radius: 14px; box-shadow: var(--shadow-md); }
.forum-resp-titulo { font-size: 18px; font-weight: 800; color: var(--brand-darker); margin: 26px 0 12px; }
.forum-respostas { display: flex; flex-direction: column; gap: 12px; }
.forum-resposta { padding: 18px 22px; }
.forum-resposta.is-oculta { opacity: .55; border-style: dashed; }
.forum-mod { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--border); font-size: 13px; }
.forum-mod .btn { width: auto; padding: 6px 14px; font-size: 13px; }
@media (max-width: 560px) {
    .forum-thumb { width: 64px; height: 52px; }
    .forum-topico { padding: 20px 18px; }
}
