body, html {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  /* 🏆 ÇÖZÜM 1: TAM EKRAN YÜKSEKLİĞİ */
  overflow-x: hidden; 
  min-height: 100vh; /* html'in yüksekliğini ayarlamak için */
}

.hero-wrapper {
  height: 100vh;
  background-image: url('/static/images/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  transition: background-image 1s ease-in-out;
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.1);
  z-index: 1;
}

.topbar, .navbar, .hero {
  position: relative;
  z-index: 2;
  color: white;
}


.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px; /* topbar yüksekliği */
  background-color: rgba(0, 0, 0, 0.863);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px;
  font-size: 13px;
  z-index: 1001; /* navbar’dan üstte */
}

.topbar-left a {
  color: white;
  text-decoration: none;
  margin-right: 8px;
  font-weight: 500;
  transition: color 0.2s;
}

.topbar-left a:hover {
  color: #ffc107;
}

.topbar-right {
  font-weight: 400;
  margin-right: 20px;
  white-space: nowrap; /* taşmayı önler */
}
/* Mobil uyumlu düzenlemeler */
@media (max-width: 768px) {
  .topbar {
    overflow: hidden; 
    flex-direction: row;
    align-items: flex-start;
    padding: 8px 15px;
    font-size: 12px;
  }

  .topbar-left {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 5px;
  }

  .topbar-left a {
    margin-right: 5px;
    font-size: 12px;
  }

  .topbar-right {
    width: auto;
    display: block;       /* Flex kaldırıldı */
    text-align: right;   /* Ortala */
    margin-bottom: 5px;
    white-space: normal; 
    font-size: 11px;
  }

  .hero-wrapper {
    height: 60vh;
    background-position: top center;
  }
}
/* Daha küçük cihazlar için ek iyileştirme */
@media (max-width: 480px) {
  .topbar {
    padding: 6px 10px;
    font-size: 11px;
  }

  .topbar-left a {
    margin-right: 4px;
    font-size: 11px;
  }

  .hero-wrapper {
    height: 35vh;
  }
}

/* --- NAVBAR SABİTLEME BAŞLANGIÇ --- */
.navbar {
  position: fixed;
  top: 20px; /* topbar yüksekliği kadar boşluk */
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: rgba(0,0,0,0.6);
  box-sizing: border-box;
  z-index: 1000; /* topbar’ın altında */
  transform: translateY(0); /* navbar görünür */
  transition: transform 0.3s ease;
}

/* Sayfa kaydırıldığında navbar'a eklenecek sınıf */
.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.51); /* Kaydırıldığında daha koyu arka plan */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* İsteğe bağlı: hafif bir gölge ekle */
}
/* --- NAVBAR SABİTLEME SON --- */

.logo {
  font-size: 24px;
  font-weight: bold;
  color: white;
}

.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.menu li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.menu li a:hover {
  color: #ffc107;
}

.hero {
  text-align: center;
  margin-top: 100px;
}

.hero h1 {
  font-size: 48px;
  color: white;
}

.slider-dots {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active,
.dot:hover {
  background-color: #ffc107;
}
/* --- MOBİL UYUM: TABLET VE TELEFON --- */

@media (max-width: 768px) {
  .navbar {
    padding: 6px 15px;
    position: fixed; /* Hamburger ve menü için */
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 20px;
    max-width: 100%
  }

  .logo {
    font-size: 18px;
  }

  /* Menü başlangıçta gizli, açıldığında show sınıfı ile görünür */
  .menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    top: 60px; /* navbar altına */
    right: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    width: 200px;
    padding: 20px;
    border-radius: 4px;
    z-index: 9999;
  }

  .menu.show {
    display: flex;
  }

  /* Hamburger menü */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
    
  }

  .hamburger span {
    display: block;
    height: 3px;
    background-color: white;
    border-radius: 2px;
  }

  .hero h1 {
    font-size: 28px;
    margin-top: 60px;
    text-align: center;
  }

  .slider-dots {
    left: 8px;
    gap: 8px;
  }
}

