/* ===== Image With Text Section ===== */

.cc_xtmxihqd_image_with_text .image-with-text {
  width: 100%;
  /* 64px üst/alt dolgu, kısa bir rozet bloğu için fazlaydı. */
  padding-top: var(--space-xs);
  padding-bottom: var(--space-xs);
}

.cc_xtmxihqd_image_with_text .image-with-text__container {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: clamp(16px, 5vw, 80px);
  padding-right: clamp(16px, 5vw, 80px);
}

/* ---- Grid ---- */
.cc_xtmxihqd_image_with_text .image-with-text__grid {
  display: grid;
  /* Dar ekranda da yan yana: görsel solda yarım genişlik, metin sağında.
     Alt alta diziliyordu ve dikey bir görselle bölüm ekranı dolduruyordu. */
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  align-items: center;
}

/* ---- Media column ---- */
.cc_xtmxihqd_image_with_text .image-with-text__media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: var(--iwt-image-aspect-ratio, 4 / 3);
}

.cc_xtmxihqd_image_with_text .image-with-text__image, .cc_xtmxihqd_image_with_text .image-with-text__image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc_xtmxihqd_image_with_text .image-with-text__image-placeholder {
  background: var(--color-surface-alt);
}

/* ---- Panel column ---- */
.cc_xtmxihqd_image_with_text .image-with-text__panel {
  display: flex;
  align-items: center;
  min-width: 0;
}

/* ===== Tablet (>=768px) ===== */
@media (min-width: 768px) {
  .cc_xtmxihqd_image_with_text .image-with-text__grid {
    gap: var(--space-md);
  }

  /* Image right swap (tablet+) */
  .cc_xtmxihqd_image_with_text .image-with-text--image-right .image-with-text__media {
    order: 2;
  }
  .cc_xtmxihqd_image_with_text .image-with-text--image-right .image-with-text__panel {
    order: 1;
  }
}

/* ===== Desktop (>=1024px) ===== */
@media (min-width: 1024px) {
  .cc_xtmxihqd_image_with_text .image-with-text {
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
  }

  .cc_xtmxihqd_image_with_text .image-with-text__grid {
    gap: var(--space-xl);
  }
}

/* ===== Full-width mode ===== */
.cc_xtmxihqd_image_with_text .image-with-text--full-width {
  /* No container — section bleeds edge-to-edge */
}

.cc_xtmxihqd_image_with_text .image-with-text--full-width .image-with-text__grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.cc_xtmxihqd_image_with_text .image-with-text--full-width .image-with-text__media {
  /* Mobile: natural 4/3 image at full width */
  aspect-ratio: 4 / 3;
}

.cc_xtmxihqd_image_with_text .image-with-text--full-width .image-with-text__panel {
  padding: var(--space-xl) clamp(16px, 5vw, 80px);
}

@media (min-width: 768px) {
  .cc_xtmxihqd_image_with_text .image-with-text--full-width {
    padding-top: 0;
    padding-bottom: 0;
    min-height: 500px;
  }

  .cc_xtmxihqd_image_with_text .image-with-text--full-width .image-with-text__grid {
    grid-template-columns: 50% 50%;
    min-height: 500px;
  }

  .cc_xtmxihqd_image_with_text .image-with-text--full-width .image-with-text__media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 500px;
  }

  .cc_xtmxihqd_image_with_text .image-with-text--full-width .image-with-text__panel {
    padding: var(--space-2xl) clamp(32px, 5vw, 80px);
  }
}

