* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* Renk değişkenleri tanımlandı */
:root {
    --primary-color: #009688; /* Teal */
    --accent-color: #E3001C; /* Sağlık Bakanlığı Kırmızısı */
    --text-color: #343A40;
    --background-grey: #F8F9FA;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #FFFFFF;
    scroll-behavior: smooth;
}
a {
    text-decoration: none;
    color: var(--primary-color);
}
a:hover {
    color: #00796B; /* Ana Rengin koyusu */
}

/* Header ve Navigasyon */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Yeni Logo Konteyner Stilleri */
.logo-container {
    display: flex;
    align-items: center;
}
.header-logo {
    height: 40px; /* Logo boyutu */
    width: auto;
    margin-right: 10px;
}
.logo-text {
    font-size: 1.2em; /* Logo metni boyutu */
    font-weight: bold;
    color: white;
    line-height: 1.2;
}
/* Eskiden kullanılan .logo sınıfı artık .logo-text tarafından üstleniliyor */
/*.logo {
    font-size: 1.8em; 
    font-weight: bold;
    color: white;
}*/

.nav-links {
    list-style: none;
    display: flex;
}
.nav-links li a {
    color: white;
    padding: 10px 18px;
    display: block;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}
/* Menü hover ve aktif stil */
.nav-links li a:hover {
    background-color: var(--accent-color); /* Kırmızı hover */
}
.nav-links li a.active {
    background-color: var(--accent-color); /* Kırmızı aktif */
    color: white;
}
.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8em;
    cursor: pointer;
}

/* Bölüm Stilleri */
.content-section {
    padding: 80px 5%;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}
.grey-bg {
    background-color: #F8F9FA; /* Hafif Gri Arkaplan */
}
h2 {
    color: #009688;
    margin-bottom: 40px;
    font-size: 2.5em;
    font-weight: 600;
}
p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #555;
}

/* Hero Alanı - Slayt Gösterisi */
.hero {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    height: 600px; /* Sabit yükseklik, responsive ayarlarla değişebilir */
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi kapsayıcıya sığdırır */
}
.slide-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background-color: rgba(0, 150, 136, 0.7); /* Ana renk yarı şeffaf */
    color: white;
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Slayt Okları */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    z-index: 1;
}
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Slayt Noktaları */
.slider-dots {
    position: absolute;
    bottom: 20px; /* Okların altında, metnin altında */
    width: 100%;
    text-align: center;
    z-index: 2; /* Metin ve okların üzerinde görünmesi için */
}
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}
.active, .dot:hover {
    background-color: #717171;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}
@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}


/* Tablo Stili (Mesai Saatleri) */
.table-container {
    overflow-x: auto; /* Mobil için yatay kaydırma */
    margin: 0 auto;
    max-width: 900px;
}
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 1em;
    min-width: 600px; /* Mobil cihazlarda okunurluk için minimum genişlik */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden; /* Kenar yuvarlaklıkları için */
}
.schedule-table thead tr {
    background-color: #009688;
    color: #ffffff;
    text-align: left;
}
.schedule-table th, .schedule-table td {
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    text-align: left;
}
.schedule-table tbody tr:nth-of-type(even) {
    background-color: #f9f9f9;
}
.schedule-table tbody tr:hover {
    background-color: #e0f2f1; /* Hafif bir hover efekti */
}

/* Personel Kartları */
.personel-grid {
    display: grid;
    /* Masaüstünde 2 sütun */
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
    margin-top: 40px;
    max-width: 900px; /* 2x2 için ortalanmış maksimum genişlik */
    margin-left: auto;
    margin-right: auto;
}
.personel-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s ease;
    text-align: center
}
.personel-card:hover {
    transform: translateY(-5px);
}
.personel-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #009688;
}
.personel-card h4 {
    font-size: 1.4em;
    color: #009688;
    margin-bottom: 5px;
}
.personel-card h5 {
    font-size: 1em;
    color: #555;
    font-weight: normal;
}

/* Randevu Butonu */
/* Randevu Butonu - Hover kırmızı oldu */
.primary-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    margin-top: 20px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.primary-btn:hover {
    background-color: var(--accent-color); /* Kırmızı hover */
    transform: translateY(-2px);
}
.randevu-info {
    font-size: 1.2em;
    color: #333;
    margin-top: 25px;
}
/* WHATSAPP BUTONU STİLİ EKLENDİ */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    background-color: #25D366; /* WhatsApp yeşili */
    color: white !important;
    padding: 15px 30px;
    border-radius: 50px;
    margin-top: 20px;
    margin-bottom: 40px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.whatsapp-btn i {
    margin-right: 10px;
    font-size: 1.3em;
}
.whatsapp-btn:hover {
    background-color: #1DA851;
    transform: translateY(-2px);
}

