/* style3.css actualizado */

/* Estilos generales (ajustados para el contexto del acordeón) */
.category-list h2,
.category-list p,
.category-list a {
    margin: 0;
    padding: 0;
    line-height: 1.6;
}
.category-list a {
    text-decoration: none;
    color: #333;
}
.category-list h2 {
    font-size: 1.2em;
    font-weight: bold;
}
.category-list p {
    font-size: 1em;
}

/* Cabecera (mantén el estilo anterior para la cabecera principal) */
.knowledge-header {
   /* Reemplaza la URL de placeholder con la ruta de tu imagen */
    background: url('assets/custom/images/index-testimonialb.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    box-sizing: border-box; /* Asegura que el padding no afecte el tamaño total */
}

.knowledge-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.header-content {
    position: relative;
    z-index: 1;
}

.knowledge-header h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.knowledge-header .subtitle {
    font-size: 1.5em;
    margin-top: 0;
}

.knowledge-header .authority {
    font-size: 1.1em;
}

/* Estilos para el Acordeón (con mayor especificidad) */
.category-list {
    margin-top: -80px;
    position: relative;
    z-index: 2;
}

.category-list .category-accordion {
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-list .accordion-header {
    background-color: #004b8d;
    color: white;
    padding: 20px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
    box-sizing: border-box;
}

.category-list .accordion-header:hover {
    background-color: #003a6b;
}

.category-list .accordion-header i {
    margin-right: 10px;
}

.category-list .accordion-header h2 {
    margin: 0;
    font-size: 1.2em;
}

.category-list .icon-toggle {
    transition: transform 0.3s ease;
    font-size: 1.5em;
    font-weight: bold;
}

.category-list .accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

.category-list .accordion-content.active {
    max-height: 5000px;
    padding: 20px;
}

.category-list .accordion-header.active .icon-toggle {
    transform: rotate(180deg);
}

.category-list .article-item {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.category-list .article-item:last-child {
    border-bottom: none;
}