/* ================================================
   MLPSKLJ Elementor Widgets — Blog Kartları
   Carousel (Elementor Swiper) + Izgara
   Tüm renk / ölçü varsayılanları CSS değişkenidir; panel ayarları bunları ezer.
   ================================================ */

.bew-bc-wrap {
  --bew-bc-gap: 16px;
  --bew-bc-spv: 3;

  --bew-bc-card-bg: #fff;
  --bew-bc-card-border: rgba(29, 59, 48, 0.12);
  --bew-bc-body-gap: 12px;
  --bew-bc-foot-space: 18px;
  --bew-bc-lift: 0px;
  --bew-bc-shadow-space: 12px;

  --bew-bc-placeholder: #e9efeb;
  --bew-bc-zoom: 1.05;
  --bew-bc-zoom-dur: 600ms;

  --bew-bc-cat: #3e6b58;
  --bew-bc-cat-hover: #1d3b30;
  --bew-bc-date: #6b7a73;
  --bew-bc-sep: rgba(29, 59, 48, 0.3);
  --bew-bc-title: #1d3b30;
  --bew-bc-title-hover: #3e6b58;
  --bew-bc-excerpt: #6b7a73;

  --bew-bc-more: #1d3b30;
  --bew-bc-more-hover: #3e6b58;
  --bew-bc-more-icon: 14px;
  --bew-bc-line: rgba(29, 59, 48, 0.14);
  --bew-bc-line-w: 1px;
  --bew-bc-line-space: 14px;
  --bew-bc-link-px: 8px;

  --bew-bc-btn-bg: #1d3b30;
  --bew-bc-btn-bg-hover: #3e6b58;
  --bew-bc-btn-bw: 0px;

  --bew-bc-arr: 42px;
  --bew-bc-arr-icon: 16px;
  --bew-bc-arr-radius: 50%;
  --bew-bc-arr-bw: 1px;
  --bew-bc-arr-color: #1d3b30;
  --bew-bc-arr-color-hover: #fff;
  --bew-bc-arr-bg: transparent;
  --bew-bc-arr-bg-hover: #1d3b30;
  --bew-bc-arr-border: rgba(29, 59, 48, 0.35);
  --bew-bc-arr-border-hover: #1d3b30;
  --bew-bc-arr-gap: 10px;
  --bew-bc-arr-x: 12px;
  --bew-bc-nav-space: 20px;
  --bew-bc-nav-y: 0px;

  --bew-bc-dot: 8px;
  --bew-bc-dot-gap: 8px;
  --bew-bc-dot-space: 20px;
  --bew-bc-dot-color: rgba(29, 59, 48, 0.22);
  --bew-bc-dot-active: #1d3b30;

  --bew-bc-pag-space: 40px;
  --bew-bc-pag-size: 40px;
  --bew-bc-pag-radius: 50%;
  --bew-bc-pag-color: #1d3b30;
  --bew-bc-pag-bg: transparent;
  --bew-bc-pag-border: rgba(29, 59, 48, 0.2);
  --bew-bc-pag-color-active: #fff;
  --bew-bc-pag-bg-active: #1d3b30;
  --bew-bc-pag-border-active: #1d3b30;

  position: relative;
}

/* ================================================
   KART
   ================================================ */
.bew-bc-wrap .bew-bc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: var(--bew-bc-card-bg);
  border: 1px solid var(--bew-bc-card-border);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.bew-bc-wrap .bew-bc-card:hover { transform: translateY(var(--bew-bc-lift)); }

/* Görsel */
.bew-bc-wrap .bew-bc-media {
  position: relative;
  display: block;
  flex: none;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bew-bc-placeholder);
  text-decoration: none !important;
  box-shadow: none !important;
}
.bew-bc-wrap .bew-bc-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  border-radius: 0;
  transition: transform var(--bew-bc-zoom-dur) cubic-bezier(.2, .7, .2, 1);
}
.bew-bc-zoom .bew-bc-card:hover .bew-bc-img,
.bew-bc-zoom .bew-bc-card:focus-within .bew-bc-img { transform: scale(var(--bew-bc-zoom)); }