/* LIGHTBOX (MODAL) STİLLERİ EKLENDİ */
.lightbox {
    display: none; /* Varsayılan olarak gizli */
    position: fixed;
    z-index: 9999; /* Her şeyin üstünde olmalı */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Yarı saydam siyah arkaplan */
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    position: relative;
    text-align: center;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 80vh; /* Görseli ekran yüksekliğinin %80'i ile sınırla */
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

#caption {
    margin: 15px auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1.2em;
}

/* Kapatma Butonu */
.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.close-btn:hover,
.close-btn:focus {
    color: #bbb;
}

/* Lightbox Okları */
.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0,0,0,0.5);
    border-radius: 0 3px 3px 0;
}
.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.lightbox-prev {
    left: 0;
    border-radius: 3px 3px 0 0;
}
.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(0,0,0,0.8);
}
/* Galeri */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 250px; /* Sabit yükseklik, görsellerin aynı boyutta görünmesi için */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 150, 136, 0.8); /* Ana renk yarı şeffaf */
    color: white;
    padding: 15px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    transform: translateY(100%); /* Başlangıçta gizli */
    transition: transform 0.3s ease;
}
.gallery-item:hover .overlay {
    transform: translateY(0); /* Hover'da görünür */
}

/* İletişim */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    text-align: left;
}
.email-item {
    grid-column: 1 / -1; /* Tüm sütunları kapla */
    /* Diğer contact-item stili (padding, box-shadow vb.) zaten bu sınıfa uygulanacak */
}
.contact-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.contact-item h3 {
    color: #009688;
    margin-bottom: 15px;
    font-size: 1.5em;
}
.contact-item p {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #555;
}
.contact-item a {
    color: #009688;
    font-weight: bold;
}
.map-container {
    height: 450px;
    border-radius: 10px;
    overflow: hidden; /* Harita kenarlarını yuvarlamak için */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.map-container iframe {
    border: 0;
    width: 100%;
    height: 100%;
}


/* Footer Stili */
footer {
    background-color: #343A40;
    color: #cccccc;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
    margin-top: 50px;
}
footer p {
    color: #cccccc;
    margin-bottom: 5px;
}

/* Yeni Footer Logo Stilleri */
.footer-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}
.footer-logo {
    height: 35px; /* Logo boyutu */
    width: auto;
    margin-right: 10px;
    filter: brightness(0) invert(1); /* Logoyu beyaz/açık renk yapmak için */
}
.footer-title {
    font-weight: bold;
    font-size: 1.1em;
    color: white !important; /* Beyaz renk zorla */
    margin: 0;
}


/* RESPONSIVE AYARLAR */
@media (max-width: 768px) {
    /* Header ve Navigasyon */
    .nav-links {
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; /* Header yüksekliği kadar aşağı */
        left: 0;
        background-color: #009688;
        display: none; /* Varsayılan olarak gizli */
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }
    .nav-links.active {
        display: flex; /* Açıldığında görünür */
    }
    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-links li:last-child {
        border-bottom: none;
    }
    .hamburger {
        display: block; /* Mobil cihazlarda görünür */
    }

    /* Hero Alanı (Slayt) */
    .hero {
        height: 400px; /* Mobil cihazlarda daha kısa */
    }
    .slide-text {
        font-size: 1.5em;
        padding: 15px;
    }
    .prev, .next {
        font-size: 24px;
        padding: 10px;
    }

    /* Genel Bölüm Ayarları */
    h2 {
        font-size: 2em;
    }
    .content-section {
        padding: 50px 5%;
    }

    /* Personel ve Galeri Gridi */
    .personel-grid, .gallery-grid, .contact-info-grid {
        grid-template-columns: 1fr; /* Tek sütuna düşür */
    }
    .personel-card, .gallery-item, .contact-item {
        margin: 0 auto; /* Ortala */
        max-width: 400px; /* Maksimum genişlik ver */
    }
}

@media (max-width: 480px) {
    .logo-text { /* Mobil için logoyu biraz küçültelim */
        font-size: 1em;
    }
    .header-logo {
        height: 30px;
    }
    .hero {
        height: 300px;
    }
    .slide-text {
        font-size: 1.2em;
        padding: 10px;
    }
    h2 {
        font-size: 1.8em;
    }
    .primary-btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .map-container {
        height: 300px;
    }
}