/* ===== Scroll-reveal entrance (motion-safe only) ===== */
@media (prefers-reduced-motion: no-preference) {
  .cc_xtmxihqd_image_with_text .image-with-text__media {
    opacity: 0;
    transform: translateX(-20px);
    animation: cc_xtmxihqd_image_with_text_image-with-text-in-left 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }

  .cc_xtmxihqd_image_with_text .image-with-text--image-right .image-with-text__media {
    transform: translateX(20px);
    animation-name: cc_xtmxihqd_image_with_text_image-with-text-in-right;
  }

  @keyframes cc_xtmxihqd_image_with_text_image-with-text-in-left {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes cc_xtmxihqd_image_with_text_image-with-text-in-right {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

/* ===== Panel (sub-component: ImageWithTextPanel) ===== */

.cc_xtmxihqd_image_with_text .iwt-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 560px;
}

.cc_xtmxihqd_image_with_text .iwt-panel__eyebrow {
  display: inline-block;
  margin-bottom: var(--space-sm);
  color: var(--iwt-eyebrow-color, var(--color-accent));
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 500;
  line-height: 1.4;
}

.cc_xtmxihqd_image_with_text .iwt-panel__title {
  margin: 0 0 var(--space-md) 0;
  color: var(--iwt-text-color, var(--color-text-primary));
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
}

.cc_xtmxihqd_image_with_text .iwt-panel__description {
  margin: 0 0 var(--space-lg) 0;
  color: var(--iwt-description-color, var(--color-text-secondary));
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  font-weight: 400;
  line-height: 1.7;
  text-wrap: pretty;
}

.cc_xtmxihqd_image_with_text .iwt-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.cc_xtmxihqd_image_with_text .iwt-panel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 24px;
  font-family: var(--font-label);
  font-size: var(--text-small);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 120ms ease;
}

@media (min-width: 1024px) {
  .cc_xtmxihqd_image_with_text .iwt-panel__btn {
    padding: 12px 28px;
  }
}

.cc_xtmxihqd_image_with_text .iwt-panel__btn:active {
  transform: scale(0.96);
}

.cc_xtmxihqd_image_with_text .iwt-panel__btn--primary {
  background: var(--iwt-accent-color, var(--color-accent));
  color: #ffffff;
  border: none;
}

.cc_xtmxihqd_image_with_text .iwt-panel__btn--secondary {
  background: transparent;
  color: var(--iwt-text-color, var(--color-text-primary));
  border: 1px solid var(--color-border);
}

@media (prefers-reduced-motion: no-preference) {
  .cc_xtmxihqd_image_with_text .iwt-panel {
    opacity: 0;
    transform: translateY(16px);
    animation: cc_xtmxihqd_image_with_text_iwt-panel-in 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 80ms forwards;
  }

  .cc_xtmxihqd_image_with_text .iwt-panel__btn {
    transition: filter 200ms ease, border-color 200ms ease, color 200ms ease, background-color 200ms ease, transform 120ms ease;
  }

  .cc_xtmxihqd_image_with_text .iwt-panel__btn--primary:hover {
    filter: brightness(0.88);
  }

  .cc_xtmxihqd_image_with_text .iwt-panel__btn--secondary:hover {
    border-color: var(--iwt-accent-color, var(--color-accent));
  }

  @keyframes cc_xtmxihqd_image_with_text_iwt-panel-in {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}


/* ─── Dar ekranda yan yana düzen ───────────────
 * Metin sütunu yarıya düştüğü için başlık ve açıklama bir kademe küçülür;
 * aksi halde h2 iki kelimede bir satır kırılıyor.
 */

@media (max-width: 767px) {
  .cc_xtmxihqd_image_with_text .iwt-panel__title {
    /* h3 dar sütunda dört satıra yayılıp metin bloğunu görselden uzun
       yapıyordu; bir kademe daha indirildi. */
    font-size: var(--text-body);
    line-height: 1.25;
  }

  .cc_xtmxihqd_image_with_text .iwt-panel__description {
    font-size: var(--text-label);
    line-height: 1.5;
  }

  .cc_xtmxihqd_image_with_text .iwt-panel__eyebrow {
    font-size: 10px;
  }

  .cc_xtmxihqd_image_with_text .iwt-panel__eyebrow {
    margin-bottom: 4px;
  }
}

/* ===== Image With Text Panel ===== */

.cc_xtmxihqd_image_with_text .iwt-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 560px;
}

.cc_xtmxihqd_image_with_text .iwt-panel__eyebrow {
  display: inline-block;
  margin-bottom: var(--space-sm);
  color: var(--iwt-eyebrow-color, var(--color-accent));
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 500;
  line-height: 1.4;
}

.cc_xtmxihqd_image_with_text .iwt-panel__title {
  margin: 0 0 var(--space-md) 0;
  color: var(--iwt-text-color, var(--color-text-primary));
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 400;
  line-height: 1.15;
}

.cc_xtmxihqd_image_with_text .iwt-panel__description {
  margin: 0 0 var(--space-lg) 0;
  color: var(--iwt-description-color, var(--color-text-secondary));
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  font-weight: 400;
  line-height: 1.7;
}

.cc_xtmxihqd_image_with_text .iwt-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.cc_xtmxihqd_image_with_text .iwt-panel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 24px;
  font-family: var(--font-label);
  font-size: var(--text-small);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .cc_xtmxihqd_image_with_text .iwt-panel__btn {
    padding: 12px 28px;
  }
}

