/* SONUÇ KUTUSU */
.sonuc-listesi {
  background: #ffffff;
  color: #2b2b2b;
  border: 1px solid #b0bec5;
  border-radius: 4px;
  padding: 5px;
  /* Küçültüldü */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: absolute;
  z-index: 100;
  width: 200px;
  /* Küçültüldü */
  font-size: 13px;
  /* Küçültüldü */
  top: 40px;
  /* Ayarlandı */
  left: 0;
  display: none;
}

/* HESAPLAMA KUTUSU */
.hesaplama-kutusu {
  background: #e3eaf2;
  color: #2b2b2b;
  padding: 15px;
  margin: 5px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #c5d1db;
  flex: 2;
  /* Genişlik flex ile yönetiliyor */
  min-width: 300px;
  box-sizing: border-box;
}

.hesaplama-kutusu2 {
  background: #e3eaf2;
  color: #2b2b2b;
  padding: 15px;
  margin: 5px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #c5d1db;
  flex: 3;
  /* Genişlik flex ile yönetiliyor (60%) */
  min-width: 250px;
  /* Tutarlılık için min-width eklendi */
  box-sizing: border-box;
}

.aciklama-kutusu {
  background: #eafce6;
  color: #2b2b2b;
  padding: 15px;
  margin: 2px;
  border-radius: 5px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #c5d1db;
  box-sizing: border-box;
  margin-top: 20px;
  border-top: 1px solid #d4e2d4;
  padding-top: 15px;
}

.hesaplama-wrapper {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px;
}

.baslik-alani {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.baslik-alani h2 {
  font-size: 20px;
  /* Küçültüldü */
  margin: 0;
}

.favori-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #ffcc00;
  cursor: pointer;
  transition: transform 0.2s;
}

.favori-btn:hover {
  transform: scale(1.2);
}

/* Form Grupları */
.form-grup {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.form-grup label {
  margin-bottom: 5px;
  font-weight: bold;
}

.form-grup input {
  padding: 8px;
  /* Küçültüldü */
  border: 1px solid #b0bec5;
  border-radius: 5px;
  background: #ffffff;
  color: #2b2b2b;
  font-size: 14px;
  /* Küçültüldü */
}

.form-grup input::placeholder {
  color: #9e9e9e;
}

.mainmenu-item {
  display: inline-block;
  margin: 0 6px;
  padding: 4px 6px;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  border-radius: 7px;
  transition: background 0.3s ease;
}

.mainmenu-item:hover {
  background-color: #f2f2f2;
}

.mainmenu-item.active {
  background-color: #264653;
  color: #fff;
  font-weight: 600;
}

.submenu-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 10px 25px;
  /* Üst ve alt boşluk azaltıldı */
  justify-content: flex-start;
  background: #f9fbfd;
  border-top: 1px solid #e3e7eb;
}

.submenu-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 70px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: #222;
  font-size: 11px;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 6px;
}

.submenu-box .title {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  padding: 0 8px;
  text-align: center;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  max-width: 100%;
}

.submenu-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #c0d3df;
}

.submenu-box.active {
  border: 2px solid #264653;
  background: #eef6f9;
  font-weight: 600;
  color: #0a2a43;
}

.submenu-box .emoji {
  font-size: 20px;
  margin-bottom: 4px;
}

#tevkifatHesaplamaForm select.form-control {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Uzun seçenekleri kısalt (örneğin mobilde 207 - ÖZEL GÜVENLİK HİZMETİ...) */
#tevkifatHesaplamaForm select.form-control option {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

/* MOBİL */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .arama-alani {
    margin-top: 10px;
    width: 100%;
  }

  .arama-alani input {
    width: 100%;
  }


  .hesaplama-kutusu {
    background: #e3eaf2;
    color: #2b2b2b;
    padding: 10px;
    /* Azaltıldı */
    margin: 2px;
    /* Azaltıldı */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #c5d1db;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hesaplama-kutusu2 {
    background: #e3eaf2;
    color: #2b2b2b;
    padding: 10px;
    /* Azaltıldı */
    margin: 2px;
    /* Azaltıldı */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #c5d1db;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hesaplama-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 10px;
    /* Azaltıldı */
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
  }

  .hybrid-input {
    flex-direction: row;
    /* Tek satırda hizalama */
    align-items: center;
    /* Dikeyde ortalama */
    gap: 0.5rem;
    /* Boşluk azaltıldı */
  }

  .hybrid-input input[type="number"] {
    width: 80px;
    /* Genişlik sabitlendi */
    flex: none;
    /* Flex özelliğini kaldır */
  }

  .form-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .form-group {
    /* Mobil için form-group margin-bottom azaltıldı */
    margin-bottom: 10px;
  }

  input[type="number"] {
    /* Mobil için input padding azaltıldı */
    padding: 0.5rem;
  }

  #tevkifatHesaplamaForm select.form-control {
    font-size: 15px;
    width: 100%;
  }

}

