/* --- INDEX.CSS (AGORA RESTRITO AOS COMPONENTES ESPECÍFICOS DA HOME) --- */
/* (Nota: Variáveis globais, tipografia, headers, footers e utilitários foram movidos para global.css) */



/* --- HERO CAROUSEL --- */
.hero-section {
    position: relative;
    margin-bottom: 3rem;
}

.carousel-item {
    height: 570px;
    background-position: 50% 30%;
    background-size: cover;
}

.carousel-overlay {
    background: linear-gradient(to right, rgba(24, 142, 182, 0.6), rgba(24, 142, 182, 0), transparent);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
}

.carousel-caption-custom {
    text-align: left;
    padding-left: 5%;
    max-width: 600px;
    color: white;
}

/* --- SERVICES SECTION (NEW TAB DESIGN) --- */
.services-section {
    padding: 60px 0;
    background-color: #f4f7f9;
}

/* Tabs */
.service-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.service-tab-btn {
    background: white;
    border: 1px solid #eee;
    padding: 12px 30px;
    border-radius: 12px;
    color: #6c757d;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.service-tab-btn:hover {
    background: #f8f9fa;
    color: #0056b3;
}

.service-tab-btn.active {
    background-color: #0056b3;
    /* Azul escuro */
    color: white;
    border-color: #0056b3;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

.service-tab-btn i {
    font-size: 1.1rem;
}

/* Service Cards Grid Wrapper */
.services-grid {
    display: none;
    animation: fadeIn 0.5s ease;
}

.services-grid.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Updated Service Card Style */
.service-card-v2 {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    height: 100%;
    border: 2px solid transparent;
    /* Invisible border for layout stability */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-card-v2 .icon-box {
    width: 60px;
    height: 60px;
    background-color: #e3f2fd;
    /* Light blue */
    color: #0d6efd;
    /* Blue */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card-v2 h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.service-card-v2 p {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Hover State - Orange */
.service-card-v2:hover {
    border-color: var(--bene-orange);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(240, 110, 57, 0.1);
}

.service-card-v2:hover .icon-box {
    background-color: var(--bene-orange);
    color: white;
}

/* --- TRANSPARENCY RADAR (PREMIUM WHITE VERSION) --- */
.radar-banner {
    background: #ffffff;
    border-radius: var(--card-radius);
    padding: 2rem;
    color: #1b2a4e;
    position: relative;
    overflow: hidden;
    margin: 4rem 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none !important;
}

.radar-banner:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
}

.radar-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.radar-text-top {
    font-size: 5.5rem;
    font-weight: 800;
    color: #112d4e;
    line-height: 0.9;
    letter-spacing: -3px;
    display: flex;
    align-items: center;
}

.radar-letter-d {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.radar-drop-inner {
    position: absolute;
    width: 0.35em;
    height: 0.45em;
    background-color: #3498db;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    top: 52%;
    left: 45%;
    transform: translate(-50%, -50%);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    /* Triangle to make it look like a drop top? No. */
}

/* Improved drop shape - Pointing down like official logo */
.radar-drop-css {
    position: absolute;
    width: 0.3em;
    height: 0.3em;
    background: #188EB6;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    top: 52%;
    left: 40%;
}

.radar-text-sub {
    font-size: 2.2rem;
    font-weight: 500;
    color: #112d4e;
    margin-top: -5px;
    letter-spacing: -1px;
}

.radar-hr {
    width: 100%;
    max-width: 600px;
    height: 1px;
    background-color: #e0e0e0;
    margin: 20px 0;
}

.radar-slogan-text {
    font-size: 1.1rem;
    color: #555;
    font-weight: 400;
    max-width: 80%;
}

.radar-banner .radar-icon-bg {
    position: absolute;
    right: -50px;
    top: -50px;
    font-size: 20rem;
    opacity: 0.03;
    color: #000;
    pointer-events: none;
}

/* --- NEWS GRID --- */
.news-card {
    border: none;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s;
    height: 100%;
    background: white;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bene-orange);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.news-body {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
    display: block;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.news-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.news-title a:hover {
    color: var(--bene-blue);
}

/* --- MULTIMEDIA (SPLIT SECTION) --- */
.multimedia-section {
    background-color: #fafafa;
    padding: 60px 0;
}

.gallery-grid-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-grid-item:hover img {
    transform: scale(1.1);
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 20px;
    color: white;
    opacity: 0.9;
}

/* Video Styles */
.video-featured {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow-soft);
}

.video-list-item {
    display: flex;
    gap: 15px;
    background: white;
    padding: 10px;
    border-radius: 12px;
    align-items: center;
    transition: transform 0.2s;
    cursor: pointer;
    border: 1px solid #eee;
}

.video-list-item:hover {
    transform: translateX(5px);
    border-color: var(--bene-blue);
}

.video-thumb-small {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.gallery-grid-item:hover .play-btn-overlay,
.video-featured:hover .play-btn-overlay {
    background: var(--bene-orange);
    border-color: var(--bene-orange);
    transform: translate(-50%, -50%) scale(1.1);
}

/* --- PROJECTS & ACTIONS (GRID) --- */
.projects-section {
    background-color: white;
    padding: 80px 0;
}

.project-card-new {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    border-bottom: 4px solid transparent;
}

.project-card-new:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--bene-orange);
}

.project-thumb {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

.project-content {
    padding: 20px;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bene-blue-dark);
    margin-bottom: 8px;
}

.project-subtitle {
    font-size: 0.85rem;
    color: #7f8c8d;
    line-height: 1.5;
}

.project-link-icon {
    margin-top: 15px;
    display: inline-block;
    font-size: 0.9rem;
    color: var(--bene-orange);
    font-weight: 600;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.project-card-new:hover .project-link-icon {
    opacity: 1;
    transform: translateX(0);
}


/* --- SECRETARIAS (NOVO DESIGN) --- */
.secretariats-section {
    background-color: #f8f9fa;
    /* Fundo cinza claro */
    padding: 80px 0;
}

.sec-card {
    background: white;
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    height: 100%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sec-card:hover {
    border-color: var(--bene-orange);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(240, 110, 57, 0.1);
}

.sec-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: #e8f4f8;
    /* Azul claro para o fundo do ícone */
    color: var(--bene-blue);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

/* Efeito de hover solicitado: Fundo laranja e ícone branco */
.sec-card:hover .sec-icon-wrapper {
    background-color: var(--bene-orange);
    color: white;
}

.sec-acronym {
    color: var(--bene-orange);
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sec-name {
    color: #7f8c8d;
    font-size: 0.8rem;
    line-height: 1.3;
    font-weight: 500;
}

/* Responsividade Extra */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }

    .carousel-caption-custom {
        width: 90%;
        padding-left: 5%;
    }

    .display-4 {
        font-size: 2rem;
    }

    .radar-icon-bg {
        font-size: 8rem;
    }
}