/**
 * Noticias Listing Archivo Widget Styles
 * 
 * @package AMW_Widgets
 * @since 1.0.0
 */

/* Main Widget Container - Clean start with reset */
.noticias-listing-archivo-widget {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    padding: 0;
    margin: 0;
    padding-bottom: 20px;
}

.noticias-listing-archivo-widget * {
    box-sizing: border-box;
}

/* Filters Section */
.noticias-listing-archivo-widget .noticias-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
}

.noticias-listing-archivo-widget .filter-dropdown {
    position: relative;
}

.noticias-listing-archivo-widget .filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    position: relative;
    z-index: 10;
}

.noticias-listing-archivo-widget .filter-btn:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.noticias-listing-archivo-widget .filter-dropdown.active .filter-btn {
    border-color: #004388;
    background: #eff6ff;
    color: #004388;
}

.noticias-listing-archivo-widget .filter-arrow {
    transition: transform 0.2s ease;
}

.noticias-listing-archivo-widget .filter-dropdown.active .filter-arrow {
    transform: rotate(180deg);
}

.noticias-listing-archivo-widget .filter-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    margin-top: 4px;
}

.noticias-listing-archivo-widget .filter-dropdown.active .filter-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.noticias-listing-archivo-widget .filter-option {
    padding: 10px 16px;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.noticias-listing-archivo-widget .filter-option:last-child {
    border-bottom: none;
}

.noticias-listing-archivo-widget .filter-option:hover {
    background: #f9fafb;
}

.noticias-listing-archivo-widget .filter-option.active {
    background: #eff6ff;
    color: #004388;
    font-weight: 500;
}

/* Active filter button when a filter is applied */
.noticias-listing-archivo-widget .filter-btn.active {
    background: #004388;
    color: #ffffff;
    border-color: #004388;
    box-shadow: 0 4px 12px rgba(0, 67, 136, 0.3);
}

.noticias-listing-archivo-widget .filter-btn.active:hover {
    background: #003366;
    border-color: #003366;
}

/* Inactive filter buttons when one is active */
.noticias-listing-archivo-widget .noticias-filters.has-active .filter-btn:not(.active) {
    opacity: 0.5;
}

.noticias-listing-archivo-widget .noticias-filters.has-active .filter-btn:not(.active):hover {
    opacity: 0.7;
}

/* News Container - 3 Column Grid layout */
.noticias-listing-archivo-widget .noticias-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Individual News Item - Grid Card */
.noticias-listing-archivo-widget .noticia-item {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
    border: 1px solid #e5e5e5;
    position: relative;
    display: flex;
    flex-direction: column;
}


.noticias-listing-archivo-widget .noticia-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* News Link - Vertical Card Layout */
.noticias-listing-archivo-widget .noticia-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 0;
    transform: none !important;
}

.noticias-listing-archivo-widget .noticia-link:hover {
    transform: none !important;
}

/* Force no transforms on any hover effects */
.noticias-listing-archivo-widget .noticia-link:hover,
.noticias-listing-archivo-widget .noticia-item:hover,
.noticias-listing-archivo-widget .noticia-image:hover,
.noticias-listing-archivo-widget .noticia-content:hover,
.noticias-listing-archivo-widget .noticia-title:hover,
.noticias-listing-archivo-widget .ver-noticia-btn:hover,
.noticias-listing-archivo-widget *:hover {
    transform: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
    -o-transform: none !important;
}

/* News Image - responsive with fixed height - Override Elementor controls */
.noticias-listing-archivo-widget .noticia-image,
.elementor-widget-noticias-listing-archivo .noticia-image,
[class*="elementor-element"] .noticia-item .noticia-image,
[class*="elementor-"] [class*="elementor-element"] .noticia-item .noticia-image {
    width: 100% !important;
    height: 300px !important;
    max-height: 450px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #f8f9fa;
    transform: none !important;
    flex-shrink: 0;
    position: relative;
}

/* Additional override for very specific Elementor selectors */
[class*="elementor-"] [class*="elementor-element"] .noticia-image,
.elementor .noticia-image,
body .noticia-image {
    width: 100% !important;
    height: 300px !important;
    max-height: 450px !important;
}