h1 {
  text-align: center;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.form-group {
  margin-bottom: 1.75rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

input[type="number"] {
  width: 90%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.hybrid-input {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hybrid-input input[type="range"] {
  flex: 2;
}

.hybrid-input input[type="number"] {
  flex: 1;
  padding: 0.5rem;
  width: 100px;
}

.unit-label {
  margin-left: 0.25rem;
  font-weight: 500;
  color: #555;
}

.form-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.form-buttons button {
  padding: 0.6rem 1.2rem;
  /* Küçültüldü */
  font-size: 0.9rem;
  /* Küçültüldü */
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn-submit {
  background-color: #3498db;
  color: white;
}

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

.btn-reset {
  background-color: #e74c3c;
  color: white;
}

.btn-reset:hover {
  background-color: #c0392b;
}

/* HESAPLAMA SONUÇ KUTUSU (hgmm1sm1.ejs) */
.sonuc-detay {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sonuc-satir {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  /* Küçültüldü */
}

.sonuc-satir span:first-child {
  color: #4a5568;
}

.sonuc-satir strong,
.sonuc-satir span:last-child {
  font-size: 16px;
  /* Küçültüldü */
  font-weight: 600;
  color: #1a202c;
  text-align: right;
  display: inline-block;
  /* Ensure it respects text-align */
  min-width: 100px;
  /* Adjust as needed for alignment */
}

.sonuc-ayrac {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 5px 0;
}

.alt-detay span {
  font-size: 14px;
  color: #718096;
}

.sonuc-hata,
.sonuc-bilgi {
  color: #555;
  background-color: #f0f3f6;
  padding: 15px;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
}

.sonuc-hata {
  color: #c53030;
  background-color: #fed7d7;
}

/* Ödeme Planı Tablosu */
.odeme-plani-baslik {
  font-size: 16px;
  /* Küçültüldü */
  font-weight: 600;
  color: #264653;
  margin-top: 20px;
  /* Küçültüldü */
  margin-bottom: 10px;
  /* Küçültüldü */
  padding-bottom: 8px;
  /* Küçültüldü */
  border-bottom: 2px solid #cbd5e1;
}

.odeme-plani-container {
  overflow-x: auto;
  /* Yatay kaydırma çubuğu */
  max-height: 400px;
  /* Dikey kaydırma çubuğu */
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.odeme-plani-tablo {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  /* Küçültüldü */
  text-align: right;
}

.odeme-plani-tablo th,
.odeme-plani-tablo td {
  padding: 10px 8px;
  border-bottom: 1px solid #e2e8f0;
}

.odeme-plani-tablo th {
  background-color: #f0f3f6;
  font-weight: 600;
  color: #4a5568;
  position: sticky;
  top: 0;
  z-index: 1;
}

.odeme-plani-tablo tbody tr:nth-child(even) {
  background-color: #f9fbfd;
}

.odeme-plani-tablo tbody tr:hover {
  background-color: #eef6f9;
}

.odeme-plani-tablo tfoot {
  font-weight: 700;
  background-color: #e3eaf2;
  border-top: 2px solid #cbd5e1;
}

.odeme-plani-tablo tfoot td {
  color: #264653;
}

.odeme-plani-tablo td:first-child,
.odeme-plani-tablo th:first-child {
  text-align: center;
  /* Ay sütunu ortalı */
}

/* CSV İndir Butonu */
.hesaplama-kutusu2-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #cbd5e1;
}

.hesaplama-kutusu2-title {
  font-size: 18px;
  /* Küçültüldü */
  font-weight: 600;
  color: #264653;
  margin: 0;
}

.download-csv-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 7px 10px;
  /* Küçültüldü */
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  /* Küçültüldü */
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.2s;
}

.download-csv-btn:hover {
  background-color: #218838;
  /* Darker green on hover */
}

/* Optimal Terms Table Styles */
.optimal-terms-table-container {
  margin-top: 20px;
  overflow-x: auto;
  /* Yatay kaydırma çubuğu ekler */
}

.optimal-terms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
  min-width: 600px;
  /* Tablonun minimum genişliği */
}

.optimal-terms-table thead tr {
  background-color: #009879;
  color: #ffffff;
  text-align: left;
  font-weight: bold;
}

.optimal-terms-table th,
.optimal-terms-table td {
  padding: 12px 15px;
  border: 1px solid #dddddd;
}

.optimal-terms-table tbody tr {
  border-bottom: 1px solid #dddddd;
}

.optimal-terms-table tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

.optimal-terms-table tbody tr:last-of-type {
  border-bottom: 2px solid #009879;
}

.optimal-terms-table tbody tr:hover {
  background-color: #f1f1f1;
}

.optimal-terms-table td.text-right,
.odeme-plani-tablo td.text-right {
  text-align: right;
}

.btn-show-payment-plan {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.2s;
}

.btn-show-payment-plan:hover {
  background-color: #218838;
}


/* Modal Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Modal Content */
.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Close Button */
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
}

/* Inputs */
.modal-input,
.modal-textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Submit Button */
.modal-submit {
  background-color: #007BFF;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.modal-submit:hover {
  background-color: #0056b3;
}

/* Feedback Button */
.feedback-button {
  background: none;
  border: none;
  font-size: 24px;
  color: #ffcc00;
  cursor: pointer;
  transition: transform 0.2s;
}

.feedback-button:hover {
  transform: scale(1.2);
}

/* Styles from views/index.ejs */
body {
  margin: 0;
}

.hg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 48px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  padding-top: 0;
}

/* ================= NAV ================= */
.hg-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  margin: -10px -12px 8px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  /* koyu bar */
  backdrop-filter: blur(10px);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55);
}

