/* Container geral */
.panel-group {
    margin: 20px auto;
    max-width: 900px;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

/* Painel */
.panel {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.panel:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Cabeçalho */
.panel-heading {
    padding: 16px 20px;
    background: #f7f9fc;
    border-bottom: 1px solid #e2e2e2;
    cursor: pointer;
}

.panel-title a {
    display: block;
    text-decoration: none;
    color: #222;
    font-weight: 700;
    font-size: 18px;
    transition: color 0.2s ease;
}

.panel-title a:hover {
    color: #0d6efd;
}

/* Corpo */
.panel-body {
    padding: 0; /* retiramos padding para cada subitem */
    border-bottom: none;
}

/* Subitens destacados */
.child-item {
    background: #f9f9f9;
    margin: 6px 10px;
    padding: 10px 12px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border-left: 3px solid #0d6efd;
    transition: background 0.3s ease;
}

.child-item:hover {
    background: #eef4ff;
}

/* Links filhos */
.child-link {
    text-transform: none; 
    color: #0d6efd;
    text-decoration: none;
    font-size: 15px;
}

.child-link:hover {
    text-decoration: underline;
}

/* Descidas fluidas */
.panel-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.panel-collapse.is-open {
    display: block;
    max-height: 1000px;
    padding: 10px 0 10px 0;
}

/* Seta indicador */
.panel-title a::after {
    content: "▾";
    float: right;
    font-size: 16px;
    color: #666;
    transition: transform 0.25s ease, color 0.25s ease;
}

.panel-title a.collapsed::after {
    transform: rotate(-90deg);
}

.panel-title a:not(.collapsed)::after {
    color: #0d6efd;
}
