/* ═══════════════════════════════════════════════════
   HABER SAYFALARI — sayfa arkaplanı
═══════════════════════════════════════════════════ */
.hn-page { background: #f4f9fb; }
.hd-page  { background: #f4f9fb; }

/* ─── page-hero içinde makalenin uzun başlığı için boyut küçültme ─── */
.hd-article-title {
  font-size: clamp(24px, 3vw, 44px) !important;
  line-height: 1.2 !important;
}

/* ─── Haber detay: page-hero sağ sütunundaki meta sidebar ─── */
.hd-page-header__sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 12px;
}
.hd-meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(2,2,63,.09);
}
.hd-meta-item:first-child { padding-top: 0; }
.hd-meta-item:last-child  { border-bottom: none; padding-bottom: 0; }
.hd-meta-item__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(2,2,63,.38);
}
.hd-meta-item__value {
  font-size: 14px;
  font-weight: 700;
  color: #02023f;
  line-height: 1.35;
}

/* Kategori etiketi (pill) */
.hd-tag-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0816a1;
  border: 1.5px solid #0816a1;
  padding: 4px 12px;
  border-radius: 0 6px;
  line-height: 1.5;
}

@media (max-width: 959px) {
  .hd-page-header__sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 32px;
    padding-top: 0;
    border-top: 1px solid rgba(2,2,63,.08);
    padding-top: 16px;
  }
  .hd-meta-item { padding-bottom: 0; border-bottom: none; }
}

/* ═══════════════════════════════════════════════════
   HR AYRAÇ  (hero ↔ içerik arası)
═══════════════════════════════════════════════════ */
.hn-divider {
  border: 0;
  border-top: 1px solid rgba(2,2,63,.10);
  margin: 0;
}

/* ═══════════════════════════════════════════════════
   SECTION  (haberler.php liste alanı)
═══════════════════════════════════════════════════ */
.hn-section {
  padding: 40px 0 100px;
  background: #f4f9fb;
}
.hn-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(2,2,63,.09);
  position: relative;
}
.hn-section-head::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0;
  width: 48px; height: 2px;
  background: #0816a1;
  border-radius: 0 1px;
}
.hn-section-head__title-wrap { display: flex; flex-direction: column; gap: 5px; }
.hn-section-head__h2 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: #02023f;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.hn-count {
  font-size: 11px;
  font-weight: 600;
  color: rgba(2,2,63,.3);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding-bottom: 3px;
}
.hn-filter__empty {
  margin: 0 0 28px;
  padding: 20px 16px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(0,0,0,.45);
  background: #fff;
  border-radius: 0 0.625rem;
  border: 1px solid rgba(2,2,63,.07);
}

