body {
    font-family: 'Poppins',sans-serif;
    font-size: 19px;
    background: #f8f9fa;
}

/* ===== Quick Actions Grid ===== */
.quick-actions-card {
    border-radius: 1.25rem;
    background: linear-gradient(135deg,#ffffff,#f8fbff 55%,#f2f8ff);
    box-shadow: 0 12px 32px -8px rgba(15,29,66,.18),0 4px 12px -4px rgba(15,29,66,.08);
    position: relative;
    overflow: hidden
}

    .quick-actions-card:before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 90% 15%,rgba(15,29,66,.08),transparent 60%),radial-gradient(circle at 10% 85%,rgba(245,128,32,.08),transparent 65%)
    }

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 1.1rem
}

.quick-action-item {
    --qa-bg: #0f1d42;
    --qa-bg2: #1e3a8a;
    --qa-shadow: rgba(15,29,66,.45);
    display: flex;
    flex-direction: column;
    gap: .65rem;
    padding: 1.15rem 1.1rem 1.1rem;
    border-radius: 1rem;
    position: relative;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg,var(--qa-bg),var(--qa-bg2));
    box-shadow: 0 10px 20px -10px var(--qa-shadow),0 4px 12px -6px rgba(0,0,0,.15);
    overflow: hidden;
    min-height: 150px;
    transition: .4s cubic-bezier(.4,0,.2,1);
    isolation: isolate;
    border: 1px solid rgba(255,255,255,.08)
}

    .quick-action-item:before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 15% 20%,rgba(255,255,255,.18),transparent 60%),linear-gradient(145deg,rgba(255,255,255,.35),rgba(255,255,255,0));
        mix-blend-mode: overlay;
        opacity: .35;
        transition: .5s
    }

    .quick-action-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 38px -12px var(--qa-shadow),0 10px 22px -8px rgba(0,0,0,.25)
    }

        .quick-action-item:hover:before {
            opacity: .6
        }

.qa-icon {
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
    font-size: 1.65rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.25),0 4px 10px -4px rgba(0,0,0,.35);
    color: #fff
}

.qa-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .25px;
    margin: 0
}

.anchor-none {
    text-decoration: none;
    color: inherit;
}

.qa-desc {
    font-size: .72rem;
    line-height: 1.25;
    color: #eef4ff;
    font-weight: 500
}

.qa-arrow {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 1.55rem;
    transition: .35s;
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: 0 4px 12px -4px rgba(0,0,0,.35)
}

.quick-action-item:hover .qa-arrow {
    transform: translateX(4px) scale(1.05);
    background: #fff;
    color: var(--qa-bg)
}

.quick-action-item.qa-curriculo {
    --qa-bg: #f58020;
    --qa-bg2: #ffa733;
    --qa-shadow: rgba(245,128,32,.55)
}

.quick-action-item.qa-denuncie {
    --qa-bg: #dc3545;
    --qa-bg2: #e74c3c;
    --qa-shadow: rgba(220,53,69,.55)
}

.quick-action-item.qa-atualize {
    --qa-bg: #0d6efd;
    --qa-bg2: #1d78ff;
    --qa-shadow: rgba(13,110,253,.55)
}

.quick-action-item.qa-faq {
    --qa-bg: #6f42c1;
    --qa-bg2: #8d5ce6;
    --qa-shadow: rgba(111,66,193,.55)
}

.quick-action-item.qa-convencoes {
    --qa-bg: #0ca678;
    --qa-bg2: #13c29b;
    --qa-shadow: rgba(12,166,120,.55)
}

@media (max-width:1199.98px) {
    .quick-actions-grid {
        grid-template-columns: repeat(auto-fit,minmax(220px,1fr))
    }

    .quick-action-item {
        min-height: 145px
    }
}

@media (max-width:767.98px) {
    .quick-actions-grid {
        grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
        gap: .85rem
    }

    .qa-desc {
        display: none
    }

    .quick-action-item {
        padding: .95rem .9rem;
        min-height: 120px
    }
}

@media (max-width:575.98px) {
    .quick-action-item {
        border-radius: .85rem
    }

    .qa-icon {
        width: 46px;
        height: 46px;
        font-size: 1.4rem;
        border-radius: .85rem
    }

    .qa-title {
        font-size: .9rem
    }

    .qa-arrow {
        width: 34px;
        height: 34px;
        font-size: 1.3rem
    }
}

/* ===== Form validation util ===== */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050
}

.invalid {
    outline: 1px solid #e50000
}

.validation-message {
    color: #e50000
}

/* ===== Error boundary ===== */
.blazor-error-boundary {
    background: #b32121;
    color: #fff;
    padding: 1rem 1rem 1rem 3.7rem
}

    .blazor-error-boundary::after {
        content: "Ocorreu um erro."
    }

@media (max-width:991.98px) {
    .site-header .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,.1)
    }

    .site-header .nav-link {
        padding: .75rem 1rem;
        margin: .25rem 0
    }

    .site-header .btn-outline-light {
        margin-top: 1rem;
        width: 100%;
        justify-content: center
    }
}

.site-header .navbar-brand img {
    transition: transform .3s
}

.site-header .navbar-brand:hover img {
    transform: scale(1.05)
}

/* ===== Header (restored color) ===== */
.site-header {
    background: #0F1D42;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 10px 30px rgba(15,29,66,.25);
    position: relative;
    z-index: 1000;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: none; /* ensure no gradient overlays, keep solid color */
}

.site-header .navbar { background: transparent; }
.site-header .nav-link { color: rgba(255,255,255,.95); }
.site-header .nav-link:hover, .site-header .nav-link.active { color: #ffffff; }

.shadow-soft {
    box-shadow: 0 10px 30px rgba(0,0,0,.06)
}

.section-title {
    font-weight: 700
}

.text-small {
    font-size: .95rem
}

/* ===== Destaques ===== */
.feature-hero {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: #000;
    display: flex;
}

    .feature-hero img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

@media (min-width: 992px) {
    .col-lg-8.d-flex > a, .col-lg-8.d-flex > a > .feature-hero {
        height: 100%;
        display: flex;
    }
}

@media (max-width:991.98px) {
    /* give a reasonable height when stacked */
    .feature-hero img {
        height: 360px;
    }
}

@media (max-width:576px) {
    .feature-hero img {
        height: 260px
    }
}

.feature-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,rgba(15,29,66,0) 0%,rgba(15,29,66,.7) 55%,rgba(15,29,66,.9) 100%)
}

.feature-hero .content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    color: #fff;
    padding: 1rem 1.25rem 1.25rem
}

.mini-feature img {
    height: 150px;
    object-fit: cover
}

.mini-feature .card-body {
    padding: .75rem 1rem
}

.badge-accent {
    background: #ffe0c7;
    color: #f58020
}

.bg-orange {
    background-color: #F5801F
}

/* ===== Banner boletos ===== */
#banner-boletos .banner-boletos-wrapper {
    background: radial-gradient(circle at 15% 20%,#1d3a80,#0f1d42 65%),linear-gradient(120deg,#0f1d42,#142d63);
    color: #fff;
    box-shadow: 0 1.25rem 2rem -.75rem rgba(15,29,66,.45),0 .5rem 1rem -.25rem rgba(15,29,66,.4);
    position: relative
}

    #banner-boletos .banner-boletos-wrapper:before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 85% 25%,rgba(255,193,7,.25),transparent 60%),radial-gradient(circle at 70% 75%,rgba(255,255,255,.12),transparent 70%);
        mix-blend-mode: screen;
        opacity: .85
    }

#banner-boletos .text-shadow-soft {
    text-shadow: 0 2px 6px rgba(0,0,0,.35)
}

.boleto-btn-principal {
    background: #ffc107;
    border-color: #ffc107;
    color: #0f1d42
}

    .boleto-btn-principal:hover {
        filter: brightness(.95);
        color: #0f1d42
    }

.card-boleto-preview {
    background: linear-gradient(145deg,#ffffff,#f5f7fb);
    border-radius: 1.25rem
}

    .card-boleto-preview .placeholder-line {
        height: .55rem;
        background: linear-gradient(90deg,#e5eaf2,#f3f6fa 55%,#e5eaf2);
        border-radius: 4px;
        margin-bottom: .35rem;
        animation: shimmer 2.2s infinite linear;
        opacity: .85;
        background-size: 200% 100%
    }

@keyframes shimmer {
    0% {
        background-position: -40% 0
    }

    100% {
        background-position: 140% 0
    }
}

#banner-boletos .bg-accent-blob, #banner-boletos .bg-accent-blob-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: .35
}

#banner-boletos .bg-accent-blob {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg,#ffc107,#ff7b00);
    top: -40px;
    right: -40px
}

#banner-boletos .bg-accent-blob-2 {
    width: 170px;
    height: 170px;
    background: linear-gradient(135deg,#0dcaf0,#6ea8fe);
    bottom: -30px;
    left: -30px
}

