/* =====================================================
   PORTAL CGM - todas as regras são escopadas por página
   (nada de * {}, body {} ou .container global)
===================================================== */

/* ---------- CGM EM AÇÃO ---------- */

.cgm-news-page {
    max-width: 1450px;
    margin: 70px auto;
    padding: 20px;
}

.cgm-subtitle {
    color: #6b7280;
    font-size: 17px;
    margin-bottom: 35px;
}

.cgm-section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 42px;
    font-weight: 800;
    color: #17315F;
}

.cgm-section-title::before {
    content: "";
    width: 8px;
    height: 52px;
    border-radius: 20px;
    background: linear-gradient(to bottom, #0d6efd, #0B2C5F);
}

.cgm-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cgm-featured {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    height: 620px;
    background: #000;
}

.cgm-slide {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease;
}

.cgm-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.cgm-featured-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

.cgm-featured-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .8s;
}

.cgm-featured:hover .cgm-featured-link img {
    transform: scale(1.08);
}

.cgm-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, .20) 45%, rgba(0, 0, 0, .70) 75%, rgba(0, 0, 0, .92) 100%);
}

.cgm-overlay h2 {
    font-size: 30px;
    line-height: 1.15;
    max-width: 700px;
    color: #fff;
}

.cgm-overlay p {
    color: #ececec;
    font-size: 17px;
    line-height: 1.6;
    max-width: 600px;
}

.cgm-featured-date {
    display: block;
    margin-top: 20px;
    color: #ddd;
    font-size: 15px;
}

.cgm-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0d6efd;
    color: #fff;
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    width: fit-content;
}

.cgm-category.cgm-em-acao {
    background: #2563eb;
}

.cgm-category.eventos {
    background: #16a34a;
}

.cgm-category.auditoria {
    background: #dc2626;
}

.cgm-category.capacitacoes {
    background: #f59e0b;
}

.cgm-category.transparencia {
    background: #7c3aed;
}

.cgm-prev,
.cgm-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    z-index: 20;
    transition: .3s;
}

.cgm-prev:hover,
.cgm-next:hover {
    background: #0B2C5F;
}

.cgm-prev {
    left: 20px;
}

.cgm-next {
    right: 20px;
}

.cgm-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.cgm-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: .3s;
}

.cgm-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* Lateral */
.cgm-sidebar {
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, .06);
}

.cgm-sidebar h3 {
    color: #0b2c5f;
    margin-bottom: 25px;
    font-size: 24px;
}

.cgm-side-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    text-decoration: none;
    padding: 18px 0;
    border-bottom: 1px solid #ececec;
    transition: .3s;
}

.cgm-side-item:last-child {
    border: none;
}

.cgm-side-thumb {
    width: 95px;
    height: 75px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
}

.cgm-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.cgm-side-item:hover img {
    transform: scale(1.08);
}

.cgm-side-content {
    flex: 1;
}

.cgm-side-content h4 {
    margin: 0;
    color: #17315F;
    font-size: 17px;
    line-height: 1.4;
    transition: color .3s;
}

.cgm-side-item:hover h4 {
    color: #2563eb;
}

.side-date {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #6b7280;
}

/* Grid de notícias */
.cgm-news-grid {
    margin-top: 70px;
}

.cgm-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.cgm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cgm-news-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transition: .35s;
}

.cgm-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .12);
}

.cgm-card-image {
    height: 230px;
    overflow: hidden;
}

.cgm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}

.cgm-news-card:hover img {
    transform: scale(1.08);
}

.cgm-card-content {
    padding: 22px;
}

.cgm-card-content h3 {
    margin: 15px 0;
    font-size: 22px;
    line-height: 1.35;
}

.cgm-card-content h3 a {
    text-decoration: none;
    color: #17315F;
}

.cgm-card-content h3 a:hover {
    color: #2563eb;
}

.cgm-card-content p {
    color: #666;
    line-height: 1.7;
}

.cgm-card-date {
    display: block;
    margin-top: 18px;
    color: #888;
    font-size: 14px;
}

@media (max-width: 1000px) {
    .cgm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .cgm-hero {
        grid-template-columns: 1fr;
    }

    .cgm-featured {
        height: 420px;
    }
}

@media (max-width: 768px) {
    .cgm-news-page {
        padding: 15px;
    }

    .cgm-section-title {
        font-size: 30px;
    }

    .cgm-overlay {
        padding: 24px;
    }
}

@media (max-width: 700px) {
    .cgm-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- UNIDADES DE CONTROLE INTERNO ---------- */

.uci-page {
    max-width: 1450px;
    margin: 70px auto;
    padding: 20px;
}

.uci-header {
    margin-bottom: 45px;
    max-width: 900px;
}

.uci-header h1 {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 18px;
    font-size: 42px;
    font-weight: 800;
    color: #17315F;
    line-height: 1.2;
}

.uci-header h1::before {
    content: "";
    width: 8px;
    height: 52px;
    border-radius: 20px;
    background: linear-gradient(to bottom, #0d6efd, #0B2C5F);
}

.uci-header p {
    margin: 0;
    font-size: 18px;
    line-height: 1.8;
    color: #6b7280;
}

.uci-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.uci-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: #fff;
    border: 1px solid #d7dde5;
    border-top: 3px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    transition: .25s;
}

.uci-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .10);
    border-top-color: #0d6efd;
}

.uci-icon {
    width: 74px;
    height: 74px;
    background: #0B2C5F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(11, 44, 95, .15);
}

.uci-card h3 {
    font-size: 24px;
    color: #17315F;
    margin-bottom: 12px;
    font-weight: 700;
}

.uci-card p {
    color: #5b6472;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 25px;
}

.uci-card span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d6efd;
    font-weight: 700;
    transition: gap .3s;
}

