/* Columnists Carousel Widget Styles */
.columnists-carousel-widget {
    position: relative;
    margin: 20px 0;
}

/* Carousel Container */
.columnists-carousel {
    position: relative;
    overflow: hidden;
}

/* Fallback styles when Slick is not loaded */
.columnists-carousel:not(.slick-initialized) {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.columnists-carousel:not(.slick-initialized)::-webkit-scrollbar {
    height: 6px;
}

.columnists-carousel:not(.slick-initialized)::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.columnists-carousel:not(.slick-initialized)::-webkit-scrollbar-thumb {
    background: #007cba;
    border-radius: 3px;
}

.columnists-carousel:not(.slick-initialized) .columnist-slide {
    flex: 0 0 300px;
    padding: 0;
}

/* Slide Container */
.columnist-slide {
    padding: 0 10px;
    outline: none;
}

/* Card Styles */
.columnist-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.columnist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Avatar Styles */
.columnist-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #007cba;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.columnist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.columnist-card:hover .columnist-avatar {
    transform: scale(1.05);
}

.columnist-card:hover .columnist-avatar img {
    transform: scale(1.1);
}

/* Content Styles */
.columnist-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.columnist-profession {
    font-size: 14px;
    font-weight: 600;
    color: #666666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.columnist-title {
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    font-style: italic;
}

.columnist-title:hover {
    color: #007cba;
    text-decoration: none;
}

/* Slick Carousel Customization */
.columnists-carousel .slick-list {
    margin: 0 -10px;
}

.columnists-carousel .slick-track {
    display: flex;
    align-items: stretch;
}

.columnists-carousel .slick-slide {
    height: auto;
}

.columnists-carousel .slick-slide > div {
    height: 100%;
}

/* Navigation Arrows */
.columnists-carousel .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #333333;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.columnists-carousel .slick-arrow:hover {
    background: #ffffff;
    color: #007cba;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.columnists-carousel .slick-arrow:before {
    content: '';
    display: none;
}

.columnists-carousel .slick-prev {
    left: -20px;
}

.columnists-carousel .slick-next {
    right: -20px;
}

.columnists-carousel .slick-prev:after {
    content: '‹';
    font-size: 24px;
    font-weight: bold;
}

.columnists-carousel .slick-next:after {
    content: '›';
    font-size: 24px;
    font-weight: bold;
}

/* Navigation Dots */
.columnists-carousel .slick-dots {
    display: flex !important;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    gap: 8px;
}

.columnists-carousel .slick-dots li {
    margin: 0;
}

.columnists-carousel .slick-dots li button {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: #cccccc;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0;
    padding: 0;
}

.columnists-carousel .slick-dots li button:before {
    display: none;
}

.columnists-carousel .slick-dots li.slick-active button {
    background: #007cba;
    transform: scale(1.2);
}

.columnists-carousel .slick-dots li button:hover {
    background: #007cba;
}

/* Button Styles */
.carousel-button-container {
    text-align: center;
    margin-top: 30px;
}

.view-all-button {
    display: inline-block;
    background: #007cba;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

.view-all-button:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
    color: #ffffff;
    text-decoration: none;
}

/* No Content Message */
.no-columnists-message {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
}

.no-columnists-message p {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.no-columnists-message small {
    font-size: 14px;
    color: #999999;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .columnist-slide {
        padding: 0 8px;
    }
    
    .columnist-card {
        padding: 18px;
    }
    
    .columnist-avatar {
        width: 70px;
        height: 70px;
        margin-bottom: 12px;
    }
    
    .columnist-title {
        font-size: 15px;
    }
    
    .columnists-carousel .slick-prev {
        left: -15px;
    }
    
    .columnists-carousel .slick-next {
        right: -15px;
    }
}

@media (max-width: 768px) {
    .columnist-slide {
        padding: 0 6px;
    }
    
    .columnist-card {
        padding: 16px;
    }
    
    .columnist-avatar {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }
    
    .columnist-profession {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .columnist-title {
        font-size: 14px;
    }
    
    .columnists-carousel .slick-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .columnists-carousel .slick-prev {
        left: -10px;
    }
    
    .columnists-carousel .slick-next {
        right: -10px;
    }
    
    .view-all-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .columnists-carousel-widget {
        margin: 15px 0;
    }
    
    .columnist-card {
        padding: 14px;
    }
    
    .columnist-avatar {
        width: 55px;
        height: 55px;
        border-width: 2px;
    }
    
    .columnist-profession {
        font-size: 11px;
    }
    
    .columnist-title {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .columnists-carousel .slick-arrow {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .columnists-carousel .slick-prev:after,
    .columnists-carousel .slick-next:after {
        font-size: 18px;
    }
    
    .carousel-button-container {
        margin-top: 20px;
    }
    
    .view-all-button {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 20px;
    }
}

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

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

/* Hover effects enhancement */
.columnist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 124, 186, 0.05) 0%, rgba(0, 124, 186, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.columnist-card:hover::before {
    opacity: 1;
}

/* Loading state */
.columnists-carousel.slick-loading {
    opacity: 0.5;
}

.columnists-carousel.slick-initialized {
    opacity: 1;
    transition: opacity 0.3s ease;
}