/* === Ürünlerimiz Modern Slider === */
:root {
    --slider-brand-primary: #D4A03D;
    --slider-brand-secondary: #B7913A;
    --slider-text-dark: #343a40;
    --slider-text-light: #6c757d;
    --slider-bg-light: #f8f9fa;
    --slider-card-bg: #ffffff;
    --slider-arrow-size: 45px;
    --slider-arrow-bg: white;
    --slider-arrow-color: var(--slider-text-dark);
}

.installations-slider-section {
    padding: 80px 0;
    background-color: var(--slider-bg-light);
    position: relative;
}

.installations-slider-section .container {
    max-width: 100%;
    padding: 0;
}

.installations-slider-section h2 {
    color: var(--slider-text-dark);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.installations-slider-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--slider-brand-primary), var(--slider-brand-secondary));
    border-radius: 2px;
}

/* === SLIDER WRAPPER (for arrows) === */
.installations-slider-wrapper {
    position: relative;
    margin: 0 auto;
    max-width: 1600px; /* Allow slider to be wider */
}

/* === SLIDER CONTAINER (The scrollable part) === */
.installations-slider-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar on Firefox */
    padding: 20px 0; /* Padding for shadow visibility */
    margin: -20px 0;
}

.installations-slider-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar on WebKit browsers */
}

/* === SLIDER SLIDE === */
.installation-slide {
    flex: 0 0 auto; /* Prevent shrinking/growing */
    width: 90%; /* On mobile, one slide takes most of the screen */
    max-width: 320px; /* Max width for a card */
    scroll-snap-align: start; /* Snap slides to the start */
    margin: 0 15px;
    position: relative;
}



/* === INSTALLATION CARD === */
.installation-card {
    border: 1px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--slider-card-bg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.installation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* === CARD IMAGE WRAPPER === */
.card-img-wrapper {
    width: 100%;
    height: 200px; /* Increased height for better visuals */
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.installation-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

/* === CARD BODY === */
.installation-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.installation-card .card-title {
    color: var(--slider-text-dark);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.installation-card .card-text {
    color: var(--slider-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* === INSTALLATION BUTTON === */
.btn-installation {
    background: linear-gradient(45deg, var(--slider-brand-primary), var(--slider-brand-secondary));
    border: none;
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto; /* Pushes button to the bottom */
}

.btn-installation:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 160, 61, 0.25);
    color: #fff;
}

/* === SLIDER ARROWS === */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--slider-arrow-bg);
    border: 1px solid #e0e0e0;
    color: var(--slider-arrow-color);
    width: var(--slider-arrow-size);
    height: var(--slider-arrow-size);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slider-arrow:hover {
    background: linear-gradient(45deg, var(--slider-brand-primary), var(--slider-brand-secondary));
    color: white;
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
}

.installations-slider-section .slider-prev {
    left: 20px;
}

.installations-slider-section .slider-next {
    right: 20px;
}

.slider-arrow i {
    font-size: 1rem;
}

/* === SLIDER DOTS === */
.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 12px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.4s ease;
}

.slider-dot.active {
    background: linear-gradient(45deg, var(--slider-brand-primary), var(--slider-brand-secondary));
    transform: scale(1.4);
    width: 25px;
    border-radius: 10px;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    .installations-slider-section .slider-prev {
        left: 10px;
    }
    .installations-slider-section .slider-next {
        right: 10px;
    }
}

@media (max-width: 767.98px) {
    .installations-slider-section {
        padding: 60px 0;
    }
    .installations-slider-section h2 {
        font-size: 2rem;
    }
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    /* Hide arrows on mobile, as swipe is the primary interaction */
    .slider-arrow {
        display: none;
    }
    .installation-slide {
        width: 80%;
        scroll-snap-align: center;
    }
    .installations-slider-container::before,
    .installations-slider-container::after {
        width: calc(10% - 15px);
    }
}

/* === ACCESSIBILITY === */
.slider-arrow:focus-visible,
.slider-dot:focus-visible {
    outline: 3px solid var(--slider-brand-primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .installations-slider-container,
    .installation-card,
    .slider-arrow,
    .slider-dot,
    .btn-installation {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
