* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #222;
}

header {
  background: #1f4e79;
  color: white;
  text-align: center;
  padding: 40px 20px;
}

header h1 {
  margin: 0 0 8px;
}

header p {
  margin: 0;
  opacity: 0.85;
}

main {
  max-width: 800px;
  margin: 30px auto;
  padding: 0 20px;
}

.ilan {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ilan h2 {
  margin: 10px 0 8px;
  font-size: 20px;
}

.ilan p {
  margin: 0 0 12px;
  color: #555;
}

.ilan a {
  color: #1f4e79;
  font-weight: bold;
  text-decoration: none;
}

.ilan a:hover {
  text-decoration: underline;
}

.etiket {
  background: #e3eefa;
  color: #1f4e79;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
}

footer {
  text-align: center;
  padding: 20px;
  color: #777;
  font-size: 14px;
}

#filtreler {
  margin-bottom: 20px;
}

#filtreler button {
  background: white;
  border: 1px solid #1f4e79;
  color: #1f4e79;
  padding: 8px 16px;
  border-radius: 20px;
  margin-right: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 14px;
}

#filtreler button.aktif {
  background: #1f4e79;
  color: white;
}

#arama {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #ccd3da;
  border-radius: 10px;
  margin-bottom: 16px;
}

.bilgi {
  font-size: 14px;
  color: #666;
  margin: 0 0 10px;
}

.kalan {
  float: right;
  font-size: 13px;
  font-weight: bold;
  color: #2e7d32;
}

.kalan.acil {
  color: #c62828;
}

.bos {
  text-align: center;
  color: #777;
  padding: 40px 0;
}

@media (max-width: 600px) {
  header {
    padding: 28px 16px;
  }

  main {
    margin: 20px auto;
    padding: 0 14px;
  }

  .ilan {
    padding: 16px;
  }

  .ilan h2 {
    font-size: 18px;
  }
}

nav {
  margin-top: 14px;
}

nav a, footer a {
  color: inherit;
  margin: 0 8px;
  font-size: 14px;
}

.sayfa {
  background: white;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  line-height: 1.6;
}
.kaynak {
  font-size: 13px;
  color: #777;
  margin: 0 0 12px;
}
#sayfalama {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 24px 0 8px;
}

#sayfalama button {
  background: white;
  border: 1px solid #1f4e79;
  color: #1f4e79;
  min-width: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

#sayfalama button.aktif {
  background: #1f4e79;
  color: white;
}

#sayfalama button:disabled {
  opacity: 0.4;
  cursor: default;
}

#sayfalama .nokta {
  align-self: center;
  color: #777;
  padding: 0 4px;
}
.alt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fav-dugme {
  background: white;
  border: 1px solid #c9a227;
  color: #8a6d00;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
}

.fav-dugme.secili {
  background: #fff4cc;
  font-weight: bold;
}

.duzen {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.duzen main {
  max-width: none;
  margin: 0;
  padding: 0;
}

#yan-menu {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 20px;
}

#yan-menu h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #1f4e79;
}

#yan-menu h4 {
  margin: 16px 0 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #777;
}

#yan-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#yan-menu li {
  margin: 0;
}

#yan-menu a {
  display: block;
  padding: 7px 0;
  color: #222;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  border-bottom: 1px solid #eef0f2;
}

#yan-menu a:hover,
#yan-menu a.aktif {
  color: #1f4e79;
  font-weight: bold;
}

.rehber-sayfa h1 {
  margin-top: 0;
  font-size: 26px;
}

.rehber-sayfa h2 {
  margin-top: 28px;
  font-size: 20px;
  color: #1f4e79;
}

.rehber-sayfa a {
  color: #1f4e79;
}

.guncelleme {
  font-size: 13px;
  color: #777;
}

.not-kutusu {
  background: #fff8e1;
  border-left: 4px solid #c9a227;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 20px 0;
  font-size: 14px;
}

@media (max-width: 800px) {
  .duzen {
    grid-template-columns: 1fr;
  }

  #yan-menu {
    position: static;
  }
}

/* ===== Geniş düzen ===== */
header {
  padding: 22px 20px;
}

header h1 {
  font-size: 28px;
  margin-bottom: 4px;
}

header p {
  font-size: 15px;
}

nav {
  margin-top: 10px;
}

.duzen {
  max-width: 1400px;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 0 28px;
  margin: 24px auto;
}

#arama {
  margin-bottom: 10px;
}

#ilanlar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

#ilanlar .ilan {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}

#ilanlar .ilan:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

#ilanlar .bos {
  grid-column: 1 / -1;
}

.ilan .aciklama {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 8px;
}

.ilan .aciklama.acik {
  display: block;
  overflow: visible;
}

.ilan .daha {
  align-self: flex-start;
  background: none;
  border: none;
  color: #1f4e79;
  font-size: 13px;
  padding: 0;
  margin-bottom: 10px;
  cursor: pointer;
  text-decoration: underline;
}

.ilan .alt {
  margin-top: auto;
  padding-top: 10px;
}

.rehber-sayfa {
  max-width: 820px;
}

@media (max-width: 1100px) {
  .duzen {
    grid-template-columns: 1fr;
  }

  #yan-menu {
    position: static;
  }
}

