:root {
  --primary: #f26522;       /* Sem-Tol Kurumsal Turuncu */
  --primary-hover: #d9531e;
  --dark: #1e2229;          /* Antrasit gri */
  --bg-light: #f8f9fa;      /* Açık nötr zemin */
  --text-main: #2d3748;
  --text-muted: #718096;
  --border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; }
body { background-color: var(--bg-light); color: var(--text-main); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }

/* Header & Ortalı Navigasyon */
header { 
  background: #ffffff; 
  border-bottom: 3px solid var(--primary); 
  position: sticky; 
  top: 0; 
  z-index: 1000; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
}

.header-container {
  display: grid;
  grid-template-columns: 220px 1fr 120px;
  align-items: center;
  padding: 10px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-link { display: flex; align-items: center; text-decoration: none; }
.site-logo { 
  height: 52px; 
  max-width: 185px; 
  width: auto; 
  object-fit: contain; 
}

.centered-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
}

.centered-nav a { 
  text-decoration: none; 
  color: var(--dark); 
  font-weight: 600; 
  font-size: 15px; 
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease; 
  white-space: nowrap;
}

.centered-nav a:hover, .centered-nav a.active { 
  color: var(--primary); 
}

.centered-nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.centered-nav a:hover::after, .centered-nav a.active::after {
  width: 100%;
}

.lang-wrapper { display: flex; justify-content: flex-end; }
.lang-switcher { display: flex; gap: 5px; }
.lang-btn { background: #edf2f7; border: 1px solid var(--border); padding: 5px 12px; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 12px; text-decoration: none; color: var(--dark); display: inline-block; transition: 0.2s; }
.lang-btn.active { background: var(--dark); color: #ffffff; border-color: var(--dark); }
.lang-btn:hover:not(.active) { background: #e2e8f0; }

/* Banner / Sayfa Başlığı */
.page-banner {
  background: var(--dark);
  color: #ffffff;
  padding: 50px 20px;
  text-align: center;
  border-bottom: 3px solid var(--primary);
}
.page-banner h2 { font-size: 32px; margin-bottom: 8px; }
.page-banner p { color: #94a3b8; font-size: 15px; }

/* Slider Alanı */
.slider-container { 
  position: relative; 
  background-color: var(--dark); 
  background-size: cover; 
  background-position: center; 
  color: #ffffff; 
  min-height: 480px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  text-align: center; 
  padding: 80px 20px; 
  overflow: hidden; 
  transition: background-image 0.7s ease-in-out;
}

.slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 34, 41, 0.75) 0%, rgba(30, 34, 41, 0.88) 100%);
  z-index: 1;
}

.slide-content { 
  position: relative; 
  z-index: 2; 
  max-width: 850px; 
}
.slide-content h2 { font-size: 42px; margin-bottom: 18px; color: #ffffff; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.slide-content p { font-size: 19px; color: #e2e8f0; line-height: 1.6; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.slider-dots { position: absolute; bottom: 20px; z-index: 3; display: flex; gap: 10px; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--primary); transform: scale(1.2); }

/* Slider Yarı Saydam Ok Butonları */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  background: rgba(30, 34, 41, 0.45);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}
.slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(242, 101, 34, 0.4);
}
.slider-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.slider-arrow.prev { left: 25px; }
.slider-arrow.next { right: 25px; }

/* Bölümler & Genel Grid */
.section { padding: 60px 5%; max-width: 1200px; margin: 0 auto; width: 100%; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 28px; color: var(--dark); position: relative; }
.section-title::after { content: ''; width: 50px; height: 3px; background: var(--primary); display: block; margin: 10px auto 0; }