/* ===== Convênios ===== */
#convenios {
    background: linear-gradient(135deg,#f5f9ff,#eef4ff 55%,#e8f0ff);
    border: 1px solid rgba(15,29,66,.08);
    box-shadow: 0 1.25rem 1.75rem -.75rem rgba(15,29,66,.1),0 .5rem 1rem -.25rem rgba(15,29,66,.08);
    padding: 2.25rem 1.75rem 2.75rem;
    border-radius: 1.25rem;
    overflow: hidden;
    position: relative
}

    #convenios:before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 85% 15%,rgba(255,180,0,.25),transparent 55%),radial-gradient(circle at 10% 90%,rgba(0,107,255,.18),transparent 60%);
        pointer-events: none;
        mix-blend-mode: screen
    }

    #convenios .section-title {
        font-weight: 600;
        letter-spacing: .25px
    }

.convenio-item {
    position: relative;
    background: #fff;
    border: 1px solid rgba(15,29,66,.07);
    border-radius: 1rem;
    padding: 1.1rem .75rem 1rem;
    text-decoration: none;
    color: #0f1d42;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: .3s;
    box-shadow: 0 .35rem .9rem -.4rem rgba(15,29,66,.15);
    isolation: isolate
}

    .convenio-item:before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(145deg,rgba(255,255,255,.6),rgba(255,255,255,0));
        opacity: 0;
        transition: .4s;
        border-radius: 1rem
    }

    .convenio-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 .75rem 1.5rem -.35rem rgba(15,29,66,.25),0 0 0 2px rgba(15,29,66,.08);
        border-color: rgba(15,29,66,.15)
    }

        .convenio-item:hover:before {
            opacity: 1
        }

    .convenio-item .icon-wrapper {
        width: 3.4rem;
        height: 3.4rem;
        border-radius: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.65rem;
        box-shadow: inset 0 0 0 1px rgba(15,29,66,.05),0 .25rem .4rem -.15rem rgba(15,29,66,.25);
        backdrop-filter: blur(3px)
    }

    .convenio-item small {
        font-size: .65rem;
        letter-spacing: .3px
    }

@media (min-width:992px) {
    .convenio-item small {
        font-size: .7rem
    }
}

.convenio-item:focus-visible {
    outline: 3px solid #0f1d42;
    outline-offset: 3px
}

/* ===== Notícias ===== */
#noticias {
    position: relative;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg,#ffffff,#f8fbff 50%,#f2f8ff);
    border-radius: 1.5rem;
    box-shadow: 0 15px 35px rgba(15,29,66,.08),0 5px 15px rgba(15,29,66,.04);
    border: 1px solid rgba(15,29,66,.06);
    overflow: hidden
}

    #noticias::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg,#0f1d42,#f58020,#0dcaf0,#0f1d42);
        background-size: 300% 100%;
        animation: gradientMove 8s ease-in-out infinite
    }

    #noticias .section-title {
        position: relative;
        font-weight: 700;
        color: #0f1d42;
        font-size: 1.75rem;
        letter-spacing: -.5px;
        margin-bottom: 0
    }

        #noticias .section-title::after {
            content: "";
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg,#f58020,#ffa733);
            border-radius: 2px
        }

.news-card {
    position: relative;
    border: none;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #ffffff;
    transition: .4s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 8px 25px rgba(15,29,66,.08),0 3px 10px rgba(15,29,66,.04);
    transform-origin: center;
    animation: fadeInUp .6s ease forwards;
    animation-play-state: paused
}

    .news-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg,transparent,#f58020,transparent);
        opacity: 0;
        transition: opacity .3s
    }

    .news-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 25px 50px rgba(15,29,66,.15),0 10px 25px rgba(15,29,66,.08)
    }

        .news-card:hover::before {
            opacity: 1
        }

    .news-card .card-img-top {
        height: 200px;
        object-fit: cover;
        transition: transform .6s cubic-bezier(.4,0,.2,1);
        background: linear-gradient(45deg,#f8f9fa,#e9ecef)
    }

    .news-card:hover .card-img-top {
        transform: scale(1.08)
    }

    .news-card .card-body {
        padding: 1.5rem;
        background: linear-gradient(180deg,#ffffff,#fdfdfd)
    }

    .news-card .badge {
        font-size: .75rem;
        font-weight: 600;
        padding: .5rem .875rem;
        border-radius: 1.5rem;
        letter-spacing: .3px;
        border: 1px solid rgba(255,255,255,.3);
        position: relative;
        overflow: hidden
    }

        .news-card .badge::before {
            content: "";
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);
            transition: left .6s
        }

    .news-card:hover .badge::before {
        left: 100%
    }

    .news-card .card-title {
        font-weight: 700;
        color: #0f1d42;
        line-height: 1.3;
        margin-bottom: 1rem;
        font-size: 1.1rem;
        letter-spacing: -.3px
    }

    .news-card .card-text {
        color: #6c757d;
        line-height: 1.6;
        font-size: .95rem;
        margin-bottom: 1.25rem
    }

    .news-card .card-footer {
        background: linear-gradient(180deg,#fdfdfd,#f8f9fa);
        border-top: 1px solid rgba(15,29,66,.06);
        padding: 1rem 1.5rem
    }

    .news-card .btn-outline-primary {
        border: 2px solid #0f1d42;
        color: #0f1d42;
        font-weight: 600;
        border-radius: 1.5rem;
        padding: .5rem 1.25rem;
        font-size: .875rem;
        letter-spacing: .3px;
        transition: .3s;
        position: relative;
        overflow: hidden
    }

        .news-card .btn-outline-primary::before {
            content: "";
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: #0f1d42;
            transition: left .3s;
            z-index: -1
        }

        .news-card .btn-outline-primary:hover {
            color: #ffffff;
            border-color: #0f1d42;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(15,29,66,.25)
        }

            .news-card .btn-outline-primary:hover::before {
                left: 0
            }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* Link "Ver todas" notícias */
#noticias .text-decoration-none {
    color: #0f1d42;
    font-weight: 600;
    font-size: .95rem;
    padding: .5rem 1rem;
    border-radius: 1.5rem;
    transition: .3s;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden
}

    #noticias .text-decoration-none::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg,#f58020,#ffa733);
        opacity: 0;
        transition: .3s;
        border-radius: 1.5rem;
        z-index: -1
    }

    #noticias .text-decoration-none:hover {
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(245,128,32,.3)
    }

        #noticias .text-decoration-none:hover::before {
            opacity: 1
        }

        #noticias .text-decoration-none:hover i {
            transform: translateX(4px)
        }

/* ===== Artigos ===== */
#artigos {
    position: relative;
    padding: 1.5rem 1.25rem 1.75rem;
    background: linear-gradient(135deg,#ffffff,#f7fbff 50%,#f1f7ff);
    border-radius: 1.5rem;
    box-shadow: 0 15px 35px rgba(15,29,66,.08),0 5px 15px rgba(15,29,66,.04);
    border: 1px solid rgba(15,29,66,.06);
    overflow: hidden;
    margin-bottom: 0
}

    #artigos::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg,#0dcaf0,#0f1d42,#f58020,#0dcaf0);
        background-size: 300% 100%;
        animation: gradientMove 10s ease-in-out infinite
    }

    #artigos .section-title {
        position: relative;
        font-weight: 700;
        color: #0f1d42;
        font-size: 1.75rem;
        letter-spacing: -.5px;
        margin-bottom: 0
    }

        #artigos .section-title::after {
            content: "";
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 50px;
            height: 3px;
            background: linear-gradient(90deg,#0dcaf0,#0984e3);
            border-radius: 2px
        }

    #artigos .text-decoration-none {
        color: #0f1d42;
        font-weight: 600;
        font-size: .95rem;
        padding: .5rem 1rem;
        border-radius: 1.5rem;
        transition: .3s;
        border: 2px solid transparent;
        position: relative;
        overflow: hidden
    }

        #artigos .text-decoration-none::before {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg,#0dcaf0,#0984e3);
            opacity: 0;
            transition: .3s;
            border-radius: 1.5rem;
            z-index: -1
        }

        #artigos .text-decoration-none:hover {
            color: #ffffff;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(13,202,240,.3)
        }

            #artigos .text-decoration-none:hover::before {
                opacity: 1
            }

