/* --- RESET & GENEL --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* --- WRAPPER (SWIPER CONTAINER) --- */
.rawcut-practices-carousel-wrapper {
    position: relative;
    width: 100%;
    background: #fff;
    overflow: hidden;
}

.rawcut-practices-carousel-wrapper.swiper {
    overflow: visible;
}

/* --- VIEW (SWIPER WRAPPER) --- */
.rawcut-practices-carousel-view {
    display: flex !important;
    align-items: center;
    padding: 80px 0 80px 90px;
    width: 100%;
}

/* --- CAROUSEL TRACK (SWIPER WRAPPER) --- */
.carousel-track,
.rawcut-practices-carousel-view.swiper-wrapper {
    display: flex;
    gap: 0;
    width: max-content;
    padding-left: 0;
    padding-right: 90px;
    will-change: transform;
    margin-left: 90px;
    position: relative;
}

/* --- KART TASARIMI --- */
.carousel-card-item {
    width: 100% !important;
    height: 330px !important;
    position: relative;
    border-radius: 20px !important;
    overflow: hidden;
    flex-shrink: 0;
    /* Başlangıç durumu: görünmez ve aşağıda */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.carousel-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 2;
    pointer-events: none;
    border-radius: 20px !important;
}

.carousel-card-item img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    transition: transform 0.6s ease;
    border-radius: 20px !important;
}

.carousel-card-item a {
    text-decoration: none;
    color: inherit;
}

.carousel-card-item img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.carousel-card-item:hover img {
    transform: scale(1.05);
}

.carousel-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 35px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    z-index: 3;
}

/* --- GÖRÜNÜR OLMA CLASS'I (ANİMASYON) --- */
.rawcut-practices-carousel-view.visible .carousel-card-item {
    opacity: 1;
    transform: translateY(0);
}

/* Loop modunda duplicate slide'lar da görünür olsun */
.rawcut-practices-carousel-view.visible .swiper-slide-duplicate .carousel-card-item {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s !important;
}

.swiper-navigation-icon {
    display: none !important;
}

/* --- NAVIGATION OKLAR (CUSTOM CLASS) --- */
.rawcut-carousel-prev,
.rawcut-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    z-index: 10;
    border: none;
}

.rawcut-carousel-prev {
    left: 20px;
    margin-left: 100px;
}

.rawcut-carousel-next {
    right: 20px;
    margin-right: 100px;
}

.rawcut-carousel-prev:hover,
.rawcut-carousel-next:hover {
    background-color: rgba(177, 22, 86, 1);
}

.rawcut-carousel-prev::after,
.rawcut-carousel-next::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
}

.rawcut-carousel-prev::after {
    transform: rotate(135deg);
    margin-left: 3px;
}

.rawcut-carousel-next::after {
    transform: rotate(-45deg);
    margin-right: 3px;
}

.rawcut-carousel-prev.swiper-button-disabled,
.rawcut-carousel-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
}

/* Responsive: Mobilde Swiper varsayılan davranışı */
@media (max-width: 690px) {
    .rawcut-practices-carousel-wrapper { 
        height: auto !important; 
    }
    
    .rawcut-practices-carousel-view { 
        position: relative; 
        height: auto; 
        padding: 40px 20px; 
    }
    
    .carousel-track,
    .rawcut-practices-carousel-view.swiper-wrapper { 
        flex-direction: row; 
        width: 100%; 
    }
    
    .carousel-card-item { 
        width: 100%; 
        height: 163px !important; 
        margin-bottom: 20px; 
        opacity: 1; 
        transform: none; 
    }
    
    .carousel-section-header { 
        flex-direction: column; 
    }
    
    .carousel-section-title h2 {
        font-size: 2.5rem;
    }
    .carousel-track, .rawcut-practices-carousel-view.swiper-wrapper {
        margin-left: 25px;
    }
    .rawcut-carousel-prev,
    .rawcut-carousel-next {
        display: none !important;
    }
    .carousel-card-content {
        font-size: 16px;
    }
}