/* Gövde */
.bew-bc-wrap .bew-bc-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: var(--bew-bc-body-gap);
  padding: 24px;
  min-width: 0;
}

/* Kategori + tarih */
.bew-bc-wrap .bew-bc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 4px;
  font-size: 13px;
  line-height: 1.4;
}
.bew-bc-meta-split .bew-bc-meta { justify-content: space-between; }
.bew-bc-wrap .bew-bc-cat,
.bew-bc-wrap a.bew-bc-cat:visited {
  color: var(--bew-bc-cat);
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: color 0.2s ease;
}
.bew-bc-wrap a.bew-bc-cat:hover { color: var(--bew-bc-cat-hover); }
.bew-bc-wrap .bew-bc-sep { color: var(--bew-bc-sep); }
.bew-bc-wrap .bew-bc-date { color: var(--bew-bc-date); }

/* Başlık */
.bew-bc-wrap .bew-bc-title {
  margin: 0;
  padding: 0;
  font-family: var(--font-display, inherit);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--bew-bc-title);
  text-wrap: pretty;
}
.bew-bc-wrap .bew-bc-title a,
.bew-bc-wrap .bew-bc-title a:visited {
  color: inherit;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: color 0.2s ease;
}
.bew-bc-wrap .bew-bc-title a:hover { color: var(--bew-bc-title-hover); }

/* Özet */
.bew-bc-wrap .bew-bc-excerpt {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--bew-bc-excerpt);
  text-wrap: pretty;
}

/* Alt alan: her kartta en altta */
.bew-bc-wrap .bew-bc-foot {
  margin-top: auto;
  padding-top: var(--bew-bc-foot-space);
}
.bew-bc-wrap .bew-bc-more,
.bew-bc-wrap .bew-bc-more:visited {
  display: inline-flex;
  align-items: center;
  column-gap: 10px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--bew-bc-more);
  text-decoration: none !important;
  box-shadow: none !important;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.bew-bc-wrap .bew-bc-more:hover,
.bew-bc-wrap .bew-bc-more:focus-visible { color: var(--bew-bc-more-hover); }
.bew-bc-more-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bew-bc-more-ico, currentColor);
  font-size: var(--bew-bc-more-icon);
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}
.bew-bc-more:hover .bew-bc-more-icon { color: var(--bew-bc-more-ico-hover, var(--bew-bc-more-ico, currentColor)); }
.bew-bc-more-icon svg { width: var(--bew-bc-more-icon); height: var(--bew-bc-more-icon); fill: currentColor; }
.bew-bc-more-icon svg[fill="none"] { fill: none; }

/* — Çizgili link — */
.bew-bc-foot-link .bew-bc-more,
.bew-bc-foot-link .bew-bc-more:visited {
  display: flex;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  padding: var(--bew-bc-line-space) var(--bew-bc-link-px) 0;
  border-top: var(--bew-bc-line-w) solid var(--bew-bc-line);
}
.bew-bc-foot-link .bew-bc-more:hover { border-top-color: var(--bew-bc-line-hover, var(--bew-bc-line)); }
.bew-bc-foot-link .bew-bc-more:hover .bew-bc-more-icon { transform: translate(2px, -2px); }

