/* -------------------------- Genel Sayfa Ayarları ------------------------------ */

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #e6ebfa;
    box-sizing: border-box;
}

/* ------------------------------- Navbar --------------------------------------- */

nav {
    position: absolute;
    top: 40px;
    right: 30px;
    width: 45%;
    background: transparent; /* Transparan arka plan */
    backdrop-filter: blur(50px); /* Blur efekti */
    padding: 15px;
    display: flex;
    justify-content: center;
    border-radius: 25px;
    z-index: 100;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Hafif gölge */
}

/* Menü listesi */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 20px;
}

nav ul li {
    display: inline;
}

/* Linkler */
nav ul li a {
    color: black;
    text-shadow: #333;
    font-size: 25px;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 20px;
    position: relative;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover Efekti: Yazı büyüme ve alt çizgi animasyonu */
nav ul li a:hover {
    transform: scale(1.1); /* Yazıyı büyüt */
    color: #0D98BA; /* Hafif renk değişimi */
}

/* Alt çizgi animasyonu */
nav ul li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0%; /* Başlangıçta görünmez */
    height: 3px;
    background: #0daaba; /* Çizgi rengi */
    transition: width 0.3s ease-out, left 0.3s ease-out;
}

/* Hover olunca çizgi ortadan yanlara genişlesin */
nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

/* Aktif link */
nav ul li a.active::after {
    width: 100%;
    left: 0;
}

.menu-toggle {
    display: none;
}

/* Aktif menü stili */
nav ul.menu li a.aktif {
    color: #0B5369;
    font-weight: bold;
  }

/* Mobil uyumlu tasarım */
@media (max-width: 768px) {
    /* Navbar */

    .menu-toggle {
        display: block;
        position: absolute;
        top: 5px;
        right: 10px;
        border: none;
        background: transparent;
        font-size: 30px;
        z-index: 101;
        color: #000;
        cursor: pointer;
    }

    nav {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 50%;
        padding: 0px;
    }

    nav ul.menu {
        flex-direction: column;
        display: none; /* Başlangıçta gizli */
        background: rgba(0, 0, 0, 0.8);
        padding: 25px;
        align-items: center;
        border-radius: 10px;
        position: absolute;
        top: 50px;
        right: 10px;
        width: 80%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    nav ul.menu.show {
        display: flex;
    }

    nav ul li a {
        font-size: 18px;
        padding: 10px;
        color: white;
    }

    /* Aktif menü stili */
    nav ul.menu li a.aktif {
        color: #0daaba;
        font-weight: bold;
      }
}

/* ------------------------------- Header --------------------------------------- */

.container-header {
    background: url(background66.jpg) no-repeat;
    background-size: cover;
    background-position: right top;
    border-radius: 10px; /* Köşeleri yuvarla */
    height: 100vh; /* Yüksekliği tam ekran yap */
    display: flex;
    align-items: top;
    justify-content: flex-start;
    color: white;
    text-align: left;
    padding: 50px;
}

.container-header h1 {
    font-size: 50px;
}

.container-header p {
    font-size: 25px;
}

/* Randevu Butonu */
.btn-randevu {
    display: inline-block;
    position: absolute;
    left: 50px;
    bottom: 60px;
    background: #0D98BA;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 22px;
}

.btn-randevu:hover {
    background: #0daaba;
}

/* Yakından tanı butonu*/
.btn-tani {
    display: inline-block;
    background: #0D98BA;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 22px;
    margin-top: 200px;
}

.btn-tani:hover {
    background: #0daaba;
}

@media (max-width: 768px) {

    .container-header {
      background: url(background-mobil.jpg) no-repeat;
      background-size: cover;
      background-position: center top;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      text-align: left;
      padding: 10px;
      height: 500px;
    }
  
    .container-header h1 {
      margin-top: 80px;
      font-size: 32px;
      width: 60%;
    }
  
    .container-header p {
      font-size: 20px;
      width: 60%;
    }

    .work {
      display: none;
    }
  
    .btn-tani {
      font-size: 18px;
      padding: 12px 24px;
      margin-top: 180px;
    }
  
    .btn-randevu {
      position: static;
      margin-top: 30px;
      margin-left: 20px;
      font-size: 18px;
      padding: 12px 24px;
      width: fit-content;
    }
}

/* --------------------------------- Uzmanlık Alanı ----------------------------------*/

.container-uzmanlik {
    background: linear-gradient(135deg, #fff, #FFB6C1);
    text-align: center;
    margin: 50px auto;
    max-width: 98%;
    padding: 20px 0 20px 0;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;  /* Taşmaları önlemek için */
    position: relative;
}

.container-uzmanlik h2 {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 30px;
}

.uzmanlik {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

/* Kaydırma alanı */
.kart-wrapper {
    display: flex;
    width: 200%; /* Resimleri iki kez tekrarlayarak sonsuz kaydırma yap */
    animation: slide 30s linear infinite; /* Animasyonu çalıştır */
} 

/* Kaydırma animasyonu */
@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Sol taraftan sağa kaydır */
    }
}

  /* Kart Tasarımı */
.uzmanlik-kart {
    background-color: #fbe7f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 300px;
    margin: 20px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
  
.uzmanlik-kart:hover {
    transform: translateY(-8px);
}
  
.kart-resim {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}
  
.kart-baslik {
    position: absolute;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.85);
    width: 100%;
    padding: 12px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    color: #6b0d57;
}
  
.kart-icerik {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
  
.kart-icerik h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #6b0d57;
}
  
.kart-icerik p {
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: #333;
}
  
.btn-detay {
    align-self: flex-start;
    background: none;
    border: none;
    color: #6b0d57;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-left: 24px;
    font-size: 0.95rem;
}
  
.btn-detay .circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #6b0d57;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
  
.btn-detay .arrow {
    position: absolute;
    top: 50%;
    left: 5px;
    width: 5px;
    height: 5px;
    border-right: 2px solid #6b0d57;
    border-bottom: 2px solid #6b0d57;
    transform: translateY(-50%) rotate(-45deg);
}
  
.button-detay-text {
    padding-left: 6px;
}

.btn-uzmanlik {
    position: relative;
    background: none;
    border: none;
    color: #6b0d57;
    font-weight: 600;
    cursor: pointer;
    padding-left: 24px;
    font-size: 1.2rem;
    margin-right: 20px;
}
  
.btn-uzmanlik .arrow {
    position: absolute;
    top: 50%;
    right: -15px;
    width: 10px;
    height: 10px;
    border-right: 2px solid #6b0d57;
    border-bottom: 2px solid #6b0d57;
    transform: translateY(-70%) rotate(45deg);
}

.btn-uzmanlik .arrow1 {
    position: absolute;
    top: 50%;
    right: 65px;
    width: 10px;
    height: 10px;
    border-right: 2px solid #6b0d57;
    border-bottom: 2px solid #6b0d57;
    transform: translateY(-70%) rotate(45deg);
}
  
 /* 🔧 MOBİL UYUMLULUK */
@media (max-width: 768px) {
    
    .kart-wrapper {
        overflow: auto; /* Taşmaları önlemek için */
        scroll-snap-type: x mandatory; /* Kaydırma için snap efekti */
        -webkit-overflow-scrolling: touch; /* iOS için kaydırma efekti */
        display: flex;
        scroll-behavior: smooth;
    }
  
    .kart-wrapper::-webkit-scrollbar {
        display: none; /* Kaydırma çubuğunu gizle */
    }

    .uzmanlik {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ------------------------------- Blog --------------------------------------- */

.home-blog-section {
    padding: 20px 20px;
    background-color: #f9f9f9;
    text-align: center;
}
  
.section-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}
  
.section-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
}
  
.blog-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
  
.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 300px;
    text-align: left;
}
  
