/* LAYOUT REPOSITORIO */
.gd-repositorio-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    max-width: 1300px;
    margin: 40px auto;
}

/* Sin sidebar: ocupa todo el ancho, cards en grilla de 4 columnas */
.gd-repositorio-layout--sin-sidebar {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0 auto;
}

.gd-repositorio-layout--sin-sidebar .gd-tax-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* SIDEBAR IZQUIERDO */
.gd-repositorio-sidebar {
    width: 280px;
}

.gd-sidebar-desc {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 25px;
    font-weight: 400;
}

.gd-btn-ver-todos {
    background: #0055a4 !important;
    /* Azul oscuro Ministerio */
    color: #ffffff !important;
    padding: 12px 18px;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.gd-btn-ver-todos:hover {
    background: #004080 !important;
    color: #fff !important;
}

.gd-btn-ver-todos .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-left: 10px;
}

/* GRILLA DERECHA */
.gd-repositorio-grid {
    min-width: 0;
}

.gd-tax-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* TARJETA */
.gd-tax-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gd-tax-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* IMAGEN PLACEHOLDER */
.gd-tax-card-imagen {
    height: 180px;
    background: #e2e2e2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gd-tax-card-imagen .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
    color: #bdbdbd;
}

/* CUERPO DE LA TARJETA */
.gd-tax-card-cuerpo {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gd-tax-card-cuerpo h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.gd-tax-card-cuerpo p {
    margin: 0 0 20px;
    font-size: 14px;
    color: #7d7d7d;
    line-height: 1.5;
    flex-grow: 1;
}

/* ENLACE VER MÁS */
.gd-tax-link {
    color: #1f5fae;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gd-tax-link:hover {
    text-decoration: underline;
}

.gd-tax-link span {
    font-size: 20px;
    line-height: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .gd-tax-grid {
        grid-template-columns: 1fr;
    }
}

.gd-tax-card-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