/* Daha küçük telefonlar için */
@media (max-width: 480px) {
    
    /* 1. Global Box-Sizing Fix (Tüm mobil düzeni korumak için en iyisi) */
    /* Bu kuralı en üste, media query dışına da koyabilirsiniz. */
    * {
        box-sizing: border-box; 
    }
    
    .navbar {
        padding: 6px 10px; 
    }
    
    .logo {
        font-size: 16px; 
    }

    /* 2. Menü Konumlandırma ve Genişlik Düzeltmesi */
    .menu {
        display: none;
        flex-direction: column;
        gap: 10px;
        position: fixed;
        
        top: 65px; /* Topbar ve Navbar altından başlar */
        right: 0;   /* Sağ kenara sıfırla */
        left: 0;    /* Sol kenara sıfırla */
        width: 100%; /* Tam genişlik */

        /* Yeni: Dikey kaydırmayı etkinleştir (uzun menüler için) */
        height: calc(100vh - 65px); /* Ekranın kalanını kapla */
        overflow-y: auto;           /* Gerekirse kaydırma çubuğu çıkar */
        
        background-color: rgba(0, 0, 0, 0.95); /* Arka planı koyulaştırdık */
        padding: 20px;
        border-radius: 0; /* Köşeleri kaldırdık */
        z-index: 9999;
    }
    
    .menu a {
        display: block;
        width: 100%;
        padding: 10px 0;
    }

    .hero h1 {
        font-size: 22px;
        margin-top: 50px;
    }

    .slider-dots {
        left: 5px;
        gap: 6px;
    }
}
/* === HAKKIMIZDA === */
.about-section {
  background-color: rgb(236, 240, 204);
  padding: 80px 0;
  color: #333;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  text-align: center;
}

.about-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 1em;
  line-height: 1.5;
  color: #333;
  font-size: 16px;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 30px 10px 25px rgba(255, 193, 7, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.5);
  box-shadow: 20px 15px 35px rgba(255, 193, 7, 0.8);
}

.btn {
  background-color: #ffc107;
  padding: 10px 25px;
  color: black;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #e0a800;
}

