.kopa-tab-container-5 { align-items: flex-start; padding: 0px 0px}

.tab-content.course-listing {
    background: transparent;
    border: none;
}

/* ============ Card de Duração ============ */
.kopa-tabs-5 {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 18px rgba(29, 30, 70, 0.1);
}
.kopa-tabs-5 li { border: none; float: none; width: 100%; }
.kopa-tabs-5 li:first-child span {
    display: block;
    padding: 15px 18px !important;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.kopa-tabs-5 li:first-child span i { margin-right: 8px; }
.kopa-tabs-5 li + li { border-top: 1px solid #eee; }
.kopa-tabs-5 li a {
    display: block;
    padding: 13px 18px;
    color: #1D1E46;
    font-size: 14px;
    line-height: 1.2;
    transition: background .15s ease, color .15s ease, padding .15s ease;
}
.kopa-tabs-5 li a:hover { background: #f7f3f2; color: #7D1E19; padding-left: 22px; }
.kopa-tabs-5 li.active a { background: #1D1E46; color: #fff; font-weight: 700; }

/* =========================
    CARD DE BUSCA
============================ */
.search-card {
    --navy: #1D1E46;
    --navy-deep: #14152f;
    --red: #7D1E19;
    --red-light: #b5453a;
    --white: #ffffff;
    --white-dim: #d7d6e2;
    --slate: #9b99b8;
    --line: rgba(255, 255, 255, 0.08);

    width: 100%;
    background: linear-gradient(165deg, #232456, var(--navy) 60%);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    color: var(--white);
    margin-bottom: 0;
    /* card compacto: linhas empilhadas com pouco espaçamento */
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.search-card * { box-sizing: border-box; }
.search-card::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 60%;
    height: 160%;
    background: radial-gradient(circle, rgba(125, 30, 25, 0.18), transparent 65%);
    pointer-events: none;
}
.search-card h1 {
    font-size: 15px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--white);
    float: none;
    text-transform: none;
    margin: 0;
}

/* ---- Linha busca + estado ---- */
.search-card .sc-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.search-card .search-wrap { position: relative; flex: 1 1 280px; min-width: 0; }
.search-card .search-wrap svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--navy);
    opacity: 0.55;
    transition: opacity .2s, color .2s;
    pointer-events: none;
}
.search-card .search-wrap input {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--white);
    color: var(--navy);
    font-size: 14px;
    padding: 5px 12px 5px 44px;
    outline: none;
    transition: box-shadow .2s, border-color .2s;
}
.search-card .search-wrap input::placeholder { color: #8a8678; }
.search-card .search-wrap input:focus { box-shadow: 0 0 0 4px rgba(125, 30, 25, 0.28); border-color: var(--red); }
.search-card .search-wrap input:focus + svg { color: var(--red-light); opacity: 1; }

.search-card .state-wrap { flex: 0 1 220px; min-width: 0; }
.search-card .state-wrap select {
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--white);
    color: var(--navy);
    font-size: 14px;
    padding: 9px 14px;
    outline: none;
    cursor: pointer;
    transition: box-shadow .2s, border-color .2s;
}
.search-card .state-wrap select:focus { box-shadow: 0 0 0 4px rgba(125, 30, 25, 0.28); border-color: var(--red); }

.search-card .sort-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.search-card .sort-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); }

/* Dois botões de ordenação independentes */
.search-card .sort-options { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.search-card .sort-btn {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--navy-deep);
    color: var(--slate);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    transition: background .2s, color .2s, border-color .2s;
}
.search-card .sort-btn:hover { color: var(--white); border-color: var(--red); }
.search-card .sort-btn.is-active {
    background: linear-gradient(135deg, var(--red), #9a3128);
    color: var(--white);
    border-color: transparent;
}

/* ---- Rodapé ---- */
.search-card .footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 3px;
    border-top: 1px solid var(--line);
}
.search-card .count { font-size: 13.5px; color: var(--white); margin: 0; }
.search-card .count #courses-count { color: var(--white); }
.search-card .count strong { color: var(--white); font-weight: 700; }
.search-card .clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--white);
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}
.search-card .clear-btn:hover { background: rgba(125, 30, 25, 0.22); border-color: var(--red); color: var(--white); }

@media (max-width: 520px) {
    .search-card { padding: 22px 18px 18px; }
    .search-card h1 { font-size: 20px; }
    .search-card .footer-row { align-items: flex-start; }
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* minmax(0,...) deixa a coluna encolher e evita estouro horizontal */
    gap: 40px;
    align-items: stretch;
    margin-top: 12px;
    padding: 0; /* alinhado à borda de conteúdo do widget (mesma dos cards de cima) */
}
.course-grid .through-the-courses { display: flex; min-width: 0; } /* display:flex = default p/ o JS restaurar */

/* Card */
.course-grid .entry-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    background-color: #fff;
    border: 1px solid #6F6F6E;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(29, 30, 70, 0.1);
    transition: transform .2s ease, box-shadow .2s ease;
}
.course-grid .entry-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(29, 30, 70, 0.16);
}

.course-grid .entry-thumb { position: relative; width: 100% !important; float: none !important; margin: 0; background: #f5f5f7; }
.course-grid .entry-thumb img { width: 100%; height: auto; object-fit: contain; display: block; }
.course-grid .entry-thumb .mask { display: none; }
.course-grid .entry-thumb .more-link {
    position: absolute;
    bottom: 0;
    right: 12px;
    transform: translateY(50%); 
    z-index: 2;
    display: inline-flex;
    align-items: center;
    background: #7D1E19;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(125, 30, 25, 0.35);
    white-space: nowrap;
}
.course-grid .entry-thumb .more-link span { color: #fff; }
.course-grid .entry-thumb .more-link i {
    background: #fff;
    color: #7D1E19;
    height: 18px;
    width: 18px;
    line-height: 17px;
    margin-left: 4px;
}
.course-grid .entry-thumb .more-link:hover { background: #1D1E46; }
.course-grid .entry-thumb .more-link:hover i { color: #1D1E46; }

.course-grid .entry-content {
    padding: 24px 22px 22px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.course-grid .entry-content header { margin-bottom: 10px; }
.course-grid .entry-title { margin: 0; font-size: 17px; line-height: 1.35; }
.course-grid .entry-title a { color: #1D1E46; font-weight: 700; word-break: break-word; }
.course-grid .entry-title a:hover { color: #7D1E19; }

.course-grid .entry-content p,
.course-grid .entry-content ul li { color: #6b6b76; font-size: 14px; line-height: 1.55; }
.course-grid .entry-content .subheading { font-size: 13px; }

.course-grid .entry-content i.fas { color: #7D1E19; }

.course-grid .entry-content > .row {
    margin: auto 0 0;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}
.course-grid .entry-content .more-link { font-size: 13px; font-weight: 700; color: #7D1E19; }
.course-grid .entry-content .more-link i {
    background: #7D1E19;
    color: #fff;
    height: 19px;
    width: 19px;
    line-height: 18px;
}
.course-grid .entry-content .more-link:hover { color: #1D1E46; }
.course-grid .entry-content .more-link:hover i { background: #1D1E46; }

@media (max-width: 991px) { .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .course-grid { grid-template-columns: minmax(0, 1fr); } }

.responsive-logo {
    width: 100%;
        max-width: 300px;
}

@media (max-width: 576px) {
    .responsive-logo {
    width: 50%;            
    }
}
.logo_unip {
    display: flex;
    justify-content:center;
    align-items: center;
    margin-left: -20px;
}
    