/* Estilos para la sección de Noticias y Eventos con Pestañas */
.news-events-tabs .tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.news-events-tabs .tab-button {
    background-color: transparent;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #6c757d;
    position: relative;
    transition: color 0.3s ease;
}

.news-events-tabs .tab-button:hover {
    color: #12156a;
}

.news-events-tabs .tab-button.active {
    color: #12156a;
}

.news-events-tabs .tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #12156a;
}

.news-events-tabs .tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.news-events-tabs .tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Estilos para las tarjetas de noticias/eventos */
.news-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-card-image-container {
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    overflow: hidden;
}

.news-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image {
    transform: scale(1.05);
}

.news-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date {
    font-size: 0.85rem;
    color: #a4323a;
    margin-bottom: 10px;
    font-weight: 600;
}

.news-card-title a {
    font-size: 1.25rem;
    font-weight: 700;
    color: #12156a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: #a4323a;
}

.news-card-desc {
    margin-top: 10px;
    flex-grow: 1;
}

.news-card-readmore {
    margin-top: 15px;
    font-weight: 600;
    color: #12156a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-readmore:hover {
    color: #a4323a;
}

.news-card-readmore .fa-arrow-right {
    margin-left: 5px;
}