/* NurseVita Category Showcase Styles */
.nvcs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background: transparent;
}

/* Filter Buttons */
.nvcs-filters {
    text-align: center;
    margin-bottom: 50px;
    padding: 20px 0;
}

.nvcs-filter-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #333;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    margin: 0 8px 8px 0;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: capitalize;
    min-width: 120px;
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
}

.nvcs-filter-btn:hover {
    background: #7768E5;
    border-color: #7768E5;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(119, 104, 229, 0.4);
}

.nvcs-filter-btn.active {
    background: #7768E5;
    color: white;
    border-color: #7768E5;
    box-shadow: 0 8px 25px rgba(119, 104, 229, 0.4);
    transform: translateY(-2px);
}

.nvcs-filter-btn.active:hover {
    background: #6c5ce7;
    border-color: #6c5ce7;
    transform: translateY(-3px);
}

/* Grid Layout */
.nvcs-grid {
    display: grid;
    gap: 25px;
    margin-top: 30px;
}

.nvcs-columns-2 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.nvcs-columns-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.nvcs-columns-4 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.nvcs-columns-6 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Grid Items */
.nvcs-item {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.nvcs-item:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Item Image Container */
.nvcs-item-image {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.nvcs-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.nvcs-item:hover .nvcs-item-image img {
    transform: scale(1.08);
}

/* Item Play Button & Action Icon */
.nvcs-item-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: none !important;
}

.nvcs-item:hover .nvcs-item-icon {
    opacity: 1;
}

.nvcs-item-icon::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid #333;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

/* Plus icon variant */
.nvcs-item-icon.plus-icon::before {
    border: none;
    width: 3px;
    height: 24px;
    background: #333;
    margin: 0;
    position: absolute;
}

.nvcs-item-icon.plus-icon::after {
    content: '';
    width: 24px;
    height: 3px;
    background: #333;
    position: absolute;
}

.nvcs-item-icon i {
    display: none;
}

/* Item Overlay */
.nvcs-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.8) 100%);
    padding: 35px 30px 30px;
    color: white;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 10;
}

.nvcs-item:hover .nvcs-item-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.9) 100%);
}

/* Content without image */
.nvcs-item-content {
    padding: 35px 30px;
    text-align: left;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    flex: 1;
}

.nvcs-item-content .nvcs-item-title {
    color: #2d3748;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.3;
    text-shadow: none;
    display: block;
    opacity: 1;
}

.nvcs-item-content .nvcs-item-subtitle {
    color: #7768E5;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: none;
    display: block;
    opacity: 1;
}

.nvcs-item-content .nvcs-item-excerpt {
    color: #718096;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.6;
    text-shadow: none;
    display: block;
    opacity: 1;
}

/* Typography */
.nvcs-item-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 6px 0;
    line-height: 1.2;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9);
    color: white;
    letter-spacing: -0.5px;
    display: block;
    opacity: 1;
}

.nvcs-item-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0 0 0 0;
    opacity: 0.85;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    color: rgba(255, 255, 255, 0.9);
    text-transform: none;
    letter-spacing: 0.3px;
    display: block;
    opacity: 1;
}

.nvcs-item-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 8px 0 0 0;
    opacity: 1;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.9);
    display: block !important;
    visibility: visible !important;
}