.article-item {
    position: relative;
    border: none !important;
    border-bottom: 1px solid rgba(15,29,66,.08) !important;
    background: linear-gradient(135deg,#ffffff,#fdfdff);
    padding: 1.5rem 1.75rem;
    transition: .4s cubic-bezier(.4,0,.2,1);
    text-decoration: none;
    color: inherit;
    overflow: hidden
}

    .article-item::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg,#0dcaf0,#0984e3);
        transform: scaleY(0);
        transition: transform .3s;
        transform-origin: bottom
    }

    .article-item:hover::before {
        transform: scaleY(1)
    }

    .article-item:hover {
        transform: translateY(-4px) translateX(8px);
        box-shadow: 0 15px 30px rgba(13,202,240,.15),0 5px 15px rgba(15,29,66,.08);
        background: #ffffff
    }

    .article-item .article-title {
        font-weight: 700;
        color: #0f1d42;
        font-size: 1.1rem;
        letter-spacing: -.3px;
        margin-bottom: .75rem;
        line-height: 1.3;
        transition: color .3s
    }

    .article-item:hover .article-title {
        color: #0984e3
    }

    .article-item .article-summary {
        color: #6c757d;
        line-height: 1.6;
        font-size: .95rem;
        margin-bottom: .75rem;
        transition: color .3s
    }

    .article-item:hover .article-summary {
        color: #495057
    }

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: .85rem;
    color: #6c757d
}

    .article-meta .meta-item {
        display: flex;
        align-items: center;
        gap: .375rem;
        transition: color .3s
    }

.article-category {
    display: inline-block;
    background: linear-gradient(135deg,#e3f2fd,#f3e5f5);
    color: #0984e3;
    font-size: .75rem;
    font-weight: 600;
    padding: .375rem .875rem;
    border-radius: 1rem;
    margin-bottom: .5rem;
    border: 1px solid rgba(9,132,227,.1);
    transition: .3s
}

.article-item:hover .article-category {
    background: linear-gradient(135deg,#0984e3,#0dcaf0);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(9,132,227,.25)
}

.article-item.featured {
    background: linear-gradient(135deg,#fff8e1,#ffffff);
    border-left: 4px solid #f58020 !important
}

    .article-item.featured .article-category {
        background: linear-gradient(135deg,#fff3e0,#ffe0b2);
        color: #f57c00
    }

    .article-item.featured:hover .article-category {
        background: linear-gradient(135deg,#f58020,#ffa733);
        color: #fff
    }

/* ===== Newsletter (já usada) ===== */
.newsletter-card {
    background: linear-gradient(135deg,#ffffff,#f7fbff 50%,#f1f8ff);
    border: 2px solid rgba(13,202,240,.1);
    border-radius: 1.5rem;
    box-shadow: 0 15px 35px rgba(13,202,240,.08),0 5px 15px rgba(13,202,240,.04);
    overflow: hidden;
    position: relative
}

    .newsletter-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg,#0dcaf0,#0984e3,#6f42c1,#0dcaf0);
        background-size: 300% 100%;
        animation: gradientMove 10s ease-in-out infinite
    }

.newsletter-form .form-control:focus {
    border-color: #0dcaf0;
    box-shadow: 0 0 0 3px rgba(13,202,240,.1)
}

/* ===== Galeria de Fotos ===== */
#galeria {
    position: relative;
    padding: 1.5rem 0
}

.gallery-main-container {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(15,29,66,.08),0 5px 15px rgba(15,29,66,.04);
    border: 1px solid rgba(15,29,66,.06);
    overflow: hidden;
    position: relative
}

    .gallery-main-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg,#f58020,#ffa733,#0dcaf0,#f58020);
        background-size: 300% 100%;
        animation: gradientMove 8s ease-in-out infinite
    }

.gallery-main-photo {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #f8f9fa;
    margin-top: .75rem
}

    .gallery-main-photo img {
        width: 100%;
        height: 400px;
        object-fit: cover;
        display: block;
        transition: transform .3s
    }

    .gallery-main-photo:hover img {
        transform: scale(1.02)
    }

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent,rgba(0,0,0,.7));
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform .3s
}

.gallery-main-photo:hover .photo-overlay {
    transform: translateY(0)
}

.photo-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff
}

.photo-counter {
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(10px);
    padding: .5rem 1rem;
    border-radius: 1.5rem;
    font-weight: 600;
    font-size: .9rem
}

.photo-actions {
    display: flex;
    gap: .5rem
}

    .photo-actions .btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: .3s;
        backdrop-filter: blur(10px)
    }

.gallery-thumbnails {
    margin-top: 1.5rem
}

.thumbnails-container {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(120px,1fr));
    gap: .75rem
}

.thumbnail-item {
    position: relative;
    cursor: pointer;
    border-radius: .75rem;
    overflow: hidden;
    transition: .3s;
    border: 3px solid transparent;
    background: #f8f9fa
}

    .thumbnail-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0,0,0,.15);
        border-color: rgba(15,29,66,.1)
    }

    .thumbnail-item.active {
        border-color: #f58020;
        box-shadow: 0 12px 30px rgba(245,128,32,.3);
        transform: translateY(-4px)
    }

    .thumbnail-item img {
        width: 100%;
        height: 90px;
        object-fit: cover;
        display: block;
        transition: transform .3s
    }

    .thumbnail-item:hover img {
        transform: scale(1.05)
    }

/* ===== Galeria de Vídeos ===== */
#videos {
    position: relative;
    padding: 1.5rem 0
}

.video-main-container, .video-playlist {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(15,29,66,.08),0 5px 15px rgba(15,29,66,.04);
    border: 1px solid rgba(15,29,66,.06);
    overflow: hidden;
    position: relative
}

    .video-main-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg,#dc3545,#f58020,#0dcaf0,#dc3545);
        background-size: 300% 100%;
        animation: gradientMove 10s ease-in-out infinite
    }

    .video-playlist::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg,#6f42c1,#0dcaf0,#f58020,#6f42c1);
        background-size: 300% 100%;
        animation: gradientMove 12s ease-in-out infinite
    }

.video-main-player {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #000;
    margin-top: .75rem
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent,rgba(0,0,0,.8));
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: .3s;
    color: #fff
}

.video-main-player:hover .video-overlay {
    transform: translateY(0)
}

.video-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .75rem;
    color: #fff
}

.video-description {
    font-size: .95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: rgba(255,255,255,.9)
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: .85rem;
    color: rgba(255,255,255,.8)
}

.video-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: .75rem;
    cursor: pointer;
    transition: .3s;
    border: 2px solid transparent;
    background: linear-gradient(135deg,#f8f9fa,#ffffff);
    position: relative
}

    .video-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(15,29,66,.1);
        border-color: rgba(13,202,240,.2);
        background: #ffffff
    }

    .video-item.active {
        background: linear-gradient(135deg,#e3f2fd,#f3e5f5);
        border-color: #0dcaf0;
        box-shadow: 0 8px 25px rgba(13,202,240,.2)
    }

.video-thumbnail {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 68px;
    border-radius: .75rem;
    overflow: hidden;
    background: #000
}

    .video-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .3s
    }

.video-item:hover .video-thumbnail img {
    transform: scale(1.05)
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    color: #dc3545;
    transition: .3s
}

.video-item:hover .play-overlay {
    background: #dc3545;
    color: #fff;
    transform: translate(-50%,-50%) scale(1.1)
}

.duration-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,.8);
    color: #fff;
    padding: .25rem .5rem;
    border-radius: .25rem;
    font-size: .7rem;
    font-weight: 600
}

.video-item-title {
    font-size: .9rem;
    font-weight: 600;
    color: #0f1d42;
    line-height: 1.3;
    margin-bottom: .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .3s
}

.video-item:hover .video-item-title, .video-item.active .video-item-title {
    color: #0984e3
}

.video-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .75rem;
    color: #6c757d
}

.playlist-footer {
    border-top: 1px solid rgba(15,29,66,.08);
    padding-top: 1rem
}

    .playlist-footer .btn {
        background: linear-gradient(135deg,#dc3545,#e74c3c);
        border: none;
        color: #fff;
        font-weight: 600;
        border-radius: .75rem;
        padding: .75rem 1rem;
        transition: .3s;
        position: relative;
        overflow: hidden
    }

        .playlist-footer .btn:hover {
            background: linear-gradient(135deg,#e74c3c,#dc3545);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(220,53,69,.3)
        }

/* ===== Endereço & Atendimento ===== */
#endereco-atendimento {
    margin-bottom: 0
}

.endereco-wrapper {
    background: linear-gradient(135deg,#0f1d42 0%,#1a2b5c 50%,#2a3f7a 100%);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 20px 60px rgba(15,29,66,.3),0 8px 30px rgba(15,29,66,.15);
    position: relative;
    isolation: isolate
}

    .endereco-wrapper::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 30%,rgba(245,128,32,.1),transparent 50%),radial-gradient(circle at 80% 70%,rgba(13,202,240,.08),transparent 50%);
        pointer-events: none
    }

.icon-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg,#f58020,#ffa733);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 8px 25px rgba(245,128,32,.3);
    position: relative;
    flex-shrink: 0
}

.text-white-75 {
    color: rgba(255,255,255,.85)
}

.text-white-25 {
    color: rgba(255,255,255,.25)
}

.border-white-25 {
    border-color: rgba(255,255,255,.25) !important
}