/* News Content - Bottom section with padding */
.noticias-listing-archivo-widget .noticia-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Content wrapper for top elements */
.noticias-listing-archivo-widget .noticia-content-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Meta row - Category and Date aligned */
.noticias-listing-archivo-widget .noticia-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* Wrapper for category badge */
.noticias-listing-archivo-widget .noticia-category {
    display: flex;
    align-items: center;
}

/* Wrapper for date */
.noticias-listing-archivo-widget .noticia-date-wrapper {
    display: flex;
    align-items: center;
}

/* News Date - In content area, right side */
.noticias-listing-archivo-widget .noticia-item .noticia-date,
.noticias-listing-archivo-widget .noticia-content .noticia-date {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #666666 !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0;
    line-height: 1.2;
}

/* News Badge - In content area, left side */
.noticias-listing-archivo-widget .noticia-badge {
    display: inline-block;
    width: auto !important;
    max-width: fit-content;
    min-width: auto;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #ffffff !important;
    text-transform: lowercase;
    letter-spacing: 0.3px;
    padding: 4px 8px;
    border-radius: 15px;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
    background: #000000;
}

.noticias-listing-archivo-widget .noticia-badge:last-child {
    margin-right: 0;
}

/* Badges Wrapper */
.noticias-listing-archivo-widget .noticia-badges-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
}

/* Badge colors are applied dynamically via JavaScript from data-color attributes */

/* Recent News Badge - News published recently */
.noticias-listing-archivo-widget .noticia-recent-badge {
    background-color: #28a745 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
    transform: none !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    padding-left: 18px !important;
    animation: recentBadgePulse 2s ease-in-out infinite;
}

.noticias-listing-archivo-widget .noticia-recent-badge::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: recentDotPulse 1.5s ease-in-out infinite;
}

.noticias-listing-archivo-widget .noticia-item:hover .noticia-recent-badge {
    background-color: #218838 !important;
    box-shadow: 0 3px 6px rgba(40, 167, 69, 0.4);
    animation-play-state: paused;
}

@keyframes recentBadgePulse {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
    }
    50% {
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.6), 0 0 12px rgba(40, 167, 69, 0.2);
    }
}

@keyframes recentDotPulse {
    0%, 100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1.2);
    }
}

