/* --------------------------------------------------------- */
/* 1. GENEL AYARLAR, FONT VE GÖRÜNÜM */
/* --------------------------------------------------------- */
body { 
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; 
    background-color: #f8fafc; /* bg-slate-50 */
    color: #1e293b; /* text-slate-800 */
    line-height: 1.5;
    overflow-x: hidden; /* Yatay taşmayı engelle */
    -webkit-font-smoothing: antialiased; /* Fontları daha pürüzsüz yapar */
    -moz-osx-font-smoothing: grayscale;
}

/* Container Genişlik Sabitleme */
.container { 
    max-width: 1200px; 
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
}

/* Metin Seçim Rengi (Marka Mavisi) */
::selection {
    background-color: #2563eb; /* blue-600 */
    color: #ffffff;
}

/* Resimlerin Kalitesini Koruma (Logolar İçin Önemli) */
img {
    image-rendering: -webkit-optimize-contrast; /* Chrome/Safari için netlik */
    max-width: 100%;
    height: auto;
}

/* Özel Scrollbar Tasarımı (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9; /* slate-100 */
}

::-webkit-scrollbar-thumb {
    background: #94a3b8; /* slate-400 */
    border-radius: 5px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb; /* blue-600 Hover durumunda mavi */
}

/* Linkli bölümlere giderken Header'ın üstte kalma payı */
.scroll-mt-header {
    scroll-margin-top: 120px; 
}

/* Tüm link ve butonlar için yumuşak geçiş */
a, button {
    transition: all 0.3s ease;
}

/* --------------------------------------------------------- */
/* 2. HEADER VE NAVİGASYON */
/* --------------------------------------------------------- */

/* Mobil Menü Açılma Animasyonu */
#mnav {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mnav.menu-open {
    max-height: 500px; /* Menü açıldığında maksimum yükseklik */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Header Aşağı Kaydırıldığında (JavaScript ile eklenen class) */
.header-scrolled {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff; /* Solid white for blog pages */
    box-shadow: 0 6px 18px -6px rgba(16,24,40,0.12);
    color: #0f172a; /* darker text */
    border-bottom: 1px solid #e6edf3;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    z-index: 9999; /* Her şeyin üstünde */
    transition: all 0.22s ease;
}

/* Ensure navigation links and logo look correct on solid header */
.header-scrolled #nav-menu,
.header-scrolled #nav-menu a {
    color: #0f172a !important;
}
.header-scrolled #brand-name,
.header-scrolled #brand-sub {
    color: #0f172a !important;
}
.header-scrolled .group img {
    /* keep logo vivid */
    filter: none !important;
}

/* On pages where we want a solid header (blog pages), hide the dark thin top bar */
body.solid-header #header-placeholder > div:first-child {
    display: none !important;
}

/* --- Smaller header variant for content pages (blog, posts) --- */
.header-scrolled .container {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
}

.header-scrolled .group img {
    max-height: 56px !important;
    width: auto !important;
    border-radius: 10px;
}

.header-scrolled #nav-menu a {
    padding-top: 0.375rem !important;
    padding-bottom: 0.375rem !important;
    font-size: 0.95rem !important;
}

.header-scrolled [data-role="tel"] {
    padding: .6rem .9rem !important;
    font-weight: 700;
}

@media (max-width: 768px) {
    .header-scrolled .group img { max-height: 48px !important; }
    .header-scrolled #nav-menu { display: none !important; }
}

/* --------------------------------------------------------- */
/* 3. MARKALAR SLIDER (SONSUZ KAYDIRMA) */
/* --------------------------------------------------------- */

.scroller {
    max-width: 100%;
    overflow-x: hidden; /* Mobilde taşmayı önler */
}

.scroller__inner {
    padding-block: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem; /* Logolar arası boşluk */
}

.scroller[data-animated="true"] {
    overflow: hidden;
    /* Kenarlarda yumuşak geçiş maskesi */
    -webkit-mask: linear-gradient(
        90deg,
        transparent,
        white 10%,
        white 90%,
        transparent
    );
    mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}

.scroller[data-animated="true"] .scroller__inner {
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll var(--_animation-duration, 40s)
        var(--_animation-direction, forwards) linear infinite;
}

.scroller[data-direction="right"] {
    --_animation-direction: reverse;
}

.scroller[data-direction="left"] {
    --_animation-direction: forwards;
}

.scroller[data-speed="fast"] {
    --_animation-duration: 20s;
}

.scroller[data-speed="slow"] {
    --_animation-duration: 60s;
}

/* Hover durumunda slider'ı durdur */
.scroller:hover .scroller__inner {
    animation-play-state: paused;
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 1rem)); /* Gap değeri kadar ek düzeltme */
    }
}

/* --- LOGO RENKLERİ İÇİN ZORUNLU AYAR (TAILWIND OVERRIDE) --- */
.scroller__inner img,
#slider-container img {
    filter: grayscale(0) !important; /* Siyah-beyazı iptal et */
    opacity: 1 !important;           /* Solukluğu iptal et, tam parlak yap */
}

/* --------------------------------------------------------- */
/* 4. DİĞER BİLEŞENLER VE EFEKTLER */
/* --------------------------------------------------------- */

/* Hakkımızda Sayfası Sayaç Hizalaması */
.counter-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    font-variant-numeric: tabular-nums; /* Rakamlar değişirken titremesin */
}

/* Hizmet Kartları İçin İnce Ayar */
.service-card:hover {
    transform: translateY(-5px);
}

/* Footer Link Hover Efekti */
footer ul li a {
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

footer ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #2563eb; /* blue-600 */
    transition: width 0.3s ease;
}

footer ul li a:hover::after {
    width: 100%;
}

/* ========================================================= */
/* 5. BLOG SAYFASI ÖZEL TASARIM (YENİ EKLENENLER) */
/* ========================================================= */

/* Banner / Hero Alanı */
.blog-hero {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 40px;
}

.blog-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.blog-desc {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 25px auto;
}

/* Arama Kutusu Özelleştirmesi */
.blog-search-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.blog-search-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.blog-search-wrapper input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border-radius: 50px;
    border: 2px solid #e2e8f0;
    background-color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.blog-search-wrapper input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Blog Grid Yapısı */
.blog-wrapper {
    /* Container genişliğini senin ana CSS'inden alacak, buraya ek ayar koymadım */
    padding-bottom: 80px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Blog Kart Tasarımı */
.blog-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.blog-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.blog-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.blog-content p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    margin-top: auto; /* Butonu en alta iter */
    color: #2563eb;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.read-more-link i {
    margin-left: 5px;
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.read-more-link:hover i {
    transform: translateX(3px);
}

/* Yükleniyor ve Sonuç Yok Uyarıları */
.loading-state, .no-results-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #64748b;
}