/* noticias-fa-style.css */

.noticias-fa-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    max-width: 1900px;
    margin: 0 auto;
}

.carousel-controls {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.noticias-fa-carousel {
    position: relative;
}

.carousel-wrapper {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    gap: 20px;
}

.news-card {
    flex: 0 0 auto;
    background: #f0f1f275;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.news-card:hover {
    transform: translateY(-3px);
}

.news-card.sticky-post {
    background: #219BCC;
    color: white;
}

.news-card.sticky-post .news-title a,
.news-card.sticky-post .news-excerpt {
    color: white;
}

.news-content {
    padding: 20px 20px 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
}

.news-date {
    color: #666;
    background: rgba(255, 255, 255, 0.8);
    padding: 3px 17px 0px 17px;
    border-radius: 17px;
    font-size: 11px;
    text-transform: uppercase;
}

.news-category {
    background: #5B468A;
    color: white;
    padding: 3px 17px 0px 17px;
    border-radius: 17px;
    font-size: 11px;
    text-transform: uppercase;
}

.news-card.sticky-post .news-date {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.news-card.sticky-post .news-category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.news-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 10px;
}

.news-title a:hover {
    color: #219BCC;
}

.news-excerpt {
    color: #666;
    line-height: 1.5;
    margin-bottom: 0;
    flex: 1;
}

.news-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0 0 16px 16px;
    margin-top: auto;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.news-read-more {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(33, 155, 204, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.news-read-more:hover {
    background: rgba(33, 155, 204, 0.9);
    transform: translateY(-1px);
}

/* Ver Todas las Noticias Card */
.see-all-card {
    background: #219BCC;
    color: white;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.see-all-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 20px;
}

.see-all-link {
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s ease;
    margin-left: -170%;

}

.see-all-link:hover {
    transform: scale(1.05);
    color: white;
}

.see-all-text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.see-all-arrow {
    font-size: 24px;
    font-weight: bold;
}

/* Botones de navegación */
.carousel-btn {
    background: rgba(33, 155, 204, 0.7);
    color: white;
    border: none;
    width: 32px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    padding: 0;
    margin: 5px;
}

.carousel-btn:hover {
    background: #219BCC;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    background: rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */

/* Desktop grande 1600+ = 4.5 noticias */
@media (min-width: 1600px) {
    .news-card {
        width: calc((100% - 80px) / 4.5);
    }
    .noticias-fa-container {
        max-width: 98%;
    }
}

/* Desktop 1280-1599 = 3.5 noticias */
@media (min-width: 1280px) and (max-width: 1599px) {
    .news-card {
        width: calc((100% - 60px) / 3.5);
    }
    .noticias-fa-container {
        max-width: 98%;
    }
}

/* Tablet y móvil 1280- = 2.5 noticias */
@media (max-width: 1279px) {
    .news-card {
        width: calc((100% - 40px) / 2.5);
    }
    .noticias-fa-container {
        max-width: 98%;
    }
}

/* Móvil pequeño */
@media (max-width: 768px) {
    .news-card {
        width: calc((100% - 20px) / 1.5);
        min-height: 350px;
    }
    
    .news-content {
        padding: 16px 16px 12px 16px;
    }
    
    .news-read-more {
        bottom: 12px;
        right: 12px;
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .see-all-text {
        font-size: 16px;
    }
    
    .see-all-arrow {
        font-size: 20px;
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .news-card {
        width: calc(100% - 10px);
        min-height: 320px;
    }
    
    .news-content {
        padding: 14px 14px 10px 14px;
    }
    
    .news-meta {
        gap: 8px;
    }
    
    .news-date,
    .news-category {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .see-all-text {
        font-size: 14px;
    }
    
    .see-all-arrow {
        font-size: 18px;
    }
    
    .carousel-controls {
        margin-bottom: 12px;
    }
    
    .carousel-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}