.hg-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  color: #f9fafb;
}

.hg-logo-dot {
  font-size: 18px;
  color: #38bdf8;
}

.hg-nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 4px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
}

.hg-nav-item {
  position: relative;
}

.hg-nav-link {
  background: transparent;
  border: none;
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  color: #e5e7eb;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

.hg-nav-link:hover {
  background: rgba(148, 163, 184, 0.2);
  color: #fff;
  transform: translateY(-0.5px);
}

/* Mobil burger */
.hg-nav-burger {
  display: none;
  width: 34px;
  height: 28px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  padding: 5px 6px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  border-radius: 999px;
}

.hg-nav-burger span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #f9fafb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hg-nav-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hg-nav-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.hg-nav-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobilde görünen aşağı ok */
.hg-nav-cat-arrow {
  display: none;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
  transition: transform 0.18s ease;
}

.hg-nav-cat-btn.is-open .hg-nav-cat-arrow {
  transform: rotate(-135deg);
}

/* ================= DESKTOP MEGA MENÜ ================= */
.hg-mega {
  position: absolute;
  min-width: 380px;
  max-width: 440px;
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 16px 14px;
  box-shadow:
    0 22px 60px rgba(15, 23, 42, 0.55),
    0 0 0 1px rgba(148, 163, 184, 0.7);
  /* sert çerçeve */
  border: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(0);
  /* translateY kaldırıldı */
  transform-origin: top center;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 40;
  margin-top: 10px;
}

.hg-mega.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.hg-mega-panel {
  display: none;
}

.hg-mega-panel.is-active {
  display: block;
}

.hg-mega-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.hg-mega-header-emoji {
  font-size: 24px;
}

.hg-mega-header-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.hg-mega-header-desc {
  margin: 2px 0 0;
  font-size: 13px;
  color: #64748b;
}

.hg-mega-empty {
  font-size: 13px;
  color: #64748b;
  margin: 4px 0 0;
}

.hg-mega-sublist {
  list-style: none;
  margin: 8px 0 0;
  padding: 8px 0 0;
  border-top: 1px dashed #e5e7eb;
}

.hg-mega-subitem+.hg-mega-subitem {
  margin-top: 4px;
}

.hg-mega-sub-link {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 12px;
  color: #0f172a;
  transition: background 0.14s ease, transform 0.08s ease, box-shadow 0.12s ease;
}

.hg-mega-sub-link:hover {
  background: #eff6ff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.2);
  transform: translateY(-1px);
}

.hg-mega-sub-emoji {
  font-size: 16px;
  margin-top: 2px;
}

.hg-mega-sub-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.hg-mega-sub-title {
  font-size: 14px;
  font-weight: 600;
}

.hg-mega-sub-desc {
  font-size: 12px;
  color: #6b7280;
}

.hg-mega-sub-arrow {
  font-size: 14px;
  color: #2563eb;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
  .hg-nav-burger {
    display: inline-flex;
  }

  .hg-nav-menu {
    position: absolute;
    top: 54px;
    right: 8px;
    background: #020617;
    border-radius: 18px;
    box-shadow:
      0 20px 60px rgba(15, 23, 42, 0.9),
      0 0 0 1px rgba(148, 163, 184, 0.9);
    border: 0;
    padding: 10px 10px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    min-width: 230px;
    display: none;
    z-index: 35;
  }

  .hg-nav-menu.is-open {
    display: flex;
  }

  .hg-nav-link {
    justify-content: space-between;
    width: 100%;
    text-align: left;
  }

  /* mobilde oklar görünsün */
  .hg-nav-cat-arrow {
    display: inline-block;
  }

  /* desktop mega menü mobilde hiç kullanılmıyor */
  #hg-mega {
    display: none !important;
  }

  .hg-nav-mobile-sub {
    margin-left: 2px;
  }
}