.nvcs-item:hover .nvcs-item-excerpt {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Read More Button */
.nvcs-read-more {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 1;
    transform: translateY(0);
}

.nvcs-item:hover .nvcs-read-more {
    opacity: 1;
    transform: translateY(0);
}

.nvcs-read-more:hover {
    background: #7768E5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(119, 104, 229, 0.4);
    border-color: #7768E5;
}

.nvcs-item-content .nvcs-read-more {
    background: #7768E5;
    color: white;
    border-color: #7768E5;
    opacity: 1;
    transform: translateY(0);
    align-self: flex-start;
    margin-top: auto;
}

.nvcs-item-content .nvcs-read-more:hover {
    background: #6c5ce7;
    border-color: #6c5ce7;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.4);
}

.nvcs-read-more:hover {
    background: #7768E5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(119, 104, 229, 0.4);
}

.nvcs-item-content .nvcs-read-more {
    background: #7768E5;
    color: white;
    align-self: center;
}

.nvcs-item-content .nvcs-read-more:hover {
    background: #6c5ce7;
    transform: translateY(-2px);
}

/* Animation States */
.nvcs-item.nvcs-hidden {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nvcs-item.nvcs-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* No Posts Found */
.nvcs-no-posts {
    text-align: center;
    padding: 80px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    max-width: 600px;
    margin: 60px auto;
    backdrop-filter: blur(10px);
}

.nvcs-no-posts p {
    color: #a0aec0;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nvcs-columns-4 { 
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
        gap: 20px;
    }
    .nvcs-columns-6 { 
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
        gap: 18px;
    }
    
    .nvcs-item-image {
        height: 250px;
    }
    
    .nvcs-container {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .nvcs-container {
        padding: 15px;
    }
    
    .nvcs-grid {
        gap: 20px;
        grid-template-columns: 1fr !important;
    }
    
    .nvcs-columns-2,
    .nvcs-columns-3,
    .nvcs-columns-4,
    .nvcs-columns-6 {
        grid-template-columns: 1fr !important;
    }
    
    .nvcs-item-image {
        height: 280px;
    }
    
    .nvcs-item-overlay {
        padding: 30px 25px 25px;
    }
    
    .nvcs-item-title {
        font-size: 1.4rem;
    }
    
    .nvcs-item-subtitle {
        font-size: 0.85rem;
    }
    
    .nvcs-filter-btn {
        padding: 10px 20px;
        font-size: 13px;
        margin: 0 6px 8px 0;
        min-width: 100px;
    }
    
    .nvcs-filters {
        margin-bottom: 40px;
    }
    
    .nvcs-item-content {
        padding: 30px 25px;
        min-height: 200px;
    }
    
    .nvcs-item {
        border-radius: 20px;
    }
    
    .nvcs-item:hover {
        transform: translateY(-8px) scale(1.02);
    }
}
.overlay-link{
        position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}
.overlay-link br{
    display: none;
}
@media (max-width: 480px) {
    .nvcs-item-image {
        height: 260px;
    }
    
    .nvcs-item-content {
        padding: 25px 20px;
        min-height: 180px;
    }
    
    .nvcs-item-title {
        font-size: 1.3rem;
    }
    
    .nvcs-item-subtitle {
        font-size: 0.8rem;
    }
    
    .nvcs-filter-btn {
        padding: 8px 16px;
        margin: 0 4px 6px 0;
        font-size: 12px;
        min-width: 90px;
    }
    
    .nvcs-filters {
        margin-bottom: 30px;
        padding: 15px 0;
    }
    
    .nvcs-item {
        border-radius: 18px;
    }
    
    .nvcs-item-icon {
        width: 60px;
        height: 60px;
    }
    
    .nvcs-item-icon::before {
        border-left-width: 16px;
        border-top-width: 10px;
        border-bottom-width: 10px;
    }
}

/* Loading Animation */
.nvcs-loading {
    text-align: center;
    padding: 60px;
    color: #a0aec0;
    font-weight: 500;
}

.nvcs-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(119, 104, 229, 0.1);
    border-top: 3px solid #7768E5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.nvcs-item {
    animation: none;
    opacity: 1;
    transform: none;
}

.nvcs-item:nth-child(1) { animation: none; opacity: 1; }
.nvcs-item:nth-child(2) { animation: none; opacity: 1; }
.nvcs-item:nth-child(3) { animation: none; opacity: 1; }
.nvcs-item:nth-child(4) { animation: none; opacity: 1; }
.nvcs-item:nth-child(5) { animation: none; opacity: 1; }
.nvcs-item:nth-child(6) { animation: none; opacity: 1; }

/* Focus States for Accessibility */
.nvcs-filter-btn:focus,
.nvcs-read-more:focus {
    outline: 3px solid #7768E5;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(119, 104, 229, 0.2);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .nvcs-item-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0.95) 100%);
    }
    
    .nvcs-item-title,
    .nvcs-item-subtitle {
        text-shadow: 0 2px 8px rgba(0, 0, 0, 1);
    }
    
    .nvcs-filter-btn {
        border-width: 2px;
    }
}