/* ═══════════════════════════════════════════════════
   FİLTRE FORMU
═══════════════════════════════════════════════════ */
.hn-filter {
  margin-bottom: 36px;
  padding: 18px 20px;
  background: #fff;
  border-radius: 0 0.625rem;
  box-shadow: 0 1px 6px rgba(2,2,63,.06);
}
.hn-filter__grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1.5fr) auto;
  gap: 16px 20px;
  align-items: end;
}
.hn-filter:not(.hn-filter--has-clear) .hn-filter__grid {
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,min(100%,420px));
}
.hn-filter__keyword-row { display: flex; align-items: flex-end; gap: 12px; min-width: 0; }
.hn-filter__keyword-row .hn-filter__field--keyword { flex: 1 1 auto; min-width: 0; }
.hn-filter__btn--submit { flex-shrink: 0; align-self: flex-end; }
.hn-filter__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; width: 100%; }
.hn-filter__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(2,2,63,.45);
  text-transform: uppercase;
}
.hn-filter__input {
  width: 100%; box-sizing: border-box;
  min-height: 44px; padding: 10px 12px;
  font-size: 14px; line-height: 1.35; color: #02023f;
  background: #fff;
  border: 1px solid rgba(2,2,63,.12);
  border-radius: 0 0.375rem;
  transition: border-color .15s ease;
  -webkit-appearance: none; appearance: none;
}
.hn-filter__input:hover  { border-color: rgba(2,2,63,.22); }
.hn-filter__input:focus  { outline: none; border-color: #0816a1; }
.hn-filter__actions {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: flex-end; gap: 10px; flex-shrink: 0;
}
.hn-filter__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  border-radius: 0 0.375rem;
  cursor: pointer; border: 1.5px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.hn-filter__btn--primary { background: #0816a1; border-color: #0816a1; color: #fff; }
.hn-filter__btn--primary:hover { background: #02023f; border-color: #02023f; color: #fff; }
.hn-filter__btn--ghost { background: #fff; border-color: rgba(2,2,63,.18); color: #02023f; }
.hn-filter__btn--ghost:hover { border-color: rgba(2,2,63,.35); color: #0816a1; }

@media (max-width: 959px) {
  .hn-filter__grid,
  .hn-filter:not(.hn-filter--has-clear) .hn-filter__grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .hn-filter__keyword-row { grid-column: 1 / -1; width: 100%; }
  .hn-filter__actions     { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 479px) {
  .hn-filter { padding: 16px 14px; }
  .hn-filter__grid,
  .hn-filter:not(.hn-filter--has-clear) .hn-filter__grid { grid-template-columns: 1fr; gap: 14px; }
  .hn-filter__keyword-row { grid-column: 1; flex-direction: row; gap: 10px; width: 100%; }
  .hn-filter__btn--submit { flex-shrink: 0; min-width: 88px; }
  .hn-filter__actions { grid-column: 1; width: 100%; }
  .hn-filter__actions .hn-filter__btn--ghost { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════
   HABER KARTLARI  (3'lü ızgara)
═══════════════════════════════════════════════════ */
.hn-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  background: #fff;
  border-radius: 0 0.625rem;
  overflow: hidden;
  border: 1px solid rgba(2,2,63,.07);
  height: 100%;
  transition: box-shadow .25s ease, transform .25s ease;
}
.hn-card:hover {
  box-shadow: 0 10px 36px rgba(2,2,63,.12);
  transform: translateY(-3px);
}

/* Görsel alanı — 3:2 oran */
.hn-card__media {
  position: relative; width: 100%; aspect-ratio: 3 / 2;
  overflow: hidden; background: #dce4f5; flex-shrink: 0;
}
.hn-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.hn-card:hover .hn-card__media img { transform: scale(1.05); }
.hn-card__fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0816a1 0%, #02023f 100%);
  color: rgba(255,255,255,.3);
}

/* Kategori etiketi — görselin sol-alt köşesinde, üstüste */
.hn-card__tag-wrap {
  position: absolute; bottom: 12px; left: 12px; z-index: 1;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.hn-card__tag-pill {
  font-size: 10px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: #02023f;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px);
  padding: 3px 9px;
  border-radius: 0 4px;          /* sağ üst + sol alt radius — tema paterni */
  line-height: 1.5; white-space: nowrap;
}

/* Kart içerik */
.hn-card__body {
  display: flex; flex-direction: column; flex: 1;
  padding: 20px 22px 22px;
}
.hn-card__title {
  flex: 1;
  margin: 0 0 18px;
  font-size: 17px; font-weight: 700; line-height: 1.42;
  color: #02023f; letter-spacing: -0.01em;
  transition: color .18s;
}
.hn-card:hover .hn-card__title { color: #0816a1; }

/* Alt satır: Kategori | Tarih | Devamını oku — tek satır */
.hn-card__footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(2,2,63,.07);
  font-size: 12px;
  line-height: 1.4;
}
.hn-card__meta-type {
  font-weight: 600;
  color: rgba(2,2,63,.6);
  letter-spacing: .02em;
}
.hn-card__meta-sep {
  margin: 0 7px;
  color: rgba(2,2,63,.2);
  font-weight: 400;
  flex-shrink: 0;
}
.hn-card__date {
  font-weight: 500;
  color: rgba(2,2,63,.45);
}
.hn-card__readmore {
  font-weight: 700;
  color: #0816a1;
  transition: color .18s;
}
.hn-card:hover .hn-card__readmore { color: #ef952a; }

@media (max-width: 639px) {
  .hn-section       { padding: 44px 0 64px; }
  .hn-section-head  { margin-bottom: 28px; }
}

/* ═══════════════════════════════════════════════════
   HABER DETAY — TAM GENİŞLİK BANNER GÖRSEL (opsiyonel)
═══════════════════════════════════════════════════ */
.hd-hero-image {
  width: 100%; max-height: 500px; overflow: hidden;
  background: #dce4f5; line-height: 0;
}
.hd-hero-image img {
  width: 100%; height: 500px; object-fit: cover; display: block;
}
@media (max-width: 767px) {
  .hd-hero-image,
  .hd-hero-image img { height: 260px; max-height: 260px; }
}

/* ═══════════════════════════════════════════════════
   HABER DETAY — İÇERİK BÖLÜMÜ  (padding: page-content-section'dan gelir)
═══════════════════════════════════════════════════ */
.hd-content-section {
  background: #f4f9fb;
}

/* ═══════════════════════════════════════════════════
   HABER DETAY — MEDYA BLOKLARI BÖLÜMÜ
═══════════════════════════════════════════════════ */
.hd-media-section {
  padding: 0 0 80px;
  background: #f4f9fb;
}
@media (max-width: 639px) {
  .hd-media-section { padding-bottom: 56px; }
}

/* ═══════════════════════════════════════════════════
   HABER DETAY — İÇERİK İÇİ GÖRSELLER
═══════════════════════════════════════════════════ */
.hd-lead-image,
.hd-secondary-image {
  margin: 0 0 32px;
  border-radius: 0 1.25rem;
  overflow: hidden;
  background: #dce4f5;
  box-shadow: 0 4px 18px rgba(2,2,63,.08);
}
.hd-secondary-image { margin-top: 36px; margin-bottom: 0; }
.hd-lead-image a, .hd-secondary-image a { display: block; overflow: hidden; position: relative; }
.hd-lead-image img, .hd-secondary-image img {
  width: 100%; height: auto; display: block; object-fit: cover;
  transition: transform .6s ease;
}
.hd-lead-image:hover img, .hd-secondary-image:hover img { transform: scale(1.02); }
@media (min-width: 960px) { .hd-lead-image img { max-height: 520px; } }
@media (max-width: 640px) {
  .hd-lead-image, .hd-secondary-image { border-radius: 0 0.625rem; margin-bottom: 24px; }
  .hd-secondary-image { margin-top: 28px; }
}

/* ═══════════════════════════════════════════════════
   HABER DETAY — MEDYA BLOKLARI
═══════════════════════════════════════════════════ */
.hd-media-block { margin-top: 48px; }
.hd-media-block .sp-section-label { margin-bottom: 20px; }

/* Galeri öğeleri */
.sp-gallery__item {
  display: block; position: relative;
  overflow: hidden; border-radius: 0 0.375rem;
  text-decoration: none;
}
.sp-gallery__img {
  width: 100%; aspect-ratio: 3 / 2;
  background-size: cover; background-position: center;
  transition: transform .45s ease;
}
.sp-gallery__item:hover .sp-gallery__img { transform: scale(1.05); }
.sp-gallery__overlay {
  position: absolute; inset: 0;
  background: rgba(2,2,63,0);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s;
}
.sp-gallery__item:hover .sp-gallery__overlay { background: rgba(2,2,63,.38); }
.sp-gallery__zoom {
  color: #fff; opacity: 0; transform: scale(.8);
  transition: opacity .3s, transform .3s;
}
.sp-gallery__item:hover .sp-gallery__zoom { opacity: 1; transform: scale(1); }

/* Video kartı (16:9) */
.hd-video-card {
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: 0 0.625rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(2,2,63,.06);
  transition: box-shadow .25s, transform .25s;
  height: 100%;
}
.hd-video-card:hover { box-shadow: 0 8px 24px rgba(2,2,63,.1); transform: translateY(-2px); }
.hd-video-card__frame {
  position: relative; width: 100%; padding-bottom: 56.25%; height: 0;
  overflow: hidden; background: #02023f;
}
.hd-video-card__frame iframe,
.hd-video-card__frame video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; display: block; object-fit: cover;
}
.hd-video-card__body { padding: 16px 18px 18px; border-top: 1px solid rgba(2,2,63,.06); }
.hd-video-card__title { font-size: 15px; font-weight: 700; color: #02023f; line-height: 1.4; margin-bottom: 4px; }
.hd-video-card__desc  { font-size: 13.5px; line-height: 1.55; color: rgba(2,2,63,.55); }

/* Dosya kartı */
.hd-file-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: #fff;
  border: 1px solid rgba(2,2,63,.08);
  border-radius: 0 0.625rem;
  color: #02023f; text-decoration: none !important;
  transition: border-color .22s, box-shadow .22s, transform .22s;
  height: 100%;
}
.hd-file-card:hover {
  border-color: #0816a1;
  box-shadow: 0 6px 18px rgba(8,22,161,.12);
  transform: translateY(-2px); color: #02023f;
}
.hd-file-card__icon {
  position: relative; flex: 0 0 48px; width: 48px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(8,22,161,.06) 0%, rgba(8,22,161,.12) 100%);
  color: #0816a1; border-radius: 0 6px;
}
.hd-file-card__ext {
  position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  font-size: 9px; font-weight: 700; letter-spacing: .04em;
  color: #0816a1; background: #fff; padding: 1px 5px;
  border-radius: 2px; line-height: 1;
  max-width: calc(100% - 8px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center;
}
.hd-file-card__body {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.hd-file-card__name {
  font-size: 14.5px; font-weight: 700; color: #02023f; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.hd-file-card__meta {
  display: flex; flex-wrap: wrap; gap: 6px 10px;
  font-size: 12px; color: rgba(2,2,63,.45);
}
.hd-file-card__meta > span + span::before { content: '•'; margin-right: 10px; opacity: .45; }
.hd-file-card__arrow {
  flex: 0 0 auto; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0 50%;
  background: rgba(8,22,161,.08); color: #0816a1;
  transition: background .22s, color .22s;
}
.hd-file-card:hover .hd-file-card__arrow { background: #0816a1; color: #fff; }

@media (max-width: 640px) {
  .hd-media-block { margin-top: 32px; }
  .hd-file-card { padding: 12px 14px; gap: 12px; }
  .hd-file-card__icon { flex: 0 0 42px; width: 42px; height: 52px; }
}
