/* Lazy Loading Styles */
.lazy-section {
    min-height: 200px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.lazy-section.loaded {
    opacity: 1;
}

.loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.loading-placeholder.hidden {
    display: none;
}

/* Lazy loaded content animations */
.fade-in-on-load {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.fade-in-on-load.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Owl Carousel override for lazy loaded content */
.lazy-section .owl-carousel {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-section.loaded .owl-carousel {
    opacity: 1;
}

/* Tab carousel spesifik düzeltme */
.lazy-section .tab-content-slider.owl-carousel {
    opacity: 0;
    visibility: hidden;
    height: auto;
    min-height: 200px;
}

.lazy-section.loaded .tab-content-slider.owl-carousel {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Tab carousel yüklenirken placeholder */
.lazy-section:not(.loaded) .tab-content-slider {
    display: none;
}

/* Tab content item override - main CSS'i ezme */
.lazy-section.loaded .tab-contents .tab-content-item {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
}

/* Tab carousel items görünürlük düzeltmesi */
.lazy-section.loaded .tab-content-slider .owl-item {
    opacity: 1;
    visibility: visible;
}

/* Tab carousel navigation düzeltmesi */
.lazy-section.loaded .tab-content-slider .owl-nav {
    opacity: 1;
    visibility: visible;
}

/* WOW.js animations için fallback */
.lazy-section .wow {
    visibility: hidden;
}

.lazy-section .wow.animated {
    visibility: visible;
}

/* Hero-sub video koruması */
.hero-sub video {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.hero-sub .owl-item video {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Hero-sub clone'ları için özel kural */
.hero-sub .owl-item.cloned video {
    opacity: 0.8 !important;
    visibility: visible !important;
}