.cc_xtmxihqd_image_with_text .iwt-panel__btn--primary {
  background: var(--iwt-accent-color, var(--color-accent));
  color: #ffffff;
  border: none;
}

.cc_xtmxihqd_image_with_text .iwt-panel__btn--secondary {
  background: transparent;
  color: var(--iwt-text-color, var(--color-text-primary));
  border: 1px solid var(--color-border);
}

/* ===== Hover & motion ===== */
@media (prefers-reduced-motion: no-preference) {
  .cc_xtmxihqd_image_with_text .iwt-panel {
    opacity: 0;
    transform: translateY(16px);
    animation: cc_xtmxihqd_image_with_text_iwt-panel-in 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 80ms forwards;
  }

  .cc_xtmxihqd_image_with_text .iwt-panel__btn {
    transition: filter 200ms ease, border-color 200ms ease, color 200ms ease, background-color 200ms ease;
  }

  .cc_xtmxihqd_image_with_text .iwt-panel__btn--primary:hover {
    filter: brightness(0.88);
  }

  .cc_xtmxihqd_image_with_text .iwt-panel__btn--secondary:hover {
    border-color: var(--iwt-accent-color, var(--color-accent));
  }

  @keyframes cc_xtmxihqd_image_with_text_iwt-panel-in {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}


/* ─── Dar ekranda yan yana düzen ───────────────
 * Bölüm mobilde de iki sütun (görsel | metin). Metin sütunu yarıya düştüğü
 * için tipografi küçülür; aksi halde başlık dört satıra yayılıp metin bloğu
 * görselden uzun kalıyor.
 *
 * Bu kurallar BURADA olmak zorunda: aynı sınıflar ImageWithText/styles.css
 * içinde de tanımlı ama alt bileşen CSS'i sonra yüklendiği için orada
 * yazılan override'lar eziliyordu.
 */

@media (max-width: 767px) {
  .cc_xtmxihqd_image_with_text .iwt-panel__title {
    font-size: var(--text-body-lg);
    line-height: 1.25;
    margin-bottom: var(--space-xs);
  }

  .cc_xtmxihqd_image_with_text .iwt-panel__description {
    font-size: var(--text-small);
    line-height: 1.5;
  }

  .cc_xtmxihqd_image_with_text .iwt-panel__eyebrow {
    font-size: 10px;
    margin-bottom: 4px;
  }
}


/* Son öğenin alt boşluğu sıfırlanır: butonlar gizliyken açıklamanın
   altındaki 40px'lik pay boşta kalıyor ve blok dikeyde görsele göre
   yukarı kaymış görünüyordu (başlık + açıklama birlikte ortalanmalı). */
.cc_xtmxihqd_image_with_text .iwt-panel > *:last-child {
  margin-bottom: 0;
}