.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
  
.blog-card h3 {
    font-size: 1.1rem;
    margin: 15px 15px 10px;
    color: #333;
}
  
.blog-card p {
    font-size: 0.95rem;
    color: #666;
    margin: 0 15px 15px;
}
  
.blog-card .read-more {
    display: block;
    margin: 0 15px 15px;
    color: #e91e63;
    font-weight: bold;
    text-decoration: none;
}
  
.blog-card .read-more:hover {
    text-decoration: underline;
}
  
.all-blogs-link {
    margin-top: 30px;
}
  
.all-blogs-link a {
    display: inline-block;
    background-color: #e91e63;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.95rem;
}
  
.all-blogs-link a:hover {
    background-color: #c2185b;
}
  
  /* Responsive */
@media (max-width: 768px) {
    .blog-cards {
      flex-direction: column;
      align-items: center;
    }
  
    .blog-card {
      width: 90%;
    }
}
  


/* ----------------------------- Footer alanı ------------------------------- */

.background-footer {
    background-color: #937dd3;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 2 sütun: sol logo, sağ ikonlar */
    align-items: center;
    margin-top: 20px;
    padding: 10px;
    width: auto;
}

.footer-logo {  
    display: flex;
    justify-content: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
}

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

.footer-nav ul li {
    display: inline;
}

.footer-nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.footer-nav ul li a:hover {
    color: #c13584; /* Instagram rengi gibi */
}

.social-icons {
    padding-right: 50px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-icons a {
    color: #333;
    font-size: 24px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #c13584; /* Instagram rengi gibi */
}

footer p {
    text-align: center;
    font-size: 12px;
    color: #333;
    margin: 20px 0;
}

@media (max-width: 768px) {
    
    .background-footer {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px 10px;
        row-gap: 15px;
    }

    .footer-nav {
        justify-content: center;
        margin-bottom: 10px;
    }

    .social-icons {
        justify-content: center;
        padding-right: 0;
    }
}
