.custom-slider {
    position: relative;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.slider-container {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.slide-item.active {
    opacity: 1;
}

.slider-nav {
    position: relative;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.nav-dot {
    width: 20px;
    height: 10px;
    border-radius: 8px;
    background: #EBEBEB;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #940005;
}

.nav-dot:hover {
    background: #EBEBEB;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 18px;
    color: white;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0);
}

.slider-arrow.prev {
    left: 10px;
}

.slider-arrow.next {
    right: 10px;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-in-out;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    animation: zoomIn 0.3s ease-in-out;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #f1f1f1;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #bbb;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    padding: 16px 12px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.modal-nav:hover {
    background: none;
}

.modal-nav.prev {
    left: 20px;
}

.modal-nav.next {
    right: 20px;
}

.modal-title {
    display: none;
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 16px;
    font-weight: 500;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 576px) {
    .slider-container {
        height: 200px;
    }
    .main-video-container .play-button {
        width: 40px;
        height: 40px;
    }
    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .modal-nav {
        width: 40px;
        height: 40px;
        padding: 12px 8px;
    }
    
    .modal-nav img {
        width: 16px;
        height: 16px;
    }
    
    .modal-close {
        top: -35px;
        right: 0;
        font-size: 30px;
        width: 35px;
        height: 35px;
    }
}

@media (min-width: 576px) and (max-width: 819px) {
    .slider-container {
        height: 292px;
    }
}

@media (min-width: 820px) and (max-width: 830px) {
    .tinvideo-hv-style-1 .main-video {
        aspect-ratio: 1.3 !important;
    }
    .slider-container {
        height: 292px;
    }
}

@media (min-width: 831px) and (max-width: 992px) {
    .tinvideo-hv-style-1 .main-video {
        aspect-ratio: 1.3 !important;
    }
    .slider-container {
        height: 300px;
    }
}