/* SCROLLING WRAPPER */
.scrolling-wrapper {
    overflow-x: scroll;
    display: flex;
    flex-wrap: nowrap;
}

    .scrolling-wrapper .card {
        flex: 0 0 auto;
        margin-right: 10px;
    }

    .scrolling-wrapper::-webkit-scrollbar {
        display: none;
    }

/* GENEL RENK AYARLARI */
.g-color-primary, .u-btn-primary, .g-brd-primary {
    color: #e74c3c !important;
}

.u-btn-primary, .g-bg-primary {
    background-color: #e74c3c !important;
    border-color: #e74c3c !important;
}

.u-heading-v3__title {
    border-color: #e74c3c !important;
}

.style-red .u-btn-primary {
    color: #761b13 !important;
}

/* ETKİNLİK GALERİ */
.event-main-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.event-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    padding: 10px;
    color: #fff;
}

.event-thumb-container {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    overflow-x: auto;
}

.event-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
}

    .event-thumb:hover, .event-thumb.active {
        opacity: 1;
        border-color: #e74c3c;
    }

/* HABERLER LİSTE */
.news-list-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.news-list-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
}

/* RENK TEMALARI */
/* Mavi */
.style-blue .u-heading-v3__title {
    border-color: #3498db !important;
    color: #3498db !important;
}

.u-btn-blue {
    background-color: #3498db !important;
    border-color: #3498db !important;
}

.g-color-blue {
    color: #111 !important;
}

    .g-color-blue:hover {
        color: #3498db !important;
    }
/* Mor */
.style-purple .u-heading-v3__title {
    border-color: #9b59b6 !important;
    color: #9b59b6 !important;
}

.u-btn-purple {
    background-color: #9b59b6 !important;
    border-color: #9b59b6 !important;
}
/* Kırmızı */
.style-red .u-heading-v3__title {
    border-color: #e74c3c !important;
    color: #e74c3c !important;
}

/* DUYURU BADGE */
.date-badge {
    display: inline-block;
    background-color: #e74c3c;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 8px;
}

.duyuru-link {
    color: #333;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    display: block;
    line-height: 1.4;
}

    .duyuru-link:hover {
        color: #e74c3c;
        text-decoration: none;
    }

/* KISA KISA KARTLARI */
.highlight-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border-top: 5px solid #ccc;
}

    .highlight-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    }

.card-red {
    border-top-color: #e74c3c;
}

.card-blue {
    border-top-color: #3498db;
}

.card-purple {
    border-top-color: #9b59b6;
}

.highlight-header {
    padding: 20px 20px 10px 20px;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.text-red {
    color: #e74c3c;
}

.text-blue {
    color: #3498db;
}

.text-purple {
    color: #9b59b6;
}

.highlight-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.highlight-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.highlight-card:hover .highlight-img {
    transform: scale(1.1);
}

.highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .highlight-list li {
        border-bottom: 1px solid #f0f0f0;
    }

        .highlight-list li:last-child {
            border-bottom: none;
        }

    .highlight-list a {
        display: block;
        padding: 12px 20px;
        color: #555;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.2s ease;
        position: relative;
    }

        .highlight-list a:hover {
            padding-left: 25px;
            background-color: #fafafa;
        }

        .highlight-list a::before {
            content: '\f105';
            font-family: 'FontAwesome';
            margin-right: 8px;
            opacity: 0.6;
        }

.card-red .highlight-list a:hover {
    color: #e74c3c;
}

.card-blue .highlight-list a:hover {
    color: #3498db;
}

.card-purple .highlight-list a:hover {
    color: #9b59b6;
}

/* BAŞLIK RENKLERİ (Slider) */
.header-orange .u-heading-v3__title {
    border-color: #f39c12 !important;
    color: #f39c12 !important;
}

.header-green .u-heading-v3__title {
    border-color: #2ecc71 !important;
    color: #2ecc71 !important;
}

/* İSTATİSTİK KARTLARI */
.stat-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid #f39c12;
    height: 100%;
    text-align: center;
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(243, 156, 18, 0.2);
    }

