/* ==========================================================================
   KAMU PERSONEL REHBERİ — PROFESYONEL KAMU İSTİHDAM & HABER PORTALI CSS
   Temiz Kurumsal Gazete/Portal Estetiği:
   Saf Beyaz Yüzeyler (#FFFFFF) + Kâğıt Grisi (#F4F6F8) + Kamu Laciverti (#133B5C)
   Sıfır yapay zeka şablonu, yüksek okunabilirlik, mobil-öncelikli ızgara.
   ========================================================================== */

:root {
  color-scheme: light;
  --bg-page: #F4F6F8;
  --bg-surface: #FFFFFF;
  --bg-subtle: #EDF1F5;
  --bg-hover: #F8FAFC;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;

  --brand-navy: #133B5C;
  --brand-navy-dark: #0C2840;
  --brand-blue: #1D5B8C;
  --brand-blue-soft: #EBF3FA;
  --brand-link: #1D5B8C;

  --accent-emerald: #0F766E;
  --accent-emerald-bg: #ECFDF5;
  --accent-red: #B91C1C;
  --accent-red-bg: #FEF2F2;
  --accent-amber: #B45309;
  --accent-amber-bg: #FFFBEB;

  --border-color: #E2E8F0;
  --border-strong: #CBD5E1;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 20px -4px rgba(15, 23, 42, 0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;

  /* editorial.css değişken uyumluluğu */
  --bg-primary: var(--bg-page);
  --bg-secondary: var(--bg-subtle);
  --primary-accent: var(--brand-blue);
  --primary-accent-hover: var(--brand-navy);
  --primary-accent-subtle: var(--brand-blue-soft);
  --primary-accent-border: rgba(29, 91, 140, 0.25);
  --text-tertiary: var(--text-muted);
  --glass-bg: var(--bg-surface);
  --glass-border: var(--border-color);
  --glass-border-subtle: #EEF2F6;
  --glass-shadow: var(--shadow-sm);
  --glass-shadow-hover: var(--shadow-md);
  --font-editorial: var(--font-heading);
  --radius-xl: 14px;
  --radius-full: 9999px;
  --transition-fast: 150ms ease;
  --transition-normal: 220ms ease;
  --warning-text: var(--accent-amber);
}

html.dark {
  color-scheme: dark;
  --bg-page: #0B1118;
  --bg-surface: #131C26;
  --bg-subtle: #1B2635;
  --bg-hover: #212F42;

  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;

  --brand-navy: #1E4B73;
  --brand-navy-dark: #0A1926;
  --brand-blue: #3882C4;
  --brand-blue-soft: rgba(56, 130, 196, 0.18);
  --brand-link: #7DD3FC;

  --accent-emerald: #2DD4BF;
  --accent-emerald-bg: rgba(15, 118, 110, 0.24);
  --accent-red: #F87171;
  --accent-red-bg: rgba(185, 28, 28, 0.24);
  --accent-amber: #FBBF24;
  --accent-amber-bg: rgba(180, 83, 9, 0.24);

  --border-color: #253447;
  --border-strong: #374C66;
  --glass-border-subtle: #1E2C3D;
  --primary-accent: #3882C4;
  --primary-accent-hover: #2563EB;
  --primary-accent-border: rgba(125, 211, 252, 0.28);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--bg-page);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
img { max-width: 100%; display: block; }

.portal-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ==========================================================================
   1. ÜST SON DAKİKA KAYAN ŞERİT (BREAKING NEWS TICKER)
   ========================================================================== */
.top-ticker-bar {
  background: var(--brand-navy);
  color: #FFFFFF;
  font-size: 0.8rem;
  height: 36px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-ticker-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  overflow: hidden;
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-navy-dark);
  color: #E2E8F0;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  display: inline-block;
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
}

.ticker-track {
  display: inline-flex;
  gap: 32px;
  animation: tickerScroll 62s linear infinite;
  will-change: transform;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  color: #E2E8F0;
  font-weight: 500;
  transition: color 150ms;
}

.ticker-item:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.ticker-date {
  white-space: nowrap;
  font-size: 0.76rem;
  color: #CBD5E1;
  flex-shrink: 0;
  display: none;
}

@media (min-width: 768px) {
  .ticker-date { display: block; }
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   2. KURUMSAL HEADER & KATEGORİ NAVİGASYON BARI
   ========================================================================== */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-emblem {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(19, 59, 92, 0.22);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-lockup:hover .brand-emblem {
  transform: scale(1.05);
}

.brand-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.15;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 520px) {
  .brand-name { font-size: 1.05rem; }
  .brand-emblem { width: 36px; height: 36px; font-size: 0.9rem; }
}

.header-right-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-search-inline {
  display: none;
  align-items: center;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 10px;
  width: 280px;
  height: 38px;
}

@media (min-width: 900px) {
  .header-search-inline { display: flex; }
}

.header-search-inline input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.85rem;
  color: var(--text-primary);
  padding: 0 8px;
}