.about-text .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 6px;
  background-color: #ffc107;
  color: #000;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.about-text .btn:hover {
  background-color: #e0a800;
}
/* === HAKKIMIZDA: MOBİL UYUM === */
@media (max-width: 1024px) {
  .about-container {
    gap: 30px;
    padding: 0 15px;
  }

  .about-text h2 {
    font-size: 28px;
  }

  .about-text p {
    font-size: 15px;
  }

  .about-image img {
    max-width: 400px;
  }

  .about-text .btn {
    padding: 10px 25px;
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column; /* Metin ve görsel alt alta */
    align-items: center;
  }

  .about-text, .about-image {
    flex: unset;
    width: 100%;
    text-align: center;
  }

  .about-text h2 {
    font-size: 26px;
  }

  .about-text p {
    font-size: 14px;
    line-height: 1.6;
  }

  .about-image img {
    max-width: 90%;
  }

  .about-text .btn {
    padding: 10px 25px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .about-section {
    padding: 50px 10px;
  }

  .about-text h2 {
    font-size: 22px;
  }

  .about-text p {
    font-size: 13px;
    line-height: 1.5;
  }

  .about-image img {
    max-width: 100%;
  }

  .about-text .btn {
    padding: 8px 20px;
    font-size: 13px;
  }
}
/* === GALERİ === */
.gallery-section {
  background-color: rgb(233, 235, 217);
  padding: 80px 0;
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  padding: 0 20px;
  flex-wrap: wrap;
  align-items: center;
}

.gallery-thumbnails {
  flex: 1.2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  align-content: start;
}

.gallery-thumbnails img {
  width: 200px;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 10px 4px 10px rgba(255, 193, 7, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-thumbnails img:hover {
  transform: scale(1.05);
  box-shadow: 10px 6px 20px rgba(255, 193, 7, 0.9);
}

.gallery-text {
  flex: 1;
  padding-left: 20px;
  max-width: 450px;
  margin-top: 20px;
  text-align: center;
}

.gallery-text h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.gallery-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

/* === GALERİ: MOBİL UYUM === */
@media (max-width: 1024px) {
  .gallery-container {
    gap: 30px;
    padding: 0 15px;
  }

  .gallery-thumbnails {
    gap: 12px;
  }

  .gallery-thumbnails img {
    width: 180px;
    height: 120px;
  }

  .gallery-text h2 {
    font-size: 26px;
  }

  .gallery-text p {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .gallery-container {
    flex-direction: column;
    align-items: center;
  }

  .gallery-thumbnails {
    width: 100%;
    grid-template-columns: repeat(3, 1fr); /* 2 kolon */
    justify-items: center;
  }

  .gallery-thumbnails img {
    width: 100%;
    max-width: 200px;
    height: 180px;
  }

  .gallery-text {
    padding-left: 0;
    max-width: 100%;
    margin-top: 20px;
    text-align: center;
  }

  .gallery-text h2 {
    font-size: 24px;
  }

  .gallery-text p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .gallery-thumbnails {
    grid-template-columns: 1fr; /* 1 kolon */
    gap: 10px;
  }

  .gallery-thumbnails img {
    max-width: 100%;
    height: auto;
  }

  .gallery-text h2 {
    font-size: 20px;
  }

  .gallery-text p {
    font-size: 13px;
  }
}


/* === HASTA GÖRÜŞLERİ === */
.reviews-section {
  background-color: rgb(236, 240, 204); /* Sarımsı arka plan */
  padding: 60px 20px;
  text-align: center;
}

.reviews-container {
  max-width: 1200px;
  margin: 0 auto;
}

.reviews-section h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: #333;
}

.reviews-list {
  display: grid;
  /* Daha küçük kartlar ve responsive yerleşim için */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Kartların minimum 280px olmasını sağlar */
  gap: 20px; /* Kartlar arası boşluk */
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

.review-card {
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4); /* Sarımsı gölge */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #222;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 180px; /* Kartlar için minimum yükseklik. Burayı yorumlarınızın uzunluğuna göre ayarlayabilirsiniz. */
  max-height: 250px; /* Kartlar için maksimum yükseklik ekledik, daha sabit durmaları için */
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(255, 193, 7, 0.7); /* Hover'da daha belirgin sarımsı gölge */
}

.review-card p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  
}

.stars {
  color: #ffc107; /* Sarı yıldızlar */
  font-size: 20px;
  margin-bottom: 8px;
  text-align: left;
}

.reviewer {
  font-weight: 600;
  color: #666;
  text-align: right;
}

#showMoreBtn {
  margin-top: 40px;
  padding: 12px 30px;
  background-color: #ffc107;
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#showMoreBtn:hover {
  background-color: #e0a800;
}

.hidden-review {
  display: none !important;
}

/* ===== Yorum Detay Modal ===== */
/* Bu bölüm zaten doğru ayarlı, sadece tekrar ediyorum emin olmak için */
.review-modal {
  display: none; /* Başlangıçta gizli olmalı */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.review-modal-content {
  background-color: #f0f0f0;
  max-width: 600px;
  width: 90%;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  text-align: left;
  font-size: 16px;
  line-height: 1.6;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.review-modal .close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #333;
}

/* Mobil uyumluluk için medya sorguları */
@media (max-width: 768px) {
  .reviews-section {
    padding: 40px 15px;
  }
  .reviews-list {
    grid-template-columns: 1fr; /* Mobil cihazlarda kartları tek sütun yap */
    gap: 15px;
  }
  .review-card {
    min-height: 160px; /* Mobil kartlar için daha da küçük min yükseklik */
    max-height: 220px; /* Mobil kartlar için daha küçük max yükseklik */
  }
  .reviews-section h2 {
    font-size: 28px;
  }
}

/* === TEDAVİLER === */
.treatments-section {
  background-color: rgb(239, 241, 218);
  padding: 80px 20px;
  text-align: center;
}

.treatments-section h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: #333;
}

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  max-width: 1100px;
  margin: 0 auto;
  gap: 30px;
  justify-content: center;
}

