/* Theme variables and Bootstrap overrides */
:root {
  --ko-primary: #C81717; /* Brand red from logo */
  --ko-secondary: #313539; /* Dark gray from logo text */
  --ko-accent: #C81717; /* Use same red as accent */
  --ko-dark: #111316;
  --ko-light: #f8f9fa;
  --ko-body: #212529;
  /* Typography scale */
  --font-family-base: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --fs-body: 15px;
  --fs-sm: 13px;
  --fs-lg: 17px;
  --fs-h1: clamp(1.9rem, 1.5rem + 1.4vw, 2.5rem);
  --fs-h2: clamp(1.6rem, 1.3rem + 1.0vw, 2rem);
  --fs-h3: clamp(1.3rem, 1.15rem + 0.6vw, 1.5rem);
  --fs-h4: 1.125rem;
  --fs-h5: 1rem;
  --fs-h6: 0.95rem;
}

/* Typography */
body {
  font-family: var(--font-family-base);
  font-size: var(--fs-body);
  color: var(--ko-body);
}

.hide{display:none;}

/* Sticky footer layout */
html, body { height: 100%; }
body > .page { min-height: 100%; display: flex; flex-direction: column; }
.page-main { flex: 1 0 auto; }
.footer { flex-shrink: 0; }

h1, h2, h3, h4, h5, h6 { color: var(--ko-dark); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }

/* Utilities */
.bg-hero {
  background: linear-gradient(180deg, rgba(11,19,43,0.85), rgba(11,19,43,0.55));
  color: #fff;
}

/* Header offset utilities */
.header-offset {
  margin-top: 80px; /* Desktop header yüksekliği */
}

.page-content {
  min-height: calc(100vh - 80px); /* Viewport height - header height */
}