/* Başlık ve Sağ Link Bölümü */
.section-header-flex { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 30px; 
  border-bottom: 2px solid var(--border); 
  padding-bottom: 12px; 
}
.section-header-flex h2 { 
  font-size: 26px; 
  color: var(--dark); 
  margin: 0; 
  line-height: 1.2;
}
.view-all-link { 
  color: var(--primary); 
  text-decoration: none; 
  font-weight: 700; 
  font-size: 14px; 
  white-space: nowrap; 
}
.view-all-link:hover { 
  color: var(--primary-hover); 
  text-decoration: underline; 
}

/* ================= HİZMET KARTLARI ================= */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  align-items: stretch;
}

.service-card-link {
  text-decoration: none !important;
  color: inherit !important;
  display: flex;
  height: 100%;
  outline: none;
}

.service-card { 
  background: #ffffff; 
  border: 1px solid var(--border); 
  border-top: 4px solid var(--primary); 
  padding: 22px; 
  border-radius: 8px; 
  box-shadow: 0 4px 6px rgba(0,0,0,0.03); 
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none !important;
}

.service-card-thumb-wrap {
  width: 100%;
  height: 180px;
  min-height: 180px;
  overflow: hidden;
  border-radius: 5px;
  margin-bottom: 16px;
  background: #1e2229;
}

.service-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card h3 { 
  margin-bottom: 10px; 
  color: var(--dark) !important; 
  font-size: 18px; 
  line-height: 1.4;
  height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none !important;
  border: none !important;
}

.service-card p { 
  color: var(--text-muted) !important; 
  font-size: 14px; 
  line-height: 1.6; 
  height: 4.8em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 16px;
  text-decoration: none !important;
}

.service-read-more {
  margin-top: auto;
  align-self: flex-start;
  color: var(--primary) !important;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  border: none !important;
}

/* ================= HİZMETLER DETAY KARTLARI ================= */
.services-detailed-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
  gap: 30px; 
  align-items: stretch;
}

.service-detail-item { 
  background: #ffffff; 
  border: 1px solid var(--border); 
  border-radius: 8px; 
  overflow: hidden; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.04); 
  border-top: 4px solid var(--primary); 
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-detail-item img { 
  width: 100%; 
  height: 220px; 
  min-height: 220px;
  object-fit: cover; 
  display: block; 
}

