:root {

    --primary: #0f172a; /* Koyu Lacivert */

    --secondary: #1e293b; /* Açık Lacivert */

    --accent: #0d6efd; /* Mavi */

    --text: #333;

    --light: #f8f9fa;

    --danger: #dc3545;

}



body { 

    font-family: 'Segoe UI', sans-serif; 

    background-color: var(--light); 

    color: var(--text);

    /* ÖNEMLİ DÜZELTME: */

    /* Menü yüksekliği (yaklaşık 75px) + 25px ekstra boşluk = 100px */

    padding-top: 100px; 

}



/* Navbar */

.navbar { background-color: var(--primary); padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }

.navbar-brand { color: var(--accent) !important; font-weight: bold; font-size: 24px; }

.nav-link { color: #fff !important; font-weight: 500; margin-left: 15px; transition: 0.3s; }

.nav-link:hover, .nav-link.active { color: var(--accent) !important; }



/* Form Özel Stilleri */

.section-header { 

    border-left: 5px solid var(--accent); 

    padding: 10px 15px; 

    background: #e9ecef; 

    margin-bottom: 20px; 

    font-weight: bold; 

    border-radius: 4px; 

    color: var(--primary);

}



.bg-light-box { 

    background: #fff; 

    border: 1px solid #dee2e6; 

    padding: 25px; 

    border-radius: 8px; 

    margin-bottom: 20px; 

    box-shadow: 0 2px 5px rgba(0,0,0,0.02);

}



.form-label { font-weight: 600; font-size: 0.95rem; color: var(--secondary); margin-bottom: 8px; }

.form-control, .form-select { padding: 12px; border-radius: 6px; border: 1px solid #ced4da; }

.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 0.25rem rgba(201, 162, 77, 0.25); }



/* Dosya Yükleme Alanı */

.upload-container { 

    border: 2px dashed #ccc; 

    border-radius: 10px; 

    background: #fff; 

    text-align: center; 

    margin-bottom: 15px; 

    transition: all 0.3s; 

    cursor: pointer;

}

.upload-container:hover { border-color: var(--accent); background: #fffdf5; }

.custom-file-upload { display: block; padding: 30px; color: #555; font-weight: 600; cursor: pointer; }

.custom-file-upload input[type="file"] { display: none; }

.upload-icon { font-size: 32px; display: block; margin-bottom: 10px; color: var(--accent); }



/* Önizleme Resimleri */

.preview-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }

.preview-image { width: 100px; height: 100px; object-fit: cover; border-radius: 5px; border: 1px solid #ddd; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }



/* Hata Mesajları */

.error-message { color: var(--danger); font-size: 0.85em; margin-top: 5px; display: none; font-weight: bold;}

.is-invalid-custom { border-color: var(--danger) !important; background-image: none !important; }



/* KVKK Popup */

.kvkk-overlay { 

    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 

    background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); 

    z-index: 10000; display: none; justify-content: center; align-items: center; 

}

.kvkk-overlay.aktif { display: flex; }

.kvkk-popup { 

    background: #ffffff; width: 90%; max-width: 600px; 

    border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); 

    display: flex; flex-direction: column; max-height: 85vh; 

}

.kvkk-header { padding: 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }

.kvkk-body { padding: 25px; overflow-y: auto; line-height: 1.6; color: #555; font-size: 14px; }

.kvkk-footer { padding: 15px 25px; border-top: 1px solid #eee; background: #f9f9f9; text-align: right; border-radius: 0 0 10px 10px; }

.accept-btn { 

    background: var(--accent); color: #000; border: none; 

    padding: 10px 25px; border-radius: 5px; font-weight: bold; cursor: pointer; 

}

.accept-btn:hover { background: #b8933f; color: #fff; }

.close-btn { background: none; border: none; font-size: 24px; cursor: pointer; color: #999; }



/* Başlıkların menüye yapışmasını engellemek için ekstra güvenlik */

h1, h2, h3, h4, h5 {

    margin-top: 10px;

    margin: auto;

}



/* Alt Sayfa Başlık Alanı (Page Header) */

.page-header {

    background: linear-gradient(135deg, var(--primary), var(--secondary));

    color: #fff;

    padding: 0px 0;

    text-align: center;

    margin-bottom: 40px;

    /* Menü ile arasındaki boşluğu sıfırlamak için negatif margin (Body padding'ini dengeler) */

    margin-top: -25px; 

}



.page-header h1 {

    color: var(--accent); /* Altın Sarısı */

    font-weight: 700;

    font-size: 2.5rem;

    margin-bottom: 10px;

}



.page-header p {

    color: #cbd5e1;

    font-size: 1.1rem;

    margin: 0;

}



/* Çözüm Ortakları Logoları */

.partner-logo {

    max-width: 100%;

    height: auto;

    /* BURAYI DEĞİŞTİRDİK: 60px'den 95px'e çıkardık */

    max-height: 95px; 

    filter: grayscale(100%);

    opacity: 0.7; /* Biraz daha belirgin olsun diye 0.6'dan 0.7 yaptık */

    transition: all 0.4s ease;

    cursor: pointer;

    /* Logoların birbirine çok yapışmaması için margin ekleyelim */

    margin: 10px 0; 

}



.partner-logo:hover {

    filter: grayscale(0%);

    opacity: 1;

    transform: scale(1.1); /* Büyüme efektini biraz artırdık (1.05'ten 1.1'e) */

}



.partner-logo:hover {

    filter: grayscale(0%); /* Üzerine gelince renklenir */

    opacity: 1;

    transform: scale(1.05); /* Hafif büyür */

}



/* --- HAKKIMDA SAYFASI ÖZEL --- */



/* Filigranlı Fotoğraf Alanı */

.profile-wrapper {

    position: relative;

    display: inline-block;

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0,0,0,0.15);

}



.profile-img {

    width: 100%;

    height: auto;

    display: block;

    transition: transform 0.5s;

}



.profile-wrapper:hover .profile-img {

    transform: scale(1.05); /* Üzerine gelince hafif büyür */

}



/* Filigran (Watermark) Efekti */

.watermark-overlay {

    position: absolute;

    bottom: 20px;

    right: 20px;

    background: rgba(15, 23, 42, 0.7); /* Koyu lacivert yarı şeffaf */

    color: var(--accent); /* Altın sarısı yazı */

    padding: 5px 15px;

    font-weight: bold;

    font-size: 14px;

    border-radius: 4px;

    border: 1px solid var(--accent);

    pointer-events: none; /* Tıklamayı engeller */

    z-index: 2;

    letter-spacing: 1px;

}



/* Zaman Çizelgesi (Timeline) */

.timeline {

    border-left: 3px solid var(--accent);

    margin-left: 10px;

    padding-left: 30px;

    position: relative;

}



.timeline-item {

    position: relative;

    margin-bottom: 40px;

}



.timeline-item::before {

    content: '';

    position: absolute;

    left: -39px; /* Çizginin tam üstüne denk gelmesi için */

    top: 5px;

    width: 16px;

    height: 16px;

    background: var(--primary);

    border: 3px solid var(--accent);

    border-radius: 50%;

}



.timeline-year {

    font-size: 1.1rem;

    font-weight: 800;

    color: var(--accent);

    margin-bottom: 5px;

    display: block;

}



.timeline-title {

    font-weight: 700;

    color: var(--primary);

    font-size: 1.2rem;

}



.timeline-text {

    color: #64748b;

    font-size: 0.95rem;

    line-height: 1.6;

}



/* --- REFERANSLAR SAYFASI ÖZEL --- */



/* Filtre Butonları */

.filter-buttons {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 15px;

    margin-bottom: 40px;

}



.filter-btn {

    background-color: transparent;

    border: 2px solid var(--accent);

    color: var(--primary);

    padding: 10px 25px;

    border-radius: 50px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s ease;

}



.filter-btn:hover, .filter-btn.active {

    background-color: var(--accent);

    color: #fff;

    box-shadow: 0 5px 15px rgba(201, 162, 77, 0.3);

}



/* Referans Kartı (Logo Kutusu) */

.ref-card {

    background: #fff;

    border: 1px solid #eee;

    border-radius: 10px;

    padding: 30px;

    height: 180px; /* Kutuların boyu eşit olsun */

    display: flex;

    align-items: center;

    justify-content: center;

    transition: transform 0.3s, box-shadow 0.3s;

    position: relative;

    overflow: hidden;

}



.ref-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

    border-color: var(--accent);

}



.ref-card img {

    max-width: 100%;

    max-height: 100px;

    filter: grayscale(100%);

    opacity: 0.7;

    transition: all 0.4s ease;

}



.ref-card:hover img {

    filter: grayscale(0%);

    opacity: 1;

    transform: scale(1.1);

}



/* Animasyon Efekti (Filtreleme için) */

.ref-item {

    animation: fadeIn 0.5s ease-in-out;

}



@keyframes fadeIn {

    from { opacity: 0; transform: translateY(20px); }

    to { opacity: 1; transform: translateY(0); }

}



/* Footer */

footer { background: var(--primary); color: #aaa; padding: 50px 0 20px; margin-top: 60px; }

footer h5 { color: #fff; margin-bottom: 20px; font-size: 18px; }

footer a { color: #aaa; text-decoration: none; transition: 0.3s; }

footer a:hover { color: var(--accent); }



/* --- KAMPANYALAR (AFİŞ TARZI) --- */



.promo-card {

    background: #fff;

    border-radius: 15px;

    overflow: hidden;

    box-shadow: 0 5px 15px rgba(0,0,0,0.08);

    transition: transform 0.3s ease;

    border: 1px solid #eee;

}



.promo-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 15px 30px rgba(0,0,0,0.15);

}



.promo-image {

    width: 100%;

    /* Kare veya Dikey afişler için auto, 

       Standart yatay afiş için belirli yükseklik verebilirsiniz. 

       Şimdilik esnek (auto) bırakıyorum, resmin boyutu neyse o görünsün. */

    height: auto; 

    display: block;

}



.promo-content {

    padding: 20px;

}



.promo-date {

    display: inline-block;

    background: #f8f9fa;

    color: var(--primary);

    padding: 5px 10px;

    border-radius: 5px;

    font-size: 0.85rem;

    font-weight: 600;

    margin-bottom: 10px;

    border: 1px solid #e9ecef;

}



.promo-title {

    font-size: 1.1rem;

    font-weight: bold;

    margin-bottom: 10px;

    color: #333;

}



/* --- PORTFÖY DURUM ETİKETLERİ (Satılık/Kiralık) --- */



.status-badge {

    position: absolute;

    top: 15px;

    left: 15px;

    padding: 6px 12px;

    border-radius: 6px;

    font-weight: 800;

    font-size: 0.8rem;

    color: #fff;

    z-index: 2;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    box-shadow: 0 3px 10px rgba(0,0,0,0.2);

    border: 1px solid rgba(255,255,255,0.2);

}



/* Renk Tanımları */

.bg-satilik { background-color: #dc3545; } /* Kırmızı */

.bg-kiralik { background-color: #0d6efd; } /* Mavi */

.bg-kat { background-color: #6f42c1; }    /* Mor (Kat Karşılığı vb.) */



/* --- GÖRSEL BOYUTLANDIRMA DÜZELTMESİ --- */



/* 1. Anasayfa Portföy Kartları İçin */

.card-img-top {

    width: 100% !important;        /* Genişlik kutuya tam otursun */

    height: 250px !important;      /* Yükseklik 250px'e sabitlensin */

    object-fit: cover !important;  /* Resmi bozmadan (sündürmeden) ortadan kırp */

}



/* 2. Kampanyalar Sayfası Afişleri İçin */

.promo-image {

    width: 100% !important;

    height: 500px !important;      /* Kampanya afişi biraz daha yüksek olsun */

    object-fit: cover !important;  /* Taşmaları gizle */

    object-position: center;       /* Resmin tam ortasını göster */

    display: block;

}



/* 3. Mobil Uyumluluk (Telefonda çok yüksek kalmasın) */

@media (max-width: 768px) {

    .promo-image {

        height: 250px !important;

    }

}

/* --- DEĞERLEME FORMU STİLLERİ --- */



/* Bölüm Başlıkları */

.section-header {

    background-color: #f8f9fa;

    padding: 10px 15px;

    border-left: 4px solid var(--primary);

    font-weight: bold;

    color: var(--primary);

    margin-top: 30px;

    margin-bottom: 20px;

    border-radius: 4px;

}



/* Hafif Gri Kutular */

.bg-light-box {

    background-color: #fff;

    border: 1px solid #e9ecef;

    padding: 20px;

    border-radius: 8px;

    margin-bottom: 20px;

}



/* Dosya Yükleme Alanı (Modern) */

.upload-container {

    border: 2px dashed #ccc;

    border-radius: 10px;

    text-align: center;

    padding: 30px;

    background: #fafafa;

    transition: all 0.3s ease;

    cursor: pointer;

    position: relative;

}

.upload-container:hover {

    border-color: var(--primary);

    background: #f0f8ff;

}

.custom-file-upload {

    cursor: pointer;

    display: block;

    width: 100%;

    height: 100%;

}

.upload-icon {

    font-size: 2rem;

    display: block;

    margin-bottom: 10px;

}

#file-upload {

    display: none; /* Standart çirkin inputu gizle */

}



/* Yüklenen Resim Önizleme Grid */

.preview-grid {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 15px;

}

.preview-image {

    width: 80px;

    height: 80px;

    object-fit: cover;

    border-radius: 5px;

    border: 1px solid #ddd;

    box-shadow: 0 2px 5px rgba(0,0,0,0.1);

}



/* KVKK Popup (Modal) */

.kvkk-overlay {

    position: fixed;

    top: 0; left: 0;

    width: 100%; height: 100%;

    background: rgba(0,0,0,0.6);

    display: none; /* Başlangıçta gizli */

    justify-content: center;

    align-items: center;

    z-index: 10001; /* Menünün bile üstünde */

    opacity: 0;

    transition: opacity 0.3s ease;

}

.kvkk-overlay.aktif {

    opacity: 1;

}

.kvkk-popup {

    background: #fff;

    width: 90%;

    max-width: 600px;

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0,0,0,0.3);

}

.kvkk-header {

    background: var(--primary);

    color: #fff;

    padding: 15px 20px;

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.kvkk-header h3 { margin: 0; font-size: 1.2rem; }

.close-btn { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

.kvkk-body { padding: 20px; max-height: 60vh; overflow-y: auto; font-size: 0.9rem; line-height: 1.6; }

.kvkk-footer { padding: 15px; background: #f1f1f1; text-align: right; }

.accept-btn { background: var(--success); color: #fff; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-weight: bold; }



/* Hata Mesajı */

.error-message { color: #dc3545; font-size: 0.85rem; margin-top: 5px; display: none; }

.is-invalid-custom { border-color: #dc3545 !important; background-image: none !important; }


    /* SARI RENGİ MAVİYE ÇEVİRME KODU */
    :root {
        /* Bootstrap'in Sarı (Warning) değişkenini Mavi (#0d6efd) ile eziyoruz */
        --bs-warning: #0d6efd !important;
        
        /* Bootstrap'in RGB sistemi için mavinin RGB karşılığı (13, 110, 253) */
        --bs-warning-rgb: 13, 110, 253 !important;
    }

    /* Garanti olsun diye sınıfları da zorluyoruz */
    .text-warning {
        color: #0d6efd !important;
    }
    
    .bg-warning {
        background-color: #0d6efd !important;
        color: #fff !important; /* Arka plan mavi olunca yazı beyaz olsun */
    }

    .btn-warning {
        background-color: #0d6efd !important;
        border-color: #0d6efd !important;
        color: #fff !important; /* Buton mavi olunca yazı beyaz olsun */
    }
    
    .btn-warning:hover {
        background-color: #0b5ed7 !important; /* Hover olunca biraz daha koyu mavi */
        border-color: #0a58ca !important;
        color: #fff !important;
    }
    /* BELGE KARTLARI (ÇERÇEVE) */
    .cert-card {
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        text-align: center;
        border: 1px solid #eee;
        height: 100%; /* Kartların boyunu eşitle */
    }

    .cert-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    }

    /* RESİM KUTUSU (PASPARTU) */
    .cert-img-container {
        position: relative;
        background-color: #f8f9fa;
        padding: 15px; /* İç boşluk */
        border-bottom: 1px solid #eee;
        
        /* ÇOK ÖNEMLİ: Yüksekliği sabitliyoruz */
        height: 240px; 
        
        /* Flexbox ile resmi tam ortalıyoruz */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* LİNK ETİKETİ AYARI */
    .cert-img-container a {
        display: flex; /* Linkin kendisi de esnek kutu olsun */
        width: 100%;
        height: 100%;
        justify-content: center;
        align-items: center;
    }

    /* RESİM AYARLARI (TAŞMAYI ENGELLER) */
    .cert-img {
        max-width: 100%;      /* Genişlik asla kutuyu geçmesin */
        max-height: 100%;     /* Yükseklik asla 240px'i geçmesin */
        width: auto;          /* Oranı koru */
        height: auto;         /* Oranı koru */
        object-fit: contain;  /* Resmi kesmeden kutuya sığdır */
        
        box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Resme hafif gölge */
        background-color: white; 
    }

    /* YATAY/DİKEY FARKINI KALDIRDIK */
    /* Artık 'horizontal' sınıfına gerek yok, sistem otomatik sığdıracak */

    /* İKON ORTALAMA */
    .cert-overlay {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0, 61, 165, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s;
        border-radius: 4px; /* Köşeleri yumuşat */
    }
    
    .cert-overlay i {
        color: white;
        font-size: 2rem;
    }

    .cert-card:hover .cert-overlay {
        opacity: 1;
    }

    .cert-info {
        padding: 15px;
    }

    .cert-title {
        font-size: 0.9rem;
        font-weight: bold;
        color: #333;
        margin-bottom: 5px;
        line-height: 1.3;
    }

    .cert-desc {
        font-size: 0.75rem;
        color: #777;
    }

   /* --- MOBİL MENÜ DÜZELTMESİ (GÜNCELLENDİ) --- */
    @media (max-width: 991px) {
        
        /* 1. Logoyu mobilde küçültüyoruz (Böylece butona yer kalır) */
        .navbar-brand img {
            max-height: 45px !important; /* Yüksekliği azalttık */
            width: auto;      /* Genişlik orantılı kalsın */
            margin-top: 0;
        }

        /* 2. Menü Hizalaması */
        /* flex-wrap: nowrap KODUNU KALDIRDIK - Menünün açılmasını bozabilir */
        .navbar .container {
            align-items: center;
            justify-content: space-between;
        }
        
        /* 3. Menü Butonu Ayarı */
        .navbar-toggler {
            margin-left: auto; /* Sağa yasla (Garanti olsun) */
            padding: 5px 10px; /* Butonu kibarlaştır */
            font-size: 1rem;
            border-color: rgba(255,255,255,0.5); /* Çerçeve rengi */
        }
        
        /* İkon Rengi (Eğer görünmüyorsa) */
        .navbar-toggler-icon {
            filter: invert(1); /* İkonu beyaz yapar */
        }
    }