/* Paulto News Card Widget Styles */

.paulto-news-card-widget-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Featured Post Section */
.featured-news-post {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    background: #F5F5F5;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
}

.featured-news-post:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.featured-post-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.featured-post-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-news-post:hover .featured-post-image img {
    transform: scale(1.05);
}

.featured-post-content {
    padding: 40px 40px 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(to right, #EA9C56 0%, #FF2594 100%);
    color: #ffffff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-badge svg {
    color: #ffd700;
}

.featured-post-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 14px;
}

.featured-post-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-post-description {
    font-size: 16px;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 24px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-post-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #3b82f6;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    transition: background-color 0.3s ease;
    width: fit-content;
}

.featured-post-link:hover {
    background: #2563eb;
}

.featured-post-link svg {
    transition: transform 0.3s ease;
}

.featured-post-link:hover svg {
    transform: translateX(4px);
}

/* Outer wrapper with buttons */
.paulto-news-card-slider-outer-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.paulto-news-card-slider-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 20px 0;
}

.news-card-slider-container {
    width: 100%;
    overflow: hidden;
}

/* Mobile/Tablet: Buttons overlay on cards */
@media screen and (max-width: 1024px) {
    .paulto-news-card-slider-outer-wrapper {
        position: relative;
        display: block;
    }
    
    .paulto-news-card-slider-wrapper {
        width: 100%;
    }
}

.news-card-slider {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease-in-out;
    will-change: inherit;
}

.news-card-slider.dragging {
    transition: none;
    cursor: grabbing;
}

/* News Card */
.news-card {
    flex: 0 0 calc(33.333% - 16px);
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #CFCFCF;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    width: 100%;
    height: 220px;
    padding: 24px 24px 0px 24px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #23282d;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.news-card-date svg {
    color: #76D7C0;
}

.news-card-description {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 20px 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #76D7C0;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: gap 0.2s ease;
}

.news-card-content a:visited {
    color: #76D7C0 !important;
}

.news-card-link:hover {
    gap: 12px;
    color: #61BEA8;
}

.news-card-link svg {
    transition: transform 0.2s ease;
}

.news-card-link:hover svg {
    transform: translateX(4px);
}

/* Navigation Arrows */
.slider-nav {
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-nav:hover {
    transform: scale(1.2);
}

.slider-nav svg {
    color: #76D7C0;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.slider-nav:hover svg {
    color: #61BEA8;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

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

.slider-nav:disabled:hover {
    transform: none;
}

/* Desktop: buttons outside */
@media screen and (min-width: 1025px) {
    .slider-nav {
        position: relative;
    }
}

/* Mobile/Tablet: buttons overlay */
@media screen and (max-width: 1024px) {
    .slider-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 40px;
        height: 40px;
    }
    
    .slider-nav.prev-btn {
        left: 10px;
    }
    
    .slider-nav.next-btn {
        right: 10px;
    }
    
    .slider-nav svg {
        width: 28px;
        height: 28px;
    }
    
    .slider-nav:hover {
        transform: translateY(-50%) scale(1.15);
    }
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background: #999;
    transform: scale(1.2);
}

.slider-dot.active {
    background: #76D7C0;
    width: 32px;
    border-radius: 6px;
}

/* No Cards Message */
.no-news-cards {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .news-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media screen and (max-width: 768px) {
    .paulto-news-card-slider-wrapper {
        padding: 20px 0;
    }
    
    .news-card-slider-container {
        padding: 0 50px;
    }
    
    .news-card {
        flex: 0 0 100%;
    }
    
    .news-card-image {
        height: 200px;
    }
    
    .news-card-title {
        font-size: 18px;
    }
    
    .news-card-description {
        font-size: 14px;
    }
    
    .paulto-news-card-slider-outer-wrapper {
        gap: 12px;
    }
}

@media screen and (max-width: 768px) {
    .featured-news-post {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .featured-post-image {
        min-height: 300px;
    }
    
    .featured-post-content {
        padding: 30px;
    }
    
    .featured-post-title {
        font-size: 24px;
    }
    
    .featured-post-description {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .paulto-news-card-slider-wrapper {
        padding: 20px 0;
    }
    
    .news-card-content {
        padding: 18px;
    }
    
    .paulto-news-card-slider-outer-wrapper {
        gap: 8px;
    }
    
    .slider-nav svg {
        width: 24px;
        height: 24px;
    }
    
    .featured-post-image {
        min-height: 250px;
    }
    
    .featured-post-content {
        padding: 24px;
    }
    
    .featured-post-title {
        font-size: 20px;
    }
    
    .featured-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
