/* Newspaper Opinion Carousel Lite Widget Styles */
.opinion-carousel-lite-widget {
    position: relative;
    margin: 20px 0;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.section-header {
    background: #2c3e50;
    color: white;
    padding: 25px 30px;
    border-bottom: 3px solid #e74c3c;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.section-subtitle {
    font-size: 0.9rem;
    margin-top: 5px;
    opacity: 0.8;
    font-weight: 300;
}

.carousel-wrapper {
    position: relative;
    padding: 20px 0;
}

.carousel-viewport {
    overflow: hidden;
    margin: 0 60px;
}

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

.opinion-card {
    flex: 0 0 calc(25% - 12px);
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
}

.opinion-card:hover {
    border-color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-image {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.opinion-category {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
}

.card-content {
    padding: 15px;
}

.opinion-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.opinion-title:hover {
    color: #e74c3c;
}

.opinion-excerpt {
    font-size: 0.8rem;
    color: #657786;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.75rem;
    color: #8899a6;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #34495e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #666;
    transition: all 0.2s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-nav:disabled:hover {
    background: white;
    color: #666;
    border-color: #ddd;
}

.nav-prev {
    left: 15px;
}

.nav-next {
    right: 15px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 15px;
    background: #fafafa;
}

.indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.indicator.active {
    background: #e74c3c;
    transform: scale(1.3);
}

/* Responsive Design */
@media (max-width: 1000px) {
    .opinion-card {
        flex: 0 0 calc(33.333% - 10px);
    }
}

@media (max-width: 768px) {
    .carousel-viewport {
        margin: 0 50px;
    }

    .opinion-card {
        flex: 0 0 calc(50% - 8px);
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .carousel-viewport {
        margin: 0 45px;
    }

    .opinion-card {
        flex: 0 0 calc(100% - 8px);
    }

    .section-header {
        padding: 20px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    .opinion-title {
        font-size: 0.9rem;
    }

    .opinion-excerpt {
        font-size: 0.75rem;
    }

    .author-info {
        font-size: 0.7rem;
    }

    .author-avatar {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Animation for smooth loading */
.opinion-carousel-lite-widget {
    opacity: 0;
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.opinion-carousel-lite-widget.loading {
    opacity: 0.5;
}

.opinion-carousel-lite-widget.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}