/* ================================================
   Börte Elementor Widgets — Expertise Carousel
   ================================================ */

/* Font gereksinimi: Marcellus, Sacramento, JetBrains Mono
   Bu fontlar tema tarafından zaten yükleniyorsa bu @import'u kaldırabilirsiniz */
/* @import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Sacramento&family=JetBrains+Mono:wght@400;500&display=swap'); */

/* ---- Değişkenler (tema değerlerine fallback) ---- */
.bew-expertise-carousel {
  --bew-ink:        var(--ink, #2a1f1d);
  --bew-ink-soft:   var(--ink-soft, #4a3d3a);
  --bew-muted:      var(--muted, rgb(115, 102, 96));
  --bew-line:       var(--line, #e0d4c4);
  --bew-cream-warm: var(--cream-warm, rgb(238, 226, 213));
  --bew-font-display: var(--font-display, "Marcellus", Georgia, serif);
  --bew-font-mono:    var(--font-mono, "JetBrains Mono", monospace);

  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ---- Stage ---- */
.bew-ec-stage {
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  gap: 16px;
  align-items: stretch;
  height: 520px;
}

/* ---- Peek kartlar (sol & sağ) ---- */
.bew-ec-peek {
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 24px 16px;
  color: white;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(0.9);
  /* arka plan rengi JS tarafından set edilir */
}
.bew-ec-peek:hover {
  filter: brightness(1);
  transform: translateY(-3px);
}

.bew-ec-peek-slide {
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.bew-ec-peek-num {
  font-family: var(--bew-font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.85);
}

.bew-ec-peek-title {
  font-family: var(--bew-font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  color: white;
  word-wrap: break-word;
}

.bew-ec-peek-chev {
  position: absolute;
  font-size: 56px;
  color: rgba(255,255,255,0.6);
  line-height: 1;
  font-family: var(--bew-font-display);
}
.bew-ec-peek-left .bew-ec-peek-chev  { top: 14px; right: 18px; }
.bew-ec-peek-right .bew-ec-peek-chev { top: 14px; left: 18px; }

.bew-ec-peek-right {
  text-align: right;
  align-items: flex-end;
}
.bew-ec-peek-right .bew-ec-peek-num,
.bew-ec-peek-right .bew-ec-peek-title {
  text-align: right;
  align-self: flex-end;
}

/* ---- Aktif kart ---- */
.bew-ec-active-card {
  position: relative;
  min-width: 0;
}

.bew-ec-slide {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(45, 30, 30, 0.12);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  height: 100%;
}

/* ---- Görsel alan (sol) ---- */
.bew-ec-visual {
  position: relative;
  overflow: hidden;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}

/* Blob dekorasyon (gradient modunda) */
.bew-ec-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  mix-blend-mode: screen;
  pointer-events: none;
}
.bew-ec-blob-a {
  width: 200px; height: 200px;
  top: -50px; left: -40px;
  background: rgba(255,255,255,0.18);
}
.bew-ec-blob-b {
  width: 160px; height: 160px;
  bottom: -40px; right: -30px;
  background: rgba(255,255,255,0.12);
}
.bew-ec-blob-c {
  width: 100px; height: 100px;
  top: 50%; right: 20%;
  background: rgba(255,255,255,0.08);
}

.bew-ec-visual-top {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.bew-ec-num {
  font-family: var(--bew-font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.9);
}

.bew-ec-tag {
  font-family: var(--bew-font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  color: rgba(255,255,255,0.92);
}

.bew-ec-visual-bottom {
  position: relative;
  z-index: 1;
}
.bew-ec-visual-bottom h3 {
  font-family: var(--bew-font-display);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 400;
  line-height: 1.1;
  color: white;
  margin: 0;
}

/* ---- İçerik alanı (sağ) ---- */
.bew-ec-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
}

.bew-ec-desc {
  font-size: 15px;
  color: var(--bew-ink-soft);
  line-height: 1.7;
  margin-bottom: 24px;
}

.bew-ec-list {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--bew-line);
}

.bew-ec-list-label {
  font-family: var(--bew-font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--bew-muted);
  display: block;
  margin-bottom: 14px;
}

.bew-ec-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.bew-ec-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--bew-ink-soft);
}

.bew-ec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* ---- CTA ---- */
.bew-ec-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--bew-line);
}

.bew-ec-detail-btn {
  --bew-accent: #4a9ba0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--bew-accent);
  color: #fff;
  font-family: var(--bew-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 500;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--bew-accent) 60%, transparent);
}
.bew-ec-detail-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--bew-accent) 70%, transparent);
}
.bew-ec-detail-btn svg {
  transition: transform 0.2s ease;
}
.bew-ec-detail-btn:hover svg {
  transform: translateX(3px);
}

