:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --highlight-color: #1f1abc; /* Yeni hover çizgi rengi */
    --text-white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --sidebar-width: 320px;
    --navbar-height: 85px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Open Sans', sans-serif;
}

body {
    background-color: #f8f9fa;
    padding-top: calc(40px + var(--navbar-height));
    color: var(--text-dark);
}

/* ÜST NAVBAR */
.üst-navbar {
    background-color: var(--primary-color);
    color: var(--text-white);
    height: 40px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1100;
    font-size: 0.9rem;
}

.üst-navbar-altk {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 25px;
    height: 100%;
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.üst-navbar-altk i {
    font-size: 1rem;
    color: var(--text-white);
}

.üst-navbar-altk a, .üst-navbar-altk span {
    color: var(--text-white);
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    text-decoration: none !important;
}

.başlık-mobil {

    color: var(--text-dark);
    font-family: 'Poppins', 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none !important;
    transition: color var(--transition-speed) ease;
}

.başlık-mobil:hover {
    color: var(--primary-color);
    text-decoration: underline;
}


.üst-navbar-altk a:hover {
    color: #dfe6e9;
    transform: translateY(-1px);
}

/* ANA NAVBAR */
.navbar {
    background: white;
    box-shadow: 0 4px 12px var(--shadow-color);
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid #ecf0f1;
}

.navbar-altk {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--navbar-height);
}

/* LOGO */
.logo img {
    height: 120px;
    transition: all var(--transition-speed) ease;
}

/* TÜM BAĞLANTILAR */
a {
    text-decoration: none !important;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

/* MENÜ BAŞLIKLARI */
.navbar-başlıklar {
    display: flex;
    gap: 32px;
    align-items: center;
}

.navbar-başlıklar a,
.menu-item span {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    position: relative;
    padding: 12px 0;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed) ease;
    font-family: 'Poppins', sans-serif;
}

.navbar-başlıklar a::after,
.menu-item span::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 0;
    height: 3px; /* Kalınlık arttırıldı */
    background-color: var(--highlight-color); /* Yeni hover rengi */
    transition: width var(--transition-speed) ease;
}

.navbar-başlıklar a:hover,
.menu-item span:hover {
    color: var(--primary-color);
}

.navbar-başlıklar a:hover::after,
.menu-item span:hover::after {
    width: 100%;
}

/* ACİL SERVİS BUTONU */
/* ACİL SERVİS BUTONU - YENİ SADE VERSİYON */
.acil-servis {
    background-color: var(--accent-color);
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color); /* Kenar çizgisi ekledik */
}

.acil-servis:hover {
    background-color: white;
    color: var(--accent-color) !important;
    border-color: var(--accent-color);
}

/* MENÜ İTEM VE ALT MENÜ */
.menu-item {
    position: relative;
}

.menu-item .alt-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    padding: 12px 0;
    min-width: 220px;
    flex-direction: column;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    display: flex;
}

.menu-item:hover .alt-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.alt-menu a {
    padding: 10px 25px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-speed) ease;
    letter-spacing: 0.3px;
    font-family: 'Open Sans', sans-serif;
}

.alt-menu a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding-left: 28px;
}

/* HAMBURGER MENÜ */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.hamburger:hover {
    color: var(--accent-color);
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: white;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    padding: 30px;
    overflow-y: auto;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-close {
    align-self: flex-end;
    font-size: 1.5rem;
    margin-bottom: 25px;
    cursor: pointer;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.sidebar-close:hover {
    color: var(--accent-color);
}

.sidebar-logo {
    height: 280px;
    align-self: center;
    object-fit: contain;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-item {
    border-bottom: 1px solid #f1f1f1;
}

.sidebar-parent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.sidebar-parent:hover {
    color: var(--primary-color);
}

.sidebar-parent i {
    font-size: 1rem;
    transition: transform var(--transition-speed) ease;
}

.sidebar-submenu {
    padding-left: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.sidebar-submenu.active {
    max-height: 500px;
    padding-bottom: 12px;
}

.sidebar-submenu a {
    display: block;
    padding: 12px 0;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    font-family: 'Open Sans', sans-serif;
}

.sidebar-submenu a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.sidebar-parent.active i {
    transform: rotate(180deg);
}

/* MOBİL ACİL SERVİS BUTONU */
/* MOBİL İÇİN */
.sidebar-menu .acil-servis {
    margin-top: 15px;
    text-align: center;
    background-color: var(--accent-color);
    color: white !important;
    padding: 12px;
    border-radius: 5px;
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
}

.sidebar-menu .acil-servis:hover {
    background-color: white;
    color: var(--accent-color) !important;
}
/* RESPONSIVE TASARIM */
@media screen and (max-width: 992px) {
    .navbar-başlıklar {
        gap: 25px;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --sidebar-width: 300px;
        --navbar-height: 75px;
    }
    
    .navbar-başlıklar {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .navbar-altk {
        padding: 0 30px;
    }
    
    .logo img {
        height: 130px;
    }
    
    .üst-navbar-altk {
        padding: 0 30px;
        gap: 20px;
    }
}


.alt-başlık-özel {
  font-size: 2.5rem;
  margin-bottom: 50px;
  background: linear-gradient(135deg, #2c3e50 0%, #e74c3c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  position: relative;
}




@media screen and (max-width: 576px) {
    :root {
        --sidebar-width: 280px;
    }
    
    .sidebar {
        padding: 25px;
    }
    
    .üst-navbar-altk {
        justify-content: center;
        flex-wrap: wrap;
        padding: 5px 15px;
        gap: 15px;
    }
    
    .üst-navbar-altk a span {
        font-size: 0.8rem;
    }
    
    .üst-navbar-altk i {
        font-size: 0.9rem;
    }
}

/* iPhone 11 ve küçük ekranlar için */
@media (max-width: 414px) {
    .birbir .bi-clock {
        display: none !important;
    }
}