/* ==========================================================================
   Qurbanuk haber/blog detay sayfası ve haber blokları stilleri.
   Ön yüzde sadece tekil yazı sayfasında, ayrıca blok editöründe yüklenir
   (bkz. class-qurbanuk-news.php).
   ========================================================================== */

.qk-news {
  --qkn-bg:            #FDFDFB;
  --qkn-ink:           #2B2B28;
  --qkn-ink-soft:      #6B6A63;
  --qkn-line:          #E7E4DC;

  /* Marka renkleri — ways-of-working.md ile birebir aynı */
  --qkn-accent:        #FF5D2C;  /* turuncu */
  --qkn-accent-deep:   #FF6300;  /* koyu turuncu */
  --qkn-accent-soft:   rgba(255,93,44,.08);
  --qkn-green:         #6FA121;
  --qkn-green-deep:    #45591F;

  --qkn-font: "Poppins", sans-serif;
  --qkn-radius-md: 12px;
  --qkn-radius-lg: 18px;
  --qkn-maxw-article: 760px;
  --qkn-maxw-page: 1180px;
}

.qk-news, .qk-news * { box-sizing: border-box; }
.qk-news { background: var(--qkn-bg); color: var(--qkn-ink); font-family: var(--qkn-font); line-height: 1.75; font-size: 16.5px; }
.qk-news img { max-width: 100%; display: block; }
.qk-news a { color: inherit; text-decoration: none; }
.qk-news .wrap { max-width: var(--qkn-maxw-page); margin: 0 auto; padding: 0 24px; }
.qk-news .article-col { max-width: var(--qkn-maxw-article); margin: 0 auto; padding: 0 24px; }

/* Breadcrumb */
.qk-news .breadcrumb { font-size: 13px; color: var(--qkn-ink-soft); font-weight: 500; margin-bottom: 22px; }
.qk-news .breadcrumb a { color: var(--qkn-ink-soft); }
.qk-news .breadcrumb a:hover { color: var(--qkn-accent-deep); text-decoration: underline; }
.qk-news .breadcrumb .sep { opacity: .5; margin: 0 6px; }

/* Eyebrow + başlık + meta */
.qk-news .eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--qkn-accent-deep); background: var(--qkn-accent-soft);
  padding: 6px 14px; border-radius: 999px; font-weight: 700; margin-bottom: 16px;
}
.qk-news h1 { margin: 0 0 18px; font-size: clamp(26px,4vw,36px); font-weight: 800; line-height: 1.22; color: var(--qkn-ink); }
.qk-news h3 { color: var(--qkn-ink); }
.qk-news h2 { color: var(--qkn-ink); }
.qk-news .meta-line { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 14px; color: var(--qkn-ink-soft); }
.qk-news .meta-line span { display: inline-flex; align-items: center; gap: 6px; }
.qk-news .meta-line svg { opacity: .75; }

.qk-news .header-divider { height: 3px; width: 100%; background: var(--qkn-accent); border-radius: 50px; margin: 22px 0 28px; }

/* Başlık divider'ı: sayfa açılışında soldan sağa uzar (JS yoksa görünür kalır) */
.qk-news .header-divider { transform-origin: left center; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.qk-js .qk-news .header-divider:not(.qk-in) { transform: scaleX(0); }

/* Makale H2 başlıkları: turuncu alt çizgi, görünür olunca soldan uzar (ortalanmışlar hariç) */
.qk-news .article-body h2.wp-block-heading { margin: 44px 0 18px; scroll-margin-top: 110px; }
.qk-news .article-body h2.wp-block-heading:not(.has-text-align-center) { display: inline-block; position: relative; padding-bottom: 10px; }
.qk-news .article-body h2.wp-block-heading:not(.has-text-align-center):after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: #FF5D2C; transform-origin: left center; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.qk-js .qk-news .article-body h2.wp-block-heading:not(.has-text-align-center):not(.qk-in):after { transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) {
  .qk-news .article-body h2.wp-block-heading:after, .qk-news .header-divider { transition: none; }
}

