/* Ana Renk Paleti */
:root {
    --bs-primary: #000000; 
    --bs-secondary: #f8f9fa; 
    --bs-light: #ffffff;
    --bs-dark: #212529;
    --bs-warning: #ffc107; 
}

/* TÜM METİNLER İÇİN ALATA FONTU */
body {
    font-family: 'Alata', sans-serif;
}

/* Bootstrap'ın birincil rengini (primary) override ediyoruz */
.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: #003a7a; 
    --bs-btn-hover-border-color: #003a7a;
}

/* HEADER TEKLİF AL BUTONU STİLİ */
.btn-warning {
    border: 1px solid var(--bs-warning); 
    background-color: var(--bs-warning) !important;
    color: var(--bs-dark) !important;
    box-shadow: none; 
    transition: all 0.2s ease; 
    transform: none;
}

.btn-warning:hover {
    background-color: var(--bs-light) !important; 
    color: var(--bs-dark) !important; 
    border: 1px solid var(--bs-dark) !important; 
    box-shadow: none;
    transform: none;
}

/* LOGO BOYUTU VE HEADER KISITLAMASI */
.navbar-brand .logo-img {
    height: 55px;
    max-height: 55px;
    width: auto;
}

.navbar {
    min-height: 70px;
}

/* YENİ: fixed-top kullanıldığı için içeriğin kaymasını önlemek için boşluk ekliyoruz */
.header-padding {
    height: 70px; /* .navbar'ın min-height değeri ile eşleşmeli */
    display: block;
}

/* FOOTER LOGO BOYUTU */
.footer-logo-img {
    height: 65px;
    filter: none;
}

/* HEADER MENÜ İYİLEŞTİRMESİ (Sadece Alt Çizgi ve Kalınlaşma Yok) */
.navbar .nav-link {
    transition: color 0.3s ease, border-bottom 0.3s ease; 
    border-radius: 0; 
    padding: 0.5rem 1rem !important;
    font-weight: 500; 
    color: var(--bs-dark);
    border-bottom: 3px solid transparent; 
}

.navbar .nav-link:hover,
.navbar .nav-item .nav-link.active {
    color: var(--bs-primary) !important; 
    background-color: transparent !important; 
    font-weight: 500; 
    border-bottom: 3px solid var(--bs-primary); 
}

/* GÜNCELLENDİ: ANİMASYONLU AÇILIR MENÜLER (Header altından başlasın) */
.dropdown-menu {
    display: block; 
    visibility: hidden;
    opacity: 0;
    /* GÜNCELLENDİ: Menülerin üstten başlaması için -5px'ten 0'a gelsin */
    transform: translateY(-5px) scale(0.98); 
    transition: visibility 0.3s, opacity 0.3s, transform 0.3s;
    border: none;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    border-top: 5px solid var(--bs-warning); 
    padding: 0;
    min-width: 260px;
    /* Bootstrap'ın varsayılan top: 100% değerini kullanıyoruz */
}

.dropdown-menu.show {
    visibility: visible;
    opacity: 1;
    /* GÜNCELLENDİ: Menülerin tam olarak header altında açılması için translateY(0) */
    transform: translateY(0) scale(1);
    padding: 1.0rem; 
}
.dropdown-menu .dropdown-item {
    padding: 10px 20px;
}
.dropdown-menu .dropdown-item:hover {
    background-color: var(--bs-secondary);
    color: var(--bs-primary);
}

/* Multi-Level Dropdown (Nested Menu) Stili - Hizalama ve Şıklık İyileştirmesi */
.dropdown-menu .dropdown-submenu {
    position: relative;
}

/* Dropdown Alt Menüsü */
.dropdown-menu .dropdown-submenu > .dropdown-menu {
    /* Mükemmel hizalama için ayarlar */
    top: -8px; /* Dikey Hizalama */
    left: 100%; /* Yatay Hizalama */
    margin-left: 0px; 
    
    /* Geliştirilmiş Animasyon ve Görünüm */
    visibility: hidden;
    opacity: 0;
    transform: scale(0.95) translateX(10px); /* Hafif küçülerek ve sağa kayarak gelsin */
    transition: all 0.3s ease;
    
    /* Şıklık için aynı gölge ve genişlik */
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    border-top: 5px solid var(--bs-warning);
    min-width: 260px; 
}

/* GÜNCELLENDİ: Multi-Level Dropdown (Nested Menu) Mobil Tıklama Desteği */
.dropdown-menu .dropdown-submenu:hover > .dropdown-menu,
.dropdown-menu .dropdown-submenu.show > .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: scale(1) translateX(0); /* Tam boyutta ve yerinde görünür */
}