@media (min-width: 769px) {

  /* desktop'ta mobil alt menü gizli */
  .hg-nav-mobile-sub {
    display: none !important;
  }
}

/* Styles from views/partials/hganamenu.ejs */
.hg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
}

.hg-section {
  margin-top: 32px;
}

/* KATEGORİ GRID */
.hg-category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* KATEGORİ KARTI */
.hg-category-card {
  background: #f9fafb;
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  padding: 16px 18px 14px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.hg-category-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.16);
  transform: translateY(-1px);
}

.hg-category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.hg-category-image {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  overflow: hidden;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #4b5563;
  text-align: center;
  padding: 4px;
}

.hg-category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hg-category-header-text {
  flex: 1;
  min-width: 0;
}

.hg-category-title-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.hg-category-emoji {
  font-size: 20px;
}

.hg-category-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}

.hg-category-desc {
  font-size: 14px;
  color: #4b5563;
  margin: 0;
  line-height: 1.5;
}

/* ALT MENÜ LİSTESİ */
.hg-subtool-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid #e5e7eb;
}

.hg-subtool-item+.hg-subtool-item {
  margin-top: 4px;
}

.hg-subtool-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-decoration: none;
  border-radius: 12px;
  padding: 8px 10px;
  color: #111827;
  transition: background 0.15s ease, transform 0.1s ease;
}

.hg-subtool-link:hover {
  background: #e0edff;
  transform: translateY(-0.5px);
}

.hg-subtool-bullet {
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.hg-subtool-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hg-subtool-name {
  font-size: 14px;
  font-weight: 600;
}

.hg-subtool-desc {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.4;
}

.hg-subtool-arrow {
  font-size: 14px;
  color: #2563eb;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Styles from views/subpage.ejs */
body {
  margin: 0;
}

.hg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 48px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  padding-top: 0;
}

/* ================= NAV ================= */
.hg-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  margin: -10px -12px 8px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  /* koyu bar */
  backdrop-filter: blur(10px);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55);
}

.hg-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  color: #f9fafb;
}

.hg-logo-dot {
  font-size: 18px;
  color: #38bdf8;
}

.hg-nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 4px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
}

.hg-nav-item {
  position: relative;
}

