/* =========================================================
   Webmivo Gutenberg Blocks — Frontend + Editor Shared
   - webmivo/faq, webmivo/faq-item
   - webmivo/cta
   ========================================================= */

:root {
  --wm-orange: #E8740C;
  --wm-orange-hover: #d06508;
  --wm-dark: #1a1a2e;
  --wm-text: #374151;
  --wm-text-light: #6B7280;
  --wm-border: #E5E7EB;
  --wm-soft: #FFF7EC;
}

/* ═══ FAQ ═══ */
.wm-faq {
  margin: 40px 0;
  padding: 36px 32px;
  background: #fff;
  border: 1px solid var(--wm-border);
  border-radius: 16px;
}
.wm-faq-title {
  font-size: clamp(1.4rem, 2.4vw, 1.875rem);
  font-weight: 800;
  color: var(--wm-dark);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.wm-faq-intro {
  color: var(--wm-text-light);
  margin: 0 0 24px;
  line-height: 1.6;
}
.wm-faq-list { display: flex; flex-direction: column; gap: 12px; }

.wm-faq-item {
  border: 1px solid var(--wm-border);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.wm-faq-item[open],
.wm-faq-item:hover {
  border-color: rgba(232, 116, 12, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.wm-faq-item > summary.wm-faq-q,
.wm-faq-item .wm-faq-q {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--wm-dark);
  margin: 0;
  line-height: 1.45;
}
.wm-faq-item > summary.wm-faq-q::-webkit-details-marker { display: none; }
.wm-faq-item .wm-faq-icon {
  flex-shrink: 0;
  color: var(--wm-orange);
  transition: transform 0.25s ease;
}
.wm-faq-item[open] .wm-faq-icon { transform: rotate(180deg); }

.wm-faq-a {
  padding: 0 22px 20px;
  color: var(--wm-text);
  line-height: 1.7;
  border-top: 1px solid var(--wm-border);
  padding-top: 16px;
  margin-top: 0;
}
.wm-faq-a p { margin: 0 0 12px; }
.wm-faq-a p:last-child { margin-bottom: 0; }
.wm-faq-a a { color: var(--wm-orange); text-decoration: underline; text-underline-offset: 3px; }

/* Editor-specific: summary yok, daima açık göster */
.wm-faq-item--editor {
  padding: 14px 18px;
}
.wm-faq-item--editor .wm-faq-q {
  padding: 0 0 10px;
  border-bottom: 1px dashed var(--wm-border);
  margin-bottom: 10px;
  font-size: 1.05rem;
  font-weight: 600;
}
.wm-faq-item--editor .wm-faq-a {
  padding: 0;
  border-top: none;
}

/* ═══ CTA ═══ */
.wm-cta {
  margin: 48px 0;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  isolation: isolate; /* z-index bağlamı, dekoratif öğeler için */
}
.wm-cta-inner {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.wm-cta--align-center .wm-cta-inner { align-items: center; text-align: center; }
.wm-cta--align-left   .wm-cta-inner { align-items: flex-start; text-align: left; }

.wm-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: 9999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wm-cta-title {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
  color: inherit;
}
.wm-cta-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 640px;
  margin: 0;
}
.wm-cta-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.wm-cta--align-center .wm-cta-actions { justify-content: center; }

/* ─── Buton tabanı (varyantlar override eder) ─── */
.wm-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.wm-cta-btn:hover { transform: translateY(-2px); }
.wm-cta-btn:focus-visible {
  outline: 3px solid rgba(232, 116, 12, 0.5);
  outline-offset: 2px;
}

/* ─── ORANGE varyant (açık turuncu gradient zemin) ─────────────
   Primary: koyu lacivert (kontrast için orange yerine!)
   Ghost: turuncu dolgu beyaz yazı
   ────────────────────────────────────────────────────────────── */
.wm-cta--orange {
  background: linear-gradient(135deg, #FFF7EC 0%, #FFE7CF 100%);
  border: 1px solid rgba(232, 116, 12, 0.25);
  color: var(--wm-dark);
}
.wm-cta--orange .wm-cta-badge {
  background: #fff;
  color: var(--wm-orange);
  border: 1px solid rgba(232, 116, 12, 0.3);
}
.wm-cta--orange .wm-cta-desc { color: var(--wm-text); }

.wm-cta--orange .wm-cta-btn--primary {
  background: var(--wm-dark);
  color: #fff;
  border-color: var(--wm-dark);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
}
.wm-cta--orange .wm-cta-btn--primary:hover {
  background: #000;
  border-color: #000;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.3);
}

.wm-cta--orange .wm-cta-btn--ghost {
  background: var(--wm-orange);
  color: #fff;
  border-color: var(--wm-orange);
}
.wm-cta--orange .wm-cta-btn--ghost:hover {
  background: var(--wm-orange-hover, #c95f00);
  border-color: var(--wm-orange-hover, #c95f00);
  color: #fff;
}

/* ─── DARK varyant (koyu lacivert zemin) ──────────────────────
   Primary: turuncu (marka aksanı)
   Ghost: outline beyaz, hover'da beyaz dolgu + koyu yazı
   ──────────────────────────────────────────────────────────── */
.wm-cta--dark {
  background: linear-gradient(135deg, #1a1a2e 0%, #2a2a4a 100%);
  color: #fff;
}
.wm-cta--dark .wm-cta-badge {
  background: rgba(232, 116, 12, 0.18);
  color: #FFB774;
  border: 1px solid rgba(232, 116, 12, 0.35);
}
.wm-cta--dark .wm-cta-desc { color: rgba(255, 255, 255, 0.85); }

.wm-cta--dark .wm-cta-btn--primary {
  background: var(--wm-orange);
  color: #fff;
  border-color: var(--wm-orange);
  box-shadow: 0 6px 20px rgba(232, 116, 12, 0.35);
}
.wm-cta--dark .wm-cta-btn--primary:hover {
  background: var(--wm-orange-hover, #c95f00);
  border-color: var(--wm-orange-hover, #c95f00);
  box-shadow: 0 10px 28px rgba(232, 116, 12, 0.45);
}

.wm-cta--dark .wm-cta-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.wm-cta--dark .wm-cta-btn--ghost:hover {
  background: #fff;
  color: var(--wm-dark);
  border-color: #fff;
}

/* ─── SOFT varyant (açık gri zemin) ─────────────────────────
   Primary: turuncu marka
   Ghost: outline koyu, hover'da koyu dolgu + beyaz yazı
   ─────────────────────────────────────────────────────────── */
.wm-cta--soft {
  background: #F9FAFB;
  border: 1px solid var(--wm-border);
  color: var(--wm-dark);
}
.wm-cta--soft .wm-cta-badge {
  background: #fff;
  color: var(--wm-orange);
  border: 1px solid var(--wm-border);
}
.wm-cta--soft .wm-cta-desc { color: var(--wm-text); }

.wm-cta--soft .wm-cta-btn--primary {
  background: var(--wm-orange);
  color: #fff;
  border-color: var(--wm-orange);
  box-shadow: 0 6px 20px rgba(232, 116, 12, 0.25);
}
.wm-cta--soft .wm-cta-btn--primary:hover {
  background: var(--wm-orange-hover, #c95f00);
  border-color: var(--wm-orange-hover, #c95f00);
  box-shadow: 0 10px 28px rgba(232, 116, 12, 0.35);
}

.wm-cta--soft .wm-cta-btn--ghost {
  background: transparent;
  color: var(--wm-dark);
  border-color: rgba(15, 23, 42, 0.2);
}
.wm-cta--soft .wm-cta-btn--ghost:hover {
  background: var(--wm-dark);
  color: #fff;
  border-color: var(--wm-dark);
}

/* Editor preview */
.wm-cta--editor .wm-cta-btn { pointer-events: none; }

/* Responsive */
@media (max-width: 640px) {
  .wm-faq { padding: 24px 18px; }
  .wm-faq-item > summary.wm-faq-q { padding: 16px 18px; font-size: 1rem; }
  .wm-faq-a { padding: 12px 18px 16px; }
  .wm-cta { border-radius: 18px; }
  .wm-cta-inner { padding: 36px 24px; gap: 14px; }
  .wm-cta-title { font-size: 1.5rem; }
  .wm-cta-desc { font-size: 0.98rem; }
  .wm-cta-actions { flex-direction: column; width: 100%; }
  .wm-cta-btn { justify-content: center; width: 100%; padding: 13px 24px; }
}

/* ═══════════════════════════════════════════════════════════
   Custom Service Blocks (Ported from hizmet-template.css)
   ═══════════════════════════════════════════════════════════ */

/* Service Cards */
.wt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 32px 0 64px; }
.wt-card { background: #fff; border: 1px solid var(--wm-border); border-radius: 14px; padding: 24px; transition: transform 0.2s, box-shadow 0.2s; }
.wt-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.06); border-color: rgba(232, 116, 12, 0.3); }
.wt-card-icon { font-size: 1.8rem; margin-bottom: 10px; line-height: 1; }
.wt-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--wm-dark); margin: 0 0 8px; line-height: 1.35; }
.wt-card p { font-size: 0.95rem; line-height: 1.65; color: var(--wm-text); margin: 0; }

/* Reasons */
.wt-reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 40px 0 64px; }
.wt-reason { background: #F9FAFB; border: 1px solid var(--wm-border); border-radius: 14px; padding: 22px; position: relative; }
.wt-reason-num { position: absolute; top: -12px; left: 22px; background: var(--wm-dark); color: #fff; font-size: 0.75rem; font-weight: 800; padding: 4px 10px; border-radius: 9999px; letter-spacing: 0.05em; }
.wt-reason h3 { font-size: 1.1rem; font-weight: 700; color: var(--wm-dark); margin: 8px 0 8px; }
.wt-reason p { font-size: 0.93rem; line-height: 1.6; color: var(--wm-text); margin: 0; }

/* Steps */
.wt-steps { list-style: none; padding: 0; margin: 32px 0 64px; display: flex; flex-direction: column; gap: 14px; }
.wt-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--wm-border); border-radius: 12px; }
.wt-step-num { background: linear-gradient(135deg, var(--wm-orange) 0%, var(--wm-orange-hover) 100%); color: #fff; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; }
.wt-steps h3 { font-size: 1.05rem; font-weight: 700; color: var(--wm-dark); margin: 0 0 6px; }
.wt-steps h3 em { color: var(--wm-text-light); font-style: normal; font-weight: 500; font-size: 0.85rem; }
.wt-steps p { font-size: 0.93rem; line-height: 1.6; color: var(--wm-text); margin: 0; }

/* Editor Overrides */
.is-selected .wt-reason, .is-selected .wt-card { border-color: var(--wm-orange); }

/* Pricing Table Wrap */
.wt-pricing-wrap { margin: 40px 0; }
.wt-pricing-title { font-size: 1.5rem; font-weight: 800; color: var(--wm-dark); margin-bottom: 20px; }
.wt-pricing { overflow-x: auto; border: 1px solid var(--wm-border); border-radius: 14px; background: #fff; }
.wt-pricing-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.wt-pricing-table th, .wt-pricing-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--wm-border); vertical-align: middle; }
.wt-pricing-table thead th { background: var(--wm-dark); color: #fff; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: none; }
.wt-pricing-table .wt-highlight { background: #FFF7EC; }
.wt-pricing-table .wt-highlight th { color: var(--wm-dark); font-weight: 800; }
.wt-pricing-table .wt-tag { display: inline-block; background: var(--wm-orange); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 9999px; margin-left: 10px; vertical-align: middle; }

/* Purchase Card */
.wt-purchase-card { 
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2a2a4a 100%); color: #fff;
    padding: 40px; border-radius: 20px; margin: 48px 0; box-shadow: 0 20px 50px rgba(26,26,46,0.15);
}
.wt-purchase-content { flex: 1; }
.wt-purchase-title { font-size: 1.75rem; font-weight: 800; color: #fff; margin: 0 0 8px; }
.wt-purchase-price { font-size: 1.15rem; color: #FFB774; font-weight: 700; margin-bottom: 12px; }
.wt-purchase-desc { color: rgba(255,255,255,0.8); font-size: 1rem; line-height: 1.6; }
.wt-purchase-desc p:last-child { margin-bottom: 0; }

/* FAQ Grid */
.wt-faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin: 40px 0 64px; }
.wt-faq-grid .wm-faq-item { height: 100%; border-radius: 16px; }

@media (max-width: 768px) {
    .wt-purchase-card { flex-direction: column; text-align: center; padding: 32px 24px; gap: 24px; }
    .wt-purchase-action { width: 100%; }
}

/* ═══ Service Review Card (SEO) ═══ */
.wm-review-card {
  background: #fff;
  border: 1px solid var(--wm-border);
  border-radius: 20px;
  padding: 32px;
  margin: 40px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wm-review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.wm-review-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.wm-review-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--wm-dark);
  font-style: italic;
  margin: 0 0 24px;
  position: relative;
}
.wm-review-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}
.wm-review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--wm-soft);
}
.wm-review-author-info {
  display: flex;
  flex-direction: column;
}
.wm-review-name {
  font-weight: 700;
  color: var(--wm-dark);
  font-style: normal;
}
.wm-review-role {
  font-size: 0.85rem;
  color: var(--wm-text-light);
}

/* Editor preview fix */
.wm-editor-review {
  background: #fdf7f2;
  padding: 20px;
  border: 1px dashed var(--wm-orange);
  border-radius: 12px;
}
.wm-editor-review strong {
  display: block;
  margin-bottom: 12px;
  color: var(--wm-orange);
}

/* ═══ Video Expert (Schema) ═══ */
.wm-video-expert {
  margin: 48px 0;
  background: var(--wm-dark);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.wm-video-container {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
}
.wm-video-container iframe,
.wm-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}
.wm-video-content {
  padding: 32px 40px;
  background: linear-gradient(to bottom, #1a1a2e, #161625);
  color: #fff;
}
.wm-video-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
}
.wm-video-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* Editor preview fix */
.wm-editor-video {
  background: #f0f4f8;
  padding: 20px;
  border: 1px dashed #2b6cb0;
  border-radius: 12px;
}
.wm-editor-video strong {
  display: block;
  margin-bottom: 12px;
  color: #2b6cb0;
}

/* ═══ How-To (Schema) ═══ */
.wm-how-to {
  margin: 48px 0;
  padding: 40px;
  background: #fdf7f2;
  border: 1px solid #fce8d5;
  border-radius: 24px;
}
.wm-how-to-header { margin-bottom: 32px; }
.wm-how-to-title { font-size: 1.8rem; font-weight: 800; color: var(--wm-dark); margin: 0 0 10px; }
.wm-how-to-desc { font-size: 1.05rem; color: var(--wm-text); margin: 0; }
.wm-how-to-steps { display: flex; flex-direction: column; gap: 24px; }
.wm-how-to-step { display: flex; gap: 20px; background: #fff; padding: 24px; border-radius: 16px; border: 1px solid var(--wm-border); }
.wm-how-to-step-num { width: 36px; height: 36px; background: var(--wm-orange); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.wm-how-to-step-title { font-size: 1.15rem; font-weight: 700; color: var(--wm-dark); margin: 0 0 8px; }
.wm-how-to-step-text { font-size: 0.95rem; line-height: 1.6; color: var(--wm-text); }

/* ═══ Stats Grid ═══ */
.wm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin: 48px 0;
  text-align: center;
}
.wm-stat-item {
  padding: 32px 20px;
  background: #fff;
  border: 1px solid var(--wm-border);
  border-radius: 20px;
  transition: transform 0.2s;
}
.wm-stat-item:hover { transform: translateY(-5px); border-color: var(--wm-orange); }
.wm-stat-icon { font-size: 2.2rem; margin-bottom: 12px; }
.wm-stat-number { font-size: 2.5rem; font-weight: 800; color: var(--wm-dark); line-height: 1; margin-bottom: 8px; }
.wm-stat-suffix { color: var(--wm-orange); margin-left: 2px; }
.wm-stat-label { font-size: 0.9rem; font-weight: 600; color: var(--wm-text-light); text-transform: uppercase; letter-spacing: 0.05em; }

/* Editor preview fixes */
.wm-editor-howto { background: #fffaf0; padding: 20px; border: 1px dashed #d69e2e; border-radius: 12px; }
.wm-editor-howto strong { display: block; margin-bottom: 12px; color: #d69e2e; }
.wm-editor-step { background: #fff; padding: 15px; border: 1px solid #e2e8f0; margin-bottom: 10px; border-radius: 8px; }
.wm-editor-stats { background: #f7fafc; padding: 20px; border: 1px dashed #4a5568; border-radius: 12px; }
.wm-editor-stats strong { display: block; margin-bottom: 12px; color: #4a5568; }
.wm-editor-stat { background: #fff; padding: 10px; border: 1px solid #e2e8f0; margin-bottom: 8px; border-radius: 6px; }

/* ═══ Review Grid ═══ */
.wm-review-grid {
  display: grid;
  gap: 24px;
  margin: 48px 0;
}
.wm-review-grid--cols-1 { grid-template-columns: 1fr; }
.wm-review-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.wm-review-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.wm-review-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

.wm-review-grid .wm-review-card {
  margin: 0; /* Grid içindeki kartlar marjinini sıfırla */
  height: 100%;
}

@media (max-width: 1024px) {
  .wm-review-grid--cols-3, .wm-review-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wm-review-grid { grid-template-columns: 1fr !important; }
}

/* ═══ Case Study (CreativeWork) ═══ */
.wm-case-study {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 0;
  margin: 64px 0;
  background: #fff;
  border: 1px solid var(--wm-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0,0,0,0.05);
}
.wm-case-study-img {
  position: relative;
  overflow: hidden;
  background: #f8fafc;
}
.wm-case-study-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.wm-case-study:hover .wm-case-study-img img { transform: scale(1.05); }
.wm-case-study-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--wm-orange);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(232, 116, 12, 0.3);
}
.wm-case-study-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
}
.wm-case-study-client {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--wm-orange);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.wm-case-study-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--wm-dark);
  margin: 0 0 16px;
  line-height: 1.2;
}
.wm-case-study-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--wm-text);
  margin: 0 0 32px;
}
.wm-case-study-result {
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  padding: 20px 24px;
  border-radius: 16px;
  margin-bottom: 32px;
}
.wm-case-result-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #2f855a;
  display: block;
  margin-bottom: 4px;
}
.wm-case-result-val {
  font-size: 1.5rem;
  font-weight: 900;
  color: #22543d;
}
.wm-case-study-link {
  font-weight: 700;
  color: var(--wm-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
}
.wm-case-study-link:hover { gap: 12px; color: var(--wm-orange); }

/* ─── Case Study: görselsiz varyant (modifier) ─── */
.wm-case-study--no-image {
  grid-template-columns: 1fr;
  position: relative;
}
.wm-case-study--no-image .wm-case-study-content {
  padding: 48px;
  position: relative;
}
.wm-case-study--no-image .wm-case-study-badge {
  position: static;
  display: inline-block;
  margin-bottom: 16px;
  align-self: flex-start;
  /* görsel üstündeki absolute pozisyonu sıfırla */
  top: auto;
  left: auto;
}

@media (max-width: 992px) {
  .wm-case-study { grid-template-columns: 1fr; }
  .wm-case-study-img { height: 300px; }
  .wm-case-study-content { padding: 32px; }
}

/* Editor preview fix */
.wm-editor-case {
  background: #f0fff4;
  padding: 20px;
  border: 1px dashed #2f855a;
  border-radius: 12px;
}
.wm-editor-case strong {
  display: block;
  margin-bottom: 12px;
  color: #2f855a;
}

/* ═══ Trust Logos ═══ */
.wm-trust-section { margin: 48px 0; text-align: center; }
.wm-trust-title { font-size: 0.9rem; color: var(--wm-text-light); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 24px; font-weight: 700; }
.wm-trust-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px; opacity: 0.6; transition: opacity 0.3s; }
.wm-trust-logos:hover { opacity: 1; }
.wm-trust-logo-item img { max-width: 140px; height: auto; filter: grayscale(100%); transition: filter 0.3s; }
.wm-trust-logo-item:hover img { filter: grayscale(0%); }

/* ═══ Comparison Table V2 ═══ */
.wm-comparison-v2 {
  margin: 48px 0;
  /* Flex/Grid parent içinde dikey olarak yayılsın */
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 100%;
  align-self: stretch;
}
.wm-comparison-title {
  text-align: center;
  margin-bottom: 32px;
  font-size: 1.75rem;
  font-weight: 800;
  flex-shrink: 0;
}
.wm-comparison-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--wm-border);
  background: #fff;
  /* Mevcut yüksekliği doldur */
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.wm-comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  /* Sarmalayıcının tüm yüksekliğini kapla */
  flex: 1 1 auto;
  height: 100%;
}
.wm-comparison-table tbody {
  /* Satırlar kalan yüksekliği eşit dağıtsın */
  height: 100%;
}
.wm-comparison-table tbody tr {
  height: auto;
}
.wm-comparison-table th, .wm-comparison-table td {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid var(--wm-border);
  vertical-align: middle;
}
.wm-comparison-table thead th { background: #f8fafc; font-weight: 700; color: var(--wm-dark); }
.wm-comparison-table .wm-feat-name { text-align: left; font-weight: 600; color: var(--wm-text); background: #fdfdfd; }
.wm-comparison-table .wm-col-highlight { background: #f0f7ff; font-weight: 700; color: #1e40af; border-left: 2px solid #bfdbfe; border-right: 2px solid #bfdbfe; }
.wm-comparison-table tbody tr:last-child th,
.wm-comparison-table tbody tr:last-child td { border-bottom: none; }

/* ═══ Lead Magnet ═══ */
.wm-lead-magnet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f172a 100%);
  color: #fff;
  padding: 48px;
  border-radius: 24px;
  margin: 64px 0;
  position: relative;
  overflow: hidden;
}
.wm-lead-content { flex: 1; z-index: 2; }
.wm-lead-badge { background: var(--wm-orange); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; margin-bottom: 16px; display: inline-block; }
.wm-lead-title { font-size: 2.25rem; font-weight: 800; color: #fff; margin: 0 0 12px; line-height: 1.1; }
.wm-lead-desc { font-size: 1.1rem; color: rgba(255,255,255,0.7); margin-bottom: 32px; max-width: 500px; }
.wm-lead-btn { background: #fff; color: var(--wm-dark); padding: 16px 32px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform 0.2s, background 0.2s; display: inline-block; }
.wm-lead-btn:hover { transform: translateY(-2px); background: #f1f5f9; }
.wm-lead-icon { font-size: 8rem; position: absolute; right: -20px; bottom: -20px; opacity: 0.1; transform: rotate(-15deg); z-index: 1; pointer-events: none; }

/* ═══ Related Post Card ═══ */
.wm-related-card {
  margin: 40px 0;
  border: 1px solid var(--wm-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.wm-related-label { background: #f1f5f9; padding: 8px 20px; font-size: 0.75rem; font-weight: 800; color: var(--wm-text-light); border-bottom: 1px solid var(--wm-border); letter-spacing: 0.05em; }
.wm-related-inner { display: flex; align-items: center; gap: 20px; padding: 20px; }
.wm-related-thumb { width: 100px; height: 100px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.wm-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wm-related-info { flex: 1; }
.wm-related-title { font-size: 1.15rem; font-weight: 700; color: var(--wm-dark); margin: 0 0 8px; line-height: 1.3; }
.wm-related-title a { text-decoration: none; color: inherit; transition: color 0.2s; }
.wm-related-title a:hover { color: var(--wm-orange); }
.wm-related-link { font-size: 0.85rem; font-weight: 600; color: var(--wm-orange); text-decoration: none; }

@media (max-width: 640px) {
  .wm-lead-magnet { padding: 32px; text-align: center; }
  .wm-related-inner { flex-direction: column; text-align: center; }
  .wm-related-thumb { width: 100%; height: 180px; }
}

/* Editor preview fix */
.wm-editor-trust { background: #f8fafc; padding: 15px; border: 1px dashed #cbd5e1; border-radius: 8px; text-align: center; }
.wm-editor-compare { background: #f0f7ff; padding: 20px; border: 1px dashed #3b82f6; border-radius: 12px; }
.wm-editor-lead { background: #1e293b; color: #fff; padding: 30px; border-radius: 16px; }
.wm-editor-related { border: 1px dashed var(--wm-orange); padding: 15px; border-radius: 8px; }

/* ═══════════════════════════════════════════════════════════
   KAPSAMLI RESPONSIVE — TÜM CUSTOM BLOKLAR
   ═══════════════════════════════════════════════════════════ */

/* ========== TABLET (≤1024px) ========== */
@media (max-width: 1024px) {

  /* Service Cards */
  .wt-cards {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }

  /* Reasons */
  .wt-reasons {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  /* FAQ Grid */
  .wt-faq-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }

  /* Stats Grid */
  .wm-stats-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
  }

  /* How-To */
  .wm-how-to {
    padding: 30px;
  }

  /* Case Study */
  .wm-case-study {
    grid-template-columns: 1fr;
  }

  .wm-case-study-img {
    height: 280px;
  }

  .wm-case-study-content {
    padding: 28px;
  }

  /* Lead Magnet */
  .wm-lead-magnet {
    flex-direction: column;
    text-align: center;
    padding: 36px;
  }

  .wm-lead-desc {
    max-width: 100%;
  }

  .wm-lead-icon {
    display: none;
  }

  /* Video Expert */
  .wm-video-content {
    padding: 24px 28px;
  }

  /* Comparison Table */
  .wm-comparison-table {
    min-width: 550px;
  }

  /* Trust Logos */
  .wm-trust-logos {
    gap: 28px;
  }

  .wm-trust-logo-item img {
    max-width: 110px;
  }
}

/* ========== MOBİL (≤768px) ========== */
@media (max-width: 768px) {

  /* Service Cards — tek sütun */
  .wt-cards {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 24px 0 40px;
  }

  .wt-card {
    padding: 20px;
  }

  .wt-card h3 {
    font-size: 1.05rem;
  }

  .wt-card-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

  /* Reasons — tek sütun */
  .wt-reasons {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 28px 0 40px;
  }

  .wt-reason {
    padding: 22px 20px;
  }

  .wt-reason h3 {
    font-size: 1rem;
  }

  /* Steps */
  .wt-steps {
    gap: 12px;
    margin: 24px 0 40px;
  }

  .wt-steps li {
    grid-template-columns: 38px 1fr;
    padding: 16px;
    gap: 12px;
  }

  .wt-step-num {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  /* FAQ Grid — tek sütun */
  .wt-faq-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 28px 0 40px;
  }

  /* Pricing Table */
  .wt-pricing-wrap {
    margin: 28px 0;
  }

  .wt-pricing-title {
    font-size: 1.25rem;
  }

  .wt-pricing {
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 10px;
  }

  .wt-pricing-table th,
  .wt-pricing-table td {
    padding: 12px 10px;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  /* Purchase Box */
  .wt-purchase-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 22px;
    gap: 20px;
    margin: 32px 0;
  }

  .wt-purchase-title {
    font-size: 1.35rem;
  }

  .wt-purchase-price {
    font-size: 1rem;
  }

  .wt-purchase-action {
    width: 100%;
  }

  /* Stats Grid */
  .wm-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 32px 0;
  }

  .wm-stat-item {
    padding: 22px 16px;
    border-radius: 16px;
  }

  .wm-stat-number {
    font-size: 2rem;
  }

  .wm-stat-icon {
    font-size: 1.8rem;
  }

  .wm-stat-label {
    font-size: 0.8rem;
  }

  /* How-To */
  .wm-how-to {
    padding: 24px 20px;
    margin: 32px 0;
    border-radius: 18px;
  }

  .wm-how-to-title {
    font-size: 1.35rem;
  }

  .wm-how-to-desc {
    font-size: 0.95rem;
  }

  .wm-how-to-step {
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border-radius: 14px;
  }

  .wm-how-to-step-num {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .wm-how-to-step-title {
    font-size: 1.05rem;
  }

  .wm-how-to-step-text {
    font-size: 0.9rem;
  }

  /* Video Expert */
  .wm-video-expert {
    margin: 32px 0;
    border-radius: 18px;
  }

  .wm-video-content {
    padding: 22px 20px;
  }

  .wm-video-title {
    font-size: 1.2rem;
  }

  .wm-video-desc {
    font-size: 0.9rem;
  }

  /* Case Study */
  .wm-case-study {
    grid-template-columns: 1fr;
    margin: 36px 0;
    border-radius: 18px;
  }

  .wm-case-study-img {
    height: 220px;
  }

  .wm-case-study-content {
    padding: 24px 20px;
  }

  .wm-case-study-title {
    font-size: 1.4rem;
  }

  .wm-case-study-desc {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .wm-case-study-result {
    padding: 16px 18px;
    margin-bottom: 20px;
  }

  .wm-case-result-val {
    font-size: 1.25rem;
  }

  /* Lead Magnet */
  .wm-lead-magnet {
    padding: 28px 22px;
    margin: 36px 0;
    border-radius: 18px;
    text-align: center;
  }

  .wm-lead-title {
    font-size: 1.5rem;
  }

  .wm-lead-desc {
    font-size: 0.95rem;
    margin-bottom: 22px;
  }

  .wm-lead-btn {
    padding: 14px 24px;
    width: 100%;
    text-align: center;
  }

  .wm-lead-icon {
    display: none;
  }

  /* Trust Logos */
  .wm-trust-logos {
    gap: 20px;
  }

  .wm-trust-logo-item img {
    max-width: 90px;
  }

  /* Comparison Table */
  .wm-comparison-v2 {
    margin: 32px 0;
    /* Mobilde içerik kadar yükseklik (boş alan oluşturmasın) */
    height: auto;
    min-height: 0;
  }

  .wm-comparison-table-wrap {
    flex: 0 0 auto;
  }

  .wm-comparison-table {
    height: auto;
  }

  .wm-comparison-title {
    font-size: 1.35rem;
  }

  .wm-comparison-table-wrap {
    border-radius: 12px;
    margin-left: -16px;
    margin-right: -16px;
  }

  .wm-comparison-table th,
  .wm-comparison-table td {
    padding: 14px 12px;
    font-size: 0.85rem;
  }

  /* Review Card */
  .wm-review-card {
    padding: 22px 20px;
    border-radius: 16px;
    margin: 28px 0;
  }

  .wm-review-text {
    font-size: 1rem;
  }

  .wm-review-author {
    gap: 12px;
  }

  .wm-review-avatar {
    width: 40px;
    height: 40px;
  }

  /* Review Grid */
  .wm-review-grid--cols-2,
  .wm-review-grid--cols-3,
  .wm-review-grid--cols-4 {
    grid-template-columns: 1fr;
  }

  /* Related Card */
  .wm-related-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .wm-related-thumb {
    width: 100%;
    height: 160px;
    border-radius: 10px;
  }

  /* FAQ Block */
  .wm-faq {
    padding: 22px 16px;
    border-radius: 14px;
    margin: 28px 0;
  }

  .wm-faq-title {
    font-size: 1.3rem;
  }

  .wm-faq-intro {
    font-size: 0.93rem;
  }

  .wm-faq-list {
    gap: 10px;
  }

  .wm-faq-item > summary.wm-faq-q,
  .wm-faq-item .wm-faq-q {
    padding: 14px 16px;
    font-size: 0.95rem;
    gap: 12px;
  }

  .wm-faq-a {
    padding: 12px 16px 16px;
    font-size: 0.9rem;
  }

  /* CTA Block */
  .wm-cta {
    margin: 32px 0;
    border-radius: 16px;
  }

  .wm-cta-inner {
    padding: 28px 20px;
  }

  .wm-cta-title {
    font-size: 1.3rem;
  }

  .wm-cta-desc {
    font-size: 0.93rem;
  }

  .wm-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .wm-cta-btn {
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
  }
}

/* ========== KÜÇÜK MOBİL (≤480px) ========== */
@media (max-width: 480px) {

  /* Stats — tek sütun */
  .wm-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .wm-stat-item {
    padding: 18px 14px;
  }

  .wm-stat-number {
    font-size: 1.8rem;
  }

  /* Cards */
  .wt-card {
    padding: 16px;
  }

  .wt-card h3 {
    font-size: 0.98rem;
  }

  /* Steps */
  .wt-steps li {
    grid-template-columns: 32px 1fr;
    padding: 14px;
  }

  .wt-step-num {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  /* How-To */
  .wm-how-to {
    padding: 20px 16px;
  }

  .wm-how-to-title {
    font-size: 1.2rem;
  }

  .wm-how-to-step {
    padding: 16px;
  }

  /* Case Study */
  .wm-case-study-img {
    height: 180px;
  }

  .wm-case-study-content {
    padding: 20px 16px;
  }

  .wm-case-study-title {
    font-size: 1.2rem;
  }

  /* CTA */
  .wm-cta-inner {
    padding: 22px 16px;
  }

  .wm-cta-title {
    font-size: 1.15rem;
  }

  /* Lead Magnet */
  .wm-lead-magnet {
    padding: 22px 16px;
  }

  .wm-lead-title {
    font-size: 1.25rem;
  }

  /* Purchase Card */
  .wt-purchase-card {
    padding: 22px 16px;
  }

  .wt-purchase-title {
    font-size: 1.2rem;
  }

  /* Trust */
  .wm-trust-logos {
    gap: 16px;
  }

  .wm-trust-logo-item img {
    max-width: 70px;
  }

  /* FAQ */
  .wm-faq {
    padding: 18px 14px;
  }

  .wm-faq-title {
    font-size: 1.15rem;
  }

  .wm-faq-item > summary.wm-faq-q,
  .wm-faq-item .wm-faq-q {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  /* Review Card */
  .wm-review-card {
    padding: 18px 16px;
  }

  .wm-review-text {
    font-size: 0.93rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   HİZMET DETAY İÇERİK KOLONU İÇİN UYARLAMA
   (.wt-content sticky TOC ile birlikte ~800–880px sığıyor;
    tüm custom bloklar burada da estetiği bozmadan çalışmalı)
   ═══════════════════════════════════════════════════════════ */

/* Content alanını container query kökü yap — viewport değil, kolon genişliğine tepki versin */
.wt-content {
  container-type: inline-size;
  container-name: hizmet-content;
}

/* Tüm custom blokların kolon sınırını asla aşmaması */
.wt-content .wt-cards,
.wt-content .wt-reasons,
.wt-content .wt-faq-grid,
.wt-content .wt-steps,
.wt-content .wt-pricing-wrap,
.wt-content .wt-purchase-card,
.wt-content .wm-cta,
.wt-content .wm-review-grid,
.wt-content .wm-stats-grid,
.wt-content .wm-case-study,
.wt-content .wm-how-to,
.wt-content .wm-lead-magnet,
.wt-content .wm-comparison-v2,
.wt-content .wm-comparison-table-wrap,
.wt-content .wm-trust-section,
.wt-content .wm-video-expert,
.wt-content .wm-service-review,
.wt-content .wm-related-post {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Comparison V2: parent grid/flex stretch desteği */
.wt-content .wm-comparison-v2 {
  height: 100%;
  align-self: stretch;
}

/* Alignwide/alignfull içerikte breakout yapmasın (TOC ile çakışmayı önler) */
.wt-content .alignwide,
.wt-content .alignfull {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
  width: auto;
}

/* Servis kartları LIST layout (eksik stil) */
.wt-cards--list { grid-template-columns: 1fr !important; gap: 14px; }
.wt-cards--list .wt-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
}
.wt-cards--list .wt-card-icon {
  margin-bottom: 0;
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(232,116,12,.12);
  color: var(--wm-orange);
  border-radius: 12px;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.wt-cards--list .wt-card-body { min-width: 0; }

/* Bloklar içinde medya güvenliği */
.wt-content img,
.wt-content video,
.wt-content iframe { max-width: 100%; height: auto; }

/* Yatay taşabilir tablolar için garanti */
.wt-content .wm-comparison-table-wrap,
.wt-content .wt-pricing { overflow-x: auto; }

/* ---------- Container: kolon ≤ 900px olduğunda ---------- */
@container hizmet-content (max-width: 900px) {
  .wt-cards       { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
  .wt-reasons     { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
  .wt-faq-grid    { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
  .wm-stats-grid  { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
  .wm-review-grid--cols-3,
  .wm-review-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
  .wm-case-study  { grid-template-columns: 1fr; }
  .wm-case-study-img { height: 260px; }
  .wm-lead-magnet { flex-direction: column; text-align: center; padding: 32px; }
  .wm-lead-magnet .wm-lead-icon { display: none; }
  .wm-lead-desc   { max-width: 100%; }
  .wm-how-to      { padding: 28px; }
  .wt-purchase-card { flex-direction: column; text-align: center; padding: 30px 24px; gap: 22px; }
}

/* ---------- Container: kolon ≤ 640px (mobil / daraltılmış) ---------- */
@container hizmet-content (max-width: 640px) {
  .wt-cards,
  .wt-reasons,
  .wt-faq-grid         { grid-template-columns: 1fr; gap: 12px; }
  .wm-review-grid--cols-2,
  .wm-review-grid--cols-3,
  .wm-review-grid--cols-4 { grid-template-columns: 1fr; }
  .wm-stats-grid       { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .wm-stat-number      { font-size: 2rem; }
  .wm-how-to           { padding: 22px; }
  .wm-how-to-step      { padding: 18px; gap: 14px; }
  .wm-lead-magnet      { padding: 24px; }
  .wt-steps li         { grid-template-columns: 40px 1fr; padding: 16px; }
}

/* Editor (Gutenberg) tarafında da aynı kural — sığmama hissini yok et */
.editor-styles-wrapper .wp-block {
  max-width: 100%;
}