@media (max-width: 700px) {
  .duzen {
    padding: 0 14px;
  }

  #ilanlar {
    grid-template-columns: 1fr;
  }
}

/* ===== Cilalama ===== */
:root {
  --ana: #1f4e79;
  --ana-koyu: #163a5c;
  --zemin: #f2f5f9;
  --metin: #1d2733;
  --soluk: #6b7785;
  --cizgi: #e3e8ee;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--zemin);
  color: var(--metin);
  line-height: 1.55;
}

/* Başlık alanı */
header {
  background: linear-gradient(135deg, #1a4570 0%, #2b6aa3 100%);
  box-shadow: 0 2px 12px rgba(20, 50, 80, 0.25);
}

header h1 {
  letter-spacing: 0.3px;
}

header p {
  opacity: 0.9;
}

nav a {
  display: inline-block;
  padding: 6px 14px;
  margin: 4px 4px 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Arama kutusu */
#arama {
  padding: 14px 16px 14px 46px;
  font-size: 16px;
  border: 1px solid var(--cizgi);
  border-radius: 12px;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7785' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E") no-repeat 15px center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: border-color 0.15s, box-shadow 0.15s;
}

#arama:focus {
  outline: none;
  border-color: var(--ana);
  box-shadow: 0 0 0 4px rgba(31, 78, 121, 0.15);
}

.bilgi {
  color: var(--soluk);
}

/* Filtre ve sayfa düğmeleri */
#filtreler button,
#sayfalama button {
  transition: background 0.15s, color 0.15s, transform 0.1s;
}

#filtreler button:hover,
#sayfalama button:hover:not(:disabled) {
  background: #e8f0f8;
}

#filtreler button.aktif:hover,
#sayfalama button.aktif:hover {
  background: var(--ana-koyu);
}

#filtreler button.aktif,
#sayfalama button.aktif {
  background: var(--ana);
  color: white;
  box-shadow: 0 2px 6px rgba(31, 78, 121, 0.3);
}

/* Kategori renkleri */
.ilan {
  --kat: #1f4e79;
  --kat-acik: #e3eefa;
}

.ilan[data-tur="Bilişim"] { --kat: #2563eb; --kat-acik: #e5edff; }
.ilan[data-tur="Mühendislik"] { --kat: #d97706; --kat-acik: #fdf0dc; }
.ilan[data-tur="İdari"] { --kat: #7c3aed; --kat-acik: #efe8fd; }
.ilan[data-tur="Sağlık"] { --kat: #16a34a; --kat-acik: #e2f5e9; }
.ilan[data-tur="Destek Personeli"] { --kat: #0d9488; --kat-acik: #dcf3f0; }

/* Kartlar */
.ilan {
  border: 1px solid var(--cizgi);
  border-left: 5px solid var(--kat);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(20, 40, 70, 0.06);
  transition: transform 0.15s, box-shadow 0.15s;
}

.ilan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 40, 70, 0.12);
}

.ilan .etiket {
  background: var(--kat-acik);
  color: var(--kat);
  font-weight: 600;
  font-size: 12px;
  padding: 4px 12px;
}

.ilan h2 {
  font-size: 20px;
  line-height: 1.3;
  margin: 12px 0 6px;
  color: var(--metin);
}

.ilan p.bilgi {
  font-size: 14px;
  color: var(--soluk);
  margin: 0 0 10px;
}

.ilan .aciklama {
  color: #3a4654;
  font-size: 15px;
}

.ilan .kaynak {
  font-size: 12.5px;
  color: #8a95a3;
  border-top: 1px dashed var(--cizgi);
  padding-top: 10px;
  margin-top: 4px;
}

/* Kalan gün etiketi */
.kalan {
  background: #e6f4ea;
  color: #1e7a3c;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12.5px;
}

.kalan.acil {
  background: #fdeaea;
  color: #c62828;
}

/* Düğmeler */
.ilan .alt a {
  background: var(--ana);
  color: white;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}

.ilan .alt a:hover {
  background: var(--ana-koyu);
  text-decoration: none;
}

.fav-dugme {
  padding: 8px 14px;
  font-size: 13px;
  transition: background 0.15s;
}

.fav-dugme:hover {
  background: #fff4cc;
}

/* Rehber menüsü ve rehber sayfaları */
#yan-menu {
  border: 1px solid var(--cizgi);
  border-top: 4px solid var(--ana);
  border-radius: 12px;
}

#yan-menu a {
  border-bottom: 1px solid var(--cizgi);
  transition: color 0.15s, padding-left 0.15s;
}

#yan-menu a:hover {
  padding-left: 4px;
}

.sayfa,
.rehber-sayfa {
  border: 1px solid var(--cizgi);
  border-radius: 12px;
}

/* Alt bilgi */
footer {
  margin-top: 30px;
  padding: 28px 20px;
  border-top: 1px solid var(--cizgi);
  background: white;
  color: var(--soluk);
}

footer a {
  color: var(--ana);
}

/* Klavye ile gezinenler için odak çerçevesi */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(31, 78, 121, 0.45);
  outline-offset: 2px;
}

/* Hareketi azaltmak isteyenler için */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }

  .ilan:hover {
    transform: none;
  }
}