.hg-nav-link {
  background: transparent;
  border: none;
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  color: #e5e7eb;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

.hg-nav-link:hover {
  background: rgba(148, 163, 184, 0.2);
  color: #fff;
  transform: translateY(-0.5px);
}

/* Mobil burger */
.hg-nav-burger {
  display: none;
  width: 34px;
  height: 28px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  padding: 5px 6px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  border-radius: 999px;
}

.hg-nav-burger span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #f9fafb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hg-nav-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hg-nav-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.hg-nav-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobilde görünen aşağı ok */
.hg-nav-cat-arrow {
  display: none;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
  transition: transform 0.18s ease;
}

.hg-nav-cat-btn.is-open .hg-nav-cat-arrow {
  transform: rotate(-135deg);
}

/* ================= DESKTOP MEGA MENÜ ================= */
.hg-mega {
  position: absolute;
  min-width: 380px;
  max-width: 440px;
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 16px 14px;
  box-shadow:
    0 22px 60px rgba(15, 23, 42, 0.55),
    0 0 0 1px rgba(148, 163, 184, 0.7);
  /* sert çerçeve */
  border: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(0);
  /* translateY kaldırıldı */
  transform-origin: top center;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 40;
  margin-top: 10px;
}

.hg-mega.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.hg-mega-panel {
  display: none;
}

.hg-mega-panel.is-active {
  display: block;
}

.hg-mega-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.hg-mega-header-emoji {
  font-size: 24px;
}

.hg-mega-header-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.hg-mega-header-desc {
  margin: 2px 0 0;
  font-size: 13px;
  color: #64748b;
}

.hg-mega-empty {
  font-size: 13px;
  color: #64748b;
  margin: 4px 0 0;
}

.hg-mega-sublist {
  list-style: none;
  margin: 8px 0 0;
  padding: 8px 0 0;
  border-top: 1px dashed #e5e7eb;
}

.hg-mega-subitem+.hg-mega-subitem {
  margin-top: 4px;
}

.hg-mega-sub-link {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 12px;
  color: #0f172a;
  transition: background 0.14s ease, transform 0.08s ease, box-shadow 0.12s ease;
}

.hg-mega-sub-link:hover {
  background: #eff6ff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.2);
  transform: translateY(-1px);
}

.hg-mega-sub-emoji {
  font-size: 16px;
  margin-top: 2px;
}

.hg-mega-sub-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.hg-mega-sub-title {
  font-size: 14px;
  font-weight: 600;
}

.hg-mega-sub-desc {
  font-size: 12px;
  color: #6b7280;
}

.hg-mega-sub-arrow {
  font-size: 14px;
  color: #2563eb;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ============== MOBİL NAV ALT MENÜ ============== */
.hg-nav-mobile-sub {
  display: none;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #0b1120;
  box-shadow:
    0 18px 50px rgba(15, 23, 42, 0.75),
    0 0 0 1px rgba(148, 163, 184, 0.8);
}

.hg-nav-mobile-sub.is-open {
  display: block;
}

.hg-nav-mobile-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hg-nav-mobile-subitem+.hg-nav-mobile-subitem {
  margin-top: 2px;
}

.hg-nav-mobile-sublink {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  padding: 6px 6px 6px 4px;
  border-radius: 10px;
  gap: 8px;
  color: #e5e7eb;
}

.hg-nav-mobile-sublink:hover {
  background: rgba(148, 163, 184, 0.25);
}

.hg-nav-mobile-sub-emoji {
  font-size: 14px;
  margin-top: 2px;
}

.hg-nav-mobile-sub-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 13px;
}

.hg-nav-mobile-sub-title {
  font-weight: 600;
  color: #f9fafb;
}

.hg-nav-mobile-sub-desc {
  color: #cbd5f5;
}

/* ================ HERO ================= */
.hg-hero {
  text-align: center;
  margin-bottom: 36px;
  margin-top: 14px;
}

.hg-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.hg-hero-pill-emoji {
  font-size: 18px;
}

.hg-hero-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin: 0 0 8px;
}

.hg-hero-subtitle {
  max-width: 720px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
}

/* BÖLÜM BAŞLIĞI */
.hg-section {
  margin-top: 32px;
}

.hg-section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hg-section-desc {
  font-size: 14px;
  color: #64748b;
  max-width: 680px;
  margin-bottom: 18px;
}

/* KATEGORİ GRID */
.hg-category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 900px) {
  .hg-category-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* KARTLAR */
.hg-category-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  padding: 16px 18px 14px;
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(241, 245, 249, 0.9);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.12s ease,
    background 0.15s ease;
}

.hg-category-card:hover {
  border-color: #60a5fa;
  background: #f9fbff;
  box-shadow:
    0 22px 60px rgba(37, 99, 235, 0.26),
    0 0 0 1px rgba(191, 219, 254, 0.9);
  transform: translateY(-2px);
}

.hg-category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.hg-category-image {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  overflow: hidden;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #4b5563;
  text-align: center;
  padding: 4px;
}