.endereco-info .info-item {
    transition: .3s;
    padding: .75rem;
    border-radius: .75rem;
    position: relative
}

    .endereco-info .info-item:hover {
        background: rgba(255,255,255,.08);
        transform: translateX(8px)
    }

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.15);
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
    transition: .3s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2)
}

.endereco-info .info-item:hover .info-icon {
    background: rgba(245,128,32,.2);
    border-color: rgba(245,128,32,.3);
    transform: scale(1.1)
}

.horario-badge {
    display: inline-block;
    background: linear-gradient(135deg,#f58020,#ffa733);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 1.5rem;
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .3px;
    box-shadow: 0 4px 15px rgba(245,128,32,.3);
    position: relative;
    overflow: hidden
}

.btn-white {
    background: #ffffff;
    border: 2px solid #ffffff;
    color: #0f1d42;
    font-weight: 600;
    transition: .3s;
    position: relative;
    overflow: hidden
}

    .btn-white:hover {
        background: #f8f9fa;
        border-color: #f8f9fa;
        color: #0f1d42;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255,255,255,.2)
    }

.btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255,255,255,.6);
    color: #ffffff;
    font-weight: 600;
    transition: .3s;
    backdrop-filter: blur(10px)
}

    .btn-outline-white:hover {
        background: rgba(255,255,255,.15);
        border-color: #ffffff;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255,255,255,.1)
    }

.mapa-container {
    border-radius: 1.25rem;
    overflow: hidden;
    background: #ffffff;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.2),0 8px 30px rgba(0,0,0,.1);
    border: 3px solid rgba(255,255,255,.2)
}

    .mapa-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg,#f58020,#ffa733,#0dcaf0,#f58020);
        background-size: 300% 100%;
        animation: gradientMove 8s ease-in-out infinite;
        z-index: 2
    }

.mapa-overlay {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 3
}

    .mapa-overlay .btn {
        backdrop-filter: blur(10px);
        background: rgba(15,29,66,.9);
        border: 1px solid rgba(255,255,255,.2);
        color: #ffffff;
        transition: .3s
    }

        .mapa-overlay .btn:hover {
            background: #0f1d42;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(15,29,66,.4)
        }

/* ===== Utilidades / Acessibilidade ===== */
footer a {
    text-decoration: none
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden
}

    .skip-link:focus {
        position: static;
        width: auto;
        height: auto;
        padding: .5rem .75rem;
        background: #fff;
        border: 2px solid #0f1d42;
        margin: .5rem;
        border-radius: .5rem
    }

/* ===== Animações gerais ===== */
@keyframes gradientMove {
    0% {
        background-position: 0 0
    }

    50% {
        background-position: 100% 0
    }

    100% {
        background-position: 0 0
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ===== Responsividade focal ===== */
@media (max-width:768px) {
    #noticias {
        padding: 1.5rem 1rem;
        border-radius: 1rem
    }

    .news-card .card-img-top {
        height: 180px
    }

    .news-card .card-body {
        padding: 1.25rem
    }
}

@media (max-width:576px) {
    #noticias {
        margin-left: -.5rem;
        margin-right: -.5rem
    }

    .news-card .card-img-top {
        height: 160px
    }

    .gallery-main-photo img {
        height: 250px
    }

    .gallery-main-container, .video-main-container, .video-playlist {
        margin-left: -.5rem;
        margin-right: -.5rem;
        border-radius: 1rem
    }
}

@media (max-width:767.98px) {
    .gallery-main-photo img {
        height: 300px
    }

    .video-meta {
        gap: 1rem;
        flex-wrap: wrap
    }

    .video-thumbnail {
        width: 80px;
        height: 45px
    }

    .video-item {
        gap: .75rem;
        padding: .75rem
    }

    .video-item-title {
        font-size: .85rem
    }
}

/* Extra styles for video description collapse */
.video-description-container {
    margin-top: .5rem;
}

.video-description-wrapper {
    max-height: 130px;
    overflow: hidden;
    position: relative;
    transition: max-height .4s ease;
}

    .video-description-wrapper.expanded {
        max-height: 600px;
    }

    .video-description-wrapper::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 50px;
        background: linear-gradient(to bottom,rgba(255,255,255,0),rgba(255,255,255,.92));
        pointer-events: none;
        transition: opacity .3s;
    }

    .video-description-wrapper.expanded::after {
        opacity: 0;
    }

.video-description-toggle-btn {
    background: none;
    border: 0;
    color: #0d6efd;
    font-weight: 600;
    padding: 4px 0;
    cursor: pointer;
    font-size: .825rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .video-description-toggle-btn:focus {
        outline: none;
        text-decoration: underline;
    }

    .video-description-toggle-btn::after {
        content: "\f282";
        font-family: "Bootstrap-Icons";
        font-size: .9rem;
        transform: translateY(1px);
        transition: transform .3s;
    }

    .video-description-toggle-btn[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }

.video-description p {
    margin-bottom: .5rem;
}

/* === Overrides after moving video description outside overlay === */
.video-main-container .video-title, .video-info .video-title {
    color: #0f1d42;
}

.video-main-container .video-description, .video-info .video-description {
    color: #495057;
}

.video-main-container .video-meta span, .video-main-container .video-meta {
    color: #6c757d;
}

/* If old overlay not used, ensure overlay stays hidden (defensive) */
.video-main-player .video-overlay {
    display: none;
}

/* ===== Seção Jornais Elegante ===== */
.jornal-highlight-card {
    background: linear-gradient(135deg, #ffffff, #f8fbff 55%, #f2f8ff);
    border: 1px solid rgba(15, 29, 66, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.jornal-highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(15, 29, 66, 0.12), 0 10px 25px rgba(15, 29, 66, 0.08);
}

.jornal-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0f1d42, #f58020, #0dcaf0, #0f1d42);
    background-size: 300% 100%;
    animation: gradientMove 8s ease-in-out infinite;
    z-index: 1;
}

.jornal-cover-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.jornal-cover {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    max-width: 200px;
    width: 100%;
}

.jornal-cover:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(15, 29, 66, 0.2);
}

.jornal-cover img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.jornal-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(15, 29, 66, 0.8), rgba(245, 128, 32, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 2rem;
}

.jornal-cover:hover .jornal-cover-overlay {
    opacity: 1;
}

.jornal-cover-placeholder {
    width: 100%;
    min-height: 180px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed rgba(15, 29, 66, 0.1);
    max-width: 200px;
}

.jornal-content {
    position: relative;
    z-index: 2;
}

.jornal-title {
    line-height: 1.3;
    letter-spacing: -0.3px;
    position: relative;
}

.jornal-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f58020, #ffa733);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.jornal-highlight-card:hover .jornal-title::after {
    transform: scaleX(1);
}

.jornal-description {
    font-size: 0.95rem;
    line-height: 1.6;
}

.jornal-actions .btn {
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.jornal-actions .btn-primary {
    background: linear-gradient(135deg, #0f1d42, #1e3a8a);
    border: none;
    color: white;
}

.jornal-actions .btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f58020, #ffa733);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.jornal-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 29, 66, 0.3);
}

.jornal-actions .btn-primary:hover::before {
    opacity: 1;
}

.jornal-actions .btn-outline-primary {
    border: 2px solid #0f1d42;
    color: #0f1d42;
    background: transparent;
}

.jornal-actions .btn-outline-primary:hover {
    background: #0f1d42;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 29, 66, 0.25);
}

/* Elementos decorativos */
.jornal-decoration-1, .jornal-decoration-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.jornal-decoration-1 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #f58020, #ffa733);
    top: -20px;
    right: -20px;
}

.jornal-decoration-2 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #0dcaf0, #0984e3);
    bottom: -10px;
    left: -10px;
}

/* Badges elegantes */
.badge.bg-primary-subtle {
    background: linear-gradient(135deg, rgba(15, 29, 66, 0.1), rgba(30, 58, 138, 0.1)) !important;
    color: #0f1d42 !important;
    border: 1px solid rgba(15, 29, 66, 0.1);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge.bg-success-subtle {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1)) !important;
    color: #198754 !important;
    border: 1px solid rgba(40, 167, 69, 0.1);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Alert melhorado para quando não há jornal */
.alert.bg-info-subtle {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.08), rgba(9, 132, 227, 0.08)) !important;
    color: #0c63e4 !important;
    border: 1px solid rgba(13, 202, 240, 0.2) !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .jornal-cover-wrapper {
        padding: 1.5rem !important;
    }
    
    .jornal-cover, .jornal-cover-placeholder {
        max-width: 150px;
        min-height: 140px;
    }
    
    .jornal-title {
        font-size: 1.1rem !important;
    }
    
    .jornal-actions {
        flex-direction: column;
        gap: 0.75rem !important;
    }
    
    .jornal-actions .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .jornal-highlight-card {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        border-radius: 1rem !important;
    }
    
    .jornal-cover, .jornal-cover-placeholder {
        max-width: 120px;
        min-height: 120px;
    }
    
    .jornal-content {
        padding: 1rem !important;
    }
}

