html body .referans-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 12px 0;
    background: #ffffff;
}

.referans-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    margin-top: 0;
    z-index: 100;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #111827;
    padding: 0;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.referans-carousel__nav::after {
    display: none;
}

.referans-carousel__nav svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.referans-carousel__nav--prev {
    left: 8px;
}

.referans-carousel__nav--next {
    right: 8px;
}

.referans-carousel__nav:hover {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    transform: translateY(-50%) scale(1.05);
    border-color: transparent;
}

.referans-carousel__nav:hover svg {
    transform: scale(1.1);
}

.referans-carousel__nav:active {
    transform: translateY(-50%) scale(0.95);
}

.referans-carousel__nav.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: auto;
}

.referans-carousel__swiper {
    width: 100%;
}

.referans-carousel__swiper .swiper-wrapper {
    display: flex;
}

.referans-carousel .swiper-slide {
    height: auto;
    display: flex;
    flex: 0 0 auto;
    background: transparent !important;
    transition: none;
}

.referans-carousel .swiper-slide.swiper-slide-active,
.referans-carousel .swiper-slide.swiper-slide-next,
.referans-carousel .swiper-slide.swiper-slide-prev,
.referans-carousel .swiper-slide:hover {
    background: transparent !important;
}

.referans-carousel__card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    height: 300px;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    text-align: left;
    color: inherit;
    appearance: none;
}

.referans-carousel__card:hover,
.referans-carousel__card:focus,
.referans-carousel__card:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none;
}

.referans-carousel__image {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    display: block;
}

.referans-carousel__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.referans-carousel__card:hover .referans-carousel__image img,
.referans-carousel__card:focus .referans-carousel__image img,
.referans-carousel__card:active .referans-carousel__image img {
    transform: none;
}

.referans-carousel__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    letter-spacing: 0;
    position: relative;
    padding-bottom: 4px;
    margin: 0;
    flex: 0 0 auto;
}

.referans-carousel__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.25s ease;
}

.referans-carousel__card:hover .referans-carousel__title::after,
.referans-carousel__card:focus .referans-carousel__title::after,
.referans-carousel__card:active .referans-carousel__title::after {
    width: 100%;
}

.referans-carousel__modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(16px, 4vw, 32px);
    z-index: 9999;
}

.referans-carousel__modal[hidden] {
    display: none;
}

.referans-carousel__modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
}

.referans-carousel__modal-dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 920px);
    max-height: 92vh;
    background: #ffffff;
    border-radius: 20px;
    padding: clamp(20px, 4vw, 28px);
    box-shadow: 0 32px 64px rgba(15, 23, 42, 0.24);
    display: grid;
    gap: clamp(16px, 4vw, 24px);
}

html body .referans-carousel__modal-close {
    position: absolute;
    top: clamp(14px, 3vw, 18px);
    right: clamp(14px, 3vw, 18px);
    border: none;
    background: transparent;
    color: #111827;
    font-size: 1.6rem;
    line-height: 1;
    padding: 4px;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.referans-carousel__modal-close:hover,
.referans-carousel__modal-close:focus-visible {
    color: #0f172a;
    background: #ffffff;
    transform: scale(1.05);
    outline: none;
}

.referans-carousel__modal-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.referans-carousel__modal-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
    padding: 0;
}

.referans-carousel__modal-content[hidden] {
    display: none;
}

.referans-carousel__modal-content p {
    margin: 0 0 0.75em 0;
}

.referans-carousel__modal-content p:last-child {
    margin-bottom: 0;
}

.referans-carousel__modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0.5em 0;
}

.referans-carousel__modal-gallery {
    display: grid;
    align-items: center;
    grid-template-columns: auto 1fr auto;
    gap: clamp(12px, 3vw, 18px);
    min-height: 0;
}

.referans-carousel__modal-stage {
    position: relative;
    width: 100%;
    min-height: clamp(240px, 54vh, 520px);
    max-height: clamp(320px, 68vh, 600px);
    padding: clamp(12px, 3vw, 22px);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
}

.referans-carousel__modal-image {
    width: 100%;
    height: auto;
    max-height: calc(70vh - 90px);
    max-width: 100%;
    object-fit: contain;
    mix-blend-mode: normal;
}

.referans-carousel__modal-caption {
    margin: 0;
    padding-top: 12px;
    font-size: 0.92rem;
    color: #475569;
    text-align: center;
}

.referans-carousel__modal-nav {
    border: none;
    background: transparent;
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.referans-carousel__modal-nav:hover,
.referans-carousel__modal-nav:focus-visible {
    transform: scale(1.05);
    color: #0f172a;
    background: #ffffff;
    outline: none;
}

.referans-carousel__modal-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
}

.referans-carousel__modal-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.referans-carousel__modal-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-top: 4px;
}

.referans-carousel__thumb {
    border: none;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    width: 68px;
    height: 68px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    background: #f1f5f9;
}

.referans-carousel__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.referans-carousel__thumb.is-active {
    opacity: 1;
}

.referans-carousel-modal-open {
    overflow: hidden;
}

@media (max-width: 992px) {
html body .referans-carousel {
    padding: 8px 0;
}

.referans-carousel__card {
    gap: 12px;
}

.referans-carousel__nav {
    width: 36px;
    height: 36px;
}

.referans-carousel__nav svg {
    width: 18px;
    height: 18px;
}

.referans-carousel__nav--prev {
    left: 4px;
}

.referans-carousel__nav--next {
    right: 4px;
}

.referans-carousel__modal-dialog {
    padding: 24px;
    width: 94vw;
}

.referans-carousel__modal-gallery {
    grid-template-columns: 1fr;
    gap: 18px;
    position: relative;
}

    .referans-carousel__modal-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    width: 44px;
    height: 44px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.2);
    }

    .referans-carousel__modal-stage {
    min-height: clamp(240px, 60vh, 480px);
    max-height: clamp(280px, 68vh, 520px);
    }

    .referans-carousel__modal-nav--prev {
        left: 16px;
    }

    .referans-carousel__modal-nav--next {
        right: 16px;
    }
}

@media (max-width: 640px) {
    .referans-carousel__nav {
        width: 32px;
        height: 32px;
    }

    .referans-carousel__nav svg {
        width: 16px;
        height: 16px;
    }

    .referans-carousel__nav--prev {
        left: 2px;
    }

    .referans-carousel__nav--next {
        right: 2px;
    }

    .referans-carousel__modal-dialog {
    padding: 20px;
    gap: 14px;
    }

    .referans-carousel__modal-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .referans-carousel__modal-title {
        font-size: 1.2rem;
    }

    .referans-carousel__thumb {
    width: 60px;
    height: 60px;
    }

    .referans-carousel__modal-stage {
    min-height: clamp(220px, 55vh, 400px);
    max-height: clamp(260px, 65vh, 440px);
    padding: clamp(10px, 6vw, 18px);
    }

    .referans-carousel__modal-image {
    max-height: calc(65vh - 70px);
    }

    .referans-carousel__modal-nav {
    width: 40px;
    height: 40px;
    }

    .referans-carousel__modal-nav--prev {
        left: 12px;
    }

    .referans-carousel__modal-nav--next {
        right: 12px;
    }
}

@media (hover: hover) {
    .referans-carousel__card:hover .referans-carousel__image img {
        transform: none;
    }
}
