﻿/* =========================
   HERO SLIDER FIX (clean)
   ========================= */

.tj-slider-section .tj-slider-item {
    position: relative;
    overflow: hidden;
    min-height: 560px;
}

.tj-slider-section .slider-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: 0;
}

/* okunurluk overlay */
.tj-slider-section .tj-slider-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, .15) 100%);
    z-index: 1;
    pointer-events: none;
}

.tj-slider-section .slider-wrapper,
.tj-slider-section .slider-content {
    position: relative;
    z-index: 3;
}

.tj-slider-section .slider-wrapper {
    min-height: 560px;
    display: flex;
    align-items: center;
}

.tj-slider-section .slider-content {
    max-width: 720px;
}

.tj-slider-section .slider-title,
.tj-slider-section .slider-desc {
    color: #fff !important;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
}

.tj-slider-section .slider-title {
    font-size: clamp(26px, 2.6vw, 54px);
    line-height: 1.08;
    margin-bottom: 12px;
    white-space: normal;
    word-break: break-word;
}

.tj-slider-section .slider-desc {
    font-size: clamp(14px, 1.35vw, 18px);
    line-height: 1.6;
    opacity: .95;
    margin-bottom: 18px;
}

.tj-slider-section .tj-primary-btn {
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .25));
}

/* oklar */
.tj-slider-section .hero-navigation {
    position: absolute;
    right: 40px;
    bottom: 140px;
    z-index: 4;
    display: flex !important;
}

.tj-slider-section .slider-prev,
.tj-slider-section .slider-next {
    cursor: pointer;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* thumb alanı */
.tj-slider-section .hero-thumb {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    z-index: 4;
    padding: 0 24px;
    overflow: hidden;
}

.tj-slider-section .hero-thumb .thumb-item {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .55);
    background: rgba(0, 0, 0, .18);
    box-shadow: 0 10px 2px rgba(0, 0, 0, .22);
}

.tj-slider-section .hero-thumb .thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tj-slider-section .hero-thumb .swiper-slide-thumb-active .thumb-item {
    border-color: rgba(255, 255, 255, .95);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .35);
}

