/* ====================================
   AJUSTES DE ALTURA E ESTRUTURA (PADRONIZADO)
   ==================================== */

/* Contêiner do Banner Principal (Slider Esquerdo) */
.main-banner-box {
    background-color: #0b2545;
    height: 380px !important; /* Trava a altura exata do slider */
    position: relative;
}

.slide-content-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Área da Imagem */
.slide-img-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.slide-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover !important; /* Impede a imagem de distorcer ou esticar */
}

/* Legenda em Faixa Única na Base */
.slide-caption-bar {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
    padding: 16px 20px 14px 20px;
    width: 100%;
    z-index: 2;
}

.caption-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ====================================
   CONTROLES DO CARROSSEL (TOPO)
   ==================================== */
.custom-carousel-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.45);
    padding: 4px 10px;
    border-radius: 15px;
    backdrop-filter: blur(4px);
}

.btn-carousel-nav {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    padding: 0 4px;
    transition: opacity 0.2s ease;
}

.btn-carousel-nav:hover {
    opacity: 0.8;
}

.custom-indicators button {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    border: none !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
}

.custom-indicators .active {
    background-color: #ffffff !important;
}

/* ====================================
   CARDS LATERAIS (TEXTO ESQ / FOTO DIR)
   ==================================== */
.side-card-horizontal {
    background: #ffffff;
    border-radius: 8px;
    height: 118px !important; /* Altura padronizada (3 cards x 118px + gaps = 380px do slider) */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    border-right: 4px solid #003D7A; /* Cor institucional */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.side-card-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12) !important;
}

/* Área de Texto (Esquerda) */
.side-card-text p {
    font-size: 0.88rem;
    font-weight: 700;
    color: #2b2b2b;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Área da Imagem (Direita) */
.side-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover !important; /* Enquadra a foto perfeitamente */
}

/* Responsividade para Telas Menores */
@media (max-width: 991px) {
    .main-banner-box {
        height: 320px !important;
    }

    .side-card-horizontal {
        height: 105px !important;
    }
}