.icon-tool-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms;
}

.icon-tool-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: var(--brand-blue-soft);
}

.header-tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 13px;
  border-radius: 8px;
  background: var(--brand-navy);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 150ms;
}

.header-tg-btn:hover { background: var(--brand-blue); }

@media (max-width: 640px) {
  .header-tg-btn span { display: none; }
  .header-tg-btn { padding: 0 10px; }
}

/* Yatay Kategori Menüsü */
.header-nav-bar {
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.header-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 0;
}

.header-nav-list::-webkit-scrollbar { display: none; }

.header-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 150ms;
}

.header-nav-link:hover,
.header-nav-link.active {
  color: var(--brand-navy);
  background: var(--brand-blue-soft);
}

html.dark .header-nav-link:hover,
html.dark .header-nav-link.active {
  color: #93C5FD;
}

.header-nav-link.urgent-link {
  color: var(--accent-red);
}

/* ==========================================================================
   3. HERO BENTO VİTRİN + 6'LI KATEGORİ ŞERİDİ (MEMURATAMALARIM TARZI, DAHA RAFİNE)
   ========================================================================== */
.hero-showcase-section {
  padding: 20px 0 12px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 820px) {
  .bento-grid {
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: 205px 205px;
  }
}

.bento-right-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bento-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 195px;
  background: var(--brand-navy);
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.bento-card.bento-tall {
  min-height: 240px;
}

@media (min-width: 820px) {
  .bento-card.bento-tall {
    grid-row: span 2;
    min-height: 422px;
  }
}

.bento-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 380ms ease;
}

.bento-card:hover img {
  transform: scale(1.04);
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11, 34, 57, 0.90) 0%, rgba(15, 47, 79, 0.58) 52%, rgba(11, 34, 57, 0.18) 100%);
}

.bento-content {
  position: relative;
  z-index: 2;
  padding: 20px 22px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.bento-title {
  color: #FFFFFF;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.bento-tall .bento-title { font-size: clamp(1.75rem, 3.2vw, 2.55rem); }
.bento-wide .bento-title { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.bento-small .bento-title { font-size: clamp(1.05rem, 1.6vw, 1.3rem); }

.bento-sub {
  color: #CBD5E1;
  font-size: 0.82rem;
  margin-top: 6px;
  font-weight: 500;
}

.bento-count-badge {
  background: rgba(19, 59, 92, 0.92);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 6'lı Yatay Kategori Şeridi */
.cat-strip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

@media (min-width: 640px) {
  .cat-strip-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .cat-strip-grid { grid-template-columns: repeat(6, 1fr); }
}

.cat-tile {
  position: relative;
  height: 112px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 12px 12px 12px;
  background: var(--brand-navy);
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.cat-tile:hover img { transform: scale(1.06); }

.cat-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(11, 34, 57, 0.45) 0%, rgba(11, 34, 57, 0.88) 100%);
}

.cat-tile-title {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.22;
  order: 2;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.cat-tile-count {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  order: 1;
  background: rgba(11, 34, 57, 0.88);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   4. "NE MEZUNUSUNUZ?" HIZLI EĞİTİM ÇUBUĞU
   ========================================================================== */
.section-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 2px solid var(--brand-navy);
  margin-bottom: 16px;
  gap: 12px;
}

.section-header-tab {
  background: var(--brand-navy);
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 6px 6px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-header-more {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-link);
  padding-bottom: 6px;
  white-space: nowrap;
}

.section-header-more:hover { text-decoration: underline; }

.edu-bar-section {
  padding: 20px 0 8px 0;
}

.edu-bar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 768px) {
  .edu-bar-grid { grid-template-columns: repeat(4, 1fr); }
}

.edu-pill-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 150ms;
  text-align: left;
}

.edu-pill-card:hover,
.edu-pill-card.active {
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
}

.edu-pill-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.edu-pill-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   5. ANA PORTAL 2 SÜTUNLU DÜZEN (%70 İÇERİK + %30 STICKY SIDEBAR)
   ========================================================================== */
.portal-main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 20px 0 48px 0;
  align-items: start;
}

@media (min-width: 1024px) {
  .portal-main-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
}

.content-block {
  margin-bottom: 34px;
}

/* 3'lü Görselli İlan Kartları */
.jobs-visual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .jobs-visual-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .jobs-visual-grid { grid-template-columns: repeat(3, 1fr); }
}

.job-visual-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.job-visual-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-blue);
}

.job-visual-media {
  position: relative;
  height: 158px;
  background: var(--brand-navy);
  overflow: hidden;
}

.job-visual-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-visual-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 34, 57, 0.85) 0%, rgba(11, 34, 57, 0.15) 60%, rgba(0, 0, 0, 0.25) 100%);
}

