.modern-slider-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.modern-slider-container {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modern-slider-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active .slide-bg {
    transform: scale(1.05);
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    padding: 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 700px;
}

.slide.active .slide-content > * {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.slide.active .slide-category { animation-delay: 0.2s; }
.slide.active .slide-title { animation-delay: 0.3s; }
.slide.active .slide-excerpt { animation-delay: 0.4s; }
.slide.active .slide-button { animation-delay: 0.5s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-category {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.2);
    transform: translateY(30px);
}

.slide-title {
    font-size: 56px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transform: translateY(30px);
}

.slide-title a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.slide-title a:hover {
    opacity: 0.85;
}

.slide-excerpt {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    margin-bottom: 30px;
    transform: translateY(30px);
}

.slide-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    width: fit-content;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transform: translateY(30px);
}

.slide-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

/* ============================================
   THUMBNAIL NAVIGATION
   ============================================ */

.thumbnail-navigation {
    position: absolute;
    bottom: 30px;
    left: 60px;
    right: 60px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 16px;
}

.thumb-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.thumb-arrow:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.thumb-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.thumb-arrow:disabled:hover {
    transform: none;
}

.thumbnail-nav-container {
    flex: 1;
    display: flex;
    gap: 12px;
    overflow: hidden;
    position: relative;
}

.thumbnail-item {
    position: relative;
    flex: 0 0 calc((100% - 36px) / 3); /* 4 visible thumbnails by default */
    height: 80px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumbnail-item:hover {
    transform: translateY(-4px);
}

.thumbnail-item.active {
    border: 1px solid #fff;
   
}

.thumb-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover .thumb-image {
    transform: scale(1.1);
}

.thumb-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.thumb-number {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.thumb-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   TEXT NAVIGATION (ORIGINAL STYLE)
   ============================================ */

.text-navigation {
    position: absolute;
    bottom: 40px;
    left: 60px;
    right: 60px;
    z-index: 10;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-item {
    flex: 1;
    min-width: 140px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    color: #fff;
}

.nav-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.nav-item.active {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
}

.nav-number {
    display: block;
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 4px;
    font-weight: 600;
}

.nav-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   DOTS NAVIGATION
   ============================================ */

.dots-navigation {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
}

.dot-item {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot-item:hover {
    background: rgba(255,255,255,0.6);
    transform: scale(1.2);
}

.dot-item.active {
    background: #fff;
    width: 32px;
    border-radius: 6px;
}

/* Mobile Title (hidden by default) */
.mobile-slide-title {
    display: none;
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 10;
    padding: 16px 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1200px) {
    /* Adjust for 3 visible thumbnails on medium screens */
    .thumbnail-item {
        flex: 0 0 calc((100% - 24px) / 3);
    }
}

@media (max-width: 1024px) {
    .modern-slider-container {
        height: 500px;
    }
    
    .slide-title {
        font-size: 42px;
    }
    
    .slide-content {
        padding: 40px;
    }
    
    .thumbnail-navigation {
        left: 40px;
        right: 40px;
        bottom: 30px;
    }
    
    .text-navigation {
        left: 40px;
        right: 40px;
        bottom: 30px;
    }
}

@media (max-width: 768px) {
    .modern-slider-container {
        height: 500px;
        border-radius: 16px;
    }
    
    .slide-title {
        font-size: 32px;
    }
    
    .slide-excerpt {
        font-size: 16px;
    }
    
    .slide-content {
        padding: 30px;
    }
    
    /* THUMBNAIL NAVIGATION - MOBILE */
    .thumbnail-navigation {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
    
    .thumbnail-item {
        flex: 0 0 calc((100% - 12px) / 2); /* 2 visible on mobile */
        height: 70px;
    }
    
    .thumb-arrow {
        width: 40px;
        height: 40px;
    }
    
    /* TEXT NAVIGATION - MOBILE SCROLL */
    .modern-slider-wrapper[data-mobile-nav="scroll"] .text-navigation {
        left: 30px;
        right: 30px;
        bottom: 90px;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.3) transparent;
        padding-bottom: 10px;
        gap: 10px;
    }
    
    .modern-slider-wrapper[data-mobile-nav="scroll"] .text-navigation::-webkit-scrollbar {
        height: 4px;
    }
    
    .modern-slider-wrapper[data-mobile-nav="scroll"] .text-navigation::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .modern-slider-wrapper[data-mobile-nav="scroll"] .text-navigation::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.3);
        border-radius: 10px;
    }
    
    .modern-slider-wrapper[data-mobile-nav="scroll"] .nav-item {
        flex: 0 0 auto;
        min-width: 200px;
    }
    
    /* TEXT NAVIGATION - TITLE MODE */
    .modern-slider-wrapper[data-mobile-nav="title"] .text-navigation {
        display: none;
    }
    
    .modern-slider-wrapper[data-mobile-nav="title"] .mobile-slide-title {
        display: block;
    }
    
    /* TEXT NAVIGATION - HIDE MODE */
    .modern-slider-wrapper[data-mobile-nav="hide"] .text-navigation {
        display: none;
    }
    
    /* DOTS NAVIGATION - MOBILE */
    .dots-navigation {
        bottom: 20px;
        padding: 10px 16px;
    }
    
    .dot-item {
        width: 10px;
        height: 10px;
    }
    
    .dot-item.active {
        width: 28px;
    }
}

@media (max-width: 480px) {
    .modern-slider-wrapper {
        padding: 0 10px;
    }
    
    .modern-slider-container {
        height: 500px;
    }
    
    .slide-title {
        font-size: 28px;
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .slide-button {
        padding: 14px 30px;
        font-size: 14px;
    }
    
    .thumbnail-navigation {
        gap: 8px;
    }
    
    .thumbnail-item {
        height: 60px;
    }
    
    .thumb-title {
        font-size: 11px;
    }
    
    .modern-slider-wrapper[data-mobile-nav="scroll"] .nav-item {
        min-width: 180px;
        padding: 12px 16px;
    }
    
    .nav-title {
        font-size: 13px;
    }
}

/* Hide thumbnail navigation when using text/dots style */
.modern-slider-wrapper[data-thumbnail-style="text"] .thumbnail-navigation {
    display: none;
}

.modern-slider-wrapper[data-thumbnail-style="dots"] .thumbnail-navigation {
    display: none;
}

.modern-slider-wrapper[data-thumbnail-style="dots"] .text-navigation {
    display: none;
}

.modern-slider-wrapper[data-thumbnail-style="thumbnails"] .text-navigation {
    display: none;
}

.modern-slider-wrapper[data-thumbnail-style="thumbnails"] .dots-navigation {
    display: none;
}

span.slide-category {
	display:none!important
}