.uci-card:hover span {
    gap: 14px;
}

@media (max-width: 1000px) {
    .uci-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .uci-grid {
        grid-template-columns: 1fr;
    }

    .uci-header h1 {
        font-size: 30px;
    }
}

/* ---------- ORGANOGRAMA ---------- */

.organograma-page {
    max-width: 1450px;
    margin: 70px auto;
    padding: 20px;
}

.organograma-page .hero {
    padding: 0 0 28px;
}

.organograma-page .hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: #17315F;
    margin: 0 0 14px;
}

.organograma-page .hero .rule {
    width: 56px;
    height: 3px;
    background: #0B2C5F;
    border-radius: 20px;
    margin-bottom: 18px;
}

.organograma-page .hero p {
    max-width: 760px;
    font-size: 18px;
    line-height: 1.8;
    color: #6b7280;
    margin: 0;
}

.organograma-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.organograma-card,
.sidebar-card {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
}

.organograma-card img {
    width: 100%;
    display: block;
    cursor: zoom-in;
}

.organograma-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card h3 {
    color: #17315F;
    margin-bottom: 20px;
}

.sidebar-card a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 12px;
    text-decoration: none;
    color: #17315F;
    margin-bottom: 12px;
    transition: .25s;
}

.sidebar-card a i {
    width: 22px;
    font-size: 18px;
    color: #1f5cc4;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-card a:hover {
    border-color: #1f5cc4;
    box-shadow: 0 6px 18px rgba(31, 92, 196, .12);
    transform: translateY(-2px);
}

.sidebar-card a:hover i {
    color: #123f86;
}

.info-item {
    display: flex;
    gap: 15px;
    margin: 18px 0;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf2f7;
}

.info-item:last-child {
    border: none;
    padding-bottom: 0;
}

.info-item i {
    font-size: 18px;
    color: #123f86;
    width: 20px;
    margin-top: 3px;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    color: #17315F;
    margin-bottom: 4px;
}

.info-item span {
    color: #667085;
    line-height: 1.5;
}

.organograma-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, .9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.organograma-modal img {
    max-width: 95%;
    max-height: 95%;
}

.fechar-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 45px;
    cursor: pointer;
}

@media (max-width: 992px) {
    .organograma-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- REUNIÕES TÉCNICAS / NORMATIVOS ---------- */

.reunioes-page {
    --navy: #122A45;
    --navy-2: #1B3A5C;
    --accent: #2C6E49;
    --accent-light: #E9F3EC;
    --surface: #FFFFFF;
    --border: #DDE2E6;
    --text: #1C232C;
    --text-2: #5A6472;
    --radius: 6px;
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--text);
    padding: 40px 0 48px;
}

.reunioes-page *,
.reunioes-page *::before,
.reunioes-page *::after {
    box-sizing: border-box;
}

.reunioes-page .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 40px;
}

.reunioes-page .hero {
    padding: 0 0 28px;
}

.reunioes-page .hero h1 {
    font-size: 32px;
    font-weight: 700;
    color: #0B2C5F;
    margin: 0 0 14px;
}

.reunioes-page .hero .rule {
    width: 56px;
    height: 3px;
    background: #0B2C5F;
    border-radius: 20px;
    margin-bottom: 18px;
}

.reunioes-page .hero p {
    max-width: 760px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-2);
    margin: 0;
}

.reunioes-page .filters {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 28px 0 20px;
    overflow: hidden;
}

.reunioes-page .filters-head {
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    color: var(--navy);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
}

.reunioes-page .filters-body {
    padding: 20px 24px 22px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.reunioes-page .field label {
    display: block;
    font-size: 12px;
    color: var(--text-2);
    margin-bottom: 6px;
}

.reunioes-page .field input,
.reunioes-page .field select {
    width: 100%;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
}

.reunioes-page .field input:focus,
.reunioes-page .field select:focus {
    outline: none;
    border-color: var(--navy-2);
}

.reunioes-page .btn-filter {
    height: 38px;
    padding: 0 22px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.reunioes-page .btn-filter:hover {
    background: var(--navy-2);
}

.reunioes-page .results-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0 14px;
}

.reunioes-page .count {
    font-size: 15px;
    color: var(--navy);
}

.reunioes-page .count b {
    font-size: 18px;
}

/* Cabeçalho e linhas usam exatamente o mesmo grid (sem translateX) */
.reunioes-page .list {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.reunioes-page .list-header,
.reunioes-page .row {
    display: grid;
    grid-template-columns: 2.6fr 1fr 1fr 0.9fr 150px;
    gap: 16px;
    align-items: center;
}

.reunioes-page .list-header {
    background: var(--navy);
    color: #fff;
    font-size: 12px;
    letter-spacing: .3px;
    text-transform: uppercase;
    padding: 14px 24px;
}

.reunioes-page .row {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
}

.reunioes-page .meeting-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reunioes-page .meeting-title .num {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: .3px;
}

.reunioes-page .meeting-title .name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.reunioes-page .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.reunioes-page .tag {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
    color: var(--text-2);
}

.reunioes-page .cell {
    font-size: 14px;
    color: var(--text-2);
}

.reunioes-page .cell.strong {
    color: var(--text);
}

.reunioes-page .btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 18px;
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.reunioes-page .btn-action:hover {
    background: var(--navy-2);
    color: #fff;
}

@media (max-width: 860px) {
    .reunioes-page .container {
        padding: 0 20px;
    }

    .reunioes-page .filters-body {
        grid-template-columns: 1fr 1fr;
    }

    .reunioes-page .list-header {
        display: none;
    }

    .reunioes-page .row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 520px) {
    .reunioes-page .filters-body {
        grid-template-columns: 1fr;
    }
}