/* NurseVita Health Slider Styles */
.nvhs-container {
    margin: 0 auto;
    padding: 20px 0px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.nvhs-header {
    text-align: center;
    margin-bottom: 50px;
}

.nvhs-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.nvhs-subtitle {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Slider Wrapper */
.nvhs-slider-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

/* Slider Container */
.nvhs-slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 400px;
    gap: 20px;
    padding: 0 0px;
}

/* Individual Slides */
.nvhs-slide {
    min-width: calc(25% - 15px);
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    overflow: hidden;
}

.nvhs-slide.active {
    transform: none;
    background-size: cover;
}

.nvhs-slide:not(.active) {
    background-size: 108%;
}

.nvhs-slide:hover {
    background-size: 110%;
    transform: translateY(-3px);
}

.nvhs-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.7) 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nvhs-slide:hover .nvhs-slide-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
}

/* Slide Content */
.nvhs-slide-content {
    position: absolute;
    z-index: 2;
    text-align: left;
    padding: 25px 15px;
    color: white;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.nvhs-slide-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #7768E5;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(119, 104, 229, 0.4);
}

.nvhs-slide-icon i {
    font-size: 1.5rem;
    color: white;
    text-shadow: none;
}

.nvhs-slide-title {
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    margin-top: 0;
    position: absolute;
    top: 15px;
    color: #fff;
    width: 100%;
    font-size: 20px;
        left: 0;
    padding: 0px 15px;
}

.nvhs-slide-description {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: 20px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
    padding-right: 20px;
}

.nvhs-slide-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    bottom: 0px;
    right: 0px;
}

.nvhs-slide-link i {
    font-size: 1.3rem;
}

/* Navigation Arrows */
.nvhs-nav-arrows {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    transform: translateY(-50%);
    display: none !important;
}

.nvhs-prev-btn,
.nvhs-next-btn {
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    backdrop-filter: blur(5px);
    z-index: 20;
    position: relative;
}

.nvhs-prev-btn:hover,
.nvhs-next-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nvhs-prev-btn:active,
.nvhs-next-btn:active {
    transform: scale(0.95);
}

/* Ensure arrows are always visible and clickable */
.nvhs-prev-btn svg,
.nvhs-next-btn svg {
    pointer-events: none;
    width: 24px;
    height: 24px;
}

/* Dots Navigation */
.nvhs-dots-navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    display: none !important;
}

.nvhs-dot {
    width: 12px;
    height: 12px;
    border-radius: 8px;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0 !important;
}

.nvhs-dot:hover {
    background: #9ca3af;
}

.nvhs-dot.active {
    background: #636365;
}

.nvhs-dot.active::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid rgba(119, 104, 229, 0.3);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nvhs-slider {
        height: 350px;
    }
    
    .nvhs-slide-content {
        max-width: 240px;
        padding: 25px 15px;
    }
    
    .nvhs-slide-title {
        font-size: 1.1rem;
    }
    
    .nvhs-slide-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .nvhs-container {
        padding: 20px 15px;
    }
    
    .nvhs-main-title {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .nvhs-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    /* Mobile: Display as clean card list */
    .nvhs-slider-wrapper {
        height: auto;
        overflow: visible;
        border-radius: 0;
        padding: 0;
    }
    
    .nvhs-slider {
        display: flex;
        flex-direction: column;
        gap: 15px;
        height: auto;
        transform: none !important;
        transition: none;
        padding: 0;
    }
    
    .nvhs-slide {
        width: 100%;
        min-width: 100%;
        height: 180px;
        margin-bottom: 0;
        display: block;
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        background: #fff;
        background-size: cover;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
    }
    
    .nvhs-slide:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
        background-size: 105%;
    }
    
    .nvhs-slide-overlay {
        display: block;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }
    
    .nvhs-slide-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 20px;
        color: white;
        background: none;
        box-shadow: none;
        border-radius: 0;
        z-index: 2;
    }
    
    .nvhs-slide-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
        padding: 0;
        color: #fff;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
        font-weight: 600;
        width: calc(100% - 60px);
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .nvhs-slide-description {
        font-size: 0.8rem;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 0;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
        opacity: 0.95;
        padding-right: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .nvhs-slide-icon {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 12px;
        box-shadow: none;
        z-index: 3;
    }
    
    .nvhs-slide-icon i {
        font-size: 1.1rem;
        color: white;
    }
    
    .nvhs-slide-link {
        position: absolute;
        bottom: 15px;
        right: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 6px 8px;
        border-radius: 8px;
        font-size: 0.75rem;
        font-weight: 500;
        width: 32px;
        height: 32px;
        color: white;
        text-decoration: none;
        transition: all 0.3s ease;
        z-index: 3;
        cursor: pointer;
    }
    
    .nvhs-slide-link.nvhs-quick-view {
        pointer-events: auto;
    }
    
    .nvhs-slide-link:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }
    
    .nvhs-slide-link i {
        font-size: 0.9rem;
    }
    
    .nvhs-slide-link:before {
        content: "\f055";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        font-size: 0.9rem;
    }
    
    /* Hide navigation on mobile */
    .nvhs-nav-arrows {
        display: none;
    }
    
    .nvhs-dots-navigation {
        display: none;
    }
}
.overlay-link{
        position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}