/* ===== Resto do CSS existente ===== */
/* ===== Quick Actions Grid ===== */
.quick-actions-card {
    border-radius: 1.25rem;
    background: linear-gradient(135deg,#ffffff,#f8fbff 55%,#f2f8ff);
    box-shadow: 0 12px 32px -8px rgba(15,29,66,.18),0 4px 12px -4px rgba(15,29,66,.08);
    position: relative;
    overflow: hidden
}

    .quick-actions-card:before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 90% 15%,rgba(15,29,66,.08),transparent 60%),radial-gradient(circle at 10% 85%,rgba(245,128,32,.08),transparent 65%)
    }

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 1.1rem
}

.quick-action-item {
    --qa-bg: #0f1d42;
    --qa-bg2: #1e3a8a;
    --qa-shadow: rgba(15,29,66,.45);
    display: flex;
    flex-direction: column;
    gap: .65rem;
    padding: 1.15rem 1.1rem 1.1rem;
    border-radius: 1rem;
    position: relative;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg,var(--qa-bg),var(--qa-bg2));
    box-shadow: 0 10px 20px -10px var(--qa-shadow),0 4px 12px -6px rgba(0,0,0,.15);
    overflow: hidden;
    min-height: 150px;
    transition: .4s cubic-bezier(.4,0,.2,1);
    isolation: isolate;
    border: 1px solid rgba(255,255,255,.08)
}

    .quick-action-item:before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 15% 20%,rgba(255,255,255,.18),transparent 60%),linear-gradient(145deg,rgba(255,255,255,.35),rgba(255,255,255,0));
        mix-blend-mode: overlay;
        opacity: .35;
        transition: .5s
    }

    .quick-action-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 38px -12px var(--qa-shadow),0 10px 22px -8px rgba(0,0,0,.25)
    }

        .quick-action-item:hover:before {
            opacity: .6
        }

.qa-icon {
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
    font-size: 1.65rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.25),0 4px 10px -4px rgba(0,0,0,.35);
    color: #fff
}

.qa-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .25px;
    margin: 0
}

.anchor-none {
    text-decoration: none;
    color: inherit;
}

.qa-desc {
    font-size: .72rem;
    line-height: 1.25;
    color: #eef4ff;
    font-weight: 500
}

.qa-arrow {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 1.55rem;
    transition: .35s;
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: 0 4px 12px -4px rgba(0,0,0,.35)
}

.quick-action-item:hover .qa-arrow {
    transform: translateX(4px) scale(1.05);
    background: #fff;
    color: var(--qa-bg)
}

.quick-action-item.qa-curriculo {
    --qa-bg: #f58020;
    --qa-bg2: #ffa733;
    --qa-shadow: rgba(245,128,32,.55)
}

.quick-action-item.qa-denuncie {
    --qa-bg: #dc3545;
    --qa-bg2: #e74c3c;
    --qa-shadow: rgba(220,53,69,.55)
}

.quick-action-item.qa-atualize {
    --qa-bg: #0d6efd;
    --qa-bg2: #1d78ff;
    --qa-shadow: rgba(13,110,253,.55)
}

.quick-action-item.qa-faq {
    --qa-bg: #6f42c1;
    --qa-bg2: #8d5ce6;
    --qa-shadow: rgba(111,66,193,.55)
}

.quick-action-item.qa-convencoes {
    --qa-bg: #0ca678;
    --qa-bg2: #13c29b;
    --qa-shadow: rgba(12,166,120,.55)
}

@media (max-width:1199.98px) {
    .quick-actions-grid {
        grid-template-columns: repeat(auto-fit,minmax(220px,1fr))
    }

    .quick-action-item {
        min-height: 145px
    }
}

@media (max-width:767.98px) {
    .quick-actions-grid {
        grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
        gap: .85rem
    }

    .qa-desc {
        display: none
    }

    .quick-action-item {
        padding: .95rem .9rem;
        min-height: 120px
    }
}

@media (max-width:575.98px) {
    .quick-action-item {
        border-radius: .85rem
    }

    .qa-icon {
        width: 46px;
        height: 46px;
        font-size: 1.4rem;
        border-radius: .85rem
    }

    .qa-title {
        font-size: .9rem
    }

    .qa-arrow {
        width: 34px;
        height: 34px;
        font-size: 1.3rem
    }
}

/* ===== Form validation util ===== */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050
}

.invalid {
    outline: 1px solid #e50000
}

.validation-message {
    color: #e50000
}

/* ===== Error boundary ===== */
.blazor-error-boundary {
    background: #b32121;
    color: #fff;
    padding: 1rem 1rem 1rem 3.7rem
}

    .blazor-error-boundary::after {
        content: "Ocorreu um erro."
    }

@media (max-width:991.98px) {
    .site-header .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,.1)
    }

    .site-header .nav-link {
        padding: .75rem 1rem;
        margin: .25rem 0
    }

    .site-header .btn-outline-light {
        margin-top: 1rem;
        width: 100%;
        justify-content: center
    }
}

.site-header .navbar-brand img {
    transition: transform .3s
}

.site-header .navbar-brand:hover img {
    transform: scale(1.05)
}

/* ===== Header (restored color) ===== */
.site-header {
    background: #0F1D42;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 10px 30px rgba(15,29,66,.25);
    position: relative;
    z-index: 1000;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: none; /* ensure no gradient overlays, keep solid color */
}

.site-header .navbar { background: transparent; }
.site-header .nav-link { color: rgba(255,255,255,.95); }
.site-header .nav-link:hover, .site-header .nav-link.active { color: #ffffff; }

.shadow-soft {
    box-shadow: 0 10px 30px rgba(0,0,0,.06)
}

.section-title {
    font-weight: 700
}

.text-small {
    font-size: .95rem
}

/* ===== Destaques ===== */
.feature-hero {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: #000;
    display: flex;
}

    .feature-hero img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

@media (min-width: 992px) {
    .col-lg-8.d-flex > a, .col-lg-8.d-flex > a > .feature-hero {
        height: 100%;
        display: flex;
    }
}

@media (max-width:991.98px) {
    /* give a reasonable height when stacked */
    .feature-hero img {
        height: 360px;
    }
}

@media (max-width:576px) {
    .feature-hero img {
        height: 260px
    }
}

.feature-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,rgba(15,29,66,0) 0%,rgba(15,29,66,.7) 55%,rgba(15,29,66,.9) 100%)
}

.feature-hero .content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    color: #fff;
    padding: 1rem 1.25rem 1.25rem
}

.mini-feature img {
    height: 150px;
    object-fit: cover
}

.mini-feature .card-body {
    padding: .75rem 1rem
}

.badge-accent {
    background: #ffe0c7;
    color: #f58020
}

.bg-orange {
    background-color: #F5801F
}

/* ===== Banner boletos ===== */
#banner-boletos .banner-boletos-wrapper {
    background: radial-gradient(circle at 15% 20%,#1d3a80,#0f1d42 65%),linear-gradient(120deg,#0f1d42,#142d63);
    color: #fff;
    box-shadow: 0 1.25rem 2rem -.75rem rgba(15,29,66,.45),0 .5rem 1rem -.25rem rgba(15,29,66,.4);
    position: relative
}

    #banner-boletos .banner-boletos-wrapper:before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 85% 25%,rgba(255,193,7,.25),transparent 60%),radial-gradient(circle at 70% 75%,rgba(255,255,255,.12),transparent 70%);
        mix-blend-mode: screen;
        opacity: .85
    }

#banner-boletos .text-shadow-soft {
    text-shadow: 0 2px 6px rgba(0,0,0,.35)
}

.boleto-btn-principal {
    background: #ffc107;
    border-color: #ffc107;
    color: #0f1d42
}

    .boleto-btn-principal:hover {
        filter: brightness(.95);
        color: #0f1d42
    }

.card-boleto-preview {
    background: linear-gradient(145deg,#ffffff,#f5f7fb);
    border-radius: 1.25rem
}

    .card-boleto-preview .placeholder-line {
        height: .55rem;
        background: linear-gradient(90deg,#e5eaf2,#f3f6fa 55%,#e5eaf2);
        border-radius: 4px;
        margin-bottom: .35rem;
        animation: shimmer 2.2s infinite linear;
        opacity: .85;
        background-size: 200% 100%
    }

@keyframes shimmer {
    0% {
        background-position: -40% 0
    }

    100% {
        background-position: 140% 0
    }
}

#banner-boletos .bg-accent-blob, #banner-boletos .bg-accent-blob-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: .35
}

#banner-boletos .bg-accent-blob {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg,#ffc107,#ff7b00);
    top: -40px;
    right: -40px
}

#banner-boletos .bg-accent-blob-2 {
    width: 170px;
    height: 170px;
    background: linear-gradient(135deg,#0dcaf0,#6ea8fe);
    bottom: -30px;
    left: -30px
}