/* — Buton — */
.bew-bc-foot-button .bew-bc-more,
.bew-bc-foot-button .bew-bc-more:visited {
  padding: 14px 30px;
  border-radius: 8px;
  background: var(--bew-bc-btn-bg);
  border: var(--bew-bc-btn-bw) solid var(--bew-bc-btn-border, var(--bew-bc-btn-bg));
  color: var(--bew-bc-more, #fff);
}
.bew-bc-foot-button .bew-bc-more:hover,
.bew-bc-foot-button .bew-bc-more:focus-visible {
  background: var(--bew-bc-btn-bg-hover);
  border-color: var(--bew-bc-btn-border-hover, var(--bew-bc-btn-bg-hover));
  color: var(--bew-bc-more-hover, #fff);
}
/* Buton tipinde metin varsayılanı beyaz (panelden değiştirilebilir) */
.bew-bc-foot-button { --bew-bc-more: #fff; --bew-bc-more-hover: #fff; }

.bew-bc-wrap a:focus-visible { outline: 2px solid var(--bew-bc-title); outline-offset: 2px; }

/* ================================================
   IZGARA
   ================================================ */
.bew-bc-grid .bew-bc-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--bew-bc-gap);
  row-gap: var(--bew-bc-row-gap, var(--bew-bc-gap));
}
@media (max-width: 1024px) { .bew-bc-grid .bew-bc-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .bew-bc-grid .bew-bc-items { grid-template-columns: minmax(0, 1fr); } }

/* Sayfalama */
.bew-bc-wrap .bew-bc-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: var(--bew-bc-pag-space);
}
.bew-bc-wrap .bew-bc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--bew-bc-pag-size);
  height: var(--bew-bc-pag-size);
  padding: 0 10px;
  box-sizing: border-box;
  border: 1px solid var(--bew-bc-pag-border);
  border-radius: var(--bew-bc-pag-radius);
  background: var(--bew-bc-pag-bg);
  color: var(--bew-bc-pag-color);
  font-size: 14px;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.bew-bc-wrap .bew-bc-pagination .prev,
.bew-bc-wrap .bew-bc-pagination .next { border-radius: calc(var(--bew-bc-pag-size) / 2); padding: 0 16px; }
.bew-bc-wrap .bew-bc-pagination a.page-numbers:hover {
  color: var(--bew-bc-pag-color-hover, var(--bew-bc-pag-color));
  background: var(--bew-bc-pag-bg-hover, var(--bew-bc-pag-bg));
  border-color: var(--bew-bc-pag-border-hover, var(--bew-bc-pag-color));
}
.bew-bc-wrap .bew-bc-pagination .page-numbers.current {
  color: var(--bew-bc-pag-color-active);
  background: var(--bew-bc-pag-bg-active);
  border-color: var(--bew-bc-pag-border-active);
}
.bew-bc-wrap .bew-bc-pagination .page-numbers.dots { border-color: transparent; background: transparent; min-width: 0; padding: 0 4px; }

/* ================================================
   CAROUSEL
   ================================================ */
.bew-bc-stage { position: relative; }

/* Gölge payı: kart gölgeleri kesilmesin, kartlar yine kenara hizalı kalsın */
.bew-bc-carousel .bew-bc-track {
  position: relative;
  overflow: hidden;
  padding: var(--bew-bc-shadow-space);
  margin: calc(var(--bew-bc-shadow-space) * -1);
  box-sizing: content-box;
  list-style: none;
  z-index: 1;
}
.bew-bc-carousel .swiper-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  width: 100%;
  height: auto;
  box-sizing: content-box;
  transition-property: transform;
}
.bew-bc-carousel .bew-bc-slide {
  position: relative;
  flex-shrink: 0;
  height: auto;
  box-sizing: border-box;
}

/* Swiper başlamadan önce (ve JS kapalıyken) aynı yerleşim: sıçrama olmaz */
.bew-bc-carousel .bew-bc-track:not(.is-ready) .swiper-wrapper { gap: var(--bew-bc-gap); }
.bew-bc-carousel .bew-bc-track:not(.is-ready) .bew-bc-slide {
  width: calc((100% - (var(--bew-bc-spv) - 1) * var(--bew-bc-gap)) / var(--bew-bc-spv));
}
@media (max-width: 1024px) { .bew-bc-wrap { --bew-bc-spv: 2; } }
@media (max-width: 767px)  { .bew-bc-wrap { --bew-bc-spv: 1.15; } }

/* Yedek: Swiper yoksa yerel yatay kaydırma */
.bew-bc-carousel .bew-bc-track.is-native {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--bew-bc-shadow-space);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.bew-bc-carousel .bew-bc-track.is-native::-webkit-scrollbar { display: none; }
.bew-bc-carousel .bew-bc-track.is-native .bew-bc-slide { scroll-snap-align: start; }

