/* --- Değişkenler ve Reset (Medical Palette) --- */
:root {
    --sidebar-width: 270px;
    
    /* Renkler */
    --color-bg: #F4F7F6;        /* Çok açık gri-mavi (Hastane duvarı) */
    --color-sidebar: #FFFFFF;   /* Beyaz Sidebar */
    --color-text: #505050;      /* Koyu Gri */
    --color-heading: #0056b3;   /* Kurumsal Tıp Mavisi */
    --color-teal: #20c997;      /* Sağlık Turkuazı */
    --color-teal-hover: #1aa179;
    --color-blue: #007bff;      /* Canlı Mavi */
    --color-border: #DEE2E6;
    --color-red: #dc3545;       /* Acil Durum Kırmızısı */
    
    /* Fontlar */
    --font-heading: 'Heebo', sans-serif; /* Modern, Temiz */
    --font-body: 'Roboto', sans-serif;   /* Standart, Okunaklı */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-weight: 400;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; border-radius: 4px; }
ul { list-style: none; }

/* --- Ana Düzen --- */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar (Clean Medical) --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--color-sidebar);
    color: var(--color-text);
    position: fixed;
    height: 100vh;
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    border-right: 1px solid var(--color-border);
    box-shadow: 2px 0 10px rgba(0,0,0,0.03);
}

.brand {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--color-heading);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}
.plus-icon { color: var(--color-teal); font-size: 2rem; margin-left: 5px; line-height: 1; }

.nav-menu li { margin-bottom: 10px; }
.nav-menu a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #777;
    display: block;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}
.nav-menu a:hover, .nav-menu a.active {
    color: #fff;
    background-color: var(--color-heading);
    padding-left: 20px;
}

.sidebar-footer {
    margin-top: auto;
    font-size: 0.9rem;
    color: #999;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    text-align: center;
}
.email-link { display: block; margin-top: 5px; color: var(--color-heading); font-weight: 600; }

.emergency-box {
    margin-top: 20px;
    background-color: #ffebee;
    color: var(--color-red);
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ffcdd2;
}
.emergency-box span { display: block; font-size: 0.8rem; }
.emergency-box strong { font-size: 1.5rem; display: block; }

/* --- Sağ Ana İçerik --- */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    display: flex;
    flex-direction: column;
}

/* --- Hero & Header --- */
.hero-header, .page-header {
    height: 70vh;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 5px solid var(--color-teal);
}
.page-header.compact { height: 40vh; }

.overlay {
    background: linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,255,255,0.3));
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 80px;
    color: #333;
}

.hero-text { max-width: 700px; }

.hero-header h1, .page-header h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-heading);
}
.page-header .overlay { background: rgba(0, 86, 179, 0.8); align-items: center; justify-content: center; text-align: center; padding: 0; }
.page-header h1 { color: #fff; }

.teal-text { color: var(--color-teal); }

.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: #666;
}

/* --- İçerik Konteyneri --- */
.content-container {
    max-width: 1100px; 
    margin: 0 auto;
    padding: 80px 60px;
    width: 100%;
}

/* --- Tipografi ve Bölümler --- */
.text-section { margin-bottom: 70px; }
h2 { 
    font-family: var(--font-heading); 
    font-size: 2.5rem; 
    margin-bottom: 25px; 
    color: var(--color-heading);
    font-weight: 500;
    position: relative;
    padding-bottom: 10px;
}
h2::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 50px; height: 3px; background-color: var(--color-teal);
}

h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 15px; color: var(--color-heading); margin-top: 15px; }
p { margin-bottom: 20px; text-align: justify; font-size: 1.05rem; color: #555; }

.bg-light-blue {
    background-color: #E3F2FD;
    padding: 60px;
    border-radius: 8px;
    border-left: 5px solid var(--color-blue);
}

/* --- Grid ve Kartlar --- */
.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 70px;
}

.med-card {
    background: #FFF;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #EEE;
    transition: transform 0.3s;
    text-align: center;
}
.med-card:hover { transform: translateY(-5px); border-top: 3px solid var(--color-teal); }

.icon-circle { 
    width: 60px; height: 60px; 
    background: #F0F8FF; 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 2rem; 
    margin: 0 auto 20px auto; 
    color: var(--color-blue);
}

/* Split Layout */
.split-layout {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 70px;
}
.split-layout img { width: 45%; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.split-layout .split-content { width: 55%; }

/* Doctor Cards */
.doctor-card { text-align: center; background: #fff; padding: 20px; border-radius: 8px; border: 1px solid #eee; }
.doc-img { width: 100px; height: 100px; background: #ddd; border-radius: 50%; margin: 0 auto 15px auto; } /* Placeholder for doc image */
.doc-title { color: var(--color-teal); font-weight: bold; font-size: 0.9rem; margin-bottom: 5px; }
.doc-desc { font-size: 0.9rem; color: #777; }

/* --- Formlar --- */
.contact-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; }
.contact-info { background: var(--color-heading); color: #fff; padding: 40px; border-radius: 8px; }
.contact-info h3 { color: var(--color-teal); border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px; }
.contact-info p { color: #E0E0E0; }

.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 5px; font-weight: 500; color: var(--color-heading); font-size: 0.95rem; }
input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #CCC;
    background: #FFF;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 4px;
    transition: 0.2s;
}
input:focus, textarea:focus { border-color: var(--color-blue); outline: none; }

.btn {
    display: inline-block;
    padding: 14px 40px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 4px;
}
.btn-blue { background-color: var(--color-blue); color: #FFF; box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3); }
.btn-blue:hover { background-color: #004494; }
.btn-teal { background-color: var(--color-teal); color: #FFF; }
.btn-teal:hover { background-color: var(--color-teal-hover); }
.btn-outline-teal { background: transparent; border: 2px solid var(--color-teal); color: var(--color-teal); }
.btn-outline-teal:hover { background: var(--color-teal); color: #fff; }
.full-width { width: 100%; }

/* --- Yorumlar --- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.review-card {
    background: #FFF;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #EEE;
    border-left: 4px solid var(--color-teal);
}
.rating { color: #FFC107; margin-bottom: 10px; font-size: 1.2rem; }
blockquote { font-style: italic; color: #666; margin-bottom: 20px; font-size: 1rem; }
cite { font-weight: 600; font-size: 0.9rem; display: block; color: var(--color-heading); }

/* --- Footer --- */
.page-footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid #DDD;
    color: #888;
    font-size: 0.9rem;
    margin-top: auto;
    background: #FFF;
}

.blue-line { border: 0; height: 3px; background: var(--color-blue); margin: 20px 0; width: 80px; }

/* --- Mobil Menü Butonu --- */
.menu-toggle { display: none; }

/* --- Duyarlı Tasarım (Mobil) --- */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        width: 100%;
        transition: transform 0.3s ease;
        padding-top: 80px;
    }
    .sidebar.active { transform: translateX(0); }
    
    .main-content { margin-left: 0; width: 100%; }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1001;
        background: var(--color-heading);
        border: 1px solid #fff;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    .line {
        display: block;
        width: 22px;
        height: 2px;
        background: #fff;
    }

    .hero-header h1 { font-size: 2.8rem; }
    .content-container { padding: 50px 25px; }
    .split-layout, .contact-layout { display: block; }
    .split-layout img, .split-layout .split-content { width: 100%; }
    .split-layout img { margin-bottom: 20px; }
    .contact-info { margin-bottom: 30px; }
}