body {
    background-color: #f4f5f7;
}

.container {
    margin-top: 20px;
}

.sidebar {
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.05);
}

/* Estilo del título "Últimas Normas" */
.sidebar h5 {
    background-color: #a8c366; /* Verde claro de la barra */
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.event-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.card-evento {
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.05);
    background: white;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-top: 45px; /* espacio para los 3 punticos */
}

.card-evento:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
}

.card-evento img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* Título dentro de tarjeta de evento */
.card-evento h6 {
    background-color: #2e4c3b; /* Verde oscuro */
    color: white;
    padding: 8px;
    border-radius: 5px;
    margin-top: 10px;
}

/* Título dentro del sidebar */
.sidebar .card-title {
    background-color: #2e4c3b;
    color: white;
    padding: 8px;
    border-radius: 5px;
    text-align: center;
}

/* Enlaces con íconos */
.custom-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2e4c3b;
    font-weight: bold;
    transition: color 0.3s ease;
}

.custom-link i {
    margin-right: 5px;
    color: #2e4c3b;
}

.custom-link:hover {
    color: #1e3327;
}

.custom-link:hover i {
    color: #1e3327;
}

/* Ribbon */
.ribbon {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    background: #2e4c3b;
    color: white;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 12px;
    text-transform: uppercase;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.15);
}

/* Ribbon por tipo de evento */
.ribbon.seminario {
    background: #a8c366;
}
.ribbon.curso {
    background: #292420;
}
.ribbon.foro {
    background: #a3b98b;
}
.ribbon.conferencia {
    background: #2e4c3b;
}
.ribbon.encuentro {
    background: #9a3246;
}
.ribbon.webinar {
    background: #2e4c3b;
}

/* 3 punticos (menú redes sociales) */
.card-header-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    font-size: 18px;
    color: #2e4c3b;
    background-color: white;
    padding: 6px;
    border-radius: 50%;
    cursor: pointer;
}

/* Menú desplegable */
.card-menu {
    display: none;
    position: absolute;
    top: 35px;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.card-menu a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #2e4c3b;
    font-size: 14px;
}

.card-menu a:hover {
    background-color: #f4f5f7;
}

/* Pie verde DNED */
.dned-footer {
    background-color: #2e4c3b;
    color: white;
    padding: 8px 12px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 12px;
}

.dned-footer .dned-logo {
    display: flex;
    align-items: center;
    gap: 6px; /* Espacio entre elementos */
}

.dned-footer .dned-logo span {
    display: inline-block;
}

.dned-footer .dned-logo img {
    height: 20px;
    width: auto;
    vertical-align: middle;
    filter: brightness(0) invert(1);
}