/* ===== Convênios ===== */
#convenios {
    background: linear-gradient(135deg,#f5f9ff,#eef4ff 55%,#e8f0ff);
    border: 1px solid rgba(15,29,66,.08);
    box-shadow: 0 1.25rem 1.75rem -.75rem rgba(15,29,66,.1),0 .5rem 1rem -.25rem rgba(15,29,66,.08);
    padding: 2.25rem 1.75rem 2.75rem;
    border-radius: 1.25rem;
    overflow: hidden;
    position: relative
}

    #convenios:before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 85% 15%,rgba(255,180,0,.25),transparent 55%),radial-gradient(circle at 10% 90%,rgba(0,107,255,.18),transparent 60%);
        pointer-events: none;
        mix-blend-mode: screen
    }

    #convenios .section-title {
        font-weight: 600;
        letter-spacing: .25px
    }

.convenio-item {
    position: relative;
    background: #fff;
    border: 1px solid rgba(15,29,66,.07);
    border-radius: 1rem;
    padding: 1.1rem .75rem 1rem;
    text-decoration: none;
    color: #0f1d42;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: .3s;
    box-shadow: 0 .35rem .9rem -.4rem rgba(15,29,66,.15);
    isolation: isolate
}

    .convenio-item:before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(145deg,rgba(255,255,255,.6),rgba(255,255,255,0));
        opacity: 0;
        transition: .4s;
        border-radius: 1rem
    }

    .convenio-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 .75rem 1.5rem -.35rem rgba(15,29,66,.25),0 0 0 2px rgba(15,29,66,.08);
        border-color: rgba(15,29,66,.15)
    }

        .convenio-item:hover:before {
            opacity: 1
        }

    .convenio-item .icon-wrapper {
        width: 3.4rem;
        height: 3.4rem;
        border-radius: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.65rem;
        box-shadow: inset 0 0 0 1px rgba(15,29,66,.05),0 .25rem .4rem -.15rem rgba(15,29,66,.25);
        backdrop-filter: blur(3px)
    }

    .convenio-item small {
        font-size: .65rem;
        letter-spacing: .3px
    }

@media (min-width:992px) {
    .convenio-item small {
        font-size: .7rem
    }
}

.convenio-item:focus-visible {
    outline: 3px solid #0f1d42;
    outline-offset: 3px
}

/* ===== Notícias ===== */
#noticias {
    position: relative;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg,#ffffff,#f8fbff 50%,#f2f8ff);
    border-radius: 1.5rem;
    box-shadow: 0 15px 35px rgba(15,29,66,.08),0 5px 15px rgba(15,29,66,.04);
    border: 1px solid rgba(15,29,66,.06);
    overflow: hidden
}

    #noticias::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg,#0f1d42,#f58020,#0dcaf0,#0f1d42);
        background-size: 300% 100%;
        animation: gradientMove 8s ease-in-out infinite
    }

    #noticias .section-title {
        position: relative;
        font-weight: 700;
        color: #0f1d42;
        font-size: 1.75rem;
        letter-spacing: -.5px;
        margin-bottom: 0
    }

        #noticias .section-title::after {
            content: "";
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg,#f58020,#ffa733);
            border-radius: 2px
        }

.news-card {
    position: relative;
    border: none;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #ffffff;
    transition: .4s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 8px 25px rgba(15,29,66,.08),0 3px 10px rgba(15,29,66,.04);
    transform-origin: center;
    animation: fadeInUp .6s ease forwards;
    animation-play-state: paused
}

    .news-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg,transparent,#f58020,transparent);
        opacity: 0;
        transition: opacity .3s
    }

    .news-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 25px 50px rgba(15,29,66,.15),0 10px 25px rgba(15,29,66,.08)
    }

        .news-card:hover::before {
            opacity: 1
        }

    .news-card .card-img-top {
        height: 200px;
        object-fit: cover;
        transition: transform .6s cubic-bezier(.4,0,.2,1);
        background: linear-gradient(45deg,#f8f9fa,#e9ecef)
    }

    .news-card:hover .card-img-top {
        transform: scale(1.08)
    }

    .news-card .card-body {
        padding: 1.5rem;
        background: linear-gradient(180deg,#ffffff,#fdfdfd)
    }

    .news-card .badge {
        font-size: .75rem;
        font-weight: 600;
        padding: .5rem .875rem;
        border-radius: 1.5rem;
        letter-spacing: .3px;
        border: 1px solid rgba(255,255,255,.3);
        position: relative;
        overflow: hidden
    }

        .news-card .badge::before {
            content: "";
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);
            transition: left .6s
        }

    .news-card:hover .badge::before {
        left: 100%
    }

    .news-card .card-title {
        font-weight: 700;
        color: #0f1d42;
        line-height: 1.3;
        margin-bottom: 1rem;
        font-size: 1.1rem;
        letter-spacing: -.3px
    }

    .news-card .card-text {
        color: #6c757d;
        line-height: 1.6;
        font-size: .95rem;
        margin-bottom: 1.25rem
    }

    .news-card .card-footer {
        background: linear-gradient(180deg,#fdfdfd,#f8f9fa);
        border-top: 1px solid rgba(15,29,66,.06);
        padding: 1rem 1.5rem
    }

    .news-card .btn-outline-primary {
        border: 2px solid #0f1d42;
        color: #0f1d42;
        font-weight: 600;
        border-radius: 1.5rem;
        padding: .5rem 1.25rem;
        font-size: .875rem;
        letter-spacing: .3px;
        transition: .3s;
        position: relative;
        overflow: hidden
    }

        .news-card .btn-outline-primary::before {
            content: "";
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: #0f1d42;
            transition: left .3s;
            z-index: -1
        }

        .news-card .btn-outline-primary:hover {
            color: #ffffff;
            border-color: #0f1d42;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(15,29,66,.25)
        }

            .news-card .btn-outline-primary:hover::before {
                left: 0
            }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* Link "Ver todas" notícias */
#noticias .text-decoration-none {
    color: #0f1d42;
    font-weight: 600;
    font-size: .95rem;
    padding: .5rem 1rem;
    border-radius: 1.5rem;
    transition: .3s;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden
}

    #noticias .text-decoration-none::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg,#f58020,#ffa733);
        opacity: 0;
        transition: .3s;
        border-radius: 1.5rem;
        z-index: -1
    }

    #noticias .text-decoration-none:hover {
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(245,128,32,.3)
    }

        #noticias .text-decoration-none:hover::before {
            opacity: 1
        }

        #noticias .text-decoration-none:hover i {
            transform: translateX(4px)
        }

/* ===== Artigos ===== */
#artigos {
    position: relative;
    padding: 1.5rem 1.25rem 1.75rem;
    background: linear-gradient(135deg,#ffffff,#f7fbff 50%,#f1f7ff);
    border-radius: 1.5rem;
    box-shadow: 0 15px 35px rgba(15,29,66,.08),0 5px 15px rgba(15,29,66,.04);
    border: 1px solid rgba(15,29,66,.06);
    overflow: hidden;
    margin-bottom: 0
}

    #artigos::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg,#0dcaf0,#0f1d42,#f58020,#0dcaf0);
        background-size: 300% 100%;
        animation: gradientMove 10s ease-in-out infinite
    }

    #artigos .section-title {
        position: relative;
        font-weight: 700;
        color: #0f1d42;
        font-size: 1.75rem;
        letter-spacing: -.5px;
        margin-bottom: 0
    }

        #artigos .section-title::after {
            content: "";
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 50px;
            height: 3px;
            background: linear-gradient(90deg,#0dcaf0,#0984e3);
            border-radius: 2px
        }

    #artigos .text-decoration-none {
        color: #0f1d42;
        font-weight: 600;
        font-size: .95rem;
        padding: .5rem 1rem;
        border-radius: 1.5rem;
        transition: .3s;
        border: 2px solid transparent;
        position: relative;
        overflow: hidden
    }

        #artigos .text-decoration-none::before {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg,#0dcaf0,#0984e3);
            opacity: 0;
            transition: .3s;
            border-radius: 1.5rem;
            z-index: -1
        }

        #artigos .text-decoration-none:hover {
            color: #ffffff;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(13,202,240,.3)
        }

            #artigos .text-decoration-none:hover::before {
                opacity: 1
            }