/* Gizli tedaviler için */
.treatment-card.hidden-card {
  display: none ;
}


/* Hover efektleri */
.treatment-card img {
  width: 100%;
  height: 180px;          /* Sabit yükseklik */
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s;
}

.treatment-card img:hover {
  transform: scale(1.05);
}

/* Daha fazla butonu */
.show-more-btn {
  display: block;
  margin: 30px auto 0;
  padding: 12px 30px;
  background-color: #e0a800;
  color: #000;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.show-more-btn:hover {
  background-color: #e0a800;
}

/* Tedavi kartları */
.treatment-card {
  text-decoration: none; /* Alt çizgiyi kaldır */
  color: inherit;        /* Rengi miras al, mor olmasın */
  display: block;
  text-align: center;
}

.treatment-card h3 {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #333;           /* Yazı rengi gri/normal */
  text-decoration: none; /* Alt çizgi yok */
  transition: color 0.3s;
}

.treatment-card:hover h3 {
  color: #e0a800; /* Hover ile sarı */
}

/* --- MOBİL UYUM --- */
@media (max-width: 1024px) {
  .treatments-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .treatments-section h2 {
    font-size: 24px;
    margin-bottom: 25px;
  }
}

@media (max-width: 480px) {
  .treatments-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }
}



/* === İLETİŞİM BÖLÜMÜ === */
.contact-section {
  background-color: #f8f9fa;
  padding: 80px 20px;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  max-width: 1100px;
  margin: auto;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Sol bilgi kutusu */
.contact-info {
  flex: 1;
  min-width: 320px;
  padding: 40px 30px;
  background: rgb(229, 238, 132);
  color: #3f3f3f;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h2 {
  font-size: 30px;
  margin-bottom: 20px;
  font-weight: 600;
  border-left: 4px solid #3f3f3f;;
  padding-left: 10px;
}

.contact-info p {
  margin: 10px 0;
  font-size: 17px;
  line-height: 1.6;
}

.contact-info a {
  color: #3f3f3f;
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Sağdaki harita kutusu */
.contact-map {
  flex: 1;
  min-width: 320px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: none;
  border-left: 3px solid #007bff;
}

/* Mobil uyum */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-info {
    text-align: center;
    border-radius: 0;
  }

  .contact-info h2 {
    border-left: none;
    border-bottom: 3px solid white;
    display: inline-block;
    padding-bottom: 5px;
  }

  .contact-map iframe {
    border-left: none;
    border-top: 3px solid #007bff;
  }
}



/* === footer === */

.site-footer {
  background-color: #12273b;
  color: #ffffff;
  text-align: center;
  /* ÖNEMLİ: Footer'a padding vermeyin, 0'a yakın tutun */
  padding: 0; 
}

/* YENİ KURALI EKLEYİN */
.footer-container {
    /* Burası, footer'ın içine 20px dikey boşluk ekler. */
    padding: 15px 0; 
}

html {
  scroll-behavior: smooth;
}

/* === Bize Sor Butonu === */
.contact-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ecb81b;
  color: rgb(0, 0, 0);
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.contact-button:hover {
  background-color: rgb(209, 231, 13);
  transform: translateY(-2px);
}

/* Tam ekran modal arkaplan */
.contact-modal {
  display: none; /* gizli başlıyor */
  position: fixed; /* sayfa scroll’dan bağımsız */
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5); /* arka plan koyulaştırma */
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Modal kutusu */
.contact-modal-content {
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  width: 450px;
  max-width: 95%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  font-family: 'Roboto', sans-serif;
  animation: fadeIn 0.3s ease;
}

/* Kapatma butonu */
.close-modal {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease;
}
.close-modal:hover {
  color: #e74c3c;
}

/* Form alanları */
#contactForm input,
#contactForm textarea,
#contactForm button {
  width: 100%;
  margin: 12px 0;
  padding: 12px 14px;
  font-size: 16px;
  border: 1.8px solid #ddd;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
}
#contactForm button {
  background-color: #12273b;
  color: white;
  border: none;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