/* Force all content visible */
.nvcs-item,
.nvcs-item-title,
.nvcs-item-subtitle,
.nvcs-item-excerpt,
.nvcs-read-more {
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    margin-top:0 !important;
    margin-bottom: 0 !important;
}
.plus-icon{
       text-align: right;
    position: absolute;
    bottom: 0;
    right: 20px;
    z-index: 100;
}
/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .nvcs-item-content {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .nvcs-item-content .nvcs-item-title {
        color: #f7fafc;
    }
    
    .nvcs-item-content .nvcs-item-excerpt {
        color: #a0aec0;
    }
    
    .nvcs-no-posts {
        background: rgba(45, 55, 72, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .nvcs-filter-btn {
        background: rgba(45, 55, 72, 0.8);
        color: #e2e8f0;
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Emergency visibility fixes - always at the end */
.nvcs-container * {
    visibility: visible !important;
}

.nvcs-item {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    display: block !important;
    visibility: visible !important;
}

.nvcs-item-title,
.nvcs-item-subtitle,
.nvcs-item-excerpt,
.nvcs-read-more {
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    animation: none !important;
    transform: none !important;
}

.nvcs-read-more {
    display: inline-block !important;
}

.nvcs-grid {
    display: grid !important;
    visibility: visible !important;
}

/* Quick View Modal */
.nvcs-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;
}

.nvcs-quick-view-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: nvcsModalFadeIn 0.3s ease;
}

.nvcs-quick-view-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: nvcsModalSlideUp 0.3s ease;
}

.nvcs-quick-view-header {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

.nvcs-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%);
}

.nvcs-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;
}

.nvcs-quick-view-close:hover {
    background: #6554d1;
    transform: scale(1.1);
}

.nvcs-quick-view-body {
    padding: 25px;
}

.nvcs-quick-view-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.3;
}

.nvcs-quick-view-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #666;
}

.nvcs-quick-view-category {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nvcs-quick-view-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 25px;
}

.nvcs-quick-view-footer {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nvcs-quick-view-btn {
    flex: 1;
    padding: 0px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
        height: 40px;
    line-height: 40px;
}

.nvcs-quick-view-btn.primary {
    background: #7768E5;
    color: white;
}

.nvcs-quick-view-btn.primary:hover {
    background: #6554d1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(119, 104, 229, 0.4);
}

.nvcs-quick-view-btn.secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
}

.nvcs-quick-view-btn.secondary:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

/* Quick View Animations */
@keyframes nvcsModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes nvcsModalSlideUp {
    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) {
    .nvcs-quick-view-modal {
        padding: 10px;
    }
    
    .nvcs-quick-view-content {
        max-height: 90vh;
    }
    
    .nvcs-quick-view-header {
        height: 150px;
    }
    
    .nvcs-quick-view-body {
        padding: 20px;
    }
    
    .nvcs-quick-view-title {
        font-size: 1.2rem;
    }
    
    .nvcs-quick-view-footer {
        flex-direction: column;
    }
    
    .nvcs-quick-view-btn {
        width: 100%;
    }
}
    border: 1px solid rgba(255, 0, 0, 0.2) !important;
   height: 320px;
    background: white !important;
}

.nvcs-item-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%) !important;
}

.nvcs-item-content {
    background: #f9f9f9 !important;
    border: 1px solid #ddd !important;
}