/* Hero görsel */
.qk-news .hero-figure { margin: 0 0 8px; }
.qk-news .hero-figure .hero-media { position: relative; border-radius: var(--qkn-radius-lg); overflow: hidden; }
.qk-news .hero-figure img { width: 100%; height: auto; aspect-ratio: 16/9.2; object-fit: cover; }
.qk-news .hero-badge { position: absolute; right: 18px; top: 18px; background: var(--qkn-accent); color: #fff; font-size: 11.5px; font-weight: 700; padding: 6px 12px; border-radius: 8px; }
.qk-news figcaption { font-size: 13.5px; color: var(--qkn-ink-soft); margin-top: 10px; font-style: italic; text-align: center; }

/* Lead paragraf — core/paragraph block-style variant "qkn-lead" */
.qk-news .is-style-qkn-lead {
  font-size: 19px; line-height: 1.6; font-weight: 600;
  padding-left: 18px; border-left: 4px solid var(--qkn-accent);
  margin: 0 0 20px;
}

/* Gövde paragrafları */
.qk-news .article-body p { margin: 0 0 20px; text-align: justify; text-justify: inter-word; hyphens: auto; font-size: 16.5px; line-height: 1.75; }

/* Alıntı — core/quote block-style variant "qkn-pullquote" */
.qk-news .is-style-qkn-pullquote {
  text-align: center; margin: 32px auto; max-width: 620px; border: none; padding: 0;
}
.qk-news .is-style-qkn-pullquote::before {
  content: ""; display: block; width: 30px; height: 30px; margin: 0 auto 6px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7h4v6l-3 5H5l2-5H4V7h3zm9 0h4v6l-3 5h-3l2-5h-3V7h3z'/%3E%3C/svg%3E") center/contain no-repeat;
  background: var(--qkn-green); opacity: .55;
}
.qk-news .is-style-qkn-pullquote p { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.5; color: var(--qkn-accent-deep); }
.qk-news .is-style-qkn-pullquote::after {
  content: ""; display: block; width: 140px; height: 3px; background: var(--qkn-green); border-radius: 50px; margin: 12px auto 0;
}

/* Teşekkür kutusu — core/group block-style variant "qkn-thanks" */
.qk-news .is-style-qkn-thanks {
  padding: 22px 24px; border-left: 4px solid var(--qkn-green);
  background: rgba(111,161,33,.05); border-radius: 0 12px 12px 0; margin: 20px 0;
}
.qk-news .is-style-qkn-thanks h2 { margin: 0 0 12px; font-size: 22px; font-weight: 800; color: var(--qkn-green-deep); }
.qk-news .is-style-qkn-thanks p { margin: 0; text-align: justify; }

/* Section başlıkları — genel kural: her zaman siyah, altında iki renkli şerit */
.qk-news .section-head { text-align: center; margin: 56px 0 30px; }
.qk-news .section-head.is-left { text-align: left; margin: 60px 0 24px; }
.qk-news .section-title { font-size: clamp(21px,4.2vw,27px); font-weight: 800; color: var(--qkn-ink); margin: 0; }
.qk-news .section-head.is-left .section-title { font-size: 24px; }
.qk-news .section-divider {
  width: 300px; height: 5px; border-radius: 50px; margin: 16px auto 0;
  background: linear-gradient(90deg, var(--qkn-accent) 0 50%, var(--qkn-green) 50% 100%);
}
.qk-news .section-head.is-left .section-divider { margin: 10px 0 0; width: 520px; background: var(--qkn-green); }

/* qurbanuk/istatistik-sayaci */
.qk-news .qkn-stats { display: flex; }
.qk-news .qkn-stats.is-compact .qkn-stat { flex: 1; text-align: center; position: relative; }
.qk-news .qkn-stat { flex: 1; text-align: center; position: relative; }
.qk-news .qkn-stat:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 10%; height: 80%; width: 1px; background: var(--qkn-line); }
.qk-news .qkn-stat-num { font-size: 40px; font-weight: 800; color: var(--qkn-accent); display: block; }
.qk-news .qkn-stats.is-compact .qkn-stat-num { font-size: 32px; }
.qk-news .qkn-stat-label { font-size: 13.5px; color: var(--qkn-ink-soft); margin-top: 6px; font-weight: 500; }