.service-detail-body { 
  padding: 24px; 
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-detail-body h3 { 
  font-size: 20px; 
  color: var(--dark); 
  margin-bottom: 14px; 
  line-height: 1.35;
  text-decoration: none !important;
}

/* Galeri Grid */
.gallery-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.gallery-link-card { display: block; text-decoration: none; border-radius: 6px; overflow: hidden; position: relative; box-shadow: 0 3px 6px rgba(0,0,0,0.06); height: 210px; background: #e2e8f0; }
.gallery-link-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; display: block; }
.gallery-link-card:hover img { transform: scale(1.08); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(30, 34, 41, 0.5); opacity: 0; transition: opacity 0.3s; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; font-size: 13px; text-align: center; padding: 10px; }
.gallery-link-card:hover .gallery-overlay { opacity: 1; }

/* Blog Kartları & Detay Sayfası */
.blog-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.blog-card { background: #ffffff; border: 1px solid var(--border); border-radius: 6px; padding: 25px; box-shadow: 0 3px 6px rgba(0,0,0,0.04); display: flex; flex-direction: column; height: 100%; border-top: 4px solid var(--primary); }
.blog-card-img { width: 100%; height: 180px; object-fit: cover; border-radius: 4px; margin-bottom: 15px; }
.blog-date { font-size: 12px; color: var(--primary); font-weight: bold; margin-bottom: 8px; text-transform: uppercase; }
.blog-card h3 { color: var(--dark); font-size: 18px; margin-bottom: 10px; line-height: 1.4; text-decoration: none !important; }
.blog-card p { color: var(--text-muted); font-size: 14px; flex-grow: 1; }
.read-more { margin-top: 15px; color: var(--primary); font-weight: bold; font-size: 14px; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }

.blog-detail-container { max-width: 850px; margin: 40px auto; background: #ffffff; padding: 40px; border-radius: 8px; border: 1px solid var(--border); box-shadow: 0 4px 10px rgba(0,0,0,0.04); }
.blog-detail-header { margin-bottom: 25px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.blog-detail-title { font-size: 32px; color: var(--dark); margin: 10px 0; }
.blog-detail-meta { color: var(--primary); font-weight: 600; font-size: 14px; }
.blog-detail-image { width: 100%; max-height: 420px; object-fit: cover; border-radius: 6px; margin-bottom: 30px; }
.blog-detail-body { font-size: 16px; line-height: 1.8; color: #334155; white-space: pre-line; }
.back-btn { display: inline-block; margin-top: 30px; color: var(--primary); text-decoration: none; font-weight: bold; }
.back-btn:hover { text-decoration: underline; }

/* ================= REFERANSLAR BÖLÜMÜ (KUTULARIN DIŞINDAKİ OKLAR DÜZENİ) ================= */
.ref-slider-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0; /* Masaüstü 5 ve daha az logoda padding gerekmez */
  box-sizing: border-box;
}

/* 5'ten Fazla Logo Varsa Masaüstünde Oklar İçin Yan Boşluk Ayrılır */
.ref-slider-wrapper.has-desktop-slider {
  padding: 0 46px; /* Oklar için kutuların dışında net koruma alanı */
}

.ref-slider-container {
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Masaüstü Standart Düzen (5 veya daha az logoda) */
.ref-grid { 
  display: flex; 
  flex-wrap: nowrap; 
  gap: 16px; 
  justify-content: center; 
  align-items: center; 
  padding: 10px 4px; 
  width: 100%;
}

.ref-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  height: 85px !important;
  flex: 1 1 0 !important;
  max-width: 220px !important;
  min-width: 140px !important;
  box-sizing: border-box;
}

.ref-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  border-color: rgba(242, 101, 34, 0.4);
}

.ref-item img { 
  max-height: 48px; 
  max-width: 90%; 
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1 !important;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.22)) !important;
  transition: transform 0.3s ease; 
}

.ref-item:hover img { 
  transform: scale(1.06);
}

/* Referans Yön Okları (Kutuların Dışına Konumlandırılmış) */
.ref-nav-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 38px;
  height: 38px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--dark);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ref-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.ref-nav-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Oklar ayrılan yan boşluğun tam merkezindedir, kutuların içine girmez */
.ref-nav-btn.prev { left: 4px; }
.ref-nav-btn.next { right: 4px; }

/* 5 Logodan Fazla Olduğunda Masaüstü Slider Modu */
.ref-slider-wrapper.has-desktop-slider .ref-nav-btn {
  display: flex;
}

.ref-slider-wrapper.has-desktop-slider .ref-grid {
  justify-content: flex-start !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  padding: 10px 4px !important;
  scrollbar-width: none;
}
.ref-slider-wrapper.has-desktop-slider .ref-grid::-webkit-scrollbar {
  display: none;
}

.ref-slider-wrapper.has-desktop-slider .ref-item {
  scroll-snap-align: start;
  flex: 0 0 190px !important;
  width: 190px !important;
}

.ref-slider-wrapper.has-desktop-slider + .ref-slider-dots {
  display: flex;
}

