/* Genel Ayarlar ve Font */

body {
    font-family: 'Poppins', sans-serif; /* Daha modern bir font */
    background-color: #f0f2f5; /* Hafif gri arka plan */
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* Yatay kaydırmayı engelle */
}

/* Scrollbar özelleştirmesi (isteğe bağlı) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f2f5;
}
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Başlık Stilleri */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* Başlıklar için farklı, güçlü bir font */
    font-weight: 700;
    color: #2c3e50; /* Koyu mavi-gri */
    margin-bottom: 0.8em;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }

/* Navbar Stilleri */
.navbar {
    background-color: #ffffff; /* Beyaz Navbar */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* Hafif gölge */
    padding: 1rem 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: sticky; /* Navbar'ı yukarıda tut */
    top: 0;
    width: 100%;
    z-index: 1030; /* Diğer elementlerin üzerinde olmalı */
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2c3e50; /* Koyu renk logo */
    letter-spacing: -1px; /* Biraz karakter aralığı */
}

.navbar-nav .nav-link {
    color: #555; /* Gri tonu menü linkleri */
    font-weight: 600;
    padding: 0.75rem 1.2rem;
    transition: all 0.3s ease;
    position: relative; /* Aktif çizgi için */
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #007bff; /* Mavi vurgu rengi */
    background-color: transparent; /* Hover'da arka plan olmasın */
}

/* Aktif menü öğesi alt çizgisi */
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 5px; /* Navbar paddingine göre ayarla */
    left: 50%;
    transform: translateX(-50%);
    width: 60%; /* Çizgi genişliği */
    height: 2px;
    background-color: #007bff; /* Mavi çizgi */
    border-radius: 2px;
}

/* Navbar Toggle Butonu */
.navbar-toggler {
    border: none;
    padding: .25rem .75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border-radius: .25rem;
    transition: box-shadow .15s ease-in-out;
}
.navbar-toggler:focus {
    box-shadow: none;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0,.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* Giriş Yap Butonu */
.navbar-nav .nav-item .btn-login {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    font-weight: 600;
    border-radius: 50px; /* Daha yuvarlak buton */
    padding: 0.6rem 1.8rem;
    transition: all 0.3s ease;
    margin-left: 20px; /* Diğer menülerden boşluk */
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.navbar-nav .nav-item .btn-login:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}

/* Giriş Yap Butonu için Mavi Çerçeve */
.btn-login-border {
    border: 2px solid #007bff !important; /* Mavi çerçeve */
    background-color: transparent !important; /* Arka planı şeffaf yap */
    color: #007bff !important; /* Metin rengi mavi */
    box-shadow: none !important; /* Gölgeyi kaldır */
    /* Mevcut padding ve border-radius değerlerini korumak için */
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    margin-left: 20px; /* Diğer menülerden boşluk */
    transition: all 0.3s ease;
}

.btn-login-border:hover {
    background-color: #007bff !important; /* Hover'da arka plan mavi */
    color: white !important; /* Hover'da metin rengi beyaz */
    border-color: #007bff !important; /* Hover'da çerçeve rengi mavi */
    transform: translateY(0) !important; /* Hover'da yukarı kaymayı iptal et */
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3) !important; /* Hafif gölge ekle */
}


/* Hero Section (Slideshow) */

/* Slayt üzerine bindirme (overlay) */

/* Sayısal İstatistikler Bölümü (Counter Section) */
.counter-section {
    background-color: #f0f8ff; /* Açık mavi arka plan */
    color: #343a40; /* Koyu metin */
    padding: 60px 0;
    text-align: center;
}
.counter-item {
    padding: 20px 0;
}
.counter-item i {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #007bff; /* Mavi ikon */
}
.counter-item .number {
    font-size: 3.2rem; /* Daha büyük sayı */
    font-weight: 800; /* Daha kalın sayı */
    margin-bottom: 5px;
    color: #2c3e50; /* Koyu mavi-gri */
}
.counter-item .text {
    font-size: 1.1rem; /* Metin boyutu */
    color: #666; /* Gri metin */
}

/* Neden REX Emlak Bölümü */
.why-us-section {
    padding: 80px 0;
    background-color: #fff;
}

.why-us-section h2 {
    margin-bottom: 60px;
}

.why-us-section .card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
}