/* Yukarı kaydır butonu */
.scroll-to-top {
  position: fixed;
  bottom: 75px; /* WhatsApp ile arasındaki boşluğu ayarladım */
  right: 30px;
  width: 40px; /* Küçülttüm */
  height: 40px; /* Küçülttüm */
  background: rgba(49, 53, 57, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px; /* Icon boyutunu da küçülttüm */
  transition: all 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:hover {
  background: rgba(49, 53, 57, 1);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.show {
  display: flex;
  animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* WhatsApp butonu */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px; /* Küçülttüm */
  height: 40px; /* Küçülttüm */
  background: #25D366;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px; /* Icon boyutunu da küçülttüm */
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  text-decoration: none;
}

.whatsapp-btn:hover {
  background: #128C7E;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: white;
}

.whatsapp-btn:active {
  transform: translateY(-1px) scale(1.05);
}

/* Gallery Styles */
.gallery-section {
  padding: 80px 0;
  background: #f8f9fa;
}

/* Grid boşluklarını azalt */
.gallery-section .row {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 0.75rem;
}

/* Tüm sayfa boyutlarında 4'lü grid - Global Override */
.gallery-section .row .col-md-6,
.gallery-section .row .col-lg-4,
.gallery-section .row .col-xl-3 {
  flex: 0 0 25% !important;
  max-width: 25% !important;
  width: 25% !important;
}

/* Bootstrap responsive class'larını tamamen geçersiz kıl */
.gallery-section .row .col-md-6 {
  flex: 0 0 25% !important;
  max-width: 25% !important;
  width: 25% !important;
}

.gallery-section .row .col-lg-4 {
  flex: 0 0 25% !important;
  max-width: 25% !important;
  width: 25% !important;
}

.gallery-section .row .col-xl-3 {
  flex: 0 0 25% !important;
  max-width: 25% !important;
  width: 25% !important;
}

/* Daha güçlü override - CSS specificity artırıldı */
body .gallery-section .row .col-md-6,
body .gallery-section .row .col-lg-4,
body .gallery-section .row .col-xl-3 {
  flex: 0 0 25% !important;
  max-width: 25% !important;
  width: 25% !important;
}

/* En güçlü override - Bootstrap'i tamamen geçersiz kıl */
html body .gallery-section .row .col-md-6,
html body .gallery-section .row .col-lg-4,
html body .gallery-section .row .col-xl-3 {
  flex: 0 0 25% !important;
  max-width: 25% !important;
  width: 25% !important;
  min-width: 25% !important;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px; /* Radyus azaltıldı */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* Gölge azaltıldı */
  transition: all 0.3s ease;
  cursor: pointer;
  aspect-ratio: 1;
  margin-bottom: 8px; /* Resimler arası boşluk azaltıldı */
}

.gallery-item:hover {
  transform: translateY(-3px); /* Hover hareketi azaltıldı */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
  filter: grayscale(40%) brightness(0.7); /* Soluk gri görünüm */
}

.gallery-item:hover img {
  transform: scale(1.03); /* Scale azaltıldı */
  filter: grayscale(0%) brightness(1.1); /* Canlı renkler */
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(200, 23, 23, 0.6), rgba(49, 53, 57, 0.6)); /* Opacity azaltıldı */
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}



/* Lightbox Modal */
.modal-dialog {
  max-width: 100vw !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  transition: all 0.3s ease-in-out;
}

.modal-content {
  background: rgba(0, 0, 0, 0.7) !important; /* Şeffaflık artırıldı */
  border: none;
  border-radius: 0;
  width: 100%;
  height: 100%;
  transition: all 0.3s ease-in-out;
}



/* Kapama butonu container */
.modal-close-container {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1060;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Kapama butonu - ileri-geri butonları gibi */
.modal-close-overlay {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: normal;
}

.modal-close-overlay:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.modal-close-overlay:active {
  transform: scale(1.05);
}

.modal-body {
  padding: 0;
  position: relative;
}

#modalImage {
  max-height: 85vh; /* Ekran yüksekliğinin %85'i - daha büyük */
  max-width: 90vw; /* Ekran genişliğinin %90'i - daha büyük */
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  transition: all 0.3s ease-in-out;
}

/* Belgeler modal'ı için özel stil - height baz alınır */
#modalDocument {
  max-height: 90vh; /* Ekran yüksekliğinin %90'ı */
  max-width: none; /* Genişlik sınırı yok */
  width: auto; /* Genişlik otomatik */
  height: 90vh; /* Tam yükseklik */
  object-fit: contain;
  border-radius: 8px;
  display: block;
  transition: all 0.3s ease-in-out;
}


/* Navigation buttons */
/* 3 Sütunlu Grid Sistemi */
.modal-grid-container {
  display: grid;
  grid-template-columns: 60px 1fr 60px; /* Kenar sütunlar küçültüldü */
  grid-template-rows: 1fr;
  height: 100vh;
  width: 100%;
  align-items: center;
}

/* Sol Sütun */
.modal-left-column {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Orta Sütun - Resim */
.modal-center-column {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
}

/* Sağ Sütun */
.modal-right-column {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Navigation Buttons */
.modal-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: none;
  color: white;
  width: 40px; /* Küçültüldü - kapama butonu gibi */
  height: 40px; /* Küçültüldü - kapama butonu gibi */
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 1055;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px; /* Küçültüldü */
}

.modal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.modal-nav-btn:active {
  transform: scale(1.05);
}

.modal-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.modal-nav-btn:disabled:hover {
  transform: translateY(-50%) scale(1);
  background: rgba(255, 255, 255, 0.1);
}

/* Load More Button */
#loadMoreBtn {
  padding: 10px 24px; /* Küçültüldü */
  font-size: 0.95rem; /* Küçültüldü */
  border-radius: 6px; /* Küçültüldü */
  transition: all 0.3s ease;
  border: 2px solid var(--ko-accent); /* Zarif border eklendi */
  background: transparent; /* Şeffaf arka plan */
  color: var(--ko-accent); /* Accent rengi */
  font-weight: 500; /* Font weight eklendi */
  letter-spacing: 0.3px; /* Harf aralığı */
}

#loadMoreBtn:hover {
  transform: translateY(-1px); /* Hover hareketi azaltıldı */
  box-shadow: 0 4px 15px rgba(200, 23, 23, 0.25); /* Gölge küçültüldü */
  background: var(--ko-accent); /* Hover'da dolu arka plan */
  color: white; /* Hover'da beyaz yazı */
  border-color: var(--ko-accent); /* Border rengi korundu */
}

