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

.carousel-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.section-header {
    background: linear-gradient(45deg, #c41e3a, #e74c3c);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

.carousel-wrapper {
    position: relative;
    padding: 30px 0;
    background: #f8f9fa;
}

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

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 20px;
}

.opinion-card {
    flex: 0 0 calc(25% - 15px);
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    cursor: pointer;
}

.opinion-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
}

.opinion-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #c41e3a;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.4);
}

.card-content {
    padding: 20px;
}

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

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

.opinion-excerpt {
    font-size: 0.9rem;
    color: #5a6c7d;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.author-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3498db, #2980b9);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.author-details h4 {
    color: #2c3e50;
    font-size: 0.85rem;
    margin-bottom: 2px;
    font-weight: 600;
}

.author-details span {
    color: #7f8c8d;
    font-size: 0.75rem;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #c41e3a;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.carousel-nav:hover {
    background: #c41e3a;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

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

.carousel-nav:disabled:hover {
    background: rgba(255,255,255,0.95);
    color: #c41e3a;
    transform: translateY(-50%) scale(1);
}

.nav-prev {
    left: 20px;
}

.nav-next {
    right: 20px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 25px;
    background: white;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #bdc3c7;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #c41e3a;
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(196, 30, 58, 0.5);
}

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

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

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

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

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

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

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

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

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

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

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

    .author-details h4 {
        font-size: 0.8rem;
    }

    .author-details span {
        font-size: 0.7rem;
    }

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

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

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

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

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