.ref-slider-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.ref-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.ref-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* İletişim & Harita */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 35px; }
.contact-info, .contact-form { background: #ffffff; border: 1px solid var(--border); padding: 35px; border-radius: 6px; }
.contact-info h3, .contact-form h3 { margin-bottom: 20px; color: var(--dark); font-size: 20px; border-bottom: 2px solid var(--border); padding-bottom: 10px; }
.contact-info p { margin-bottom: 15px; font-size: 14px; color: var(--text-main); }
.contact-info p strong { color: var(--dark); display: inline-block; width: 120px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; font-family: inherit; }
.submit-btn { background: var(--primary); color: #fff; border: 0; padding: 12px 25px; border-radius: 4px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.submit-btn:hover { background: var(--primary-hover); }

.map-container { margin-top: 45px; background: #ffffff; padding: 15px; border-radius: 8px; border: 1px solid var(--border); box-shadow: 0 4px 10px rgba(0,0,0,0.04); }
.map-container h3 { font-size: 20px; color: var(--dark); margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.map-frame-wrapper { width: 100%; height: 420px; border-radius: 6px; overflow: hidden; }
.map-frame-wrapper iframe { width: 100%; height: 100%; border: 0; display: block; }
.alert-success { background: #dcfce7; color: #166534; padding: 12px 15px; border-radius: 6px; margin-bottom: 15px; border: 1px solid #bbf7d0; font-weight: 600; font-size: 14px; }

/* Hakkımızda & Ortalı 2 Sütun Makina Parkuru */
.about-box { background: #ffffff; border: 1px solid var(--border); border-left: 5px solid var(--primary); padding: 35px; border-radius: 6px; margin-bottom: 30px; font-size: 15px; }
.machine-park-section { margin-top: 50px; max-width: 900px; margin-left: auto; margin-right: auto; }
.machine-park-title { text-align: center; margin-bottom: 35px; }
.machine-park-title h3 { font-size: 26px; color: var(--dark); position: relative; display: inline-block; }
.machine-park-title h3::after { content: ''; width: 50px; height: 3px; background: var(--primary); display: block; margin: 10px auto 0; }
.machines-2col-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; justify-content: center; }
.machine-item-card { background: #ffffff; border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 6px; padding: 14px 20px; display: flex; align-items: center; gap: 14px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.machine-index { font-size: 13px; font-weight: 800; color: #ffffff; background: var(--dark); min-width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 4px; }
.machine-name { font-size: 15px; font-weight: 600; color: var(--dark); line-height: 1.4; }

/* Mobil Menü */
.mobile-toggle { 
  display: none; 
  flex-direction: column; 
  justify-content: space-around; 
  width: 32px; 
  height: 26px; 
  background: transparent; 
  border: none; 
  cursor: pointer; 
  padding: 0; 
  z-index: 1100; 
}
.mobile-toggle span { width: 100%; height: 3px; background-color: var(--dark); border-radius: 2px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); transform-origin: 1px center; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg); background-color: var(--primary); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg); background-color: var(--primary); }

.mobile-drawer { 
  position: fixed; 
  top: 0; 
  right: -100%; 
  width: 82%; 
  max-width: 340px; 
  height: 100vh;
  height: 100dvh;
  background: #ffffff; 
  z-index: 1050; 
  box-shadow: -5px 0 25px rgba(0,0,0,0.15); 
  display: flex; 
  flex-direction: column; 
  padding: 85px 24px calc(25px + env(safe-area-inset-bottom, 0px)); 
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1); 
  overflow-y: auto; 
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.open { right: 0; }
.mobile-drawer-overlay { position: fixed; inset: 0; background: rgba(30, 34, 41, 0.6); backdrop-filter: blur(4px); z-index: 1040; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.mobile-drawer-overlay.active { opacity: 1; pointer-events: auto; }

.mobile-nav-links { 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
  margin-bottom: 20px; 
  flex-shrink: 0; 
}

.mobile-nav-links a { 
  text-decoration: none; 
  color: var(--dark); 
  font-size: 16px; 
  font-weight: 700; 
  padding: 12px 14px; 
  border-radius: 6px; 
  transition: all 0.2s ease; 
  border-left: 3px solid transparent; 
}

.mobile-nav-links a:hover, .mobile-nav-links a.active { 
  color: var(--primary); 
  background: #fff5f0; 
  border-left-color: var(--primary); 
}

.mobile-drawer-footer { 
  margin-top: auto; 
  border-top: 1px solid var(--border); 
  padding-top: 18px; 
  padding-bottom: 12px;
  display: flex; 
  flex-direction: column; 
  gap: 14px; 
  flex-shrink: 0; 
}

.mobile-drawer-lang { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
}

.mobile-phone-btn { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px; 
  background: var(--dark); 
  color: #ffffff; 
  text-decoration: none; 
  padding: 12px; 
  border-radius: 6px; 
  font-size: 14px; 
  font-weight: bold; 
  transition: background-color 0.2s ease;
}

.mobile-phone-btn:hover {
  background: var(--primary);
}

/* Footer */
footer { background: var(--dark); color: #94a3b8; padding: 40px 20px 25px; font-size: 14px; margin-top: auto; border-top: 3px solid var(--primary); }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer-socials { display: flex; gap: 15px; align-items: center; }
.footer-social-link { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.15); color: #e2e8f0; text-decoration: none; padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; transition: all 0.3s ease; }
.footer-social-link svg { width: 18px; height: 18px; fill: currentColor; }
.footer-social-link:hover { background: var(--primary); border-color: var(--primary); color: #ffffff; transform: translateY(-2px); }
.footer-copy { color: #64748b; font-size: 13px; }

/* ================= MOBİL VE TABLET UYUMLULUK ================= */
@media (max-width: 900px) {
  .header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px 5%; 
  }
  .centered-nav, .lang-wrapper { display: none; }
  .mobile-toggle { display: flex; }
  .gallery-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .machines-2col-grid { grid-template-columns: 1fr; }
  body.no-scroll { overflow: hidden; }

  /* Başlık ve Link */
  .section-header-flex {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-bottom: 24px !important;
    padding-bottom: 12px !important;
  }
  .section-header-flex h2 {
    font-size: 22px !important;
    width: 100% !important;
    display: block !important;
  }
  .view-all-link {
    font-size: 13px !important;
    display: inline-block !important;
    margin-top: 2px !important;
  }

  /* MOBİLDE REFERANS ALANI: OKLAR KUTULARIN DIŞINA ALINDI */
  .ref-slider-wrapper {
    padding: 0 38px !important; /* Oklar için sağdan ve soldan kesin koruma boşluğu */
    width: 100% !important;
  }

  .ref-nav-btn {
    display: flex !important;
    width: 30px !important;
    height: 30px !important;
  }
  /* Oklar tam bu 38px boşluğun içine oturur, kutunun üstüne ASLA binmez */
  .ref-nav-btn.prev { left: 2px !important; }
  .ref-nav-btn.next { right: 2px !important; }

  .ref-slider-container {
    width: 100%;
    overflow: hidden;
  }

  .ref-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    gap: 12px !important;
    justify-content: flex-start !important;
    padding: 6px 2px 10px 2px !important;
    margin: 0 !important;
    width: 100% !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ref-grid::-webkit-scrollbar {
    display: none;
  }

  /* Ekrana tam 2 kutu sığar, kesilme ve taşma yapmaz */
  .ref-item {
    scroll-snap-align: start;
    width: calc((100% - 12px) / 2) !important;
    min-width: calc((100% - 12px) / 2) !important;
    max-width: calc((100% - 12px) / 2) !important;
    flex: 0 0 calc((100% - 12px) / 2) !important;
    height: 78px !important;
    padding: 8px 12px !important;
  }

  .ref-item img {
    max-height: 44px !important;
    max-width: 90% !important;
  }

  .ref-slider-dots {
    display: flex !important;
  }
}

@media (max-width: 550px) {
  .site-logo { height: 46px; max-width: 160px; }
  .gallery-grid-4 { grid-template-columns: 1fr; }
  .slide-content h2 { font-size: 26px; }
  .slider-arrow { width: 36px; height: 36px; }
  .slider-arrow.prev { left: 10px; }
  .slider-arrow.next { right: 10px; }
}