#loadMoreBtn:active {
  transform: translateY(0); /* Active'de hareket yok */
  box-shadow: 0 2px 8px rgba(200, 23, 23, 0.2); /* Active'de daha küçük gölge */
}

#loadMoreBtn:focus {
  outline: none; /* Default outline kaldırıldı */
  box-shadow: 0 0 0 3px rgba(200, 23, 23, 0.2); /* Focus ring */
  border-color: var(--ko-accent); /* Border rengi korundu */
}

#loadMoreBtn:focus:not(:focus-visible) {
  box-shadow: 0 0 0 3px rgba(200, 23, 23, 0.2); /* Focus ring korundu */
}

#loadMoreBtn:disabled {
  opacity: 0.6; /* Disabled'da şeffaflık */
  cursor: not-allowed; /* Disabled cursor */
  transform: none; /* Disabled'da hareket yok */
  box-shadow: none; /* Disabled'da gölge yok */
}

#loadMoreBtn:disabled:hover {
  background: transparent; /* Disabled hover'da arka plan değişmez */
  color: var(--ko-accent); /* Disabled hover'da renk değişmez */
  transform: none; /* Disabled hover'da hareket yok */
  box-shadow: none; /* Disabled hover'da gölge yok */
}

@media (max-width: 768px) {
  .header-offset {
    margin-top: 70px; /* Tablet header yüksekliği */
  }
  
  .page-content {
    min-height: calc(100vh - 70px); /* Viewport height - tablet header height */
  }
}

@media (max-width: 576px) {
  .header-offset {
    margin-top: 60px; /* Mobil header yüksekliği */
  }
  
  .page-content {
    min-height: calc(100vh - 60px); /* Viewport height - mobil header height */
  }
}
/* Fallback to SVG hero if JPG missing */
/* no svg fallback */

.text-accent { color: var(--ko-accent) !important; }
.bg-accent { background-color: var(--ko-accent) !important; }

/* Buttons */
.btn-primary {
  --bs-btn-bg: var(--ko-primary);
  --bs-btn-border-color: var(--ko-primary);
  --bs-btn-hover-bg: #0b5ed7;
  --bs-btn-hover-border-color: #0a58ca;
  --bs-btn-active-bg: #0a58ca;
}

.btn-accent {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--ko-accent);
  --bs-btn-border-color: var(--ko-accent);
  --bs-btn-hover-bg: #e05f30;
  --bs-btn-hover-border-color: #e05f30;
}

