/* Temel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Bölümü */
.page-header {
    background-color: #0f172a;
    padding: 80px 0;
    text-align: center;
    color: white;
}

/* Hizmet Kartları Grid Yapısı */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Bilgisayarda 3 Kart Yan Yana */
    gap: 30px;
    padding: 60px 0;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
}

/* FOTOĞRAF BOYUTUNU SABİTLEYEN KRİTİK ALAN */
.card-image {
    width: 100%;
    height: 240px; /* Fotoğrafın yüksekliğini buradan kontrol ediyoruz */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fotoğrafın bozulmadan kutuya tam sığmasını sağlar */
}

.card-content {
    padding: 25px;
}

.card-icon {
    width: 45px;
    height: 45px;
    background: #eef2ff;
    color: #4f46e5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

/* Mobil Uyumluluk (Responsive) */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); } /* Tablette 2 tane */
}

@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; } /* Mobilde tekli */
}
/* Projelere Özel Ekstra CSS */
.project-card .card-image {
    position: relative;
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(79, 70, 229, 0.9);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.project-link:hover {
    gap: 12px;
    color: #3730a3;
}

.project-link i {
    width: 16px;
    height: 16px;
}
/* İletişim Bölümü Genel */
.contact-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.contact-container {
    max-width: 896px; /* max-w-4xl */
    margin: 0 auto;
    padding: 0 24px;
}

.contact-header {
    text-align: center;
    margin-bottom: 48px;
}

.contact-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
}

.contact-header p {
    color: #4b5563;
    margin-top: 16px;
}

/* Bildirim Mesajları */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 24px;
    position: relative;
    border: 1px solid transparent;
}

.alert-success { background: #d1fae5; border-color: #34d399; color: #065f46; }
.alert-amber { background: #fef3c7; border-color: #fbbf24; color: #92400e; }
.alert-error { background: #fee2e2; border-color: #f87171; color: #991b1b; }

/* Form Yapısı */
.contact-form {
    background-color: #f9fafb;
    padding: 32px;
    border-radius: 16px;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
}

.form-group { margin-top: 24px; }

.form-label {
    display: block;
    color: #374151;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    outline: none;
    box-sizing: border-box;
    transition: ring 0.2s;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Buton */
.btn-submit {
    background-color: #2563eb;
    color: white;
    font-weight: 700;
    padding: 16px 48px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-submit:hover {
    background-color: #1d4ed8;
    transform: scale(1.05);
}

/* Footer */
.main-footer {
    background-color: #111827;
    color: white;
    padding: 40px 0;
    text-align: center;
}
mark {
    background: rgba(99, 102, 241, 0.15); /* soft indigo */
    color: #1E293B;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 500;
}
 /* Arama sonuçlarındaki vurgu stili */
.hl {
    background: rgba(99, 102, 241, 0.18);
    color: #1E293B;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 500;
}
.detay-kategori {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0 25px;
    padding: 6px 14px;
    background: #EEF2FF;
    color: #1E293B; /* 🔥 YAZI RENGİ */
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.detay-kategori i {
    color: #6366F1; /* ikon rengi */
}
.search-wrapper {
    max-width: 600px;
    margin: 20px auto;
    position: relative;
}

#searchResults {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    margin-top: 8px;
    max-height: 350px;
    overflow-y: auto;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    z-index: 9999;
    display: none;
}

.search-item {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid #E2E8F0;
    text-decoration: none;
    color: #334155;
}

.hl {
    color: #000000 !important;
    font-weight: 800 !important;
}
/* Resim kapsayıcısını konumlandırma merkezi yapıyoruz */
.blog-image {
    position: relative; 
    border-radius: 15px;
    overflow: hidden;
}

/* Kategori etiketinin yeni stili */
.category-badge {
    position: absolute; /* Resmi baz alarak konumlan */
    top: 15px;          /* Üstten boşluk */
    left: 15px;         /* Soldan boşluk */
    background: rgba(77, 183, 173, 0.9); /* Turkuaz ve hafif şeffaf */
    color: white !important;
    padding: 6px 14px;
    border-radius: 50px; /* Tam yuvarlak köşeler */
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.category-badge:hover {
    background: #3a8e86;
    transform: translateY(-2px); /* Üzerine gelince hafif yükselme */
}
/* ✅ BENZER YAZILAR ALANI GENEL */
.benzer-yazilar-alan {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.benzer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

/* ✅ KART YAPISI */
.benzer-kart {
    text-decoration: none;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.benzer-kart:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

/* ✅ RESİM VE KATEGORİ ETİKETİ KOMBO */
.benzer-image-wrapper {
    position: relative;
    width: 100%;
    height: 170px;
    overflow: hidden;
}

.benzer-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.benzer-kart:hover .benzer-image-wrapper img {
    transform: scale(1.1);
}

/* Benzer kart içindeki kategori etiketi için özel ayar */
.benzer-kart .category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 10px;
    padding: 4px 10px;
    z-index: 5;
}

/* ✅ İÇERİK ALANI */
.benzer-info {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.benzer-info h4 {
    margin: 0 0 15px 0;
    font-size: 17px;
    color: var(--heading);
    line-height: 1.4;
    font-weight: 700;
}

/* Tarih ve Oku Linki Hizalaması */
.benzer-alt-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.benzer-info span {
    font-size: 12px;
    color: var(--text-muted);
}

.benzer-info .read-more {
    font-size: 13px;
    margin: 0;
}
.hizmet-card-image img {
    width: 100% !important;
    height: 220px !important; /* Standart bir yükseklik */
    object-fit: cover; /* Kartın içini tam doldurur ama orantılı keser */
}
/* Görselin yarım görünmesini engelleyen kısım */
.hizmet-img-container {
    width: 100%;
    height: 200px; /* Sabit yükseklik */
    overflow: hidden;
    background: #f8f9fa;
}

.hizmet-img-fit {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Görseli kesmez, tamamını kutuya sığdırır */
    padding: 10px; /* Kenarlardan hafif boşluk (isteğe bağlı) */
}

/* Devamını Oku Butonu Tasarımı */
.btn-devam {
    display: inline-block;
    margin-top: 15px;
    color: #3699ff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
}

.btn-devam:hover {
    color: #1e1e2d;
    padding-left: 5px; /* Hafif kayma efekti */
}

.header .btn-secondary{
  background:#198754;
  color:#fff;
  padding:10px 22px;
  border-radius:14px;
  font-weight:600;
  text-decoration:none;
  display:inline-block;
  margin-left:10px;
}

.header .btn-secondary:hover{
  opacity:0.9;
}
/* === Sticky Footer (tüm site) === */
html, body { height: 100%; }

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sayfalarda <main class="page"> kullanıyorsan: */
main.page{
  flex: 1;
}