/* ---- Navigasyon ---- */
.bew-ec-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bew-ec-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--bew-line);
  color: var(--bew-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 0;
}
.bew-ec-arrow:hover {
  background: var(--bew-ink);
  color: white;
  border-color: var(--bew-ink);
}

.bew-ec-pills {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
}

.bew-ec-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 12px;
  background: white;
  border: 1px solid var(--bew-line);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.bew-ec-pill::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--bew-pill-accent, #4a9ba0);
  opacity: 0;
  transition: opacity 0.2s;
}
.bew-ec-pill.active::before { opacity: 1; }
.bew-ec-pill.active {
  background: var(--bew-cream-warm);
  border-color: var(--bew-pill-accent, #4a9ba0);
}
/* Tema buton hover baskılamasını geç */
.bew-expertise-carousel .bew-ec-pill:hover {
  background-color: var(--bew-cream-warm);
  border-color: var(--bew-pill-accent, #4a9ba0);
}
.bew-expertise-carousel .bew-ec-pill.active:hover {
  background-color: var(--bew-cream-warm);
  border-color: var(--bew-pill-accent, #4a9ba0);
}
.bew-expertise-carousel .bew-ec-arrow:hover {
  background-color: var(--bew-ink);
  border-color: var(--bew-ink);
}


.bew-ec-pill-num {
  font-family: var(--bew-font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--bew-muted);
}
.bew-ec-pill.active .bew-ec-pill-num {
  color: var(--bew-pill-accent, #4a9ba0);
}

.bew-ec-pill-label {
  font-family: var(--bew-font-display);
  font-size: 13px;
  color: var(--bew-ink);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .bew-ec-stage { grid-template-columns: 110px 1fr 110px; height: 480px; }
  .bew-ec-peek-title { font-size: 16px; }
}

@media (max-width: 880px) {
  /* Peek butonlar ve oklar gizlenir */
  .bew-ec-peek  { display: none; }
  .bew-ec-arrow { display: none; }

  /* Stage: sadece aktif kart */
  .bew-ec-stage {
    grid-template-columns: 1fr;
    height: auto;
  }

  /* Aktif kart: tek kolon */
  .bew-ec-slide   { grid-template-columns: 1fr; }
  .bew-ec-visual  { min-height: 220px; }
  .bew-ec-body    { padding: 24px 20px; }
  .bew-ec-list ul { grid-template-columns: 1fr; }

  /* Nav: sadece pill şeridi */
  .bew-ec-nav { gap: 0; }

  /* Pills: yatay scroll şeridi */
  .bew-ec-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .bew-ec-pills::-webkit-scrollbar { display: none; }
  .bew-ec-pill {
    flex: 0 0 auto;
    min-width: 100px;
    scroll-snap-align: start;
  }
}
/* ================================================
   TARAYICI STİLİ — Liste + Panel
   ================================================ */
.bew-et-browser {
  --bew-ink:        var(--ink, #2a1f1d);
  --bew-ink-soft:   var(--ink-soft, #4a3d3a);
  --bew-muted:      var(--muted, rgb(115, 102, 96));
  --bew-line:       var(--line, #e0d4c4);
  --bew-font-display: var(--font-display, "Marcellus", Georgia, serif);
  --bew-font-mono:    var(--font-mono, "JetBrains Mono", monospace);
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 24px;
  align-items: start;
}
.bew-et-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--bew-line);
}
.bew-et-item {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 22px 6px;
  border-bottom: 1px solid var(--bew-line);
  cursor: pointer;
  font-family: var(--bew-font-display);
  position: relative;
  transition: padding 0.3s ease, color 0.2s;
  outline: none;
}
.bew-et-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 0; background: var(--bew-et-item-accent, #4a9ba0);
  opacity: 0; transition: width 0.35s ease, opacity 0.25s;
}
.bew-et-item.active::before { width: 3px; opacity: 1; }
.bew-et-item.active { padding-left: 18px; }
.bew-et-num {
  font-family: var(--bew-font-mono); font-size: 12px;
  letter-spacing: 0.2em; color: var(--bew-muted); transition: color 0.2s;
}
.bew-et-item.active .bew-et-num { color: var(--bew-et-item-accent, #4a9ba0); }
.bew-et-title {
  font-size: 18px; font-weight: 400; color: var(--bew-ink);
  line-height: 1.3; transition: color 0.2s;
}
.bew-et-item:not(.active):hover .bew-et-title { color: var(--bew-et-item-accent, #4a9ba0); }
.bew-et-arrow {
  color: var(--bew-muted); opacity: 0;
  transform: translateX(-8px); transition: all 0.3s ease; display: inline-flex;
}
.bew-et-item.active .bew-et-arrow {
  opacity: 1; transform: translateX(0); color: var(--bew-et-item-accent, #4a9ba0);
}
.bew-et-panel {
  background: white; border-radius: 12px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(45, 30, 30, 0.06); position: relative;
}
.bew-et-slide { display: none; grid-template-columns: 1fr 1.4fr; min-height: 460px; }
.bew-et-slide.is-active { display: grid; }
.bew-et-visual { position: relative; overflow: hidden; min-height: 320px; transition: background 0.5s ease; }
.bew-et-blob { position: absolute; border-radius: 50%; filter: blur(2px); mix-blend-mode: screen; transition: all 0.6s ease; pointer-events: none; }
.bew-et-blob-a { width: 220px; height: 220px; top: -40px; left: -50px; background: rgba(255,255,255,0.18); }
.bew-et-blob-b { width: 180px; height: 180px; bottom: -30px; right: -20px; background: rgba(255,255,255,0.12); }
.bew-et-blob-c { width: 120px; height: 120px; top: 40%; right: 30%; background: rgba(255,255,255,0.08); }
.bew-et-visual-num {
  position: absolute; top: 32px; left: 32px; z-index: 1;
  font-family: var(--bew-font-mono); font-size: 13px;
  letter-spacing: 0.3em; color: rgba(255,255,255,0.85);
}
.bew-et-visual-tag {
  position: absolute; bottom: 32px; left: 32px; z-index: 1;
  font-family: var(--bew-font-mono); font-size: 11px;
  letter-spacing: 0.3em; color: rgba(255,255,255,0.75);
  padding: 6px 12px; border: 1px solid rgba(255,255,255,0.35); border-radius: 999px;
}
.bew-et-body { padding: 44px 44px 44px 40px; display: flex; flex-direction: column; }
.bew-et-panel-title {
  font-family: var(--bew-font-display) !important;
  font-size: clamp(26px, 2.6vw, 34px) !important;
  font-weight: 400 !important; color: var(--bew-ink) !important;
  margin: 0 0 18px !important; line-height: 1.15 !important;
}
.bew-et-panel-desc { font-size: 15px; color: var(--bew-ink-soft); line-height: 1.75; margin: 0 0 28px; }
.bew-et-panel-list { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--bew-line); }
.bew-et-panel-list-label {
  font-family: var(--bew-font-mono); font-size: 10px;
  letter-spacing: 0.25em; display: block; margin-bottom: 16px;
}
.bew-et-panel-list ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
}
.bew-et-panel-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--bew-ink-soft); }
.bew-et-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.bew-et-panel-cta { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--bew-line); }
.bew-et-browser .bew-et-detail-btn,
.bew-et-browser .bew-et-detail-btn:visited {
  --bew-accent: #4a9ba0;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; background: var(--bew-accent) !important; color: #fff !important;
  font-family: var(--bew-font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none !important; border-radius: 999px;
  font-weight: 500; border: none !important;
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--bew-accent) 60%, transparent);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.bew-et-browser .bew-et-detail-btn:hover {
  transform: translateY(-1px); filter: brightness(1.05); background: var(--bew-accent) !important;
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--bew-accent) 70%, transparent);
}
.bew-et-detail-btn svg { transition: transform 0.2s ease; }
.bew-et-detail-btn:hover svg { transform: translateX(3px); }
@media (max-width: 1020px) {
  .bew-et-browser { grid-template-columns: 1fr; gap: 32px; }
  .bew-et-slide { grid-template-columns: 1fr; }
  .bew-et-visual { min-height: 200px; }
  .bew-et-panel-list ul { grid-template-columns: 1fr; }
  .bew-et-body { padding: 28px 24px; }
}

/* ================================================
   SADE STİLİ — Full-width sütun / Mobil akordeon
   ================================================ */
.bew-sd-wrap {
  --bew-ink:        var(--ink, #2a1f1d);
  --bew-muted:      var(--muted, rgb(115, 102, 96));
  --bew-line:       var(--line, #e0d4c4);
  --bew-font-display: var(--font-display, "Marcellus", Georgia, serif);
}
.bew-sd-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  border-top: 1px solid var(--bew-line);
  border-bottom: 1px solid var(--bew-line);
}
.bew-sd-col {
  border-right: 1px solid var(--bew-line);
  display: flex; flex-direction: column;
  transition: background 0.3s ease;
  --bew-sd-a: var(--bew-sd-accent, #4a9ba0);
}
.bew-sd-col:last-child { border-right: none; }
.bew-sd-col:hover { background: rgba(42,31,29,0.02); }
.bew-sd-wrap .bew-sd-head,
.bew-sd-wrap .bew-sd-head:hover,
.bew-sd-wrap .bew-sd-head:focus,
.bew-sd-wrap .bew-sd-head:active {
  all: unset;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 34px 26px 18px; cursor: default; box-sizing: border-box; width: 100%;
}
.bew-sd-icon {
  color: var(--bew-muted);
  transition: color 0.3s ease;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
}
.bew-sd-icon svg { width: 22px; height: 22px; fill: currentColor; }
.bew-sd-icon i { font-size: 22px; }
.bew-sd-col:hover .bew-sd-icon { color: var(--bew-sd-a); }
.bew-sd-heading { display: flex; flex-direction: column; gap: 8px; }
.bew-sd-num {
  font-family: var(--bew-font-display); font-size: 13px;
  letter-spacing: 0.1em; color: var(--bew-muted); opacity: 0.7;
}
.bew-sd-title {
  font-family: var(--bew-font-display); font-size: 19px;
  line-height: 1.32; color: var(--bew-ink); text-wrap: pretty;
}
.bew-sd-chev { display: none; }
.bew-sd-body {
  padding: 0 26px 34px; display: flex; flex-direction: column;
  gap: 16px; flex: 1; justify-content: space-between;
}
.bew-sd-desc { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--bew-muted); text-wrap: pretty; }
.bew-sd-wrap .bew-sd-cta,
.bew-sd-wrap .bew-sd-cta:visited {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--bew-font-display); font-size: 13px; letter-spacing: 0.04em;
  color: var(--bew-muted) !important; text-decoration: none !important;
  align-self: flex-start; background: transparent !important; border: none !important;
  box-shadow: none !important; padding: 0 !important;
  transition: gap 0.22s ease, color 0.22s ease;
}
.bew-sd-wrap .bew-sd-cta:hover { gap: 10px; color: var(--bew-sd-a) !important; background: transparent !important; }

@media (max-width: 1040px) {
  .bew-sd-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .bew-sd-col:nth-child(3n) { border-right: none; }
  .bew-sd-col:nth-child(n+4) { border-top: 1px solid var(--bew-line); }
}
@media (max-width: 760px) {
  .bew-sd-grid { grid-template-columns: 1fr !important; }
  .bew-sd-col { border-right: none; border-top: 1px solid var(--bew-line); }
  .bew-sd-col:first-child { border-top: none; }
  .bew-sd-wrap .bew-sd-head,
  .bew-sd-wrap .bew-sd-head:hover,
  .bew-sd-wrap .bew-sd-head:focus,
  .bew-sd-wrap .bew-sd-head:active {
    flex-direction: row; align-items: center; gap: 14px;
    width: 100%; padding: 20px 4px; cursor: pointer;
  }
  .bew-sd-heading { flex: 1; flex-direction: row; align-items: baseline; gap: 10px; }
  .bew-sd-num { font-size: 12px; }
  .bew-sd-title { font-size: 17px; }
  .bew-sd-chev { display: block; color: var(--bew-muted); transition: transform 0.3s ease; margin-left: auto; }
  .bew-sd-col.is-open .bew-sd-chev { transform: rotate(180deg); color: var(--bew-sd-a); }
  .bew-sd-body {
    display: block; max-height: 0; overflow: hidden; padding: 0 4px;
    opacity: 0; transition: max-height 0.34s ease, opacity 0.25s ease, padding 0.34s ease;
  }
  .bew-sd-body .bew-sd-desc { margin: 0 0 14px; }
  .bew-sd-col.is-open .bew-sd-body { max-height: 340px; opacity: 1; padding: 0 4px 22px; }
}