.article-item {
    position: relative;
    border: none !important;
    border-bottom: 1px solid rgba(15,29,66,.08) !important;
    background: linear-gradient(135deg,#ffffff,#fdfdff);
    padding: 1.5rem 1.75rem;
    transition: .4s cubic-bezier(.4,0,.2,1);
    text-decoration: none;
    color: inherit;
    overflow: hidden
}

    .article-item::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg,#0dcaf0,#0984e3);
        transform: scaleY(0);
        transition: transform .3s;
        transform-origin: bottom
    }

    .article-item:hover::before {
        transform: scaleY(1)
    }

    .article-item:hover {
        transform: translateY(-4px) translateX(8px);
        box-shadow: 0 15px 30px rgba(13,202,240,.15),0 5px 15px rgba(15,29,66,.08);
        background: #ffffff
    }

    .article-item .article-title {
        font-weight: 700;
        color: #0f1d42;
        font-size: 1.1rem;
        letter-spacing: -.3px;
        margin-bottom: .75rem;
        line-height: 1.3;
        transition: color .3s
    }

    .article-item:hover .article-title {
        color: #0984e3
    }

    .article-item .article-summary {
        color: #6c757d;
        line-height: 1.6;
        font-size: .95rem;
        margin-bottom: .75rem;
        transition: color .3s
    }

    .article-item:hover .article-summary {
        color: #495057
    }

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: .85rem;
    color: #6c757d
}

    .article-meta .meta-item {
        display: flex;
        align-items: center;
        gap: .375rem;
        transition: color .3s
    }

.article-category {
    display: inline-block;
    background: linear-gradient(135deg,#e3f2fd,#f3e5f5);
    color: #0984e3;
    font-size: .75rem;
    font-weight: 600;
    padding: .375rem .875rem;
    border-radius: 1rem;
    margin-bottom: .5rem;
    border: 1px solid rgba(9,132,227,.1);
    transition: .3s
}

.article-item:hover .article-category {
    background: linear-gradient(135deg,#0984e3,#0dcaf0);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(9,132,227,.25)
}

.article-item.featured {
    background: linear-gradient(135deg,#fff8e1,#ffffff);
    border-left: 4px solid #f58020 !important
}

    .article-item.featured .article-category {
        background: linear-gradient(135deg,#fff3e0,#ffe0b2);
        color: #f57c00
    }

    .article-item.featured:hover .article-category {
        background: linear-gradient(135deg,#f58020,#ffa733);
        color: #fff
    }

/* ===== Newsletter (já usada) ===== */
.newsletter-card {
    background: linear-gradient(135deg,#ffffff,#f7fbff 50%,#f1f8ff);
    border: 2px solid rgba(13,202,240,.1);
    border-radius: 1.5rem;
    box-shadow: 0 15px 35px rgba(13,202,240,.08),0 5px 15px rgba(13,202,240,.04);
    overflow: hidden;
    position: relative
}

    .newsletter-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg,#0dcaf0,#0984e3,#6f42c1,#0dcaf0);
        background-size: 300% 100%;
        animation: gradientMove 10s ease-in-out infinite
    }

.newsletter-form .form-control:focus {
    border-color: #0dcaf0;
    box-shadow: 0 0 0 3px rgba(13,202,240,.1)
}

/* ===== Galeria de Fotos ===== */
#galeria {
    position: relative;
    padding: 1.5rem 0
}

.gallery-main-container {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(15,29,66,.08),0 5px 15px rgba(15,29,66,.04);
    border: 1px solid rgba(15,29,66,.06);
    overflow: hidden;
    position: relative
}

    .gallery-main-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg,#f58020,#ffa733,#0dcaf0,#f58020);
        background-size: 300% 100%;
        animation: gradientMove 8s ease-in-out infinite
    }

.gallery-main-photo {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #f8f9fa;
    margin-top: .75rem
}

    .gallery-main-photo img {
        width: 100%;
        height: 400px;
        object-fit: cover;
        display: block;
        transition: transform .3s
    }

    .gallery-main-photo:hover img {
        transform: scale(1.02)
    }

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent,rgba(0,0,0,.7));
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform .3s
}

.gallery-main-photo:hover .photo-overlay {
    transform: translateY(0)
}

.photo-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff
}

.photo-counter {
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(10px);
    padding: .5rem 1rem;
    border-radius: 1.5rem;
    font-weight: 600;
    font-size: .9rem
}

.photo-actions {
    display: flex;
    gap: .5rem
}

    .photo-actions .btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: .3s;
        backdrop-filter: blur(10px)
    }

.gallery-thumbnails {
    margin-top: 1.5rem
}

.thumbnails-container {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(120px,1fr));
    gap: .75rem
}

.thumbnail-item {
    position: relative;
    cursor: pointer;
    border-radius: .75rem;
    overflow: hidden;
    transition: .3s;
    border: 3px solid transparent;
    background: #f8f9fa
}

    .thumbnail-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0,0,0,.15);
        border-color: rgba(15,29,66,.1)
    }

    .thumbnail-item.active {
        border-color: #f58020;
        box-shadow: 0 12px 30px rgba(245,128,32,.3);
        transform: translateY(-4px)
    }

    .thumbnail-item img {
        width: 100%;
        height: 90px;
        object-fit: cover;
        display: block;
        transition: transform .3s
    }

    .thumbnail-item:hover img {
        transform: scale(1.05)
    }

/* ===== Galeria de Vídeos ===== */
#videos {
    position: relative;
    padding: 1.5rem 0
}

.video-main-container, .video-playlist {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(15,29,66,.08),0 5px 15px rgba(15,29,66,.04);
    border: 1px solid rgba(15,29,66,.06);
    overflow: hidden;
    position: relative
}

    .video-main-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg,#dc3545,#f58020,#0dcaf0,#dc3545);
        background-size: 300% 100%;
        animation: gradientMove 10s ease-in-out infinite
    }

    .video-playlist::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg,#6f42c1,#0dcaf0,#f58020,#6f42c1);
        background-size: 300% 100%;
        animation: gradientMove 12s ease-in-out infinite
    }

.video-main-player {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #000;
    margin-top: .75rem
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent,rgba(0,0,0,.8));
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: .3s;
    color: #fff
}

.video-main-player:hover .video-overlay {
    transform: translateY(0)
}

.video-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .75rem;
    color: #fff
}

.video-description {
    font-size: .95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: rgba(255,255,255,.9)
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: .85rem;
    color: rgba(255,255,255,.8)
}

.video-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: .75rem;
    cursor: pointer;
    transition: .3s;
    border: 2px solid transparent;
    background: linear-gradient(135deg,#f8f9fa,#ffffff);
    position: relative
}

    .video-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(15,29,66,.1);
        border-color: rgba(13,202,240,.2);
        background: #ffffff
    }

    .video-item.active {
        background: linear-gradient(135deg,#e3f2fd,#f3e5f5);
        border-color: #0dcaf0;
        box-shadow: 0 8px 25px rgba(13,202,240,.2)
    }

.video-thumbnail {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 68px;
    border-radius: .75rem;
    overflow: hidden;
    background: #000
}

    .video-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .3s
    }

.video-item:hover .video-thumbnail img {
    transform: scale(1.05)
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    color: #dc3545;
    transition: .3s
}

.video-item:hover .play-overlay {
    background: #dc3545;
    color: #fff;
    transform: translate(-50%,-50%) scale(1.1)
}

.duration-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,.8);
    color: #fff;
    padding: .25rem .5rem;
    border-radius: .25rem;
    font-size: .7rem;
    font-weight: 600
}

.video-item-title {
    font-size: .9rem;
    font-weight: 600;
    color: #0f1d42;
    line-height: 1.3;
    margin-bottom: .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .3s
}

.video-item:hover .video-item-title, .video-item.active .video-item-title {
    color: #0984e3
}

.video-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .75rem;
    color: #6c757d
}

.playlist-footer {
    border-top: 1px solid rgba(15,29,66,.08);
    padding-top: 1rem
}

    .playlist-footer .btn {
        background: linear-gradient(135deg,#dc3545,#e74c3c);
        border: none;
        color: #fff;
        font-weight: 600;
        border-radius: .75rem;
        padding: .75rem 1rem;
        transition: .3s;
        position: relative;
        overflow: hidden
    }

        .playlist-footer .btn:hover {
            background: linear-gradient(135deg,#e74c3c,#dc3545);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(220,53,69,.3)
        }

/* ===== Endereço & Atendimento ===== */
#endereco-atendimento {
    margin-bottom: 0
}

.endereco-wrapper {
    background: linear-gradient(135deg,#0f1d42 0%,#1a2b5c 50%,#2a3f7a 100%);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 20px 60px rgba(15,29,66,.3),0 8px 30px rgba(15,29,66,.15);
    position: relative;
    isolation: isolate
}

    .endereco-wrapper::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 30%,rgba(245,128,32,.1),transparent 50%),radial-gradient(circle at 80% 70%,rgba(13,202,240,.08),transparent 50%);
        pointer-events: none
    }

.icon-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg,#f58020,#ffa733);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 8px 25px rgba(245,128,32,.3);
    position: relative;
    flex-shrink: 0
}

.text-white-75 {
    color: rgba(255,255,255,.85)
}

.text-white-25 {
    color: rgba(255,255,255,.25)
}

.border-white-25 {
    border-color: rgba(255,255,255,.25) !important
}

.endereco-info .info-item {
    transition: .3s;
    padding: .75rem;
    border-radius: .75rem;
    position: relative
}

    .endereco-info .info-item:hover {
        background: rgba(255,255,255,.08);
        transform: translateX(8px)
    }

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.15);
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
    transition: .3s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2)
}