#contactForm button:hover {
  background-color: #0f1f2e;
  transform: translateY(-2px);
}

.contact-info-text {
  font-size: 16px;
  font-weight: bold;
  color: #444;
  margin-bottom: 12px;
  text-align: center;
}


/* FadeIn animasyonu */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}


/* === VIDEOLAR BÖLÜMÜ === */
.videos-section {
  background-color: rgb(236, 240, 204);
  padding: 60px 20px;
  text-align: center;
}

.videos-section h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: #333;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
}

.video-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 10px 8px 18px rgba(255, 193, 7, 0.4);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 300px;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 10px 12px 24px rgba(255, 193, 7, 0.6);
}

.video-thumb {
  width: 100%;
  /* 16:9 yatay video için 1 / 1.777 veya 16 / 9 kullanılır. 
     Sizin istediğiniz 1:2 dikey için 1 / 2 kalabilir, bu alan tasarımı içindir. */
  aspect-ratio: 1 / 2; 
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.video-thumb .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  pointer-events: none;
}

.video-title {
  padding: 15px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  text-align: center;
  background-color: #fff;
}

/* Henüz video yoksa */
.no-videos {
  font-size: 18px;
  color: #666;
  margin-top: 20px;
}

/* === MODAL VIDEO PLAYER (DÜZELTİLMİŞ KISIM) === */
.video-modal {
  display: none; /* JS tarafından flex yapılır */
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.9);
  z-index: 3000;
  display: flex; /* Tarayıcıya flex olarak hizalanacağını bildirir */
  justify-content: center;
  align-items: center;
}

/* Modalı kapatma butonu: Tek, Yüksek Z-index'li kural */
.video-modal-close {
  position: absolute;
  top: 10px;
  right: 20px; 
  font-size: 40px; 
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 3001; /* Modal'dan (3000) daha yüksek */
  line-height: 1;
}

/* 🚀 Oynatıcı Konteyneri: EN STABİL DİKEY (9:16) ORAN */
#videoPlayerContainer {
  position: relative;
  /* Dikey video için max. genişlik */
  max-width: 400px; 
  width: 90vw;           
  
  /* Modern ve stabil en-boy oranı kuralı */
  aspect-ratio: 9 / 16; 
  height: auto; /* aspect-ratio'nun çalışması için ideal */
  
  overflow: hidden;
  border-radius: 10px;
  background-color: black; 
}

/* İçindeki iframe ve video elementlerinin container'ı doldurmasını sağla */
#videoPlayerContainer iframe,
#videoPlayerContainer video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Mobilde video dikey */
@media (max-width: 768px) {
  .video-modal-content {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
  }
  
  #videoPlayerContainer {
    /* Mobilde tam ekran dikey yapmak için aspect-ratio'yu sıfırlıyoruz. */
    aspect-ratio: auto; 
    width: 100%;
    height: 100%;
  }

  #videoPlayerContainer iframe,
  #videoPlayerContainer video {
    object-fit: contain; /* Mobilde video kesilmesin, siyah boşluk olsun */
  }
}
/* Gizli videolar */
.hidden-video {
  display: none;
}

/* Daha Fazla butonu (video için) */
.show-more-btn {
  display: block;
  margin: 20px auto 0;
  padding: 12px 30px;
  background-color: #e0a800;
  color: #000;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  text-align: center;
}

