/**
 * Breaking News Cards Component - Horizontal Scroll
 */

.breaking-cards-section {
    background-color: var(--color-bg);
}

.breaking-cards-section .section-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #FF5722;
    display: inline-block;
}

.breaking-cards-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.breaking-cards-scroll::-webkit-scrollbar {
    height: 8px;
}

.breaking-cards-scroll::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 4px;
}

.breaking-cards-scroll::-webkit-scrollbar-thumb {
    background: #FF5722;
    border-radius: 4px;
}

.breaking-cards-scroll::-webkit-scrollbar-thumb:hover {
    background: #e04400;
}

.breaking-card {
    flex: 0 0 280px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.breaking-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.breaking-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f0f0f0;
}

.breaking-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.breaking-card:hover .breaking-card-image img {
    transform: scale(1.1);
}

.breaking-card-content {
    padding: 15px;
}

.breaking-card-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.breaking-card-time {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* Loading Skeleton */
.cards-skeleton {
    height: 300px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .breaking-card {
        flex: 0 0 240px;
    }

    .breaking-card-image {
        height: 150px;
    }
}