.nvhs-quick-view{
    z-index: 11;
}
.nvhs-quick-view-image-wrapper{
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    margin-top: 25px;
}
.nvhs-quick-view-image{
    width: 300px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}
@media (max-width: 480px) {
    .nvhs-main-title {
        font-size: 1.75rem;
    }
    
    .nvhs-container {
        padding: 20px 10px;
    }
    .nvhs-slide {
        height: 300px;
    }
    .nvhs-slide-content {
        padding: 15px;
    }
    .nvhs-slide-content .nvhs-slide-link{
        display: block;
    }
    .nvhs-slide-content .nvhs-slide-link br{
        display: none;
    }
    .nvhs-slide-content .nvhs-slide-link:before{
        display: none;
    }
    .nvhs-slide-title {
        font-size: 0.95rem;
    }
    
    .nvhs-slide-description {
        font-size: 0.8rem;
    }
}

/* Smooth Zoom Transitions */
.nvhs-slide {
    will-change: background-size;
}

.nvhs-slide.transitioning {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-size 1.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* No Posts Found State */
.nvhs-no-posts {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    max-width: 600px;
    margin: 40px auto;
}

.nvhs-no-posts p {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Loading State */
.nvhs-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    color: #666;
}

.nvhs-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #7768E5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Hover Effects */
.nvhs-slide {
    cursor: pointer;
}

.nvhs-slide-content {
    transition: transform 0.3s ease;
}

.nvhs-slide:hover .nvhs-slide-content {
    transform: translateY(-5px);
}

/* Focus States for Accessibility */
.nvhs-dot:focus,
.nvhs-prev-btn:focus,
.nvhs-next-btn:focus,
.nvhs-slide-link:focus {
    outline: 2px solid #7768E5;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .nvhs-slide-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .nvhs-slide-title,
    .nvhs-slide-description {
        text-shadow: none;
    }
}

/* Quick View Modal */
.nvhs-quick-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.nvhs-quick-view-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: nvhsFadeIn 0.3s ease;
}

.nvhs-quick-view-content {
    background: white;
    border-radius: 15px;
    max-width: 675px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: nvhsSlideUp 0.3s ease;
}

.nvhs-quick-view-header {
    position: relative;
    height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

.nvhs-quick-view-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%); */
}

.nvhs-quick-view-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #7768E5;
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.nvhs-quick-view-close:hover {
    background:#6554d1;
    transform: scale(1.1);
}

.nvhs-quick-view-body {
    padding: 25px;
}

.nvhs-quick-view-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.3;
    margin-top: 0;
    width: 80%;
}

.nvhs-quick-view-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #666;
}

.nvhs-quick-view-date,
.nvhs-quick-view-category {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nvhs-quick-view-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 25px;
}

.nvhs-quick-view-footer {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nvhs-quick-view-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nvhs-quick-view-btn.primary {
    background: #7768E5;
    color: white;
}

.nvhs-quick-view-btn.primary:hover {
    background: #6554d1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(119, 104, 229, 0.4);
}

.nvhs-quick-view-btn.secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
}

.nvhs-quick-view-btn.secondary:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

/* Quick View Animations */
@keyframes nvhsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes nvhsSlideUp {
    from { 
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Quick View Adjustments */
@media (max-width: 768px) {
    .nvhs-quick-view-modal {
        padding: 10px;
    }
    
    .nvhs-quick-view-content {
        max-height: 90vh;
    }
    
    .nvhs-quick-view-header {
        height: 150px;
    }
    
    .nvhs-quick-view-body {
        padding: 20px;
    }
    
    .nvhs-quick-view-title {
        font-size: 1.2rem;
    }
    
    .nvhs-quick-view-footer {
        flex-direction: column;
    }
    
    .nvhs-quick-view-btn {
        width: 100%;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .nvhs-slider,
    .nvhs-slide,
    .nvhs-slide-content,
    .nvhs-dot,
    .nvhs-prev-btn,
    .nvhs-next-btn,
    .nvhs-slide-link {
        transition: none;
        animation: none;
    }
    
    .nvhs-dot.active::after {
        animation: none;
    }
    
    .nvhs-quick-view-modal.active {
        animation: none;
    }
    
    .nvhs-quick-view-content {
        animation: none;
    }
}