/* Dropdown-menu-end ile Sola Açılma (Ekran Taşkınlığını Önlemek İçin) */
.dropdown-menu .dropdown-submenu.dropend > .dropdown-menu {
    left: 100%;
    right: auto;
}

/* Mobil cihazlarda alt menülerin normal açılması */
@media screen and (max-width: 991px) {
    .dropdown-menu .dropdown-submenu > .dropdown-menu {
        left: 0;
        top: 100%;
        transform: translateY(10px) scale(1);
    }
    .dropdown-menu .dropdown-submenu:hover > .dropdown-menu {
        transform: translateY(0) scale(1);
    }
}


/* COPYRIGHT ALANI İÇİN ÖZEL ROZET STİLİ */
.arewedup-link {
    text-decoration: none !important; 
}

.badge-custom {
    display: inline-flex;
    align-items: center;
    /* Şık ve Sade Arkaplan */
    background: linear-gradient(90deg, #343a40, #5c636a); /* Koyu gri gradient */
    color: var(--bs-light); 
    padding: 6px 15px; 
    border-radius: 5px; 
    font-size: 0.85rem;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
    border: 1px solid #6c757d; 
    transition: all 0.3s ease;
}

.badge-custom:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    background: linear-gradient(90deg, #495057, #6c757d); 
}

.badge-premium-text {
    font-size: 0.6rem; 
    font-weight: 700;
    margin-right: 6px; 
    color: var(--bs-warning); 
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-arewedup-text {
    color: var(--bs-light); 
    font-size: 0.9rem; 
    font-weight: 800; 
    text-shadow: none; 
}

/* FOOTER STİLLERİ (Arka plan rengi: #f0f2f5) */
.footer-custom {
    background-color: #f0f2f5 !important; 
    color: var(--bs-dark) !important; 
}
.footer-custom a {
    color: var(--bs-dark) !important; 
    transition: color 0.3s ease;
}
.footer-custom a:hover {
    color: var(--bs-primary) !important; 
}
.footer-custom h5, .footer-custom p {
    color: var(--bs-dark) !important;
}

/* Footer İletişim Bilgileri Küçültme */
.footer-contact-small {
    font-size: 0.9rem; 
    margin-bottom: 0.5rem !important; 
    line-height: 1.5;
}

/* STATS BAR STİLİ */
#stats-bar .row div:last-child {
    border-right: none !important;
}
#stats-bar h4 {
    font-size: 1.5rem;
}


/* SLIDER STİLİ */
#hero-slider .carousel-item {
    height: 500px;
    background-size: cover;
    background-position: center center;
    position: relative;
}
#hero-slider .carousel-item img {
    object-fit: cover; 
    height: 100%;
    filter: brightness(60%); 
}
/* Sola Hizalama İçin Classlar */
#hero-slider .carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    padding-bottom: 0; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7); 
}
/* Sola hizalama için padding ve text-align ekliyoruz */
#hero-slider .carousel-caption .slider-content-wrapper {
    text-align: left; 
    max-width: 900px; 
    width: 100%;
}

#hero-slider .carousel-caption h2 {
    font-size: 3rem; 
    text-align: left !important; 
}
#hero-slider .carousel-caption p {
    text-align: left !important; 
}

@media (max-width: 768px) {
    #hero-slider .carousel-item {
        height: 350px;
    }
    #hero-slider .carousel-caption h2 {
        font-size: 2rem;
    }
    #hero-slider .carousel-caption p {
        font-size: 1rem;
    }
    /* Mobil cihazlarda ortala */
    #hero-slider .carousel-caption {
        justify-content: center;
    }
    /* Mobil cihazlarda ortala */
    #hero-slider .carousel-caption .slider-content-wrapper {
        text-align: center;
        padding-left: 0;
    }
    #hero-slider .carousel-caption h2,
    #hero-slider .carousel-caption p {
        text-align: center !important;
    }
}


/* İŞLEM AŞAMALARI KUTUCUKLARI STİLİ */
.process-card {
    transition: none; 
    transform: none; 
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden; 
    border-color: rgba(0, 0, 0, 0.1) !important; 
    min-height: 200px; 
}

.process-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.5); 
}

.process-card > * {
    position: relative;
    z-index: 2; 
}

.process-card h4, .process-card p {
    color: var(--bs-light) !important; 
}

/* İkon Stili (Çizgisiz, Sol Hizada) */
.process-icon-left i {
    color: var(--bs-warning) !important; 
    font-size: 2.2rem !important; 
    line-height: 1;
}

/* KARTLAR: Arka plan resimleri */
.process-step-1 {
    background-image: url('../images/process-bg-1.jpg'); 
}
.process-step-2 {
    background-image: url('../images/process-bg-2.jpg');
}
.process-step-3 {
    background-image: url('../images/process-bg-3.jpg'); 
}

