/* Genel Ayarlar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #fdfdfd;
  color: #333;
}

/* Üst Menü */
header {
  background-color: #d27b11;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* Açılış (hero) */
.hero {
  position: relative;
  background: url("../img/klinik.jpg") center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  color: white;
  padding: 1rem 2rem;
  opacity: 0;
  animation: fadeInUp 1.5s ease-out forwards;
  animation-delay: 0.5s;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
}

/* Fade-in animasyon */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ana Sayfa Kartlar */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  background-color: #f7f7f7;
}

.card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1rem;
}

.card-content h3 {
  color: #d27b11;
  margin-bottom: 0.5rem;
}

.card-content .btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.2rem;
  background-color: #d27b11;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.card-content .btn:hover {
  background-color: #d27b11;
}

/* Footer */
footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 1rem;
}






.sayfa-baslik {
  background-color: #ddd;
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.sayfa-baslik h1 {
  font-size: 2rem;
  color: #d27b11;
}

.icerik {
  padding: 2rem;
}

.container {
  max-width: 800px;
  margin: auto;
  line-height: 1.7;
}

.container h2, .container h3 {
  margin-top: 1.5rem;
  color: #d27b11;
}

nav ul li a.active {
  text-decoration: underline;
}

.hakkimizda-icerik {
  position: relative;
}

.hakkimizda-icerik img {
  float: right;
  margin-left: 20px;
  margin-bottom: 10px;
  width: 250px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}





.hizmet-listesi {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.hizmet-karti {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #fafafa;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.hizmet-karti:hover {
  background-color: #f0fefc;
  transform: scale(1.02);
}

.hizmet-karti .baslik-ikon {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hizmet-karti h3 {
  color: #d27b11;
  margin: 0;
}

.hizmet-karti .ikon {
  font-size: 1.4rem;
}

.hizmet-karti .aciklama {
  display: none;
  margin-top: 1rem;
  color: #444;
}

.hizmet-karti.acik .aciklama {
  display: block;
}





.ekip-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.ekip-uye {
  text-align: center;
}

.ekip-uye img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #d27b11;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ekip-uye p {
  margin-top: 0.7rem;
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
}




.galeri-container {
  padding: 2rem;
  background-color: #f8f8f8;
}

.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.galeri-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.galeri-thumb:hover {
  transform: scale(1.05);
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.prev, .next {
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: white;
  padding: 20px;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
}

.prev {
  left: 30px;
}

.next {
  right: 30px;
}




/* İLETİŞİM SAYFASI */

.iletisim {
  padding: 2rem 0;
  background-color: #f9f9f9;
}

.iletisim-kutu {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.iletisim-kutu .bilgi,
.iletisim-kutu .form {
  flex: 1;
  min-width: 280px;
}

.iletisim-kutu .bilgi h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.iletisim-kutu .bilgi hr {
  margin-bottom: 1rem;
}

.iletisim-kutu .bilgi p {
  margin: 0.5rem 0;
  color: #333;
}

.iletisim-kutu .bilgi a {
  color: #d32f2f;
  text-decoration: none;
}

.iletisim-kutu .form h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.iletisim-kutu .form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.iletisim-kutu .form input,
.iletisim-kutu .form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: vertical;
}

.iletisim-kutu .form button {
  background-color: #b71c1c;
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.iletisim-kutu .form button:hover {
  background-color: #8e0000;
}

.harita iframe {
  width: 100%;
  height: 350px;
  border: none;
  border-radius: 10px;
}




.istatistikler {
  background-color: #e0f2f1;
  display: flex;
  justify-content: space-around;
  text-align: center;
  padding: 3rem 1rem;
  flex-wrap: wrap;
}

.istatistik {
  margin: 1rem;
  min-width: 120px;
}

.istatistik h2 {
  font-size: 2.5rem;
  color: #d27b11;
  transition: all 0.3s ease;
}

.istatistik p {
  font-size: 1.1rem;
  color: #333;
}





.aciklama-icerik {
  display: none; /* başlangıçta kapalı */
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-top: 10px;
}

.aciklama-icerik .metin {
  flex: 1;
}

.aciklama-icerik .resim {
  flex: 1;
  text-align: right;
}

.aciklama-icerik img {
  max-width: 250px;
  border-radius: 8px;
}




/* --- Galeri grid sabit kalsın, kartlar sıçramasın --- */
.galeri-container { padding: 1rem 0; }
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.galeri-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;     /* küçükken de kadraj sabit */
  object-fit: cover;       /* taşma yerine kırp */
  display: block;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.galeri-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

/* --- Lightbox: sayfa akışını ETKİLEMEYEN sabit kaplama --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;                 /* kapalı iken görünmesin */
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.lightbox.open { display: flex; } /* JS bu sınıfı ekliyor */

.lightbox-content {
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  text-align: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

#lightbox-caption {
  margin-top: 12px;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: .9;
}

/* Kapat ve oklar */
.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  background: transparent;
  color: #fff;
  border: 0;
  cursor: pointer;
  line-height: 1;
}

.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
  font-size: 32px;
  color: #fff;
  padding: 12px;
  user-select: none;
}

.lightbox .prev { left: 16px; }
.lightbox .next { right: 16px; }

.lightbox .prev:hover,
.lightbox .next:hover,
.close-btn:hover { opacity: .85; }





.social-links {
  margin: 15px 0;
  text-align: left; /* Mail adresiyle aynı hizada */
}

.social-links a {
  display: inline-block;
  margin-right: 10px;
}

.social-links img {
  width: 35px;
  height: 35px;
  transition: transform 0.3s ease;
}

.social-links img:hover {
  transform: scale(1.2);
}





/* =========================
   Hakkımızda Sayfası CSS
   ========================= */
body.hakkimizda-sayfa .sayfa-baslik {
  background-color: #ddd;
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

body.hakkimizda-sayfa .sayfa-baslik h1 {
  font-size: 2rem;
  color: #d27b11;
}

/* Genel içerik */
body.hakkimizda-sayfa .icerik {
  padding: 2rem;
}

body.hakkimizda-sayfa .container {
  max-width: 1000px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap; /* küçük ekranlarda alta geçsin */
}

/* Yazı kutusu */
body.hakkimizda-sayfa .hakkimizda-yazi {
  flex: 1;
  min-width: 300px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  animation: slideLeft 1s ease forwards;
  opacity: 0;
}

/* Fotoğraf kutusu */
body.hakkimizda-sayfa .hakkimizda-foto img {
  width: 430px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: slideRight 1s ease forwards;
  opacity: 0;
}

/* Alt kutular */
body.hakkimizda-sayfa .alt-kutular {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

body.hakkimizda-sayfa .kutucuk {
  width: 490px;       /* Sabit genişlik */
  height: 180px;      /* Sabit yükseklik */
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  animation: slideUp 1s ease forwards;
  opacity: 0;
  overflow: auto;     /* içerik taşarsa kaydırma olsun */
}

body.hakkimizda-sayfa .kutucuk h3 {
  color: #d27b11;
  margin-bottom: 1rem;
}

/* Animasyonlar */
@keyframes slideLeft {
  from { transform: translateX(-100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}






/* Menü Toggle (Hamburger) */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
}

/* Normalde masaüstünde menü görünsün */
nav ul {
  display: flex;
  list-style: none;
  transition: all 0.3s ease;
}

/* --- Mobil görünüm (yerine koy) --- */
@media (max-width: 768px) {
  /* Hamburger görünür olsun */
  .menu-toggle {
    display: block;
  }

  /* Mobil menü: başlangıçta gizli, JS ile "show" sınıfı eklendiğinde görünür */
  nav ul {
    position: absolute;
    top: 60px;              /* header yüksekliğine göre */
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: #d27b11;
    display: none;          /* başlangıçta gizli */
    z-index: 1002;          /* header(1000) üstünde olsun */
    padding: 10px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  }

  nav ul li {
    margin: 0;
    padding: 8px 0;
    text-align: center;
  }

  nav ul li a {
    font-size: 1.15rem;
    display: block;
    padding: 10px 12px;
  }

  /* JS ile toggle edilen sınıf menüyü açsın */
  nav ul.show {
    display: flex;
  }

  /* --------------- Hizmet kartları (SADECE MOBİL) --------------- */

  /* .aciklama-icerik öğesi masaüstünde zaten flex kullanılıyor.
     Burada sadece mobilde yönünü column yapıyoruz. */
  .aciklama-icerik {
    /* display = flex ya da inline-style JS ile gelebilir; burası flex davranışını belirler */
    flex-direction: column !important; /* mobilde alt alta gelsin */
    align-items: flex-start;           /* sola hizala */
    text-align: left;                  /* yazılar sola yaslı olsun */
    gap: 12px;
    margin-top: 10px;
  }

  .aciklama-icerik .metin {
    width: 100%;
  }

  .aciklama-icerik .resim {
    width: 100%;
    margin-top: 8px;
    display: flex;
    justify-content: center; /* istersen left yap, ama ortalamak genelde güzel görünür */
  }

  .aciklama-icerik .resim img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Eğer başka yerde .aciklama-icerik için display veya yön değiştiren kurallar varsa,
     mobilde bu kuralın geçerli olması için biraz daha yüksek öncelik sağlanır. */
}





.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white; /* Menü rengiyle uyumlu olsun */
  font-weight: bold;
  font-size: 1.2rem;
}

.logo img {
  height: 70px;   /* logonun boyutu */
  width: auto;
  margin-right: 10px; /* logo ile yazı arasında boşluk */
}





/* === Mobilde taşmayı önle: sadece ilk fotoğraf görünsün === */
@media (max-width: 768px) {
  .aciklama-icerik .resim img:nth-child(2) {
    display: none;
  }

  .aciklama-icerik .resim img {
    width: 100%;
    height: auto;
  }
}





/* ==============================
   Tablet (Hakkımızda kayma düzeltme)
   ============================== */
@media (min-width: 769px) and (max-width: 1024px) {
  body.hakkimizda-sayfa .container {
    flex-direction: column; /* yazı ve fotoğraf alt alta gelsin */
    align-items: center;
    text-align: center;
  }

  body.hakkimizda-sayfa .hakkimizda-yazi {
    width: 90%;
    text-align: left; /* istersen center da olabilir */
  }

  body.hakkimizda-sayfa .hakkimizda-foto img {
    width: 80%;
    max-width: 400px;
    margin-top: 20px;
  }

  body.hakkimizda-sayfa .alt-kutular {
    flex-direction: column;
    align-items: center;
  }

  body.hakkimizda-sayfa .kutucuk {
    width: 90%; /* 490px sabit genişlik yerine yüzdeyle */
    height: auto; /* sabit yükseklik yerine dinamik */
  }
}




/* Sadece tablette: fotoğrafı kutucuklarla aynı boyuta getir */
@media (min-width: 769px) and (max-width: 1024px) {
  body.hakkimizda-sayfa .hakkimizda-foto img {
    width: 490px;      /* kutucuk width ile aynı */
    max-width: 100%;   /* taşmayı engeller */
    height: 180px;     /* kutucuk height ile aynı */
    object-fit: cover; /* kırparak düzgün görüntü sağlar */
    border-radius: 12px;
    display: block;
    margin: 0;         /* istersen ortalamak için: margin: 0 auto; */
  }
}