.why-us-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.why-us-section .card-body {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.why-us-section .card-body i {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: #007bff;
}

.why-us-section .card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.why-us-section .card-text {
    color: #666;
}


.btn-consultant-apply {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    font-size: 1.1rem;
    padding: 12px 30px;
    margin-top: 50px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
}
.btn-consultant-apply:hover {
    background-color: #0056b3;
    border-color: #004085;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

/* Yeni Eklenecek Bölüm: Emlak Hizmetleri Teaser */
.property-services-section {
    padding: 60px 0;
    background-color: #f0f2f5; /* Genel arka plan ile uyumlu */
}

.service-card {
    /* Mevcut stiller */
    background: linear-gradient(to right, #007bff, #0056b3);
    color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    padding: 30px;
    min-height: 200px;
    height: 100%; /* Ebeveyn yüksekliği kadar uzasın */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: none;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card .card-content {
    flex-grow: 1;
    text-align: left;
    z-index: 2; /* İçeriğin görselin üzerinde olması için */
}

.service-card .card-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff; /* Başlık rengi her iki kartta da beyaz */
}

.service-card .card-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9); /* Açıklama rengi her iki kartta da hafif şeffaf beyaz */
    margin-bottom: 20px;
}

.service-card .btn-light,
.service-card .btn-outline-primary {
    background-color: #007bff; /* Mavi arka plan */
    color: #fff; /* Beyaz metin */
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-card .btn-light:hover,
.service-card .btn-outline-primary:hover {
    background-color: #0056b3; /* Daha koyu mavi arka plan */
    color: #fff;
}


.service-card .card-image {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%; /* Kartın yüksekliğine göre ayarla */
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 1;
    opacity: 0.8; /* Görseli hafif şeffaf yap */
}

.service-card .card-image img {
    height: 120%; /* Kartın dışına taşmasını sağlar */
    width: auto;
    object-fit: cover;
    pointer-events: none; /* Üzerindeki yazılara tıklamayı engellemez */
}

/* Satalım/Kiralayalım Kartı (Artık find-home-card ile aynı stile sahip) */
.sell-rent-card {
    /* Özel stil kalmadı, genel .service-card stilini kullanacak */
}

/* Ev Bul Kartı (Artık sell-rent-card ile aynı stile sahip olacak) */
.find-home-card {
    /* Özel stil kalmadı, genel .service-card stilini kullanacak */
}

/* Find Home Card'ın arkasındaki hafif bulanık gradient efekti (kaldırıldı, artık her ikisi de aynı stile sahip) */
.find-home-card::after {
    display: none;
}

/* Öne Çıkan İlanlar Bölümü */
.featured-listings-section {
    padding: 80px 0;
    background-color: #fff;
}
.featured-listings-section h2 {
    margin-bottom: 60px;
}
.featured-listings-section .card {
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    background-color: #fff;
}
.featured-listings-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.featured-listings-section .card-img-top {
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}
.featured-listings-section .card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
}
.featured-listings-section .card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
    height: 60px;
    overflow: hidden;
}
.featured-listings-section .card-text {
    font-size: 0.9rem;
    color: #777;
    flex-grow: 1;
    height: 40px;
    overflow: hidden;
}
.featured-listings-section .list-unstyled li {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 5px;
}
.featured-listings-section .list-unstyled li i {
    width: 25px;
    text-align: center;
    color: #007bff;
}
.featured-listings-section .price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #28a745;
    margin-top: 15px;
}
.featured-listings-section .btn-outline-primary {
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #007bff;
    border-color: #007bff;
    transition: all 0.3s ease;
}
.featured-listings-section .btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

/* Tüm İlanları Görüntüle Butonu */
.btn-view-all {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white ;
    font-weight: 600;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.3);
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(108, 117, 125, 0.4);
}

/* Footer Stilleri */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 30px;
    font-size: 0.95rem;
}

.footer h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer p {
    color: #bdc3c7;
    margin-bottom: 15px;
}

.footer .list-unstyled a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 8px;
    display: block;
}

.footer .list-unstyled a:hover {
    color: #007bff;
    text-decoration: underline;
}

.footer .social-icons a {
    color: #ecf0f1;
    font-size: 1.8rem;
    margin: 0 10px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer .social-icons a:hover {
    color: #007bff;
    transform: scale(1.1);
}

.footer .hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    margin-bottom: 20px;
}

.footer .copy-text {
    color: #bdc3c7;
    font-size: 0.85rem;
}

.text-center {
    text-align: center;
}
.text-md-start {
    text-align: left;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #fff;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        margin-top: 10px;
        padding: 15px;
        border-radius: 8px;
    }

    .navbar-nav .nav-link {
        padding: 12px 15px;
        text-align: center;
        border-bottom: 1px solid #eee;
        border-radius: 0;
    }
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    .navbar-nav .nav-link.active::after {
        width: 30%;
        bottom: 0;
        height: 2px;
    }

    .navbar-nav .nav-item .btn-login {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
        box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
    }
    .navbar-nav .nav-item:last-child {
        margin-bottom: 0;
    }

    

    .counter-item .number {
        font-size: 2.5rem;
    }
    .counter-item .text {
        font-size: 1rem;
    }

    .why-us-section .card-body {
        padding: 30px 20px;
    }
    .why-us-section .card-body i {
        font-size: 3rem;
    }
    .why-us-section .card-title {
        font-size: 1.3rem;
    }

    

    /* Emlak Hizmetleri Teaser Bölümü Responsive */
    .service-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 25px;
    }
    .service-card .card-image {
        position: relative;
        width: 80px; /* Mobil ikon boyutu */
        height: 80px;
        margin-bottom: 15px;
        align-self: center; /* Ortaya hizala */
    }
    .service-card .card-image img {
        height: 100%;
        width: 100%;
    }
    .service-card .card-content {
        text-align: center;
        width: 100%;
    }
    .service-card .card-content h3 {
        font-size: 1.5rem;
    }
    .service-card .card-content p {
        font-size: 0.9rem;
    }
    .service-card .btn-light,
    .service-card .btn-outline-primary {
        width: 100%;
        text-align: center;
    }
    .find-home-card::after {
        display: none; /* Mobil'de efekti gizle */
    }

    .featured-listings-section .card-title {
        height: auto;
    }
    .featured-listings-section .card-text {
        height: auto;
    }

    .footer {
        padding: 40px 0 20px;
    }
    .footer .col-lg-3, .footer .col-md-4, .footer .col-md-2 {
        margin-bottom: 30px;
        text-align: center;
    }
    .footer .social-icons {
        justify-content: center;
        display: flex;
        margin-top: 20px;
    }
    .footer .list-unstyled a {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
 
    .counter-item .number {
        font-size: 2rem;
    }
    .counter-item .text {
        font-size: 0.9rem;
    }
    /* Emlak Hizmetleri Teaser Bölümü Responsive (ekstra küçük) */
    .service-card {
        padding: 20px;
    }
    .service-card .card-content h3 {
        font-size: 1.3rem;
    }
    .service-card .card-image {
        width: 60px;
        height: 60px;
    }
    .footer .social-icons a {
        font-size: 1.6rem;
    }
}