/* Navbar */
.navbar {
  height: 80px; /* Sabit header yüksekliği */
  min-height: 80px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand { font-weight: 700; letter-spacing: 0.4px; }

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

/* Zarif navbar toggler */
.navbar-toggler {
  border: none;
  padding: 6px 10px; /* Padding'i azalttım */
  border-radius: 6px; /* Radius'u azalttım */
  background: rgba(200, 23, 23, 0.1);
  transition: all 0.3s ease;
  width: 36px; /* Sabit genişlik */
  height: 36px; /* Sabit yükseklik */
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggler:hover {
  background: rgba(200, 23, 23, 0.2);
  transform: scale(1.05);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(200, 23, 23, 0.25);
}

.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(200, 23, 23, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  transition: all 0.3s ease;
  width: 18px; /* Icon boyutunu küçülttüm */
  height: 18px;
}

/* Dropdown menü arka planı */
.navbar-collapse {
  background: rgba(255, 255, 255, 0.95); /* Navbar ile aynı background */
  backdrop-filter: blur(20px);
  border-radius: 0 0 6px 6px; /* Sadece altta radius */
  margin-top: 10px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease-out;
  position: relative;
  z-index: 1000; /* Hero section'ın üzerine çıkması için */
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar-nav {
  gap: 10px;
}

.nav-link {
  padding: 12px 20px !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  color: var(--ko-dark) !important;
}

.nav-link:hover {
  background: rgba(200, 23, 23, 0.1);
  color: var(--ko-primary) !important;
  transform: translateX(5px);
}

.nav-link.active {
  background: rgba(200, 23, 23, 0.15) !important;
  color: var(--ko-primary) !important;
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--ko-secondary) 0%, var(--ko-secondary) 40%, var(--ko-primary) 60%, var(--ko-primary) 100%);
  min-height: 50vh; /* Yüksekliği azalttım */
  padding: 20px 0; /* Üst ve alttan 20px padding */
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(49, 53, 57, 0.95) 0%, 
    rgba(49, 53, 57, 0.8) 40%, 
    rgba(200, 23, 23, 0.8) 60%, 
    rgba(200, 23, 23, 0.95) 100%);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section .hero-content {
  color: white;
}

.hero-section .hero-content h1 {
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-section .hero-content .text-primary {
  color: #ffd700 !important; /* Altın sarısı vurgu */
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-section .hero-content .lead {
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-section .badge {
  background: rgba(255,255,255,0.2) !important;
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

/* Hero Slider */
.hero-slider {
  margin-top: 0; /* Margin'i kaldırdım */
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-slider .carousel {
  border-radius: 8px; /* Radius'u azalttım */
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255,255,255,0.2); /* Border'ı azalttım */
  max-width: 600px; /* Maksimum genişlik */
  margin: 0 auto; /* Ortalama */
}

.hero-slider .carousel-inner {
  width: 100%;
  height: 100%;
}

.hero-slider .carousel-item {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slider .carousel-item img {
  object-fit: cover;
  height: 400px; /* Yüksekliği arttırdım */
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
}

.hero-slider .carousel-indicators {
  bottom: 15px;
  margin-bottom: 0;
}

.hero-slider .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 4px; /* Radius'u azalttım */
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.hero-slider .carousel-indicators button.active {
  background-color: white;
  transform: scale(1.3);
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 8px; /* Radius'u azalttım */
  top: 50%;
  transform: translateY(-50%);
  margin: 0 25px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
}

.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1); /* Beyaz ok ikonları */
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-section .hero-content {
    margin-bottom: 35px; /* Orta ekranlarda yazı ile slider arasında boşluk */
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 70px; /* Tablet'te header yüksekliği */
    min-height: 70px;
  }
  
  .navbar-toggler {
    padding: 5px 8px;
    width: 32px; /* Tablet'te daha küçük */
    height: 32px;
  }
  
  .navbar-collapse {
    margin-top: 8px;
    padding: 15px;
    border-radius: 0 0 4px 4px; /* Tablet'te sadece altta radius */
  }
  
  .hero-section {
    min-height: 45vh; /* Tablet'te yüksekliği azalttım */
    padding: 40px 0; /* Tablet'te daha fazla padding */
  }
  
  .hero-section .hero-content {
    margin-bottom: 30px; /* Yazı ile slider arasında boşluk */
  }
  
  .hero-slider .carousel-item img {
    height: 320px; /* Tablet için yüksekliği arttırdım */
  }
  
  .hero-slider .carousel {
    max-width: 100%; /* Tablet'te tam genişlik */
  }
  
  /* Tablet'te buton boyutları */
  .scroll-to-top {
    width: 35px; /* Küçülttüm */
    height: 35px; /* Küçülttüm */
    bottom: 70px; /* WhatsApp ile arasındaki boşluğu ayarladım */
    right: 25px;
    font-size: 16px; /* Icon boyutunu da küçülttüm */
  }
  
  .whatsapp-btn {
    width: 35px; /* Küçülttüm */
    height: 35px; /* Küçülttüm */
    bottom: 25px;
    right: 25px;
    font-size: 18px; /* Icon boyutunu da küçülttüm */
  }
  
  /* Tablet'te load more butonu */
  #loadMoreBtn {
    padding: 8px 20px; /* Daha küçük */
    font-size: 0.9rem; /* Daha küçük font */
    border-radius: 5px; /* Daha küçük radius */
  }
  
  /* Tablet'te galeri */
  .gallery-section {
    padding: 60px 0;
  }
  
  .gallery-section .row {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
  }
  
  .gallery-item {
    aspect-ratio: 1;
    margin-bottom: 6px;
  }
  
  /* Tablet'te grid yapısı - 4 sütun kalsın */
  /* Global override kullanıldı - tekrar gerekmez */
  
  /* Tablet'te grid sütunları */
  .modal-grid-container {
    grid-template-columns: 55px 1fr 55px; /* Kenar sütunlar küçültüldü */
  }
  
  /* Tablet'te navigation butonları */
  .modal-nav-btn {
    width: 38px; /* Küçültüldü */
    height: 38px; /* Küçültüldü */
    font-size: 14px; /* Font size küçültüldü */
  }
  
  /* Tablet'te modal boyutları */
  #modalImage {
    max-width: 90vw;
    max-height: 80vh;
  }
  
    /* Tablet'te belgeler modal boyutları */
  #modalDocument {
    max-height: 85vh;
    height: 85vh;
  }
  
  .modal-close-overlay {
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .navbar {
    height: 60px; /* Mobilde header yüksekliği */
    min-height: 60px;
  }
  
  .navbar-toggler {
    padding: 4px 6px;
    width: 28px; /* Mobilde daha küçük */
    height: 28px;
  }
  
  .navbar-collapse {
    margin-top: 5px;
    padding: 12px;
    border-radius: 0 0 4px 4px; /* Mobilde sadece altta radius */
  }
  
  .nav-link {
    padding: 10px 15px !important;
    font-size: 0.95rem;
  }
  
  .hero-section {
    min-height: 40vh; /* Mobilde yüksekliği azalttım */
    padding: 30px 0; /* Mobilde padding */
  }
  
  .hero-section .hero-content {
    margin-bottom: 25px; /* Yazı ile slider arasında boşluk */
  }
  
  .hero-slider .carousel-item img {
    height: 280px; /* Mobil için yüksekliği arttırdım */
  }
  
  .hero-section .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-section .hero-content .lead {
    font-size: 1rem;
  }
  
  /* Mobilde modal boyutları */
  #modalImage {
    max-width: 95vw;
    max-height: 75vh;
  }
  
  /* Mobilde belgeler modal boyutları */
  #modalDocument {
    max-height: 80vh;
    height: 80vh;
  }
  
  
  .modal-close-overlay {
    top: 12px;
    right: 12px;
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .hero-slider .carousel {
    max-width: 100%; /* Mobilde tam genişlik */
  }
  
  /* Mobilde buton boyutları */
  .scroll-to-top {
    width: 30px; /* Küçülttüm */
    height: 30px; /* Küçülttüm */
    bottom: 65px; /* WhatsApp ile arasındaki boşluğu ayarladım */
    right: 20px;
    font-size: 14px; /* Icon boyutunu da küçülttüm */
  }
  
  .whatsapp-btn {
    width: 30px; /* Küçülttüm */
    height: 30px; /* Küçülttüm */
    bottom: 20px;
    right: 20px;
    font-size: 16px; /* Icon boyutunu da küçülttüm */
  }
  
  /* Mobilde load more butonu */
  #loadMoreBtn {
    padding: 6px 16px; /* En küçük */
    font-size: 0.85rem; /* En küçük font */
    border-radius: 4px; /* En küçük radius */
    border-width: 1.5px; /* Daha ince border */
  }
  
  /* Mobilde galeri */
  .gallery-section {
    padding: 40px 0;
  }
  
  .gallery-section .row {
    --bs-gutter-x: 0.4rem;
    --bs-gutter-y: 0.4rem;
  }
  
  .gallery-item {
    aspect-ratio: 1;
    margin-bottom: 5px;
  }
  
  /* Mobilde grid yapısı - 4 sütun kalsın */
  /* Global override kullanıldı - tekrar gerekmez */
  
  /* Mobilde grid sütunları */
  .modal-grid-container {
    grid-template-columns: 50px 1fr 50px; /* Kenar sütunlar küçültüldü */
  }
  
  /* Mobilde navigation butonları */
  .modal-nav-btn {
    width: 35px; /* Küçültüldü */
    height: 35px; /* Küçültüldü */
    font-size: 12px; /* Font size küçültüldü */
  }
  
  .gallery-item::after {
    font-size: 1.5rem;
  }
  

  
  .modal-header .btn-close {
    width: 28px;
    height: 28px;
  }
  
  /* Mobilde modal boyutları */
  .modal-content {
    max-width: 98vw;
  }
  
  #modalImage {
    max-width: 95vw;
    max-height: 80vh;
  }
}