/* qurbanuk/bagis-banner */
.qk-news .qkn-donate-banner {
  position: relative; border-radius: var(--qkn-radius-lg); overflow: hidden; padding: 44px 48px;
  background: linear-gradient(135deg, var(--qkn-accent), var(--qkn-accent-deep));
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.qk-news .qkn-donate-banner .qkn-lattice { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .14; }
.qk-news .qkn-donate-banner .qkn-content { position: relative; }
.qk-news .qkn-donate-banner .qkn-chip {
  display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.18); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 6px 13px; border-radius: 999px; margin-bottom: 14px;
}
.qk-news .qkn-donate-banner h3 { margin: 0 0 8px; color: #fff; font-size: 24px; font-weight: 800; }
.qk-news .qkn-donate-banner p { margin: 0; color: rgba(255,255,255,.88); font-size: 14.5px; max-width: 460px; }
.qk-news .qkn-donate-banner .qkn-trust-row { display: flex; gap: 18px; margin-top: 18px; }
.qk-news .qkn-donate-banner .qkn-trust-row span { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.85); font-size: 12.5px; font-weight: 600; }
.qk-news .qkn-donate-banner .qkn-btn {
  position: relative; flex-shrink: 0; background: var(--qkn-green); color: #fff; border-radius: 12px;
  padding: 22px 46px; font-size: 17px; font-weight: 800; white-space: nowrap;
  box-shadow: 0 12px 28px rgba(0,0,0,.24); transition: transform .2s ease, box-shadow .2s ease;
}
.qk-news .qkn-donate-banner .qkn-btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 16px 34px rgba(0,0,0,.3); }

