/* Post Optimizations CSS - Modular */
/* Tüm sayfalarda kullanılabilir optimizasyonlar */

:root {
  --primary-color: #4c4c9d;
  --primary-dark: #3d3d7d;
  --secondary-color: #f2f7fd;
  --text-heading: #1e293b;
  --text-body: #64748b;
}

body {
  background-color: var(--secondary-color);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

html {
  overflow-x: hidden;
}

#service-page-wrapper,
.service-main-container,
.row {
  overflow: visible !important;
}

.service-main-container {
  margin-top: 20px !important;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px;
}

/* Hero Section */
.ilan-hero-section {
  background-color: var(--secondary-color);
  padding: 25px 0 10px;
  text-align: center;
}

.ilan-hero-title {
  margin-top: -20px;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--primary-color);

  /* Profesyonel Tam Metin Görüntüleme */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;

  /* Metin Kesilme Sorunu Düzeltme */
  padding: 10px 15px;
  box-sizing: border-box;

  /* Uzun Başlıklar İçin Dinamik Font Boyutu */
  /* JavaScript ile kontrol edilecek */
}

/* Uzun başlıklar için otomatik küçültme */
.ilan-hero-title.long-title {
  font-size: 2.2rem;
}

.ilan-hero-title.very-long-title {
  font-size: 1.9rem;
}

.ilan-hero-title span {
  color: #f59e0b;
  font-weight: 700;
}

.ilan-hero-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

/* Minimal Breadcrumb */
.minimal-breadcrumb {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 0.85rem;
  color: #64748b;
}

.minimal-breadcrumb .breadcrumb {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
  background: transparent;
  align-items: center;
}

.minimal-breadcrumb .breadcrumb-item {
  display: flex;
  align-items: center;
}

.minimal-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.6rem;
  padding: 0 10px;
  color: #cbd5e1;
  display: inline-block;
}

.minimal-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.minimal-breadcrumb a:hover {
  color: #1e293b;
}

.minimal-breadcrumb .active {
  color: #64748b;
  font-weight: 500;
  cursor: default;
}

/* Page Wrapper - Secondary Color Background */
#service-page-wrapper {
  background-color: var(--secondary-color);
  min-height: 60vh;
  padding-bottom: 60px;
}

/* Content Box - White Background */
.service-content-box {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  /* Fix for long links/words breaking layout */
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
}

.service-content-box a {
  word-break: break-all;
  word-break: break-word;
}

/* Modern List Styling - Content Area */
.md3-content ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 20px 0 !important;
}

.md3-content ul li {
  position: relative !important;
  padding-left: 30px !important;
  margin-bottom: 12px !important;
  line-height: 1.7 !important;
}

.md3-content ul li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 8px !important;
  width: 8px !important;
  height: 8px !important;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 4px rgba(76, 76, 157, 0.2) !important;
}

.md3-content ul li strong {
  color: var(--text-heading) !important;
  font-weight: 600 !important;
}

/* Nested Lists */
.md3-content ul ul {
  margin: 10px 0 10px 20px !important;
}

.md3-content ul ul li::before {
  width: 6px !important;
  height: 6px !important;
  background: var(--primary-color) !important;
  opacity: 0.6 !important;
}

/* Ordered Lists */
.md3-content ol {
  padding-left: 25px !important;
  margin: 20px 0 !important;
}

.md3-content ol li {
  margin-bottom: 12px !important;
  line-height: 1.7 !important;
}

.md3-content ol li::marker {
  color: var(--primary-color) !important;
  font-weight: 600 !important;
}

/* Sidebar Styles */
.sidebar-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 25px;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 0 !important;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

@media (min-width: 992px) {
  .sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 110px;
    z-index: 10;
    height: fit-content;
    align-self: start;
  }
}

.sidebar-service-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #334155;
  transition: background 0.2s;
  margin-bottom: 8px;
}

.sidebar-service-link:hover {
  background: #f8fafc;
}

.service-icon {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-top: 3px;
}

.service-info strong {
  display: block;
  color: #1e293b;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.service-info span {
  font-size: 0.85rem;
  color: #64748b;
}

/* Responsive */
@media (max-width: 991px) {
  .sidebar-widget {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .ilan-hero-title {
    font-size: 1.9rem;
    line-height: 1.25;
    padding: 8px 10px;
  }

  .ilan-hero-title.long-title {
    font-size: 1.65rem;
  }

  .ilan-hero-title.very-long-title {
    font-size: 1.45rem;
  }

  .ilan-hero-desc {
    display: none;
  }

  .service-content-box {
    padding: 20px;
    border-radius: 0;
  }
}
