/* ==========================================================================
   1. Base Styles
   ========================================================================== */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* ==========================================================================
   2. Utilities & Helper Classes
   ========================================================================== */
.active {
    color: black !important;
}

.invisivel {
    display: none !important;
}

.bg-prussianblue {
    background-color: #003d58;
}

.bg-sapphireblue {
    background-color: #045c84;
}

.bg-lavender {
    background-color: #dfeffc;
}

/* Scrollbar Styles */
.scroll {
    max-height: 35vh !important;
    overflow-y: scroll;
}

.scroll::-webkit-scrollbar {
    width: .5rem !important;
}

.scroll::-webkit-scrollbar-track {
    background-color: rgba(230, 230, 230, 0.578);
    border-radius: .1rem;
}

.scroll::-webkit-scrollbar-thumb {
    background: rgba(7, 7, 7, 0.7);
    border-radius: .1rem;
}

.scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(7, 7, 7, 0.459);
}

/* ==========================================================================
   3. Generic Layout & Header
   ========================================================================== */
.logo-header {
    max-width: 446px;
    width: 100%;
    height: auto;
    display: block;
}

.img-usuario {
    height: 3rem;
    width: 3rem;
    background-position: top center;
    background-size: 100% auto;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: cover;
}

.header-projeto-filho {
    background-color: #e2e2e2;
    height: 140px;
}

/* ==========================================================================
   4. Components (Navigation, Accordions, Dropdowns, Breadcrumbs)
   ========================================================================== */
/* Navigation */
.nav-item .abaixa-seta::after {
    vertical-align: 20px !important;
}

.dropdown-item:hover {
    background-color: antiquewhite;
}

/* Breadcrumbs */
.breadcrumb .breadcrumb-item a {
    position: relative;
    display: inline-block;
    text-decoration: none;
}

.breadcrumb .breadcrumb-item a.active {
    font-weight: 600;
}

.breadcrumb .breadcrumb-item a::before,
.breadcrumb .breadcrumb-item a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    background-color: transparent;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .2s ease-in-out, background-color .2s ease-in-out;
}

.breadcrumb .breadcrumb-item a::before {
    top: 0;
    height: .2rem;
}

.breadcrumb .breadcrumb-item a::after {
    bottom: 0;
    height: .1rem;
}

.breadcrumb .breadcrumb-item a:hover::before,
.breadcrumb .breadcrumb-item a:hover::after,
.breadcrumb .breadcrumb-item a.active::before,
.breadcrumb .breadcrumb-item a.active::after {
    background-color: black;
    transform: scaleX(1);
}

/* Accordion */
.accordion-body ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.accordion-button:not(.collapsed) {
    background-color: #045c84;
}

/* ==========================================================================
   5. Specific Blocks (Cards, Table, Offcanvas)
   ========================================================================== */
.presidente-card {
    display: flex;
    flex-direction: column;
}

.presidente-card-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    flex-shrink: 0;
}

.vereador-foto {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 3 / 4;
    height: auto;
    object-fit: cover;
}

@media (max-width: 575.98px) {
    .offcanvas.offcanvas-start {
        width: 50% !important;
        max-width: 320px !important;
        min-width: 220px;
    }

    .vereador-foto {
        max-width: 120px;
        margin-bottom: 1rem;
    }

    .table {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   6. SLIDESHOW NOVO
   ========================================================================== */
.swiper {
    width: 100%;
    height: auto;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.swiper-slide {
    position:relative;
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.swiper-slide img {
    display: block;
    width: 100%;            
    object-fit: cover;
}

.slide-caption {
    position:absolute !important;
    bottom:0 !important;
    padding: 100px 24px 24px 24px !important;
    background-color: rgba(0,0,0,0.7) !important;
    background: linear-gradient(0deg,rgba(0, 0, 0, 0.61) 40%, rgba(0, 0, 0, 0) 100%) !important;
    color: #fff !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-align: left !important;
    opacity:0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transform: translateY(20px) !important;
    transition: all 0.5s ease !important;
}

.slide-caption h5 {
    margin: 0 !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}
.slide-caption h6 {
    display: block !important;
    margin: 0 !important;
    font-size: 1rem !important;
    color: #ddd !important;
    font-weight: 400 !important;
}

@media (max-width: 480px) {
    .slide-caption h5 {
        margin: 0 !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        margin-bottom: 8px !important;
        text-align: center !important;
    }
    .slide-caption h6 {
        display: none !important;
    }
}

.swiper-slide-active .slide-caption {
    opacity:1 !important;
    transform:translateY(0) !important;
    transition-delay: 0.3s !important;
}

/* ========== FIM SLIDESHOW NOVO ============== */