/* Oklar */
.bew-bc-wrap .bew-bc-nav {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--bew-bc-arr-gap);
  transform: translateY(var(--bew-bc-nav-y));
}
.bew-bc-arrows-top .bew-bc-nav    { margin-bottom: var(--bew-bc-nav-space); }
.bew-bc-arrows-bottom .bew-bc-nav { margin-top: var(--bew-bc-nav-space); }
.bew-bc-arrows-sides .bew-bc-nav {
  position: absolute;
  inset: 50% 0 auto 0;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(calc(-50% + var(--bew-bc-nav-y)));
}
.bew-bc-arrows-sides .bew-bc-arrow { pointer-events: auto; }
/* Kartların üstünde durduğu için varsayılan zemin dolu (panelden değiştirilebilir) */
.bew-bc-arrows-sides { --bew-bc-arr-bg: #fff; --bew-bc-arr-border: rgba(29, 59, 48, 0.18); }
.bew-bc-arrows-sides .bew-bc-prev { margin-left: var(--bew-bc-arr-x); }
.bew-bc-arrows-sides .bew-bc-next { margin-right: var(--bew-bc-arr-x); }

.bew-bc-wrap .bew-bc-arrow,
.bew-bc-wrap .bew-bc-arrow:hover,
.bew-bc-wrap .bew-bc-arrow:focus,
.bew-bc-wrap .bew-bc-arrow:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--bew-bc-arr-w, var(--bew-bc-arr));
  height: var(--bew-bc-arr);
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  border: var(--bew-bc-arr-bw) solid var(--bew-bc-arr-border);
  border-radius: var(--bew-bc-arr-radius);
  background: var(--bew-bc-arr-bg);
  color: var(--bew-bc-arr-color);
  font-size: var(--bew-bc-arr-icon);
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.bew-bc-wrap .bew-bc-arrow:hover,
.bew-bc-wrap .bew-bc-arrow:focus-visible {
  background: var(--bew-bc-arr-bg-hover);
  color: var(--bew-bc-arr-color-hover);
  border-color: var(--bew-bc-arr-border-hover);
}
.bew-bc-wrap .bew-bc-arrow:focus-visible { outline: 2px solid var(--bew-bc-arr-border-hover); outline-offset: 2px; }
.bew-bc-wrap .bew-bc-arrow svg { width: var(--bew-bc-arr-icon); height: var(--bew-bc-arr-icon); }
.bew-bc-wrap .bew-bc-arrow i { font-size: var(--bew-bc-arr-icon); }
.bew-bc-wrap .bew-bc-arrow.swiper-button-disabled,
.bew-bc-wrap .bew-bc-arrow[disabled] { opacity: 0.35; cursor: default; pointer-events: none; }
/* Tüm kartlar sığıyorsa oklar ve noktalar gizlenir */
.bew-bc-wrap .bew-bc-arrow.swiper-button-lock,
.bew-bc-wrap .bew-bc-dots.swiper-pagination-lock { display: none; }
.bew-bc-wrap.is-locked .bew-bc-nav { display: none; }

/* Noktalar */
.bew-bc-wrap .bew-bc-dots {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--bew-bc-dot-gap);
  margin-top: var(--bew-bc-dot-space);
  inset: auto;
  width: auto;
  transform: none;
}
.bew-bc-wrap .bew-bc-dots .swiper-pagination-bullet {
  display: block;
  width: var(--bew-bc-dot);
  height: var(--bew-bc-dot);
  margin: 0 !important;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bew-bc-dot-color);
  opacity: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.bew-bc-wrap .bew-bc-dots .swiper-pagination-bullet-active { background: var(--bew-bc-dot-active); transform: scale(1.2); }

/* ================================================
   EDİTÖR / DİĞER
   ================================================ */
.bew-bc-empty {
  padding: 18px 20px;
  border: 1px dashed #c9b37a;
  border-radius: 8px;
  background: #fff8e6;
  color: #6b5a2e;
  font: 500 13px/1.5 system-ui, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  .bew-bc-wrap .bew-bc-card,
  .bew-bc-wrap .bew-bc-img,
  .bew-bc-more-icon { transition: none; }
  .bew-bc-zoom .bew-bc-card:hover .bew-bc-img { transform: none; }
}
