/* =====================================================================
   VITRINE DE SERVICOS — /servicos
   Namespace sv-. Herdado da antiga listagem /servicos-odonto (srv-), que
   virou a vitrine unica da rede: hero, filtros e cabecalho de secao.
   Os CARDS nao estao aqui — sao o componente global .atv-card
   (wwwroot/css/Public/atv-card.css), reusado como nas outras telas.
   ===================================================================== */
/* ── Hero (padrão público) ── */
.sv-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.sv-hero-bg {
    position: absolute;
    inset: -20px;
    background-image: url('/images/atividades.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    filter: blur(4px) brightness(0.72);
    z-index: 0;
}

.sv-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,20,60,.72) 0%, rgba(0,76,153,.18) 55%, transparent 100%);
    z-index: 1;
}

.sv-hero-inner {
    position: relative;
    z-index: 2;
    padding: 40px 20px 40px;
    width: 100%;
}

.sv-hero-badge {
    display: inline-block;
    background: #f6be00;
    color: #1a1a1a;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .25rem .8rem;
    border-radius: 2rem;
    margin-bottom: .75rem;
}

.sv-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 .5rem;
    line-height: 1.15;
}

.sv-hero-desc {
    color: rgba(255,255,255,.8);
    font-size: 1rem;
    margin: 0;
    max-width: 640px;
}

@media (max-width: 767px) {
    .sv-hero { min-height: 220px; }
    .sv-hero-bg {
        inset: 0;
        background-size: cover;
        background-color: #001a3d;
        background-position: center;
        filter: brightness(0.9);
    }
    .sv-hero-overlay {
        background: linear-gradient(to top, rgba(0,20,60,0.6) 0%, transparent 60%);
    }
    .sv-hero-inner { padding: 16px 16px 16px; }
    .sv-hero-title { font-size: 1.4rem; }
    .sv-hero-desc { font-size: .85rem; }
}

.textoComplementar {
    font-size: 1.4rem;
    padding: 1rem;
}

.course-content-title {
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limita a 3 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 80px; /* Defina a altura para 3 linhas (ajuste conforme necessário) */
    line-height: 26px; /* Ajuste a altura da linha para que 3 linhas caibam em 80px */
}


.section-area {
    width: 100%;
}

#formRadio {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.filtrosPesquisa {
    width: 100%;
    padding: 0.25rem 0.5rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
    font-size: 1.2rem;
}

.tituloFiltro {
    font-size: 1.6rem;
    font-weight: 500;
    margin-top: 1.5rem;
}

.form-check {
    width: 25%;
    max-width: 400px;
}

#idUop {
    width: 100%;
    max-width: 600px;
}

@media only screen and (max-width: 991px) {
    .form-check {
        width: 33.3%;
    }
}

@media only screen and (max-width: 767px) {
    .tituloFiltro {
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .form-check {
        width: 50%;
    }

    #idUop {
        width: 100%;
        max-width: 767px;
    }
}

@media only screen and (max-width: 385px) {
    .form-check {
        width: calc(100% - 1rem);
        margin-left: 1rem;
    }
}

/* ===== Section header + Filtros (padrão Eventos) ===== */
.sv-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 32px 0 18px;
    flex-wrap: wrap;
    gap: 12px;
}
.sv-section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}
.sv-count {
    color: #6b7280;
    font-size: 14px;
}
.sv-filtros-collapse {
    background: #fff;
    border-radius: 14px;
    margin-bottom: 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    overflow: hidden;
}
.sv-filtros-summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: .65rem;
    font-weight: 700;
    font-size: 14px;
    color: #1f2937;
    user-select: none;
}
.sv-filtros-summary::-webkit-details-marker { display: none; }
.sv-filtros-summary::marker { display: none; }
.sv-filtros-summary i.fa-filter { color: #004c99; }
.sv-filtros-summary .sv-filtros-chevron {
    margin-left: auto;
    transition: transform .25s;
    color: #888;
}
.sv-filtros-collapse[open] .sv-filtros-chevron { transform: rotate(180deg); color: #004c99; }
.sv-filtros-summary:hover { background: #f8f9fb; }
.sv-filtros {
    padding: 4px 20px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    border-top: 1px solid #eef0f4;
}
.sv-filtro-group {
    flex: 1 1 200px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sv-filtro-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0;
}
.sv-select, .sv-input {
    padding: 9px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    font-size: 14px;
    background: #fff;
    color: #1f2937;
    width: 100%;
    transition: border-color .2s, box-shadow .2s;
}
.sv-select:focus, .sv-input:focus {
    outline: none;
    border-color: #004c99;
    box-shadow: 0 0 0 3px rgba(0,76,153,.12);
}
.sv-btn-filtrar {
    background: linear-gradient(135deg, #004c99 0%, #0070d4 100%);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .15s;
    white-space: nowrap;
}
.sv-btn-filtrar:hover { background: #003770; transform: translateY(-1px); }
.sv-btn-limpar {
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}
.sv-btn-limpar:hover { background: #f1f3f5; color: #1f2937; }

@media (max-width: 575px) {
    .sv-filtros { gap: 12px; }
    .sv-filtro-group { flex: 1 1 100%; }
}

/* ── Grupo por unidade ─────────────────────────────────────────────── */
.sv-unidade {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 34px 0 16px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a2a40;
}

.sv-unidade i { color: #004c99; font-size: .95rem; }

.sv-unidade .sv-unidade-qtd {
    font-size: .78rem;
    font-weight: 600;
    color: #5b6b80;
    background: #eef3fa;
    border: 1px solid #e0e7f0;
    border-radius: 6px;
    padding: 2px 9px;
}

.sv-vazio {
    text-align: center;
    color: #64748b;
    padding: 3rem 1rem;
}

@media (max-width: 575px) {
    .sv-unidade { font-size: 1rem; margin: 26px 0 12px; }
}