/* qurbanuk/foto-galerisi */
.qk-news .qkn-slider { position: relative; border-radius: var(--qkn-radius-lg); overflow: hidden; cursor: grab; touch-action: pan-y; height: 400px; background: #15140f; }
.qk-news .qkn-slider.dragging { cursor: grabbing; }
.qk-news .qkn-slider-track { display: flex; height: 100%; transition: transform .45s ease; }
.qk-news .qkn-slider-track .qkn-slide { flex: 0 0 100%; position: relative; height: 100%; overflow: hidden; }
.qk-news .qkn-slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(28px) brightness(.55); transform: scale(1.2); }
.qk-news .qkn-slide-fg { position: relative; z-index: 1; width: 100%; height: 100%; }
.qk-news .qkn-slide-fg img { width: 100%; height: 100%; object-fit: cover; }
.qk-news .qkn-slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; min-height: 42px; padding: 0; border-radius: 50%; border: none; cursor: pointer; background: rgba(254,254,254,.92); color: var(--qkn-accent-deep); font-size: 18px; }
.qk-news .qkn-slider-btn:hover { background: var(--qkn-accent); color: #fff; }
.qk-news .qkn-slider-btn.prev { left: 14px; } .qk-news .qkn-slider-btn.next { right: 14px; }
.qk-news .qkn-slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.qk-news .qkn-slider-dots button { width: 8px; height: 8px; min-height: 0; border-radius: 50%; border: none; background: var(--qkn-line); cursor: pointer; padding: 0; }
.qk-news .qkn-slider-dots button.active { background: var(--qkn-accent); width: 22px; border-radius: 5px; }

/* Paylaşım satırı — şablona gömülü, blok değil */
.qk-news .qkn-share-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--qkn-line); }
.qk-news .qkn-share-row span.label { font-size: 13.5px; color: var(--qkn-ink-soft); font-weight: 700; }
.qk-news .qkn-share-row a,
.qk-news .qkn-share-row button { border: 0; padding: 0; cursor: pointer; width: 38px; height: 38px; border-radius: 50%; background: var(--qkn-accent-soft); display: flex; align-items: center; justify-content: center; color: var(--qkn-accent-deep); transition: transform .2s ease, background .2s ease, color .2s ease; }
.qk-news .qkn-share-row a:hover,
.qk-news .qkn-share-row button:hover,
.qk-news .qkn-share-row .is-copied { transform: translateY(-2px); background: var(--qkn-accent); color: #fff; }

/* qurbanuk/ilgili-haberler */
.qk-news .qkn-related-grid { display: flex; gap: 20px; }
.qk-news .qkn-related-card { flex: 1; color: var(--qkn-ink); }
.qk-news .qkn-related-card .rc-media { border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.qk-news .qkn-related-card .rc-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .5s ease; }
.qk-news .qkn-related-card:hover .rc-media img { transform: scale(1.05); }
.qk-news .qkn-related-card .rc-date { font-size: 12px; color: var(--qkn-green-deep); font-weight: 700; }
/* qurbanuk/kampanya-karuseli */
.qk-news .qkn-campaign-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
.qk-news .qkn-campaign-track::-webkit-scrollbar { display: none; }
.qk-news .qkn-campaign-card { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; background: #fff; border-radius: var(--qkn-radius-md); overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08); display: flex; flex-direction: column; text-align: left; }
.qk-news .qkn-campaign-media { aspect-ratio: 4/3; background: linear-gradient(135deg,#E9E4D8,#F3EFE4); overflow: hidden; }
.qk-news .qkn-campaign-media img { width: 100%; height: 100%; object-fit: cover; }
.qk-news .qkn-campaign-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.qk-news .qkn-campaign-body h3 { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--qkn-ink); }
.qk-news .qkn-campaign-body h3 span { font-weight: 500; color: var(--qkn-ink-soft); }
.qk-news .qkn-campaign-actions { display: flex; gap: 8px; margin-top: auto; }
.qk-news .qkn-campaign-actions a { flex: 1; text-align: center; font-size: 13px; font-weight: 700; padding: 10px; border-radius: 999px; }
.qk-news .qkn-campaign-actions .qkn-btn-fill { background: var(--qkn-accent); color: #fff; }
.qk-news .qkn-campaign-actions .qkn-btn-outline { border: 1px solid var(--qkn-line); color: var(--qkn-ink); }
.qk-news .qkn-campaign-nav { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.qk-news .qkn-campaign-nav button { width: 38px; height: 38px; min-height: 0; border-radius: 50%; border: 1.5px solid var(--qkn-ink); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; color: var(--qkn-ink); padding: 0; }
.qk-news .qkn-campaign-nav button:hover { background: var(--qkn-ink); color: #fff; }

.qk-news .qkn-related-card h4 { font-size: 15px; font-weight: 700; margin: 4px 0 0; line-height: 1.4; }

@media (max-width: 900px) {
  .qk-news { --qkn-maxw-article: 100%; }
  .qk-news .qkn-related-grid { flex-wrap: wrap; }
  .qk-news .qkn-related-card { flex: 1 1 100%; }
  .qk-news .qkn-campaign-card { flex: 0 0 calc((100% - 20px) / 2); }
}
@media (max-width: 640px) {
  .qk-news .qkn-donate-banner { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .qk-news .qkn-stats, .qk-news .qkn-stats.is-compact { flex-wrap: wrap; }
  .qk-news .qkn-stat { flex: 1 1 45%; margin-bottom: 20px; }
  .qk-news .section-divider, .qk-news .section-head.is-left .section-divider { width: 90% !important; max-width: 300px; }
  .qk-news .qkn-campaign-card { flex: 0 0 100%; }
}


/* ================================================================
   Genislik: CTA banner, kampanya karuseli ve yorumlar blogu
   760px'lik makale sutunundan tasip sayfa genisligine (1180px) yayilir.
   ================================================================ */
.qk-news .article-body .qkn-donate-banner,
.qk-news .article-body .qkn-campaign-carousel,
.qk-news .article-body .qurbanuk-testi-section {
  width: 100vw;
  max-width: var(--qkn-maxw-page);
  margin-left: 50%;
  transform: translateX(-50%);
}
/* qurbanuk-components.css'teki .qurbanuk-comp-wrap { width:100% !important } kuralini eziyoruz */
.qk-news .article-body .qurbanuk-testi-section {
  width: 100vw !important;
}