.endereco-info .info-item:hover .info-icon {
    background: rgba(245,128,32,.2);
    border-color: rgba(245,128,32,.3);
    transform: scale(1.1)
}

.horario-badge {
    display: inline-block;
    background: linear-gradient(135deg,#f58020,#ffa733);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 1.5rem;
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .3px;
    box-shadow: 0 4px 15px rgba(245,128,32,.3);
    position: relative;
    overflow: hidden
}

.btn-white {
    background: #ffffff;
    border: 2px solid #ffffff;
    color: #0f1d42;
    font-weight: 600;
    transition: .3s;
    position: relative;
    overflow: hidden
}

    .btn-white:hover {
        background: #f8f9fa;
        border-color: #f8f9fa;
        color: #0f1d42;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255,255,255,.2)
    }

.btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255,255,255,.6);
    color: #ffffff;
    font-weight: 600;
    transition: .3s;
    backdrop-filter: blur(10px)
}

    .btn-outline-white:hover {
        background: rgba(255,255,255,.15);
        border-color: #ffffff;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255,255,255,.1)
    }

.mapa-container {
    border-radius: 1.25rem;
    overflow: hidden;
    background: #ffffff;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.2),0 8px 30px rgba(0,0,0,.1);
    border: 3px solid rgba(255,255,255,.2)
}

    .mapa-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg,#f58020,#ffa733,#0dcaf0,#f58020);
        background-size: 300% 100%;
        animation: gradientMove 8s ease-in-out infinite;
        z-index: 2
    }

.mapa-overlay {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 3
}

    .mapa-overlay .btn {
        backdrop-filter: blur(10px);
        background: rgba(15,29,66,.9);
        border: 1px solid rgba(255,255,255,.2);
        color: #ffffff;
        transition: .3s
    }

        .mapa-overlay .btn:hover {
            background: #0f1d42;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(15,29,66,.4)
        }

/* ===== Utilidades / Acessibilidade ===== */
footer a {
    text-decoration: none
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden
}

    .skip-link:focus {
        position: static;
        width: auto;
        height: auto;
        padding: .5rem .75rem;
        background: #fff;
        border: 2px solid #0f1d42;
        margin: .5rem;
        border-radius: .5rem
    }

/* ===== Animações gerais ===== */
@keyframes gradientMove {
    0% {
        background-position: 0 0
    }

    50% {
        background-position: 100% 0
    }

    100% {
        background-position: 0 0
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ===== Responsividade focal ===== */
@media (max-width:768px) {
    #noticias {
        padding: 1.5rem 1rem;
        border-radius: 1rem
    }

    .news-card .card-img-top {
        height: 180px
    }

    .news-card .card-body {
        padding: 1.25rem
    }
}

@media (max-width:576px) {
    #noticias {
        margin-left: -.5rem;
        margin-right: -.5rem
    }

    .news-card .card-img-top {
        height: 160px
    }

    .gallery-main-photo img {
        height: 250px
    }

    .gallery-main-container, .video-main-container, .video-playlist {
        margin-left: -.5rem;
        margin-right: -.5rem;
        border-radius: 1rem
    }
}

@media (max-width:767.98px) {
    .gallery-main-photo img {
        height: 300px
    }

    .video-meta {
        gap: 1rem;
        flex-wrap: wrap
    }

    .video-thumbnail {
        width: 80px;
        height: 45px
    }

    .video-item {
        gap: .75rem;
        padding: .75rem
    }

    .video-item-title {
        font-size: .85rem
    }
}

/* Extra styles for video description collapse */
.video-description-container {
    margin-top: .5rem;
}

.video-description-wrapper {
    max-height: 130px;
    overflow: hidden;
    position: relative;
    transition: max-height .4s ease;
}

    .video-description-wrapper.expanded {
        max-height: 600px;
    }

    .video-description-wrapper::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 50px;
        background: linear-gradient(to bottom,rgba(255,255,255,0),rgba(255,255,255,.92));
        pointer-events: none;
        transition: opacity .3s;
    }

    .video-description-wrapper.expanded::after {
        opacity: 0;
    }

.video-description-toggle-btn {
    background: none;
    border: 0;
    color: #0d6efd;
    font-weight: 600;
    padding: 4px 0;
    cursor: pointer;
    font-size: .825rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .video-description-toggle-btn:focus {
        outline: none;
        text-decoration: underline;
    }

    .video-description-toggle-btn::after {
        content: "\f282";
        font-family: "Bootstrap-Icons";
        font-size: .9rem;
        transform: translateY(1px);
        transition: transform .3s;
    }

    .video-description-toggle-btn[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }

.video-description p {
    margin-bottom: .5rem;
}

/* === Overrides after moving video description outside overlay === */
.video-main-container .video-title, .video-info .video-title {
    color: #0f1d42;
}

.video-main-container .video-description, .video-info .video-description {
    color: #495057;
}

.video-main-container .video-meta span, .video-main-container .video-meta {
    color: #6c757d;
}

/* If old overlay not used, ensure overlay stays hidden (defensive) */
.video-main-player .video-overlay {
    display: none;
}

/* ===== Seção Jornais Elegante ===== */
.jornal-highlight-card {
    background: linear-gradient(135deg, #ffffff, #f8fbff 55%, #f2f8ff);
    border: 1px solid rgba(15, 29, 66, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.jornal-highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(15, 29, 66, 0.12), 0 10px 25px rgba(15, 29, 66, 0.08);
}

.jornal-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0f1d42, #f58020, #0dcaf0, #0f1d42);
    background-size: 300% 100%;
    animation: gradientMove 8s ease-in-out infinite;
    z-index: 1;
}

.jornal-cover-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.jornal-cover {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    max-width: 200px;
    width: 100%;
}

.jornal-cover:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(15, 29, 66, 0.2);
}

.jornal-cover img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.jornal-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(15, 29, 66, 0.8), rgba(245, 128, 32, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 2rem;
}

.jornal-cover:hover .jornal-cover-overlay {
    opacity: 1;
}

.jornal-cover-placeholder {
    width: 100%;
    min-height: 180px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed rgba(15, 29, 66, 0.1);
    max-width: 200px;
}

.jornal-content {
    position: relative;
    z-index: 2;
}

.jornal-title {
    line-height: 1.3;
    letter-spacing: -0.3px;
    position: relative;
}

.jornal-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f58020, #ffa733);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.jornal-highlight-card:hover .jornal-title::after {
    transform: scaleX(1);
}

.jornal-description {
    font-size: 0.95rem;
    line-height: 1.6;
}

.jornal-actions .btn {
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.jornal-actions .btn-primary {
    background: linear-gradient(135deg, #0f1d42, #1e3a8a);
    border: none;
    color: white;
}

.jornal-actions .btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f58020, #ffa733);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.jornal-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 29, 66, 0.3);
}

.jornal-actions .btn-primary:hover::before {
    opacity: 1;
}

.jornal-actions .btn-outline-primary {
    border: 2px solid #0f1d42;
    color: #0f1d42;
    background: transparent;
}

.jornal-actions .btn-outline-primary:hover {
    background: #0f1d42;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 29, 66, 0.25);
}

/* Elementos decorativos */
.jornal-decoration-1, .jornal-decoration-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.jornal-decoration-1 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #f58020, #ffa733);
    top: -20px;
    right: -20px;
}

.jornal-decoration-2 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #0dcaf0, #0984e3);
    bottom: -10px;
    left: -10px;
}

/* Badges elegantes */
.badge.bg-primary-subtle {
    background: linear-gradient(135deg, rgba(15, 29, 66, 0.1), rgba(30, 58, 138, 0.1)) !important;
    color: #0f1d42 !important;
    border: 1px solid rgba(15, 29, 66, 0.1);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge.bg-success-subtle {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1)) !important;
    color: #198754 !important;
    border: 1px solid rgba(40, 167, 69, 0.1);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Alert melhorado para quando não há jornal */
.alert.bg-info-subtle {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.08), rgba(9, 132, 227, 0.08)) !important;
    color: #0c63e4 !important;
    border: 1px solid rgba(13, 202, 240, 0.2) !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .jornal-cover-wrapper {
        padding: 1.5rem !important;
    }
    
    .jornal-cover, .jornal-cover-placeholder {
        max-width: 150px;
        min-height: 140px;
    }
    
    .jornal-title {
        font-size: 1.1rem !important;
    }
    
    .jornal-actions {
        flex-direction: column;
        gap: 0.75rem !important;
    }
    
    .jornal-actions .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .jornal-highlight-card {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        border-radius: 1rem !important;
    }
    
    .jornal-cover, .jornal-cover-placeholder {
        max-width: 120px;
        min-height: 120px;
    }
    
    .jornal-content {
        padding: 1rem !important;
    }
}