.show-more-btn:hover {
  background-color: #ffc107;
}

/* Mobilde: 4 video sonrası gizle */
@media (max-width: 768px) {
  .video-card:nth-child(n+5) {
    display: none;
  }
  .show-more-btn {
    margin-top: 15px;
  }
}


/* === SOL ALTA SABİT SOSYAL MEDYA BUTONLARI === */
.social-floating {
  position: fixed;
  bottom: 40px;
  left: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: hidden;
  background-color: #ffc107;
}

.social-icon img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

/* Hover efektleri */
.social-icon:hover img {
  transform: scale(1.2);
}

.social-icon.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-icon.tiktok:hover {
  background: linear-gradient(135deg, #25F4EE 0%, #FE2C55 100%);
}

/* YouTube hover */
.social-icon.youtube:hover {
  background: linear-gradient(135deg, #FF0000 0%, #f08080 100%);
}

/* Mobilde biraz küçültelim */
@media (max-width: 600px) {
  .social-icon {
    width: 40px;
    height: 40px;
  }

  .social-icon img {
    width: 20px;
    height: 20px;
  }

  .social-floating {
    left: 15px;
    bottom: 25px;
  }
}

/* TEDAVİ - AMELİYAT - HASTALIK MENU */

.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  /* Siyah transparan arka plan (Daha koyu ve şık bir etki) */
  background-color: rgba(0, 0, 0, 0.9); 
}

.modal-content {
  /* Arka planı koyu, metinleri kontrastlı yapmak için */
  background-color: rgba(0, 0, 0, 0.534); 
  margin: 10% auto; 
  padding: 30px; /* Biraz daha fazla dolgu */
  border: 1px solid #333; /* Koyu kenarlık */
  width: 85%; /* Biraz daha geniş */
  max-width: 1000px; /* Maksimum genişlik arttırıldı */
  border-radius: 12px;
  position: relative;
  max-height: 85vh; 
  overflow-y: auto; 
  /* Hafif bir kutu gölgesi ekleyelim */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.close-btn {
  color: #fff; /* Beyaz veya açık bir renk */
  float: right;
  font-size: 32px; /* Biraz daha büyük kapama butonu */
  font-weight: 300; /* Daha ince font */
  opacity: 0.8;
  transition: color 0.3s;
}

.close-btn:hover,
.close-btn:focus {
  color: #ffc107; /* Sarı hover */
  text-decoration: none;
  cursor: pointer;
  opacity: 1;
}

/* Ana Başlıklar (Modal Title - Tedaviler, Hastalıklar vb.) */
#modalTitle {
    color: #ffc107; /* Ana Başlık Sarı */
    font-size: 2.2em; /* Daha büyük */
    border-bottom: 2px solid #dfdbdb;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 700;
}


/* Kategori Başlıkları (Klinik Tedavi Başlıkları) */
#modalContent h4 {
    margin-top: 25px; /* Üstten daha fazla boşluk */
    border-bottom: 1px solid #f8f8f8;
    padding-bottom: 8px;
    color: #ffc107; /* Kategori Başlığı Sarı */
    font-size: 1.5em; /* Daha belirgin (Anabaşlıktan küçük) */
    font-weight: 600;
}

/* Alt Kategori Başlıkları (Eğer varsa, örn: KlinikTedaviKategori içinde alt başlık) */
#modalContent h5 {
    margin-top: 15px;
    color: #ffeb3b; /* Daha açık sarı */
    font-size: 1.2em;
    font-weight: 500;
}


/* Liste Yapısı */
#modalContent ul {
    list-style: none;
    padding: 0;
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px;
}

