/* ============================================
   SEARCH FORM — fix botão arredondado vs input quadrado
   ============================================ */
.search-form-group {
    display: flex;
    border: 2px solid var(--tenant-primary);
    border-radius: 50rem;
    overflow: hidden;
    background: #fff;
}

.search-form-input,
input.search-form-input {
    flex: 1;
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    outline: none;
    background: transparent;
    color: var(--tenant-primary, #1075ad);
    caret-color: var(--tenant-primary, #1075ad);
    -webkit-text-fill-color: var(--tenant-primary, #1075ad);
}

.search-form-input::placeholder,
input.search-form-input::placeholder {
    color: #adb5bd;
    -webkit-text-fill-color: #adb5bd;
}

.search-form-btn {
    border: none;
    background: var(--tenant-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.search-form-btn:hover {
    background: var(--tenant-primary);
    filter: brightness(90%);
}

/* ============================================
   FILTRO POR REGIONAL — dropdown elegante e centralizado
   ============================================ */
.regional-filter-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
}

.regional-filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted, #6c757d);
    margin: 0;
}

.regional-filter-select,
.regional-filter-group .nice-select {
    width: 100% !important;
    max-width: 360px;
    height: 44px;
    line-height: 42px;
    padding: 0 40px 0 18px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--color-text-main, #212529);
    background-color: #fff;
    border: 1px solid var(--color-bg-canvas, #dee2e6);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.regional-filter-group .nice-select:hover {
    border-color: var(--tenant-primary, #1075ad);
}

.regional-filter-group .nice-select:after {
    border-bottom: 2px solid var(--tenant-primary, #1075ad);
    border-right: 2px solid var(--tenant-primary, #1075ad);
    width: 8px;
    height: 8px;
    right: 18px;
}

.regional-filter-group .nice-select.open {
    border-color: var(--tenant-primary, #1075ad);
    box-shadow: 0 0 0 3px rgba(26, 60, 110, 0.12);
}

.regional-filter-group .nice-select .current {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.regional-filter-group .nice-select .list {
    width: 100% !important;
    min-width: 100%;
    max-height: 280px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid var(--color-bg-canvas, #e9ecef);
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    margin-top: 6px;
    padding: 4px;
}

.regional-filter-group .nice-select .option {
    min-height: 36px;
    line-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 0.35rem;
    color: var(--color-text-main, #212529);
    background-color: transparent;
}

.regional-filter-group .nice-select .option:hover,
.regional-filter-group .nice-select .option.focus,
.regional-filter-group .nice-select .option.selected.focus {
    background-color: rgba(26, 60, 110, 0.08);
    color: var(--tenant-primary, #1075ad);
}

.regional-filter-group .nice-select .option.selected {
    font-weight: 600;
    color: var(--tenant-primary, #1075ad);
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.section-title-custom {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
}

.section-title-link {
    font-size: 0.85rem;
    color: var(--tenant-primary);
    text-decoration: none;
    font-weight: 500;
}

.section-title-link:hover {
    text-decoration: underline;
}

/* ============================================
   SUPER NOTÍCIA
   ============================================ */
.super-news-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.super-news-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.super-news-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.85) 100%);
}

.super-news-content {
    position: relative;
    z-index: 1;
    padding: 2.5rem;
    color: #fff;
    width: 100%;
}

.super-news-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--tenant-primary);
    border-radius: 50rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.super-news-title {
    font-size: 2rem;
    font-weight: 700;
    max-width: 800px;
    line-height: 1.2;
}

.super-news-title a {
    color: #fff;
    text-decoration: none;
}

.super-news-title a:hover {
    text-decoration: underline;
}

.super-news-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin-top: 0.5rem;
}

.super-news-meta {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ============================================
   CARDS BADGES
   ============================================ */
.card-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 0.25rem;
    pointer-events: none;
}

.card-badge-nacional {
    top: 0.5rem;
    left: 0.5rem;
    background: var(--bs-danger, #dc3545);
    color: #fff;
}

.card-badge-star {
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
}

.card-badge-super {
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    animation: pulse-super 2s infinite;
}

@keyframes pulse-super {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ============================================
   HIGHLIGHT CARD (carrossel)
   ============================================ */
.highlight-card {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--bs-body-bg, #fff);
    transition: box-shadow 0.15s;
}

.highlight-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.highlight-card-img-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.highlight-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-light-bg-subtle, #f8f9fa);
    color: var(--bs-secondary-color, #6c757d);
    font-size: 2rem;
}

.highlight-card-body {
    padding: 0.85rem 1rem;
}

.highlight-card-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    line-height: 1.35;
}

.highlight-card-body h3 a {
    color: var(--bs-body-color, #212529);
    text-decoration: none;
}

.highlight-card-body h3 a:hover {
    color: var(--tenant-primary);
}

.highlight-card-body p {
    font-size: 0.8rem;
    color: var(--bs-secondary-color, #6c757d);
    margin: 0 0 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.highlight-card-body time {
    font-size: 0.72rem;
    color: var(--bs-secondary-color, #6c757d);
}

/* ============================================
   FEATURED CARD (Nacional principal)
   ============================================ */
.featured-card {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--bs-body-bg, #fff);
    height: 100%;
    transition: box-shadow 0.15s;
}

.featured-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.featured-card-img-wrap {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.featured-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-light-bg-subtle, #f8f9fa);
    color: var(--bs-secondary-color, #6c757d);
    font-size: 3rem;
}

.featured-card-body {
    padding: 1.25rem;
}

.featured-card-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    background: var(--bs-danger-bg-subtle, #f8d7da);
    color: var(--bs-danger, #dc3545);
    border-radius: 50rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.featured-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.featured-card-body h3 a {
    color: var(--bs-body-color, #212529);
    text-decoration: none;
}

.featured-card-body h3 a:hover {
    color: var(--tenant-primary);
}

.featured-card-body p {
    font-size: 0.85rem;
    color: var(--bs-secondary-color, #6c757d);
    margin: 0 0 0.5rem;
}

.featured-card-body time {
    font-size: 0.75rem;
    color: var(--bs-secondary-color, #6c757d);
}

/* ============================================
   NACIONAL CARD (grid)
   ============================================ */
.nacional-card {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--bs-body-bg, #fff);
    height: 100%;
    transition: box-shadow 0.15s;
}

.nacional-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.nacional-card-img-wrap {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.nacional-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nacional-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-light-bg-subtle, #f8f9fa);
    color: var(--bs-secondary-color, #6c757d);
    font-size: 2rem;
}

.nacional-card-body {
    padding: 0.75rem;
}

.nacional-card-body h3 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    line-height: 1.35;
}

.nacional-card-body h3 a {
    color: var(--bs-body-color, #212529);
    text-decoration: none;
}

.nacional-card-body h3 a:hover {
    color: var(--tenant-primary);
}

.nacional-card-body time {
    font-size: 0.7rem;
    color: var(--bs-secondary-color, #6c757d);
}

/* ============================================
   REGIONAIS CARD (grid simples)
   ============================================ */
.regionais-card {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--bs-body-bg, #fff);
    height: 100%;
    transition: box-shadow 0.15s;
}

.regionais-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.regionais-card-img-wrap {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.regionais-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.regionais-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-light-bg-subtle, #f8f9fa);
    color: var(--bs-secondary-color, #6c757d);
    font-size: 2rem;
}

.regionais-card-body {
    padding: 0.75rem 1rem;
}

.regionais-card-body h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    line-height: 1.35;
}

.regionais-card-body h3 a {
    color: var(--bs-body-color, #212529);
    text-decoration: none;
}

.regionais-card-body h3 a:hover {
    color: var(--tenant-primary);
}

.regionais-card-body p {
    font-size: 0.78rem;
    color: var(--bs-secondary-color, #6c757d);
    margin: 0 0 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.regionais-card-body time {
    font-size: 0.7rem;
    color: var(--bs-secondary-color, #6c757d);
}

/* ============================================
   CAROUSEL OVERRIDES
   ============================================ */
#highlightsCarousel .carousel-control-prev,
#highlightsCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: var(--tenant-primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

#highlightsCarousel .carousel-control-prev { left: -20px; }
#highlightsCarousel .carousel-control-next { right: -20px; }

#highlightsCarousel .carousel-indicators {
    position: relative;
    bottom: 0;
    margin-top: 0.75rem;
}

#highlightsCarousel .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tenant-primary);
    opacity: 0.3;
    border: none;
}

#highlightsCarousel .carousel-indicators button.active {
    opacity: 1;
}

@media (max-width: 991px) {
    .super-news-title { font-size: 1.5rem; }
    .featured-card-img-wrap { height: 200px; }
}

/* ============================================
   CATEGORY FILTER BUTTONS — portal primary color
   ============================================ */
.btn-primary {
    --bs-btn-bg: var(--tenant-primary);
    --bs-btn-border-color: var(--tenant-primary);
    --bs-btn-hover-bg: var(--tenant-primary);
    --bs-btn-hover-border-color: var(--tenant-primary);
    --bs-btn-active-bg: var(--tenant-primary);
    --bs-btn-active-border-color: var(--tenant-primary);
}

.btn-outline-primary {
    --bs-btn-color: var(--tenant-primary);
    --bs-btn-border-color: var(--tenant-primary);
    --bs-btn-hover-bg: var(--tenant-primary);
    --bs-btn-hover-border-color: var(--tenant-primary);
    --bs-btn-active-bg: var(--tenant-primary);
    --bs-btn-active-border-color: var(--tenant-primary);
}

@media (max-width: 576px) {
    .super-news-card { min-height: 300px; }
    .super-news-content { padding: 1.5rem; }
    .super-news-title { font-size: 1.2rem; }
    .section-title-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ============================================
   CARD HEIGHT EQUALIZATION — mesma row, mesma altura
   ============================================ */
.news-card-items {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.news-card-items .news-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}
.news-card-items .news-content p {
    flex: 1 0 auto;
}