.hg-category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hg-category-header-text {
  flex: 1;
  min-width: 0;
}

.hg-category-title-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.hg-category-emoji {
  font-size: 20px;
}

.hg-category-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}

.hg-category-desc {
  font-size: 14px;
  color: #4b5563;
  margin: 0;
  line-height: 1.5;
}

/* ALT MENÜ LİSTESİ (kart içi) */
.hg-subtool-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 10px 0 0;
  border-top: 1px dashed #e5e7eb;
}

.hg-subtool-item+.hg-subtool-item {
  margin-top: 4px;
}

.hg-subtool-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-decoration: none;
  border-radius: 12px;
  padding: 8px 10px;
  color: #0f172a;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.hg-subtool-link:hover {
  background: #eff6ff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.2);
  transform: translateY(-1px);
}

.hg-subtool-bullet {
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.hg-subtool-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hg-subtool-name {
  font-size: 14px;
  font-weight: 600;
}

.hg-subtool-desc {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.4;
}

.hg-subtool-arrow {
  font-size: 14px;
  color: #2563eb;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
  .hg-nav-burger {
    display: inline-flex;
  }

  .hg-nav-menu {
    position: absolute;
    top: 54px;
    right: 8px;
    background: #020617;
    border-radius: 18px;
    box-shadow:
      0 20px 60px rgba(15, 23, 42, 0.9),
      0 0 0 1px rgba(148, 163, 184, 0.9);
    border: 0;
    padding: 10px 10px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    min-width: 230px;
    display: none;
    z-index: 35;
  }

  .hg-nav-menu.is-open {
    display: flex;
  }

  .hg-nav-link {
    justify-content: space-between;
    width: 100%;
    text-align: left;
  }

  /* mobilde oklar görünsün */
  .hg-nav-cat-arrow {
    display: inline-block;
  }

  /* desktop mega menü mobilde hiç kullanılmıyor */
  #hg-mega {
    display: none !important;
  }

  .hg-nav-mobile-sub {
    margin-left: 2px;
  }
}

@media (min-width: 769px) {

  /* desktop'ta mobil alt menü gizli */
  .hg-nav-mobile-sub {
    display: none !important;
  }
}

.hg-breadcrumb {
  margin: 20px auto 10px;
  /* Ortalamak için auto */
  font-size: 14px;
  background-color: #f8f9fa;
  /* Hafif bir arka plan */
  padding: 10px 15px;
  /* İç boşluk */
  border-radius: 8px;
  /* Köşeleri yuvarla */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  /* Hafif gölge */
  display: flex;
  /* İçeriği ortalamak için */
  justify-content: center;
  /* Yatayda ortala */
  align-items: center;
  /* Dikeyde ortala */
  max-width: 1200px;
  /* Genişliği hg-container ile uyumlu yap */
}

.hg-breadcrumb ul {
  list-style: none;
  display: flex;
  gap: 0;
  /* Boşlukları li elemanlarına taşıyacağız */
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  align-items: center;
  /* Dikey hizalama */
}

.hg-breadcrumb li {
  padding: 5px 8px;
  /* Her öğeye boşluk */
  white-space: nowrap;
  /* Öğelerin tek satırda kalmasını sağla */
  display: flex;
  /* İçindeki a ve span'i hizalamak için */
  align-items: center;
  /* Dikeyde ortala */
}

.hg-breadcrumb li::after {
  content: "»";
  /* Daha modern bir ayırıcı */
  margin-left: 8px;
  /* Ayırıcıdan sonra boşluk */
  margin-right: 4px;
  /* Ayırıcıdan önce boşluk */
  color: #adb5bd;
  /* Daha açık gri ton */
  font-weight: bold;
}

.hg-breadcrumb li:last-child::after {
  content: "";
}

.hg-breadcrumb a {
  color: #007bff;
  /* Mavi bağlantı */
  text-decoration: none;
  transition: color 0.2s ease;
}

.hg-breadcrumb a:hover {
  color: #0056b3;
  /* Koyu mavi hover */
  text-decoration: underline;
  /* Hover'da alt çizgi */
}

.hg-breadcrumb .active {
  color: #495057;
  /* Koyu gri aktif metin */
  font-weight: 600;
  background-color: #e9ecef;
  /* Hafif gri arka plan */
  border-radius: 5px;
  padding: 5px 10px;
  /* Aktif öğeye özel dolgu */
}