/* News Image Slider Styles */
.news-image-slider {
    position: relative;
}

.news-image-slider .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #0000007A;
    color: #fff;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 0;
}

.news-image-slider .slick-arrow:hover {
    background: #FF585D;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 88, 93, 0.3);
}

.news-image-slider .slick-prev {
    left: 10px;
}

.news-image-slider .slick-next {
    right: 10px;
}

.news-image-slider .slick-arrow:before {
    content: '';
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
}

.news-image-slider .slick-prev:before {
    background-image: url('../img/arrow_prev.svg');
}

.news-image-slider .slick-next:before {
    background-image: url('../img/arrow_next.svg');
}

.news-image-slider .slick-dots {
    bottom: 15px;
    text-align: center;
    width: auto;
    left: 50%;
    transform: translateX(-50%);
}

.news-image-slider .slick-dots li {
    margin: 0 4px;
}

.news-image-slider .slick-dots li button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    font-size: 0;
    transition: all 0.3s ease;
}

.news-image-slider .slick-dots li button::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.news-image-slider .slick-dots li.slick-active button {
    background: white;
    width: 10px;
    height: 10px;
}

.news-image-slider .slider-item {
    outline: none;
    cursor: pointer;
}

.news-image-slider .slider-item img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.news-image-slider .slider-item img:hover {
    transform: scale(1.02);
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    opacity: 1;
}

.image-modal-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px 40px 80px;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.image-modal.show .image-modal-content img {
    opacity: 1 !important;
    transform: scale(1);
}

.slick-dotted.slick-slider {
    margin-bottom: 0 !important;
}

.image-modal-close {
    position: fixed;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.6);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.image-modal-close:hover,
.image-modal-close:focus {
    background: rgba(255, 88, 93, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(255, 88, 93, 0.4);
}

.image-modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.4);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 10001;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.image-modal-nav:hover {
    background: rgba(255, 88, 93, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.image-modal-prev {
    left: 30px;
}

.image-modal-next {
    right: 30px;
}

.image-modal-counter {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    z-index: 10001;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

@media screen and (max-width: 768px) {
    .image-modal-content {
        padding: 80px 20px 60px 20px;
    }
    
    .image-modal-close {
        top: 15px;
        right: 15px;
        font-size: 32px;
        width: 45px;
        height: 45px;
        background: rgba(0, 0, 0, 0.7);
        border: 2px solid rgba(255, 255, 255, 0.4);
    }
    
    .image-modal-nav {
        font-size: 28px;
        width: 50px;
        height: 50px;
    }
    
    .image-modal-prev {
        left: 15px;
    }
    
    .image-modal-next {
        right: 15px;
    }
    
    .image-modal-counter {
        bottom: 20px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Enhanced Video Play Button Styles */
.video-play-overlay {
    z-index: 10;
    opacity: 0.9;
    transition: all 0.3s ease !important;
    bottom: 0 !important;
    left: 5px !important;
    /* transform: translate(-50%, -50%) !important; */
}

.video-play-overlay:hover {
    opacity: 1 !important;
    /* transform: translate(-50%, -50%) scale(1.1) !important; */
    background: rgba(0,0,0,0.7) !important;
}

.slider-item:hover .video-play-overlay {
    opacity: 1 !important;
    /* transform: translate(-50%, -50%) scale(1.05) !important; */
}

/* Video thumbnail hover effect */
.video-thumbnail {
    transition: all 0.3s ease;
}

.slider-item:hover .video-thumbnail {
    filter: brightness(0.8);
}

/* Ensure play button is always visible on mobile */
@media (max-width: 768px) {
    .video-play-overlay {
        opacity: 1 !important;
    }
}

/* Aspect Ratio Support for Slider Items */
.slider-item {
    position: relative;
    overflow: hidden;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ensure aspect ratio is maintained in slick slider */
.news-image-slider .slick-slide {
    position: relative;
    overflow: hidden;
}

.news-image-slider .slick-slide .slider-item {
    width: 100%;
    height: 100%;
}

/* Support for different aspect ratios */
.slider-item[style*="aspect-ratio: 1/1"] {
    aspect-ratio: 1/1;
}

.slider-item[style*="aspect-ratio: 3/4"] {
    aspect-ratio: 3/4;
}

.slider-item[style*="aspect-ratio: 4/3"] {
    aspect-ratio: 4/3;
}
#editSlideModal .btn-sm {
    background: #c2c2c2;
}

.slide-item-container {
    position: relative;
    min-width: 355px;
    min-height: 355px;
    background: #fff;
    align-content: center;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
}

.slide-item-container .slide-item-card {
    max-width: 339px;
    max-height: 339px;
    margin: auto;
}

.slide-item-card img {
    border-radius: 4px;
}

.slick-arrow.slick-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
    visibility: hidden;
}