/* FB News Sync - Slider Mode */
.fns-news-slider {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 10px 4px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.fns-news-slider::-webkit-scrollbar {
    height: 4px;
}

.fns-news-slider::-webkit-scrollbar-track {
    background: transparent;
}

.fns-news-slider::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.fns-news-slider .fns-news-item {
    flex: 0 0 200px;
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .fns-news-slider .fns-news-item {
        flex: 0 0 160px;
    }
}

@media (max-width: 480px) {
    .fns-news-slider .fns-news-item {
        flex: 0 0 140px;
    }
}

/* FB News Sync - Grid Styles */
.fns-news-grid {
    display: grid;
    grid-template-columns: repeat(var(--fns-cols, 5), 1fr);
    gap: 16px;
    padding: 10px 0;
}

.fns-news-item {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fns-news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
}

.fns-news-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.fns-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f0f0f0;
}

.fns-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.fns-news-item:hover .fns-thumb img {
    transform: scale(1.05);
}

.fns-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 13px;
}

.fns-caption {
    padding: 10px 12px 12px;
}

.fns-date {
    font-size: 11px;
    color: #999;
    display: block;
    margin-bottom: 4px;
}

.fns-caption p {
    font-size: 13px;
    color: #444;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* View All Button */
.fns-widget-wrap { position: relative; }

.fns-btn-wrap { text-align: center; margin-top: 20px; }

.fns-btn-view-all {
    display: inline-block;
    padding: 10px 28px;
    background: #c0392b;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}
.fns-btn-view-all:hover { background: #a93226; transform: translateY(-2px); }

.fns-btn-floating {
    display: inline-block;
    position: relative;
    margin-top: 16px;
    float: right;
    padding: 8px 20px;
    background: #c0392b;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(192,57,43,0.35);
    transition: background 0.2s, transform 0.2s;
}
.fns-btn-floating:hover { background: #a93226; transform: translateY(-2px); color: #fff !important; }

/* Full news page */
.fns-all-news-wrap { padding: 10px 0; }
.fns-all-count { font-size: 13px; color: #999; margin-bottom: 20px; }
.fns-all-grid .fns-caption p { -webkit-line-clamp: 4; }

/* Responsive */
@media (max-width: 1024px) {
    .fns-news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .fns-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 400px) {
    .fns-news-grid {
        grid-template-columns: 1fr;
    }
}
