* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f7f7f7;
  color: #222;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #c0392b;
  padding: 15px 30px;
  flex-wrap: wrap;
}

.top-bar-left {
  flex: 1;
}

.site-title {
  color: white;
  margin-right: 200px;
  font-size: 37px;
  font-weight: bold;
  position: absolute;
  top: 1.7%;
}


header {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #c0392b;
  padding: 15px 20px;
}

header h1 {
  color: white;
  font-size: 37px;
  font-weight: bold;
  margin-bottom: 15px;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

header nav ul li a {
  text-decoration: none;
  color: #fff;
  background-color: #c0392b;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
  background-color: #ff5c5c;
  color: white;
  box-shadow: 0 0 15px rgba(255, 92, 92, 0.8);
  transform: scale(1.05);
}

.page-header {
  padding: 30px 40px 10px 40px;
  font-weight: bold;
}

.page-header h1 {
  font-size: 60px;
  color: #c0392b;
  margin-left: 470px;
  margin-top: 50px;
}

.page-header p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #333;
  max-width: 900px;
  margin-left: 488px;
  margin-top: 15px;
}

.content-sections {
  padding: 40px;
  display: flex;
  justify-content: center;
}

.section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 700px;
  font-weight: bold;

}

.section h2 {
  font-size: 1.8rem;
  color: #c0392b;
  margin-bottom: 15px;
}

.eczane-list {
  list-style: none;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #222;
}

.eczane-list li {
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ccc;
}



/* Normal menü linkleri */
nav ul li a {
  color: #222;
  text-decoration: none;
  padding: 10px 15px;
  transition: 0.3s;
}

/* Medyamız linki özel */
nav ul li a.medyamiz-link {
  color: white; 
  background-color: #007bff; /* parlak mavi */
  border-radius: 6px;
  font-weight: bold;
}

/* Hover efekti de güzel olur */
nav ul li a.medyamiz-link:hover {
  background-color: #0056b3; /* daha koyu mavi */
}



.instagram-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ff6600;
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  z-index: 999;
}

.instagram-button:hover {
  background-color: #8928ca;
}

footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  margin-top: 229px;
}

.nobetci-info {
  font-size: 1rem;
  color: #d9534f;
  font-weight: 600;
  margin-top: 8px;
  font-style: italic;
}

/* Mobil uyum (telefonlar için) */
@media (max-width: 768px) {
  .site-title {
    position: static;
    margin: 0 auto;
    text-align: center;
    font-size: 28px;
  }

  header h1 {
    font-size: 28px;
    text-align: center;
  }



  nav ul li a.medyamiz-link {
    padding: 8px 14px;   /* mobilde biraz daha küçük */
    font-size: 1rem;
  }

  header nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 5px;
  }

  header nav ul li a {
    padding: 6px 10px;
    font-size: 0.9rem;
  }

  .page-header {
    padding: 20px;
    text-align: center;
  }

  .page-header h1 {
    font-size: 32px;
    margin: 20px auto;
  }

  .page-header p {
    font-size: 1rem;
    margin: 10px auto;
    max-width: 95%;
    text-align: center;
  }

  .content-sections {
    padding: 20px;
    flex-direction: column;
    align-items: center;
  }

  .section {
    max-width: 100%;
    padding: 20px;
    font-size: 0.95rem;
  }

  footer {
    margin-top: 60px;
    font-size: 0.8rem;
    padding: 15px;
  }

  .instagram-button {
    bottom: 15px;
    right: 15px;
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* Çok küçük ekranlar (500px altı) */
@media (max-width: 500px) {
  .site-title {
    font-size: 22px;
  }
nav ul li a.medyamiz-link {
    padding: 8px 14px;   /* mobilde biraz daha küçük */
    font-size: 1rem;
  }
  header h1 {
    font-size: 24px;
  }

  .page-header h1 {
    font-size: 26px;
    margin: 15px auto;
  }

  .page-header p {
    font-size: 0.9rem;
    margin: 8px auto;
    text-align: center;
  }

  .section h2 {
    font-size: 1.4rem;
  }

  header nav ul li a {
    padding: 5px 8px;
    font-size: 0.85rem;
  }
}