.job-badge-row {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.badge-deadline {
  background: rgba(15, 23, 42, 0.86);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 5px;
}

.badge-days-left {
  background: var(--accent-emerald);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 5px;
}

.badge-days-left.urgent {
  background: var(--accent-red);
}

.job-media-inst {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-visual-body {
  padding: 14px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.job-visual-title {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.38;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-visual-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  font-size: 0.76rem;
}

.meta-chip {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.meta-chip.quota {
  background: var(--brand-blue-soft);
  color: var(--brand-navy);
}

html.dark .meta-chip.quota { color: #93C5FD; }

/* Canlı İlan Liste Tablosu (Tüm İlanlar) */
.filter-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-input {
  flex: 1;
  min-width: 210px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: 7px;
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 0.88rem;
}

.filter-select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: 7px;
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 600;
}

.job-list-stack {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.job-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  transition: background 140ms;
  cursor: pointer;
}

.job-row-item:last-child { border-bottom: none; }
.job-row-item:hover { background: var(--bg-hover); }

.job-row-main {
  min-width: 0;
  flex: 1;
}

.job-row-inst {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-link);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.job-row-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.job-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.job-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.job-row-quota {
  background: var(--brand-navy);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 5px;
  white-space: nowrap;
}

.job-row-date {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .job-row-item { flex-direction: column; align-items: flex-start; }
  .job-row-right { flex-direction: row; width: 100%; justify-content: space-between; }
}

.load-more-wrap {
  text-align: center;
  margin-top: 16px;
}

.btn-portal-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-navy);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 8px;
  transition: background 150ms;
}

.btn-portal-primary:hover { background: var(--brand-blue); }

/* ==========================================================================
   6. SAĞ STICKY SIDEBAR (POPÜLER ALANLAR, KPSS ARACI, SON HABERLER)
   ========================================================================== */
.portal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

@media (min-width: 1024px) {
  .portal-sidebar {
    position: sticky;
    top: 124px;
  }
}

.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
}

.popular-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.popular-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 140ms;
}

.popular-item:last-child { border-bottom: none; padding-bottom: 2px; }
.popular-item:hover { color: var(--brand-blue); }

.popular-count {
  background: var(--brand-blue-soft);
  color: var(--brand-navy);
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 34px;
  text-align: center;
  padding: 3px 8px;
  border-radius: 5px;
}

html.dark .popular-count { color: #93C5FD; }

.sidebar-tool-box {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-blue) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 20px;
}

.sidebar-tool-box h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.sidebar-tool-box p {
  font-size: 0.84rem;
  color: #E2E8F0;
  margin-bottom: 14px;
  line-height: 1.5;
}

.sidebar-tool-cta {
  display: inline-block;
  background: #FFFFFF;
  color: #0F172A;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 9px 16px;
  border-radius: 6px;
  transition: transform 140ms ease, background 140ms ease;
}

.sidebar-tool-cta:hover { background: #F1F5F9; transform: translateY(-1px); }

/* ==========================================================================
   7. İLAN DETAY MODALI (TEMİZ KURUMSAL)
   ========================================================================== */
.portal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.portal-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.portal-modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
  transform: translateY(12px) scale(0.98);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portal-modal-backdrop.open .portal-modal-dialog {
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   9. İNCE İŞÇİLİK: GÜVEN ŞERİDİ, AKTİF FİLTRE BARI, SKELETON, BACK-TO-TOP
   ========================================================================== */
.bento-title,
.job-visual-title,
.job-row-title {
  text-wrap: balance;
}

.bento-count-badge,
.cat-tile-count,
.edu-pill-count,
.popular-count,
.job-row-quota {
  font-variant-numeric: tabular-nums;
}

.bento-card img,
.cat-tile img,
.job-visual-media img {
  outline: 1px solid rgba(0, 0, 0, 0.08);
  outline-offset: -1px;
}

.btn-portal-primary:active,
.icon-tool-btn:active,
.edu-pill-card:active {
  transform: scale(0.97);
}

.mobile-search-trigger {
  display: inline-flex;
}

@media (min-width: 900px) {
  .mobile-search-trigger { display: none; }
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.trust-strip-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.trust-dot-ok {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.active-filter-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--brand-blue-soft);
  border: 1px solid rgba(29, 91, 140, 0.25);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  margin-bottom: 14px;
  font-size: 0.84rem;
  color: var(--brand-navy);
}

html.dark .active-filter-bar { color: #BFDBFE; }
.active-filter-bar.visible { display: flex; }

.clear-filter-btn {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 140ms;
}

.clear-filter-btn:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.skeleton-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 268px;
}

.skeleton-shimmer {
  height: 158px;
  background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--bg-hover) 50%, var(--bg-subtle) 75%);
  background-size: 200% 100%;
  animation: shimmerAnim 1.4s ease-in-out infinite;
}