/* Sections */
section.section {
  padding: 64px 0;
}

section.section .section-title {
  margin-bottom: 24px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(200,23,23,0.08);
  color: var(--ko-primary);
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.1);
}

.footer {
  background: #0b132b;
  color: #cfd3dc;
}

.footer a { color: #e9ecef; text-decoration: none; }
.footer a:hover { color: #fff; }

/* Helper */
.smallcaps { font-variant-caps: all-small-caps; letter-spacing: .06em; }

/* Branding */
.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* Stats Section */
.stat-number {
  font-size: 2rem; /* 2rem yapıldı */
  color: white; /* Beyaz yapıldı */
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-weight: 700; /* Daha kalın */
}

/* Stats hover effect */
.col-md-3:hover .stat-number {
  transform: scale(1.05);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive stats */
@media (max-width: 768px) {
  .stat-number {
    font-size: 1.8rem; /* Tablet'te küçültüldü */
  }
}

@media (max-width: 576px) {
  .stat-number {
    font-size: 1.6rem; /* Mobilde küçültüldü */
  }
  
  .col-md-3:hover .stat-number {
    transform: scale(1.02); /* Mobilde daha az büyütme */
  }
}



/* Constrain very wide logos inside navbar */
.navbar-brand .brand-logo { max-width: 220px; }

@media (max-width: 575.98px) {
  .brand-logo { height: 32px; }
  .navbar-brand .brand-logo { max-width: 160px; }
}

/* Benefits */
.benefit-item {
  padding: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  background: #fff;
}

/* Branches */
.branch-card { height: 100%; }
.branch-card .bi { color: var(--ko-primary); }

/* Responsive tweaks */
@media (max-width: 575.98px) {
  .display-4, .display-5 { font-size: 2rem; }
}

/* Branch cards enhanced styles */
.branch-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.branch-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.branch-card .card-body {
  padding: 1.25rem;
}

.branch-card h5 {
  color: var(--ko-primary);
  margin-bottom: 0.75rem;
}

.branch-card a {
  color: var(--ko-primary);
  transition: color 0.2s ease;
}

.branch-card a:hover {
  color: var(--ko-accent);
}

.branch-card .bi {
  color: var(--ko-primary);
}

/* Main office card special styling */
.branch-card.border-primary {
  border-width: 2px !important;
}

.branch-card.border-primary .card-body {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.02) 0%, rgba(13, 110, 253, 0.05) 100%);
}

/* Main office info section */
#mainOfficeInfo .bi {
  color: var(--ko-primary);
}

