/**
 * Nett Post Carousel Widget Styles
 */

.nett-postcarousel-container {
    width: 100%;
    max-width: 1152px;
    padding: 15px;
    box-sizing: border-box;
}

.nett-postcarousel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    padding: 0 8px;
    flex-wrap: wrap;
    gap: 16px;
}

.nett-postcarousel-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    border-left: 4px solid #4f46e5;
    border-left-style: solid;
    padding-left: 12px;
    margin: 0;
}

.nett-postcarousel-nav {
    display: flex;
    gap: 8px;
}

.nett-postcarousel-nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #374151;
}

.nett-postcarousel-nav-btn:hover {
    background-color: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
}

.nett-postcarousel-nav-btn i {
    font-size: 12px;
}

/* Carousel Slider */
.nett-postcarousel-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 16px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.nett-postcarousel-slider::-webkit-scrollbar {
    display: none;
}

/* Post Card */
.nett-postcard {
    min-width: 350px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    scroll-snap-align: start;
    transition: box-shadow 0.3s ease;
    flex-shrink: 0;
}

.nett-postcard:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.nett-postcard-image-wrap {
    position: relative;
    height: 192px;
    overflow: hidden;
}

.nett-postcard-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nett-postcard:hover .nett-postcard-image {
    transform: scale(1.1);
}

.nett-postcard-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    color: #1f2937;
}

.nett-postcard-content {
    padding: 24px;
}

.nett-postcard-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
    gap: 8px;
}

.nett-postcard-meta i {
    color: #9ca3af;
}

.nett-postcard-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1.4;
    margin-top: 0;
}

.nett-postcard-content a {
    text-decoration: none;
}

.nett-postcard-title:hover {
    color: #4f46e5;
}

.nett-postcard-excerpt {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nett-postcarousel-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nett-postcard {
        min-width: 300px;
    }
}

@media (max-width: 480px) {
    .nett-postcarousel-container {
        padding: 10px;
    }
    
    .nett-postcarousel-title {
        font-size: 20px;
    }
    
    .nett-postcarousel-slider {
        gap: 16px;
    }
    
    .nett-postcard {
        min-width: calc(100vw - 40px);
        max-width: 300px;
    }
    
    .nett-postcard-image-wrap {
        height: 160px;
    }
    
    .nett-postcard-content {
        padding: 16px;
    }
    
    .nett-postcard-title {
        font-size: 16px;
    }
}
