/* Genel Yapı */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f8f9fb;
}

/* Mobil için genel iyileştirmeler */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  .hizmetler-container {
    background: transparent;
  }
  
  .sidebar, .content {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
}

.hizmetler-container {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 15px;
}

/* Sidebar */

.sidebar {
  flex: 0 0 350px;
  order: 0;
  align-self: flex-start;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  gap: 50;
}

.sidebar-title {
  font-size: 1.5rem;
  color: #b30000;
  margin-bottom: 15px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  font-weight: bold;
}

.menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu li {
  margin-bottom: 10px;
}

.menu li a {
  display: block;
  padding: 10px 15px;
  background: #f2f2f2;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.menu li a:hover {
  background: #b30000;
  color: #fff;
}

.menu li.active a {
  background: #b30000;
  color: #fff;
}

/* İçerik */
.content {
  flex: 1;
  order: 1;
  background: #fff;
  padding: 30px;
  border-radius: 8px;

}

/* Başlık */
.content h2 {
  font-size: 2rem;
  color: #001f3f;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

/* Paragraflar */
.content p {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Görsel Alanı */
.gorsel-alani {
  margin-top: 30px;
  text-align: center;
}

.gorsel-alani img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* WhatsApp Kutusu */
.teklif-box {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e9ecef;
}

.toggle-title {
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  background: #fff;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#whatsappList {
  display: none;
}

#whatsappList.visible {
  display: block;
}

.wa-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.wa-item img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.wa-item-content a {
  color: #25D366;
  font-size: 0.85rem;
  text-decoration: none;
}

.wa-item-content a:hover {
  color: #128C7E;
  text-decoration: underline;
}

.btn-teklif {
  display: block;
  background: #3498db;
  color: white;
  padding: 12px;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  margin-top: 10px;
}

.btn-teklif:hover {
  background: #2980b9;
}

/* Mobil Uyum */
@media (max-width: 768px) {
  .hizmetler-container {
    flex-direction: column;
    padding: 0 15px;
    margin: 20px auto;
    gap: 20px;
  }

  .sidebar {
    flex: 1 1 100% !important;
    order: 1 !important;
    margin-bottom: 20px !important;
    /* Mobilde sidebar'ın düzgün görünmesi için */
    position: relative !important;
    z-index: 100 !important;
    display: block !important; /* Varsayılan olarak görünür */
    width: 100% !important;
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1) !important;
  }

  /* Mobilde sidebar gizleme sınıfı */
  .sidebar.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  .content {
    flex: 1 1 100%;
    order: 2;
    padding: 20px;
  }

  .content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .content p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .sidebar-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .menu li a {
    padding: 12px 15px;
    font-size: 0.95rem;
  }

  .teklif-box {
    padding: 15px;
  }

  .toggle-title {
    font-size: 1rem;
    padding: 8px 12px;
  }

  .wa-item {
    padding: 8px;
    margin-bottom: 8px;
  }

  .wa-item img {
    width: 32px;
    height: 32px;
  }

  .wa-item-content a {
    font-size: 0.8rem;
  }

  .btn-teklif {
    padding: 10px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hizmetler-container {
    padding: 0 10px;
    margin: 15px auto;
  }

  .sidebar {
    padding: 15px;
    /* display: none; kaldırıldı - JavaScript ile kontrol edilecek */
  }

  /* Mobilde sidebar gizleme sınıfı */
  .sidebar.hidden {
    display: none !important;
  }

  /* Mobilde sidebar'ın görünür olması için */
  .sidebar:not(.hidden) {
    display: block !important;
  }

  /* Mobil menü butonu stilleri */
  .mobile-menu-toggle {
    background-color: #b30000 !important;
    border-color: #b30000 !important;
    font-size: 0.9rem;
    padding: 12px 15px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 1000 !important;
    position: relative !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    border: none !important;
    outline: none !important;
    display: block !important;
    width: 100% !important;
    margin-bottom: 15px !important;
  }

  .mobile-menu-toggle:hover {
    background-color: #8f0000 !important;
    border-color: #8f0000 !important;
  }

  .mobile-menu-toggle:active {
    transform: scale(0.98);
  }

  .mobile-menu-toggle:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(179, 0, 0, 0.3) !important;
  }

  .content {
    padding: 15px;
  }

  .content h2 {
    font-size: 1.3rem;
  }

  .content p {
    font-size: 0.9rem;
  }

  .sidebar-title {
    font-size: 1.2rem;
  }

  .menu li a {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .teklif-box {
    padding: 12px;
  }

  .toggle-title {
    font-size: 0.95rem;
    padding: 6px 10px;
  }

  .wa-item {
    padding: 6px;
  }

  .wa-item img {
    width: 28px;
    height: 28px;
  }

  .wa-item-content a {
    font-size: 0.75rem;
  }

  .btn-teklif {
    padding: 8px;
    font-size: 0.85rem;
  }
}