#mainOfficeInfo a {
  color: var(--ko-primary);
  transition: color 0.2s ease;
}

#mainOfficeInfo a:hover {
  color: var(--ko-accent);
}

/* Search input styling */
#branchSearch:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  border-color: var(--ko-primary);
}

.input-group-text {
  border-color: #dee2e6;
}

.input-group:focus-within .input-group-text {
  border-color: var(--ko-primary);
}

/* Clear button animation */
#clearSearchBtn {
  transition: all 0.2s ease;
}

#clearSearchBtn:hover {
  background-color: var(--ko-accent);
  border-color: var(--ko-accent);
  color: white;
}

/* Search results styling */
.branch-search-results {
  min-height: 200px;
}

/* Search suggestions styling */
.search-suggestions .btn {
  transition: all 0.2s ease;
  border-radius: 20px;
  font-size: 0.875rem;
}

.search-suggestions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Search input focus effects */
#branchSearch:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  border-color: var(--ko-primary);
}

.input-group:focus-within .input-group-text {
  border-color: var(--ko-primary);
  background-color: rgba(13, 110, 253, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  section.section {
    padding: 48px 0;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
}

.hero-buttons .btn-outline-secondary:hover {
  background: var(--ko-hero-text);
  color: var(--ko-hero-bg);
}

/* Designed by link hover effect */
.designed-by-link {
  transition: all 0.3s ease;
}

.designed-by-link:hover {
  color: white !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  text-decoration: none !important;
}

.designed-by-link:hover img {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}



/* Documents Section Styles */
.document-item {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.document-item:hover {
  transform: translateY(-5px);
}

.document-thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}

.document-thumbnail img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.document-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.document-item:hover .document-overlay {
  opacity: 1;
}

.document-item:hover .document-thumbnail img {
  transform: scale(1.1);
}

.document-overlay i {
  color: white;
  font-size: 2rem;
}


/* Brand Cards Styles */
.brand-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.brand-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-card:hover .brand-logo {
  transform: scale(1.1);
}

.brand-logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}

.brand-card .list-group-item {
  background: transparent;
  font-size: 0.9rem;
  color: var(--ko-secondary);
  transition: color 0.3s ease;
}

.brand-card:hover .list-group-item {
  color: var(--ko-primary);
}

.brand-card h5 {
  transition: color 0.3s ease;
}

.brand-card:hover h5 {
  color: var(--ko-primary);
}


/* Vehicles Section Background */
#vehiclesContainer {
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

#vehiclesContainer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23dee2e6" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.1;
  z-index: 0;
}

