/* Latest News Shortcode Styles */
.latest-news-container {
    margin: 0px;
}

.latest-news-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.latest-news-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0073e6;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 20px;
    border: 2px solid #0073e6;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background: #0073e6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 115, 230, 0.3);
}

.view-all-link svg {
    transition: transform 0.3s;
}

.view-all-link:hover svg {
    transform: translateX(4px);
}

/* Grid Layout */
.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.latest-news-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.latest-news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-item-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.latest-news-item:hover .news-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.latest-news-item:hover .image-overlay {
    opacity: 1;
}

.news-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    border-radius: 12px;
    padding: 10px 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-date-badge time {
    display: block;
    font-weight: 700;
    font-size: 20px;
    color: #1a1a1a;
    line-height: 1;
}

.news-date-badge span {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.news-category-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #0073e6, #0056b3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.3s;
}

.news-category-badge:hover {
    transform: scale(1.05);
}

.news-item-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.news-item-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    flex-grow: 1;
}

.news-item-title a {
    color: #1a1a1a;
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) bottom / 0 1px no-repeat;
    transition: background-size 0.3s, color 0.3s;
    padding-bottom: 2px;
}

.news-item-title a:hover {
    color: #0073e6;
    background-size: 100% 1px;
}

.news-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.news-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0073e6;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
}

.read-more-btn:hover {
    gap: 12px;
}

.read-more-btn svg {
    width: 14px;
    height: 14px;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #888;
}

.news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-meta svg {
    width: 14px;
    height: 14px;
}

.latest-news-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.all-news-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0073e6, #0056b3);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 115, 230, 0.3);
}

.all-news-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 115, 230, 0.4);
    color: white;
}

.all-news-btn svg {
    transition: transform 0.3s;
}

.all-news-btn:hover svg {
    transform: translateX(5px);
}

/* List Layout */
.latest-news-list .latest-news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.latest-news-list .latest-news-item {
    flex-direction: row;
    align-items: center;
}

.latest-news-list .news-item-image {
    flex: 0 0 300px;
    height: 200px;
    border-radius: 12px 0 0 12px;
}

.latest-news-list .news-item-content {
    flex: 1;
}

/* Carousel Layout */
.latest-news-carousel {
    position: relative;
}

.latest-news-carousel .latest-news-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 20px;
}

.latest-news-carousel .latest-news-grid::-webkit-scrollbar {
    display: none;
}

.latest-news-carousel .latest-news-item {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    margin-right: 20px;
}

/* Responsive */
@media (max-width: 1200px) {
    .latest-news-carousel .latest-news-item {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 992px) {
    .latest-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .latest-news-list .latest-news-item {
        flex-direction: column;
    }
    
    .latest-news-list .news-item-image {
        flex: none;
        width: 100%;
        border-radius: 12px 12px 0 0;
    }
}

@media (max-width: 768px) {
    .latest-news-title {
        font-size: 28px;
    }
    
    .latest-news-grid {
        grid-template-columns: 1fr;
    }
    
    .latest-news-carousel .latest-news-item {
        flex: 0 0 calc(100% - 20px);
    }
    
    .news-item-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .latest-news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .view-all-link {
        align-self: flex-start;
    }
    
    .news-item-title {
        font-size: 18px;
    }
    
    .news-item-content {
        padding: 20px;
    }
}

/* No Results */
.no-news {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 16px;
    color: #666;
    font-size: 18px;
}