/* Liste Öğeleri (Link kutucukları) */
#modalContent ul li {
    background: #252525; /* Koyu gri/siyah zemin */
    border: 1px solid #444; 
    padding: 10px 15px;
    border-radius: 6px;
    transition: background-color 0.3s, border-color 0.3s;
    /* ✅ YENİ KURAL: Öğenin esnemesini (büyümesini) engelle ve sabit bir genişlik ver */
    flex-grow: 0; /* Büyüme (esneme) özelliğini kapat */
    flex-shrink: 1; /* Küçülmeye izin ver */
    flex-basis: 150px; /* Temel genişliği 300px olarak belirle (Yaklaşık 3 sütun için uygun) */
    
    /* İstenilen genişliği sağlamak için minimum ve maksimum genişlik ekleyelim */
    min-width: 250px; 
    max-width: 300px; 
    
    margin: 7.5px; /* ul içindeki gap yerine margin ekleyerek boşlukları daha iyi yönetebiliriz */
    /* gap: 15px; kuralını ul'den kaldırabilirsiniz, onun yerine margin kullandık */
}

/* Hover Efekti */
#modalContent ul li:hover {
    background-color: #333; /* Hafif aydınlanan koyu zemin */
    border-color: #ffc107; /* Sarı kenarlık */
}

/* Link Metni */
#modalContent ul li a {
    text-decoration: none;
    color: #f0f0f0; /* Beyazımsı metin rengi */
    font-weight: 500;
    display: block; /* Tam kutucuğa yayılması için */
    transition: color 0.3s;
}

/* Link Hover Metni */
#modalContent ul li a:hover {
    color: #ffc107; /* Sarı hover metin rengi */
}

/* knowledge-base-section (Anasayfa yeni 3 kutu) */
.knowledge-base-section {
    padding: 60px 0;
    text-align: center;
    background-color: rgb(239, 241, 219); /* Açık arka plan rengi */
}

.knowledge-base-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.knowledge-base-section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #333;
}

.knowledge-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.knowledge-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex: 1; /* Üç kutunun eşit genişlikte olmasını sağlar */
    min-width: 300px;
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.knowledge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.knowledge-card img {
    width: 100%;
    min-height: 280px; /* Sabit yükseklik */
    object-fit: cover; /* Resmi kutuya sığdırma */
    display: block;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7); /* Koyu şeffaf arka plan */
    color: #fff;
    padding: 15px;
    text-align: left;
}

.card-overlay h3 {
    margin: 0;
    font-size: 1.5em;
    color: #ffc107; /* Sarı başlık */
}

.card-overlay p {
    margin: 5px 0 0;
    font-size: 0.9em;
    color: #f0f0f0;
}

 /* ... */

  /* --- KNOWLEDGE BASE MOBİL DÜZENLEMELERİ (768px) --- */
  
  .knowledge-base-section {
    padding: 40px 0; /* Üst ve alt boşluğu azalt */
  }

  .knowledge-base-section h2 {
    font-size: 2em; /* Başlığı küçült */
    margin-bottom: 30px;
  }

  .knowledge-grid {
    flex-direction: column; /* Kutuları dikey olarak alt alta sırala */
    gap: 20px; /* Kutular arası boşluğu azalt */
  }

  .knowledge-card {
    flex: none; /* Flex özelliğini kaldır */
    min-width: 100%; /* Tam genişlik kullan */
  }

  .knowledge-card img {
    height: 200px; /* Resim yüksekliğini küçült */
  }

  .card-overlay {
    padding: 12px; /* İç boşluğu azalt */
  }

  .card-overlay h3 {
    font-size: 1.3em; /* Başlık boyutunu küçült */
  }

  .card-overlay p {
    font-size: 0.85em; /* Paragraf boyutunu küçült */
  }


/* Daha küçük telefonlar için (Örn: 480px altı) */
@media (max-width: 480px) {
    
    /* ... Navbar/Topbar stilleri ... */
    
    .knowledge-base-section {
        padding: 30px 0;
    }

    .knowledge-base-container {
        padding: 0 10px; /* Kenar boşluklarını azalt */
    }

    .knowledge-base-section h2 {
        font-size: 1.8em;
    }
}
