body {
  background-color: #0f0f0f;
  color: #fff;
  font-family: 'Lato', sans-serif;
  margin: 0;
  padding: 0;
}

.logo-top {
  display: block;
  margin: 1rem auto;
  max-width: 300px;
}

.banner-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 1rem auto;
  flex-wrap: wrap;
}

.banner-buttons a img {
  max-height: 90px;
  height: auto;
}

.section-title {
  text-align: center;
  margin: 1.5rem auto;
}

.section-title img {
  max-width: 100%;
  height: auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem 3rem;
}

.danisman-card {
  background: #fff;
  color: #111;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  position: relative;
}

.danisman-card .card-left {
  flex: 1 1 50%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.main-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.slider-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.slider-track {
  display: flex;
  animation: slide 15s linear infinite;
}

.slider-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 3px;
}

@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.card-right {
  flex: 1 1 50%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(to bottom right, #f5c542, #e0a800);
  color: #000;
}

.badges span {
  margin-right: .5rem;
  font-size: .85rem;
}

.intro-text {
  margin: 1rem 0;
  font-size: .95rem;
  color: #333;
}

.contact {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: bold;
}

.instagram {
  font-size: .95rem;
  color: #c13584;
}

.detail-link {
  font-weight: bold;
  color: #000;
  text-decoration: none;
  font-size: .95rem;
}

.detail-link:hover {
  text-decoration: underline;
}

.location-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,0.8);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: .85rem;
  color: #000;
  font-weight: bold;
  z-index: 4;
}

.thumbs-wrapper {
  text-align: center;
  margin-top: 12px;
  position: relative;
  z-index: 3;
}

.thumbs {
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}

.thumb-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* ─── Küçük tablet ve büyük telefon (≥768px, <992px) ─── */
@media (min-width: 768px) and (max-width: 991px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .danisman-card {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }
  .card-left {
    background: linear-gradient(135deg,#d4a62e 30%,#f0d568 100%);
    height: 250px;
  }
  .card-left .main-img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; object-fit: cover; z-index: 1;
  }
  .card-left .slider-container {
    display: none;
  }
  .card-left .thumbs {
    display: flex;
    position: absolute;
    bottom: 6px; left: 6px;
    gap: .3rem;
    background: rgba(255,255,255,0.8);
    padding: 3px; border-radius: 4px; z-index: 2;
  }
  .card-left .thumbs img {
    width: 30px; height: 30px; object-fit: cover;
    border: 2px solid #fff; border-radius: 4px;
  }
  .card-left .overlay-shape,
  .card-left .info-overlay,
  .card-left .location-badge {
    display: none;
  }
  .card-right {
    background: #fff;
    padding: 1rem;
  }
}

/* ─── Masaüstü (≥992px) ─── */
@media (min-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(3,1fr);
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .danisman-card {
    grid-template-columns: 1fr 1fr;
    height: 300px;
  }
  .card-left {
    height: 300px;
  }
  .card-left .slider-container { display: none; }
  .card-left .thumbs {
    display: flex;
    position: absolute;
    bottom: 8px; left: 8px;
    gap: .3rem; background: rgba(255,255,255,0.8);
    padding: 4px; border-radius: 4px; z-index: 2;
  }
  .card-left .thumbs img {
    width: 40px; height: 40px;
    object-fit: cover; border: 2px solid #fff; border-radius: 4px;
  }
  .card-left .overlay-shape,
  .card-left .info-overlay,
  .card-left .location-badge {
    display: none;
  }
  .card-right {
    padding: 1rem 1.5rem;
  }
}

/* ─── Mobil (≤768px) — yatay kaydırmalı eski ayar ─── */
@media (max-width: 768px) {
  .cards-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .danisman-card {
    min-width: 280px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    flex-direction: column;
  }
  .card-left, .card-right {
    flex: 1 1 100%;
  }
  .slider-track {
    animation: none;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ─── Mobil (≤767px) — son düzen (tek sütun, 3 kart yüksekliği, overlay, wrap badge) ─── */
@media (max-width: 767px) {
  /* Grid’e dön, tek sütun */
  .cards-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem;
    padding: 0 0.5rem;
    width: 100%;
  }

  /* Kart boyutu */
  .danisman-card {
    position: relative;
    width: 100% !important;
    height: 18vh !important;
    overflow: hidden;
    margin: 0 auto !important;
  }

  /* Sağ blok gizle */
  .card-right {
    display: none !important;
  }

  /* Tam slider arka plan */
  .card-left {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,#d4a62e 30%,#f0d568 100%);
    overflow: hidden;
    padding: 0;
    margin: 0;
  }
  .card-left .main-img {
    display: none !important;
  }
  .card-left a {
    position: relative; z-index: 1;
    display: block; width: 100%; height: 100%;
  }
  .card-left .slider-container {
    display: block;
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden; z-index: 1;
  }
  .card-left .slider-track {
    display: flex; height: 100%;
    width: max-content;
    animation: scroll-left 20s linear infinite;
  }
  .card-left .slider-track .slider-img {
    flex: 0 0 auto;
    width: auto; height: 100%;
    object-fit: cover;
  }
  @keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  /* Overlay tint */
  .card-left .overlay-shape {
    display: block;
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 2;
  }

  /* Bilgi katmanı */
  .card-left .info-overlay {
    position: absolute;
    top: 5%;
    left: 2%;               /* %5 ➔ %2 ile sola kaydırdık */
    width: 75%;             /* genişliği hafif arttırıp taşmayı engelle */
    height: 90%;
    padding: 2px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    pointer-events: none;
    z-index: 3;

    /* ince ayar için ek kaydırma (isteğe bağlı) */
    transform: translateX(-4px);  
  }
  .card-left .info-top {
    display: flex; flex-direction: column;
    align-items: flex-start;
  }
  .card-left .info-top .danisman-name {
    color: #fff; /* beyaz */
    font-size: 1.3rem;
    text-decoration: none;
  }
  .card-left .info-top .whatsapp-mobile img {
    width: 2.2rem;
  }
  /* Telefon numarasını beyaz yap ve altı çizgiyi kaldır */
  .card-left .info-phone {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fff !important;
    text-decoration: none !important;
  }

  /* iOS’un otomatik tel: link rengini de beyaza çevir */
  a[href^="tel:"] {
    color: #fff !important;
    text-decoration: none !important;
  }

  /* İkonu da beyaz tut */
  .card-left .info-phone i {
    color: #fff !important;
  }
}

  /* Rozetler: wrap ve sıkıştır */
  .card-left .info-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px; margin-top: 4px;
  }
  .card-left .info-badges .badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Lokasyon sağ üst */
  .card-left .location-badge {
    top: 8px; right: 8px; left: auto;
  }

  /* Küçük resimler gizle */
  .card-left .thumbs {
    display: none !important;
  }
}