#vehiclesContainer > * {
  position: relative;
  z-index: 1;
}

/* Brand Cards Styles */
.brand-card {
  transition: all 0.3s ease;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(200, 23, 23, 0.15) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(200, 23, 23, 0.2) !important;
}

.brand-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.brand-card:hover .brand-logo {
  transform: scale(1.1);
  filter: drop-shadow(0 6px 12px rgba(200, 23, 23, 0.2));
}

.brand-logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}

.brand-card .list-group-item {
  background: transparent;
  font-size: 0.9rem;
  color: var(--ko-secondary);
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 2px 0;
}

.brand-card:hover .list-group-item {
  color: var(--ko-primary);
  background: rgba(200, 23, 23, 0.05);
  transform: translateX(5px);
}

.brand-card h5 {
  transition: all 0.3s ease;
  font-weight: 600;
  color: var(--ko-dark);
}

.brand-card:hover h5 {
  color: var(--ko-primary);
  transform: scale(1.05);
}

/* Responsive adjustments for vehicles section */
@media (max-width: 768px) {
  #vehiclesContainer {
    padding: 2rem 0;
    margin: 1rem 0;
    border-radius: 15px;
  }
  
  .brand-card {
    margin-bottom: 1rem;
  }
  
  .brand-logo {
    width: 60px;
    height: 60px;
  }
  
  .brand-logo-container {
    height: 60px;
  }
}
}



