/* 
    Layout Institucional Premium - Portal da Transparência RO 
    Este arquivo centraliza o estilo de cabeçalho azul com overlap de card branco.
*/

/* Wrapper Global da Página */
.matriz-page-wrapper, .portal-page-wrapper {
    background-color: #f0f4f8;
    min-height: 100vh;
}

.main-header-section {
    background-color: #335d8d;
    padding: 2rem 0 6rem 0 !important;
    position: relative;
    color: white;
}

.header-title-container {
    margin-top: 1.5rem;
    text-align: center;
}

.header-title-separator {
    width: 50px;
    height: 3px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 2px;
    margin: 15px auto 0 auto;
}

/* Card Principal que sobrepõe o cabeçalho */
.main-content-card {
    margin-top: -50px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: white;
}

.main-content-card .card-body {
    padding: 3rem !important;
}

/* Subtítulo e Barra de Destaque Interna ao Card */
.page-subtitle-container {
    margin-bottom: 2rem;
}

.page-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.subtitle-bar {
    width: 50px;
    height: 3px;
    background-color: #335d8d;
    border-radius: 2px;
}

/* Títulos de Seção Internos ao Card */
.docs-section-title {
    font-size: 1.25rem;
    color: #335d8d;
    margin-bottom: 25px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    font-weight: 700;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.docs-section-title i {
    margin-right: 12px;
}

/* Grid e Cards de Redes Sociais */
.social-card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.social-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: white;
    border-color: #335d8d;
}

.social-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 32px;
    color: white;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* Cores das Redes Sociais */
.bg-facebook { background: #3b5998; }
.bg-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.bg-linkedin { background: #0077b5; }
.bg-youtube { background: #ff0000; }

.social-card h3 {
    color: #333;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.social-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

/* Cards de Documentos */
.doc-card {
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-bottom: 20px;
    text-decoration: none !important;
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.doc-card:hover {
    border-color: #335d8d;
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.doc-icon-wrapper {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
    flex-shrink: 0;
}

.doc-info h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #212529; /* Preto */
    margin: 0 0 3px 0;
    text-transform: uppercase;
    line-height: 1.2;
}

.doc-info p {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.3;
}

.bg-doc-blue { background-color: #e3f2fd; color: #1976d2; }
.bg-doc-cyan { background-color: #e0f7fa; color: #0097a7; }

/* Estilo para Boxes de Informação (usado na Matriz) */
.info-section-content {
    background-color: #f8f9fa;
    border-left: 4px solid #335d8d;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 35px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.info-section-content .check-icon { color: #28a745; margin-right: 10px; }
.info-section-content .info-icon { color: #335d8d; margin-right: 8px; }

/* Badges e Status Globais */
.badge-pill-custom {
    border-radius: 50px !important;
    padding: 0.5rem 1rem !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
}

.bg-atende { background-color: #48a673 !important; color: white; }
.bg-nao-atende { background-color: #d9534f !important; color: white; }
.bg-atende-parcial { background-color: #f0ad4e !important; color: white; }

.bg-essencial { background-color: #5b9bd5 !important; color: white; }
.bg-obrigatorio { background-color: #3b444b !important; color: white; }
.bg-recomendado { background-color: #4eb9d1 !important; color: white; }

/* Botões Estilizados */
.btn-white-premium {
    background: white;
    color: #333;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-white-premium:hover {
    background: #f8f9fa;
    border-color: #335d8d;
    color: #335d8d;
}

/* Responsividade */
@@media (max-width: 992px) {
    .social-card-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .main-content-card .card-body {
        padding: 2rem !important;
    }
    .main-header-section {
        padding: 2rem 0 5rem 0 !important;
    }
}

@@media (max-width: 576px) {
    .social-card-container {
        grid-template-columns: 1fr;
    }
}