/* İş Ortakları Logo Stili */
.partner-logo {
    max-height: 50px; 
    width: auto;
    opacity: 0.7; 
    transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%); 
}

.partner-logo:hover {
    opacity: 1; 
    filter: grayscale(0%); 
    transform: scale(1.05);
}

/* Hizmet Kartları Stili */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid var(--bs-secondary) !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05); 
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--bs-warning) !important;
}

/* Hizmet Kartı İkon Stili (Siyah ve Sol Hizalı) */
.service-icon {
    color: var(--bs-dark) !important; /* İkon rengini siyah/dark yap */
    font-size: 2.2rem !important; 
    line-height: 1;
}

.service-card .card-text {
    min-height: 40px; 
    line-height: 1.5;
    text-align: left !important; 
}

/* Blog Kartları Stili (Animasyonsuz) */
.blog-card {
    border: 1px solid var(--bs-secondary) !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05); /* Standart gölge */
}

.blog-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15); /* Hover'da daha belirgin gölge */
}

.blog-card .card-img-top {
    height: 180px; /* Görseli sabitleyelim */
    object-fit: cover;
}

/* Blog Badgeleri için Şık Stil */
.blog-badge {
    display: inline-block;
    padding: 0.35em 0.8em;
    font-size: 0.75rem; 
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 50rem; /* Tam yuvarlak köşeler */
    text-transform: uppercase;
    color: var(--bs-light);
}

.blog-badge.badge-car { /* Araç Sigortaları (Dark) */
    background-color: var(--bs-dark);
    color: var(--bs-white);
}
.blog-badge.badge-health { /* Sağlık Sigortaları (Dark) */
    background-color: var(--bs-dark);
    color: var(--bs-white);
}
.blog-badge.badge-home { /* Konut Sigortaları (Dark) */
    background-color: var(--bs-dark);
    color: var(--bs-white);
}

/* Blog Kart Butonları için Şık Stil */
.btn-blog-read {
    /* Ana Renge Boya */
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: var(--bs-light);
    font-size: 0.875rem; /* Küçük Buton */
    padding: 0.4rem 1.2rem;
    border-radius: 50rem; /* Tam yuvarlak */
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-blog-read:hover {
    /* Hover'da rengi hafifçe koyulaştır ve gölgeyi arttır */
    background-color: #003a7a; /* primary hover color */
    border-color: #003a7a;
    color: var(--bs-light);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}
.btn-blog-read i {
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}
.btn-blog-read:hover i {
    margin-left: 10px; /* Ok hover'da sağa kayar */
}

/* Blog Kartı Meta Bilgileri Stili */
.blog-meta-wrapper {
    /* Hafif Üst Çizgi */
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important; 
}

.blog-author-avatar {
    width: 45px; 
    height: 45px;
    object-fit: cover;
    border-radius: 50%; /* Oval/Daire şekli */
    border: 2px solid var(--bs-warning); /* Vurgu kenarlığı */
    flex-shrink: 0;
}

.blog-meta-info {
    line-height: 1.2;
}

.blog-meta-info .fw-bold {
    font-size: 0.9rem; /* Yazar adı */
}

.blog-meta-info .text-muted {
    font-size: 0.75rem; /* Tarih */
}

/* Scroll To Top Buton Stili (Görünürlük Düzeltildi) */
#scroll-to-top {
    position: fixed;
    bottom: 25px; 
    right: 25px;
    z-index: 1050; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    opacity: 0;
    pointer-events: none; 
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background-color: var(--bs-primary); /* Siyah Arka Plan */
    color: var(--bs-light); /* Beyaz Ok */
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 0;
}

#scroll-to-top:hover {
    background-color: #003a7a; 
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    color: var(--bs-light) !important; 
}

#scroll-to-top.show {
    opacity: 1;
    pointer-events: auto; 
}

#scroll-to-top i {
    font-size: 1.5rem;
}

/* WhatsApp Widget Stili */
#whatsapp-widget {
    position: fixed;
    bottom: 90px; 
    right: 25px;
    z-index: 1050;
    display: flex; 
    align-items: center; 
    justify-content: center;
    opacity: 0;
    pointer-events: none; 
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background-color: #25D366; /* WhatsApp Yeşil */
    color: var(--bs-light); /* Beyaz İkon */
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 0;
    text-decoration: none;
}

#whatsapp-widget:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

#whatsapp-widget i {
    font-size: 1.8rem;
}

#whatsapp-widget.show {
    opacity: 1;
    pointer-events: auto; 
}