@keyframes shimmerAnim {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.back-to-top-btn {
  position: fixed;
  right: 20px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 200ms ease, visibility 180ms ease, background 150ms ease;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover { background: var(--brand-blue); }

.share-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.share-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 140ms;
}

.share-chip-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

html.dark .portal-footer {
  background: #070C12;
  border-top-color: var(--border-strong);
}

/* ==========================================================================
   10. HER TELEFONA %100 UYUMLU MOBİL DÜZEN, BOTTOM-SHEET MODAL & ALT MENÜ
   ========================================================================== */
.trust-meta-badge {
  font-weight: 700;
  color: var(--brand-link);
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.modal-meta-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 8px;
  min-width: 0;
}

.modal-meta-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.modal-meta-val {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  word-break: break-word;
}

.portal-modal-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.portal-modal-body { padding: 20px 22px; }

.portal-modal-foot {
  padding: 16px 22px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.modal-close-btn {
  font-size: 1.5rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  flex-shrink: 0;
  transition: background 140ms, color 140ms;
}

.modal-close-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-portal-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 140ms, border-color 140ms;
}

.btn-portal-ghost:hover {
  background: var(--bg-hover);
  border-color: var(--brand-link);
}

/* Mobil Alt Gezinme Barı (Safe-Area Uyumlu) */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  .portal-container {
    padding: 0 14px;
  }

  .top-ticker-bar {
    height: 32px;
    font-size: 0.75rem;
  }

  .ticker-badge {
    font-size: 0.66rem;
    padding: 3px 8px;
  }

  .header-main-row {
    padding: 10px 0;
    gap: 10px;
  }

  .brand-tagline {
    display: none;
  }

  .header-nav-bar .portal-container {
    padding-right: 0;
  }

  .header-nav-list {
    padding: 5px 14px 5px 0;
    -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 90%, transparent 100%);
  }

  .header-nav-link {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .hero-showcase-section {
    padding: 14px 0 8px 0;
  }

  .bento-card.bento-tall {
    min-height: 210px;
  }

  .bento-card {
    min-height: 156px;
  }

  .bento-content {
    padding: 14px 16px;
  }

  .filter-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
  }

  .filter-input {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
    font-size: 16px; /* iOS Safari otomatik zoom'u engeller */
    height: 44px;
  }

  .filter-select {
    width: 100%;
    min-width: 0;
    font-size: 15px;
    height: 42px;
  }

  .filter-select-full-mob {
    grid-column: 1 / -1;
  }

  .edu-pill-card {
    padding: 12px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .edu-pill-name {
    font-size: 0.88rem;
  }

  .trust-strip {
    padding: 10px 12px;
    font-size: 0.76rem;
  }

  .back-to-top-btn {
    right: 14px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    width: 42px;
    height: 42px;
  }

  /* Mobilde Modal -> Modern Bottom-Sheet */
  .portal-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .portal-modal-dialog {
    max-width: 100%;
    max-height: 88dvh;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    transform: translateY(24px);
  }

  .portal-modal-backdrop.open .portal-modal-dialog {
    transform: translateY(0);
  }

  .portal-modal-head {
    padding: 16px 16px 14px 16px;
  }

  .portal-modal-body {
    padding: 16px;
  }

  .portal-modal-foot {
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)) 16px;
    flex-direction: column;
  }

  .portal-modal-foot > * {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)) 4px;
    box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.08);
  }

  html.dark .mobile-bottom-nav {
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45);
  }

  .mob-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    min-height: 46px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: color 140ms, background 140ms;
  }

  .mob-nav-btn.active,
  .mob-nav-btn:hover {
    color: var(--brand-link);
    background: var(--brand-blue-soft);
  }
}

/* Çok küçük telefonlar (320px - 460px: iPhone SE, Galaxy Mini vb.) */
@media (max-width: 460px) {
  .bento-right-bottom {
    grid-template-columns: 1fr;
  }

  .bento-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .modal-meta-grid {
    grid-template-columns: 1fr;
  }

  .section-header-tab {
    font-size: 0.84rem;
    padding: 6px 12px;
  }

  .section-header-more {
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   8. KURUMSAL FOOTER
   ========================================================================== */
.portal-footer {
  background: #0F1C2A;
  color: #CBD5E1;
  margin-top: auto;
  padding: 44px 0 24px 0;
  border-top: 3px solid var(--brand-blue);
}

.portal-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .portal-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 0.86rem;
  line-height: 1.65;
  color: #94A3B8;
  max-width: 360px;
}

.footer-col-h {
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.footer-col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
}

.footer-col-list a:hover { color: #FFFFFF; text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  font-size: 0.8rem;
  color: #94A3B8;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
