/* ==========================================================================
   NORMAS-REGULAMENTOS.HTML - Diretrizes, Regimentos Internos e Normativos
   Baseado na identidade visual padrão do portal institucional CDL
   ========================================================================== */

body {
    background-color: #ffffff !important; /* Mantém o fundo limpo e corporativo */
}

/* --- CABEÇALHO DA PÁGINA (Page Header) --- */
.page-header {
    background: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 34, 68, 0.95)), url('../img/page-header.jpg') center center no-repeat;
    background-size: cover;
    background-color: #003366; 
    padding: 40px 0 !important; 
    margin-bottom: 40px !important; 
    border-bottom: 4px solid #ffcc00; 
}

/* Texto visível e contrastado no cabeçalho */
.page-header h1, 
.page-header h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 5px;
}

.page-header a {
    color: rgba(255, 255, 255, 0.75) !important;
    transition: color 0.2s ease;
}

.page-header a:hover {
    color: #ffffff !important;
    text-decoration: none;
}


/* --- ACORDÉONS E REGRAS (Bootstrap Collapse Customizado) --- */
/* Excelente para organizar normas por capítulos ou seções retráteis */
.card-regulation {
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    margin-bottom: 15px;
    background-color: #ffffff;
    transition: box-shadow 0.2s ease;
}

.card-regulation:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Cabeçalho do Acórdéon / Título do Capítulo */
.card-regulation-header {
    background-color: #f8fafc !important;
    padding: 18px 24px !important;
    border-bottom: none !important;
}

.card-regulation-header button {
    color: #003366 !important; /* Azul CDL */
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
}


/* --- IDENTAÇÃO DE ARTIGOS E ALÍNEAS --- */
.regulation-body {
    padding: 25px 30px;
    color: #334155; /* Cinza-carvão para leitura confortável */
    line-height: 1.7;
    font-size: 0.98rem;
}

/* Formatação para "Artigo 1º", "Artigo 2º", etc. */
.article-title {
    color: #0f172a;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.article-title:first-of-type {
    margin-top: 0;
}

/* Recuo sutil para parágrafos, alíneas ou incisos (a, b, c...) */
.regulation-list {
    list-style-type: lower-alpha;
    padding-left: 25px;
    margin-top: 8px;
    margin-bottom: 15px;
}

.regulation-list li {
    margin-bottom: 6px;
    color: #475569;
}


/* --- CAIXAS DE DESTAQUE / ALERTAS INFORMATIVOS --- */
/* Útil para avisos importantes, penalidades ou exceções nas normas */
.regulation-note {
    background-color: #fffbeb; /* Fundo amarelo/bege bem suave */
    border-left: 4px solid #ffcc00; /* Borda amarela CDL */
    padding: 15px 20px;
    border-radius: 0 6px 6px 0;
    margin: 20px 0;
    font-size: 0.95rem;
    color: #78350f;
}

.regulation-note i {
    color: #d97706;
    margin-right: 8px;
}


/* --- BOTÃO FLUTUANTE "VOLTAR AO TOPO" --- */
#backToTop {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #003366 !important;
    border: none;
    transition: all 0.3s ease;
}

#backToTop:hover {
    background-color: #002244 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}


/* --- ADAPTAÇÃO PARA DISPOSITIVOS MÓVEIS --- */
@media (max-width: 768px) {
    .page-header {
        padding: 30px 0 !important;
    }

    .card-regulation-header {
        padding: 14px 18px !important;
    }

    .regulation-body {
        padding: 15px 20px;
    }
}