.stat-icon {
    font-size: 40px;
    color: #f39c12;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

/* PROJE SLIDER */
.project-slider-container {
    padding: 40px 0;
    width: 100%;
    overflow: hidden;
}

.js-project-slider {
    display: flex;
    flex-wrap: nowrap;
    opacity: 0;
    transition: opacity 0.5s ease;
}

    .js-project-slider.slick-initialized {
        display: block;
        opacity: 1;
    }

.project-item {
    margin: 0 15px;
    transition: all 0.3s ease;
    opacity: 0.5;
    transform: scale(0.9);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.slick-center .project-item {
    opacity: 1;
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.3);
    border: 2px solid #2ecc71;
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-info {
    padding: 15px;
    text-align: center;
    background: #fff;
}

.project-title {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slick-center .project-title {
    color: #27ae60;
}

.slick-prev:before, .slick-next:before {
    color: #2ecc71 !important;
    font-size: 30px;
}
/* MEVCUT STİLİ GÜNCELLEME: .project-item'a position: relative ekliyoruz */
.project-item {
    position: relative; /* Etiketin bu kutu içinde konumlanması için şart */
    /* Mevcut diğer stilleriniz burada kalmaya devam edecek */
}

.project-status-badge {
    position: absolute;
    top: 10px;
    /* ORTALAMA İŞLEMİ İÇİN GEREKLİ KISIM */
    left: 50%;
    transform: translateX(-50%);
    /* right: 10px;  <-- Bunu siliyoruz */

    padding: 5px 10px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 20;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    /* Metin uzun olursa aşağı kaymayı önlemek için */
    white-space: nowrap;
}

/* Duruma göre renk sınıfları */
.status-green {
    background-color: #2ecc71; /* Tamamlananlar için Yeşil */
}

.status-red {
    background-color: #e74c3c; /* Diğerleri için Kırmızı */
}

/* --- YENİ VİDEO VE ŞEFFAF MENÜ STİLLERİ --- */

.hero-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: #000; /* Video yüklenene kadar siyah zemin */
}

/* Video Ayarları - DÜZELTİLDİ */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0; /* HATA DÜZELTİLDİ: -1 yerine 0 yapıldı */
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

/* Karanlık Perde - DÜZELTİLDİ */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1; /* HATA DÜZELTİLDİ: Videonun (0) üstünde olması için 1 yapıldı */
}

/* --- HİZMET BUTONLARI --- */
.services-overlay-container {
    position: relative;
    z-index: 10; /* Perdenin (1) üstünde olması için */
    width: 100%;
    padding-bottom: 30px;
}

.services-grid-new {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Link Kartlarının Yeni Stili */
.service-card-transparent {
    flex: 0 0 auto;
    width: 140px;
    height: 120px;
    padding: 15px 10px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .service-card-transparent:last-child {
        border-right: 1px solid rgba(255,255,255,0.3); /* Kenarlık hatası giderildi */
    }

    /* İCON VE YAZI AYARLARI */
    .service-card-transparent .service-icon {
        font-size: 32px;
        margin-bottom: 10px;
        color: #fff;
        transition: all 0.3s ease;
    }

    .service-card-transparent .service-title {
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        margin-bottom: 0;
        color: #fff;
        line-height: 1.2;
    }

    .service-card-transparent .service-desc {
        font-size: 12px;
        color: rgba(255,255,255,0.8);
        line-height: 1.4;
    }

    /* --- HOVER EFEKTLERİ --- */
    .service-card-transparent:hover {
        background-color: #e74c3c;
        transform: translateY(-5px);
        text-decoration: none;
        border-color: #e74c3c;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

        /* Hover sırasında ikon ve yazı rengini koruma */
        .service-card-transparent:hover .service-icon,
        .service-card-transparent:hover .service-title {
            color: #fff;
        }

/* --- MOBİL UYUMLULUK --- */
/* --- MOBİL UYUMLULUK GÜNCELLEMESİ (DAHA KISA VİDEO ALANI VE MİNİ BUTONLAR) --- */
@media (max-width: 768px) {

    /* 1. VİDEO ALANI (KÜÇÜLTÜLDÜ) */
    .hero-wrapper {
        /* Yüksekliği düşürdükçe videonun sağ ve solu daha çok görünür */
        height: 40vh; /* Ekranın %55'i kadar yükseklik (Önceki 80vh idi) */
        min-height: 400px; /* Çok eski telefonlarda çok kısalmasın */
        justify-content: flex-end; /* İçeriği en alta yasla */
    }

    /* 2. ALTTAN BOŞLUK (DAHA AŞAĞIYA) */
    .services-overlay-container {
        /* Menüyü en alta yapıştırmak için boşluğu azalttık */
        padding-bottom: 5px;
    }

    /* 3. IZGARA YAPISI */
    .services-grid-new {
        gap: 5px; /* Kutular arası boşluk iyice azaldı */
        padding: 0 5px; /* Kenar boşlukları azaldı */
    }

    /* 4. BUTONLARI İYİCE KÜÇÜLTÜYORUZ */
    .service-card-transparent {
        /* Yan yana 3 tane sığdırmaya devam */
        width: calc(33.333% - 5px);
        /* Yükseklik Küçültüldü (Önceki 85px idi) */
        height: 70px;
        padding: 2px; /* İç boşluk minimuma indi */
        border-radius: 6px;
        /* İçeriği dikeyde ortala */
        justify-content: center;
    }

        /* İkon Boyutu */
        .service-card-transparent .service-icon {
            font-size: 18px; /* İkon küçüldü */
            margin-bottom: 2px; /* Yazı ile arası açılmasın */
        }

        /* Başlık Boyutu */
        .service-card-transparent .service-title {
            font-size: 9px; /* Yazı küçüldü */
            line-height: 1.1;
            font-weight: 600;
            /* Uzun kelimeler taşarsa ... koysun diye güvenlik (opsiyonel) */
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }
}

/*MENU*/

/* --- ŞEFFAF MENÜ ARKA PLANI --- */
#js-header.u-header--static {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    /* Arka plan: %50 Siyah */
    background: rgba(255, 255, 255, 0.5) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Menü şeritlerinin arka planını temizle */
.u-header__section--light {
    background: transparent !important;
}

.hs-sub-menu .nav-link {
    color: #333 !important;
    text-shadow: none;
}

.navbar-nav > li > a {
    color: #000 !important;
    text-shadow: none;
}

/* ÖNCESİ - SONRASI SLIDER STİLİ */
.ba-slider {
    position: relative;
    width: 100%;
    height: 250px; /* Slider yüksekliği ile aynı olmalı */
    overflow: hidden;
    border-radius: 8px; /* Köşe yuvarlama */
}

    .ba-slider img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        position: absolute; /* Üst üste binmeleri için */
        top: 0;
        left: 0;
    }

/* Üstteki resim (Yeni Hali) kapsayıcısı - Genişliği JS ile değişecek */
.resize {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%; /* Başlangıçta %50 */
    overflow: hidden;
    z-index: 2;
    border-right: 3px solid #fff; /* Ortadaki beyaz çizgi */
}

/* Yuvarlak Tutacak (Handle) */
.handle {
    position: absolute;
    left: 50%; /* Başlangıç konumu */
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    z-index: 3;
    cursor: ew-resize; /* Sağa sola ok imleci */
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Tutacak içindeki oklar */
    .handle::after {
        content: '\f337'; /* FontAwesome sol-sağ ok ikonu */
        font-family: 'FontAwesome';
        color: #333;
        font-size: 16px;
    }

/* Etiketler (Eski Hali - Yeni Hali) */
.ba-label {
    position: absolute;
    top: 10px;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    background: rgba(0,0,0,0.5);
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 4;
    text-transform: uppercase;
    pointer-events: none; /* Tıklamayı engelle */
}

.label-before {
    right: 10px;
}
/* Eski Hali (Alttaki resim sağda kalır mantıken) */
.label-after {
    left: 10px;
}
/* Yeni Hali (Üstteki resim solda) */

/* Slider içindeki proje başlığı */
.ba-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.9);
    padding: 10px;
    text-align: center;
    z-index: 5;
}

    .ba-caption h4 {
        margin: 0;
        font-size: 16px;
        color: #333;
    }
/* --- MERKEZ ODAKLI SLIDER STİLİ --- */

/* Slider'ın genel taşma ayarı (Kenarların görünmesi için) */
.js-project-slider .slick-list {
    overflow: visible !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* Tüm Slaytlar (Pasif Durum) */
.slick-slide .project-item {
    transform: scale(0.85); /* Varsayılan olarak %85 boyutunda */
    opacity: 0.6; /* Biraz şeffaf */
    transition: all 0.4s ease;
    filter: blur(1px); /* Hafif bulanık */
}

/* Sadece Ortadaki Aktif Slayt */
.slick-center .project-item {
    transform: scale(1.1); /* %110 büyüklüğünde */
    opacity: 1; /* Tam net */
    filter: blur(0); /* Bulanıklık yok */
    z-index: 10; /* En öne getir */
    box-shadow: 0 15px 35px rgba(0,0,0,0.3); /* Gölge ver */
    border: 2px solid #2ecc71; /* İsteğe bağlı yeşil çerçeve */
}

/* ÖNCESİ / SONRASI DÜZELTMELERİ */
.ba-slider {
    cursor: ew-resize; /* Mouse ikonunu değiştir */
    user-select: none; /* Yazı seçimini engelle */
    touch-action: none; /* Mobilde sayfa kaydırmayı engelle (Sadece bu alanda) */
}
    /* Resimlerin sürüklenmesini engelle (Ghost image sorununu çözer) */
    .ba-slider img {
        pointer-events: none;
    }