/* mobil */
@media (max-width: 575.98px) {
    .tj-slider-section .tj-slider-item {
        min-height: 520px;
    }

    .tj-slider-section .slider-wrapper {
        min-height: 520px;
        align-items: flex-start;
        padding-top: 86px;
    }

    .tj-slider-section .slider-content {
        max-width: 92vw;
    }

    .tj-slider-section .slider-title {
        font-size: 26px;
        line-height: 1.12;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .tj-slider-section .slider-desc {
        font-size: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .tj-slider-section .hero-navigation {
        right: 14px;
        bottom: 118px;
        transform: scale(.9);
    }

    .tj-slider-section .hero-thumb {
        bottom: 14px;
        padding: 0 14px;
    }
}

/* okların üstte kalması ve tıklanması için */
.tj-slider-section .hero-navigation {
    z-index: 9999 !important;
}

.tj-slider-section .slider-prev,
.tj-slider-section .slider-next {
    position: relative;
    z-index: 9999 !important;
}

@media (min-width: 992px) {
    .tj-slider-section .hero-thumb {
        cursor: grab;
    }

    .tj-slider-section .hero-thumb:active {
        cursor: grabbing;
    }

    .tj-slider-section .hero-thumb .swiper-slide {
        height: 92px;
        /* masaüstünde net yükseklik */
    }
}

/* === TITLE OVERRIDE (theme bug fixes) === */
.tj-slider-section .tj-slider-item .slider-content .slider-title {
    width: auto !important;
    /* 200% bug fix */
    max-width: 100% !important;
    font-size: clamp(34px, 3.1vw, 62px) !important;
    /* masaüstü dengeli */
    line-height: 1.08 !important;
    letter-spacing: -1px !important;
    /* -2.88px çok agresif */
    overflow-wrap: anywhere;
}

/* Tema breakpoint'inde 570px gibi saçma değeri kesin ez */
@media (min-width: 768px) and (max-width: 991px) {
    .tj-slider-section .tj-slider-item .slider-content .slider-title {
        font-size: clamp(28px, 4.2vw, 48px) !important;
        width: auto !important;
        max-width: 100% !important;
    }
}

/* Mobil zaten iyi dedin; yine de garanti */
@media (max-width: 575.98px) {
    .tj-slider-section .tj-slider-item .slider-content .slider-title {
        width: auto !important;
        max-width: 92vw !important;
        font-size: 26px !important;
    }
}

/* === NAV ARROWS FIX === */
.tj-slider-section .hero-navigation {
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 99999 !important;
}

.tj-slider-section .slider-prev,
.tj-slider-section .slider-next {
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 99999 !important;
}

/* bazı temalarda ok ikonlarının rengi/kontrastı düşük olur */
.tj-slider-section .hero-navigation i {
    color: #fff !important;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35));
}

/* === THUMB ACTIVE STYLE FIX === */
.tj-slider-section .hero-thumb .swiper-slide {
    background: transparent !important;
    /* beyaz kutuyu öldür */
}

.tj-slider-section .hero-thumb .swiper-slide-thumb-active {
    background: transparent !important;
}

.tj-slider-section .hero-thumb .swiper-slide-thumb-active .thumb-item,
.tj-slider-section .hero-thumb .swiper-slide-thumb-active {
    /*border: 2px solid rgba(255,255,255,.95) !important;*/
    box-shadow: 0 16px 30px rgba(0, 0, 0, .35) !important;
}

/* === THUMB SPACING (desktop like mobile) === */
@media (min-width: 992px) {
    .tj-slider-section .hero-thumb {
        padding: 0 18px !important;
    }

    .tj-slider-section .hero-thumb .swiper-wrapper {
        gap: 0 !important;
        /* tema gap veriyorsa */
    }

    .tj-slider-section .hero-thumb .swiper-slide {
        margin-right: 0 !important;
        /* tema margin veriyorsa */
    }
}

.tj-slider-section .hero-thumb .swiper-slide-thumb-active::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 6px;
    height: 3px;
    background: rgba(255, 255, 255, .95);
    border-radius: 999px;
}

.tj-slider-section .hero-thumb .swiper-slide {
    position: relative;
}

/* Thumb genişliğini SABİT 80px yap */
.tj-slider-section .hero-thumb .swiper-slide {
    width: 80px !important;
    flex-shrink: 0;
}

.footer-marquee {
    background: #0c1e21;
    padding: 6px 0;
    /* küçült */
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    /* küçült */
}

.marquee-text {
    margin: 0;
    font-size: 14px;
    /* küçült */
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .2px;
}

.marquee-text a {
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.marquee-sep {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    opacity: .95;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35));
}

/* =========================
   EFEPAN LOGO PRELOADER
   ========================= */

.efepan-logo-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.preloader-logo {
    max-width: 400px;
    width: 80%;
    height: auto;
    animation: logoAnimation 1.5s ease-in-out infinite;
    filter: drop-shadow(0 15px 40px rgba(30, 107, 184, 0.4));
    transform-origin: center center;
}

/* Logo Animasyonları - Daha Belirgin ve Hareketli */
@keyframes logoAnimation {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        filter: drop-shadow(0 15px 40px rgba(30, 107, 184, 0.4)) brightness(1);
    }

    25% {
        transform: scale(1.15) rotate(-5deg);
        opacity: 0.85;
        filter: drop-shadow(0 20px 50px rgba(30, 107, 184, 0.6)) brightness(1.1);
    }

    50% {
        transform: scale(1.25) rotate(5deg);
        opacity: 1;
        filter: drop-shadow(0 25px 60px rgba(30, 107, 184, 0.8)) brightness(1.2);
    }

    75% {
        transform: scale(1.15) rotate(-3deg);
        opacity: 0.85;
        filter: drop-shadow(0 20px 50px rgba(30, 107, 184, 0.6)) brightness(1.1);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        filter: drop-shadow(0 15px 40px rgba(30, 107, 184, 0.4)) brightness(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .preloader-logo {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .preloader-logo {
        max-width: 200px;
    }
}

/* =========================
   URUN SLIDER IMG ALIGN FIX
   ========================= */
.service-item.style-4 .service-img {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.service-item.style-4 .service-img img {
    margin: 0 auto;
    display: inline-block;
}