/* Trending News Badge */
.noticias-listing-archivo-widget .noticia-trending-badge {
    display: inline-flex;
    align-items: center;
    width: auto !important;
    max-width: fit-content;
    align-self: flex-start;
    gap: 4px;
    background-color: #dc3545;
    color: #ffffff;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 3px 8px;
    border-radius: 12px;
    margin: 4px 0;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(220, 53, 69, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.noticias-listing-archivo-widget .noticia-trending-badge .trending-icon {
    flex-shrink: 0;
    animation: trendingIconPulse 2s ease-in-out infinite;
}

.noticias-listing-archivo-widget .noticia-item:hover .noticia-trending-badge {
    background-color: #c82333;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.4);
}

@keyframes trendingIconPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* News Title - Styled like reference image */
.noticias-listing-archivo-widget .noticia-item .noticia-title,
.noticias-listing-archivo-widget .noticia-content .noticia-title {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a !important;
    margin: 0 0 8px 0;
    text-transform: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticias-listing-archivo-widget .noticia-item .noticia-title a,
.noticias-listing-archivo-widget .noticia-content .noticia-title a {
    color: #1a1a1a !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.noticias-listing-archivo-widget .noticia-item:hover .noticia-title,
.noticias-listing-archivo-widget .noticia-link:hover .noticia-title {
    color: #004388 !important;
}

.noticias-listing-archivo-widget .noticia-item:hover .noticia-title a,
.noticias-listing-archivo-widget .noticia-link:hover .noticia-title a {
    color: #004388 !important;
}

/* News Excerpt - Visible below title */
.noticias-listing-archivo-widget .noticia-item .noticia-excerpt,
.noticias-listing-archivo-widget .noticia-content .noticia-excerpt {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: #666666 !important;
    margin: 8px 0 0 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ver Noticia Button - Hidden for card layout like reference image */
.noticias-listing-archivo-widget .ver-noticia-btn {
    display: none;
}


/* Skeleton Loader - Simple version */
.noticias-listing-archivo-widget .skeleton-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.noticias-listing-archivo-widget.loaded .skeleton-container {
    opacity: 0;
    pointer-events: none;
}

.noticias-listing-archivo-widget .skeleton-noticias-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.noticias-listing-archivo-widget .skeleton-noticia-item {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    opacity: 0.7;
}

.noticias-listing-archivo-widget .skeleton-noticia-image {
    width: 100%;
    height: 300px;
    max-height: 450px;
    background: linear-gradient(90deg, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    flex-shrink: 0;
}

.noticias-listing-archivo-widget .skeleton-noticia-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.noticias-listing-archivo-widget .skeleton-title,
.noticias-listing-archivo-widget .skeleton-excerpt,
.noticias-listing-archivo-widget .skeleton-date {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.noticias-listing-archivo-widget .skeleton-title {
    height: 20px;
    width: 100%;
}

.noticias-listing-archivo-widget .skeleton-title.short {
    width: 70%;
}

.noticias-listing-archivo-widget .skeleton-excerpt {
    height: 14px;
    width: 100%;
}

.noticias-listing-archivo-widget .skeleton-excerpt.short {
    width: 60%;
}

.noticias-listing-archivo-widget .skeleton-date {
    height: 12px;
    width: 120px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Main content - Show when loaded */
.noticias-listing-archivo-widget .noticias-container {
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}

.noticias-listing-archivo-widget.loaded .noticias-container {
    opacity: 1;
}

/* Hide old line dividers completely */
.noticias-listing-archivo-widget .line-divider {
    display: none;
}

/* Loading States */
.noticias-listing-archivo-widget.loading {
    pointer-events: none;
}

.noticias-listing-archivo-widget.loading .noticias-container {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.noticias-listing-archivo-widget.loading .pagination-btn,
.noticias-listing-archivo-widget.loading .pagination-number {
    opacity: 0.6;
    cursor: not-allowed;
}

.noticias-listing-archivo-widget .noticias-error {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Pagination Styles */
.noticias-listing-archivo-widget .noticias-pagination {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.noticias-listing-archivo-widget .pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.noticias-listing-archivo-widget .pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.noticias-listing-archivo-widget .pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #004388;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

.noticias-listing-archivo-widget .pagination-btn:hover {
    background: #f8f9fa;
    border-color: #004388;
    color: #003166;
}

.noticias-listing-archivo-widget .pagination-btn.disabled {
    color: #9ca3af;
    cursor: not-allowed;
    background: #f9fafb;
    border-color: #e5e7eb;
}

.noticias-listing-archivo-widget .pagination-btn.disabled:hover {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #9ca3af;
}

.noticias-listing-archivo-widget .pagination-btn svg {
    flex-shrink: 0;
}

.noticias-listing-archivo-widget .pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.noticias-listing-archivo-widget .pagination-number:hover {
    background: #f8f9fa;
    border-color: #004388;
    color: #004388;
}

.noticias-listing-archivo-widget .pagination-number.current {
    background: #004388;
    border-color: #004388;
    color: #ffffff;
    cursor: default;
}

.noticias-listing-archivo-widget .pagination-number.current:hover {
    background: #004388;
    border-color: #004388;
    color: #ffffff;
}

.noticias-listing-archivo-widget .pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
    cursor: default;
}

.noticias-listing-archivo-widget .pagination-info {
    text-align: center;
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
}

/* Responsive Design */
/* Tablet - 2 columns */
@media (max-width: 1024px) {
    .noticias-listing-archivo-widget .noticias-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .noticias-listing-archivo-widget .skeleton-noticias-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile - Single column */
@media (max-width: 768px) {
    .noticias-listing-archivo-widget .noticias-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .noticias-listing-archivo-widget .skeleton-noticias-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Mobile filters */
    .noticias-listing-archivo-widget .noticias-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .noticias-listing-archivo-widget .filter-btn {
        justify-content: space-between;
        width: 100%;
        padding: 12px 16px;
    }
}
    
    /* Pagination responsive */
    .noticias-listing-archivo-widget .pagination-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .noticias-listing-archivo-widget .pagination-numbers {
        order: 1;
    }
    
    .noticias-listing-archivo-widget .pagination-prev {
        order: 0;
        align-self: flex-start;
    }
    
    .noticias-listing-archivo-widget .pagination-next {
        order: 2;
        align-self: flex-end;
    }
    
    .noticias-listing-archivo-widget .pagination-btn {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .noticias-listing-archivo-widget .pagination-number {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .noticias-listing-archivo-widget {
        padding: 0 10px;
    }
    
    /* Button responsive */
    .noticias-listing-archivo-widget .ver-noticia-btn {
        height: 42px;
        font-size: 12px;
        padding: 0 18px;
        margin-top: 12px;
        gap: 6px;
    }
    
    .noticias-listing-archivo-widget .ver-noticia-btn::after {
        width: 11px;
        height: 9px;
    }
    
    /* Pagination mobile */
    .noticias-listing-archivo-widget .noticias-pagination {
        margin-top: 30px;
        padding-top: 25px;
    }
    
    .noticias-listing-archivo-widget .pagination-numbers {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .noticias-listing-archivo-widget .pagination-number {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .noticias-listing-archivo-widget .pagination-btn {
        padding: 8px 12px;
        font-size: 11px;
        gap: 6px;
    }
    
    .noticias-listing-archivo-widget .pagination-btn svg {
        width: 12px;
        height: 12px;
    }
    
    /* Mobile - Keep it simple */
    .noticias-listing-archivo-widget .noticia-item {
        margin-bottom: 20px;
    }
    
    .noticias-listing-archivo-widget .noticia-image {
        height: 180px;
    }
    
    .noticias-listing-archivo-widget .noticia-content {
        padding: 0;
    }
    
    .noticias-listing-archivo-widget .noticia-title {
        font-size: 18px;
        line-height: 1.3;
        word-break: break-word;
        hyphens: auto;
    }
    
    .noticias-listing-archivo-widget .noticia-excerpt {
        font-size: 12px;
        line-height: 1.4;
        word-break: break-word;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .noticias-listing-archivo-widget .noticia-date {
        font-size: 10px;
        letter-spacing: 0.3px;
    }
    
    .noticias-listing-archivo-widget .noticia-badge {
        font-size: 8px;
        padding: 2px 5px;
        border-radius: 8px;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .noticias-listing-archivo-widget .noticia-trending-badge {
        font-size: 8px;
        padding: 2px 6px;
        gap: 3px;
        margin: 2px 0;
    }
    
    .noticias-listing-archivo-widget .noticia-trending-badge .trending-icon {
        width: 10px;
        height: 10px;
    }
    
    .noticias-listing-archivo-widget .ver-noticia-btn {
        height: 36px;
        font-size: 11px;
        padding: 0 16px;
        margin-top: 8px;
        gap: 5px;
    }
    
    .noticias-listing-archivo-widget .ver-noticia-btn::after {
        width: 10px;
        height: 8px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .noticias-listing-archivo-widget {
        padding: 0 8px;
    }
    
    .noticias-listing-archivo-widget .noticia-image {
        height: 160px;
        margin-bottom: 12px;
    }
    
    .noticias-listing-archivo-widget .skeleton-noticia-image {
        height: 160px;
        margin-bottom: 12px;
    }
    
    .noticias-listing-archivo-widget .noticia-title {
        font-size: 16px;
    }
    
    .noticias-listing-archivo-widget .noticia-link {
        gap: 0;
    }
    
    .noticias-listing-archivo-widget .noticia-date {
        font-size: 9px;
        /* Truncate very long dates on tiny screens */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .noticias-listing-archivo-widget .noticia-excerpt {
        -webkit-line-clamp: 2;
        font-size: 11px;
    }
}