/* Hero karuseli seçenekleri — sections/[hero-carousel] (varyantlar: default "Tam genişlik" · kutulu · bolunmus · gorsel) +
   blocks/hero-slide ayarları. Temel görünüm bilesen.css'te ("Ana sayfa hero karuseli"); burası yalnız seçenekleri taşır.
   Sınıflar: karusel m-layout-boxed|split|banner · m-transition-slide|fade · m-mratio-<oran> · m-image-left|right;
   slayt m-link-buttons|image|slide · m-btn-outline|solid|text · m-box-none|panel · m-focus-<yön> · m-hover-zoom. */

/* ── Tıklanabilir alan ───────────────────────────────────────────────────────────────────────────────────────────
   Görselin üstüne serilen tek <a> (iç içe bağlantı olmasın diye düğmelerin ALTINDA). Metin katmanı (caption) tıklamayı
   geçirir; "Görsel" modunda metin kutusu tıklamayı tutar (metne tıklamak bir şey yapmaz), "Tüm slayt" modunda metin de
   bağlantıya gider. Düğmeler, video denetimleri, oklar ve sayfalama her modda üstte ve kendi işini yapar. */
.c-content-hero__link { display: none; }
.c-carousel.m-style-hero .c-content-hero.m-link-image .c-content-hero__link,
.c-carousel.m-style-hero .c-content-hero.m-link-slide .c-content-hero__link,
.c-carousel.m-style-hero.m-layout-banner .c-content-hero__link { cursor: pointer; display: block; inset: 0; position: absolute; z-index: 1; }
.c-carousel.m-style-hero .c-content-hero.m-link-image .c-content-hero__caption,
.c-carousel.m-style-hero .c-content-hero.m-link-slide .c-content-hero__caption { pointer-events: none; z-index: 2; }
.c-carousel.m-style-hero .c-content-hero.m-link-image .c-content-hero__body { pointer-events: auto; }
.c-carousel.m-style-hero .c-content-hero.m-link-slide .c-content-hero__body { pointer-events: none; }
.c-carousel.m-style-hero .c-content-hero.m-link-image .c-content-hero__actions,
.c-carousel.m-style-hero .c-content-hero.m-link-slide .c-content-hero__actions { pointer-events: auto; }
.c-content-hero__link:focus-visible { outline: 2px solid var(--c-bg); outline-offset: -.375rem; }
.c-content-hero.m-tone-dark .c-content-hero__link:focus-visible { outline-color: var(--c-text); }
/* Editörde tuval tıklaması slaytı seçsin, metinler yerinde düzenlensin: bağlantı devre dışı */
[data-design-mode="true"] .c-content-hero__link { pointer-events: none; }

/* Üzerine gelince yakınlaştırma (yalnız tıklanabilir slaytta) */
.c-carousel.m-style-hero .c-content-hero.m-hover-zoom .c-content-hero__image img { transition: transform 1.2s cubic-bezier(.2, .6, .2, 1); }
.c-carousel.m-style-hero .c-content-hero.m-hover-zoom.m-link-image:hover .c-content-hero__image img,
.c-carousel.m-style-hero .c-content-hero.m-hover-zoom.m-link-slide:hover .c-content-hero__image img,
.c-carousel.m-style-hero.m-layout-banner .c-content-hero.m-hover-zoom:hover .c-content-hero__image img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .c-carousel.m-style-hero .c-content-hero.m-hover-zoom .c-content-hero__image img { transform: none !important; transition: none; } }

/* ── Görsel odağı (kırpılınca görünen bölge) ───────────────────────────────────────────────────────────────── */
.c-content-hero.m-focus-top .c-content-hero__image img { object-position: 50% 0; }
.c-content-hero.m-focus-bottom .c-content-hero__image img { object-position: 50% 100%; }
.c-content-hero.m-focus-left .c-content-hero__image img { object-position: 0 50%; }
.c-content-hero.m-focus-right .c-content-hero__image img { object-position: 100% 50%; }

/* ── Düğme stili ─────────────────────────────────────────────────────────────────────────────────────────── */
/* Dolu: açık tonda beyaz zemin + koyu yazı, koyu tonda koyu zemin + açık yazı */
.c-carousel.m-style-hero .c-content-hero.m-btn-solid .c-button.m-readmore-light { background: var(--c-bg); border-color: var(--c-bg); color: var(--c-text); }
.c-carousel.m-style-hero .c-content-hero.m-btn-solid .c-button.m-readmore-light::after { background-color: var(--c-text); }
.c-carousel.m-style-hero .c-content-hero.m-btn-solid.m-tone-dark .c-button.m-readmore-light { background: var(--c-text); border-color: var(--c-text); color: var(--c-bg); }
.c-carousel.m-style-hero .c-content-hero.m-btn-solid.m-tone-dark .c-button.m-readmore-light::after { background-color: var(--c-bg); }
/* Yazı: çerçevesiz, altı çizili */
.c-carousel.m-style-hero .c-content-hero.m-btn-text .c-content-hero__button { width: auto; }
.c-carousel.m-style-hero .c-content-hero.m-btn-text .c-button.m-readmore-light { background: none; border-color: transparent; min-width: 0; padding-left: 0;
  padding-right: 1.75rem; text-decoration: underline; text-underline-offset: .35em; }
.c-carousel.m-style-hero .c-content-hero.m-btn-text .c-content-hero__actions { column-gap: 2rem; }

/* ── Metin zemini: "Panel" — yarı saydam zemin, açık görselde de metin okunur ────────────────────────────── */
.c-carousel.m-style-hero .c-content-hero.m-box-panel .c-content-hero__body { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  background: rgba(37, 37, 37, .55); margin-bottom: 4.3125rem; padding: 1.875rem 2rem; }
.c-carousel.m-style-hero .c-content-hero.m-box-panel.m-tone-dark .c-content-hero__body { background: rgba(255, 254, 242, .85); }
.c-carousel.m-style-hero .c-content-hero.m-box-panel .c-content-hero__actions { margin-bottom: 0; }
.c-carousel.m-style-hero .c-content-hero.m-box-panel.m-pos-top .c-content-hero__body { margin-bottom: 0; margin-top: 2.5rem; }
.c-carousel.m-style-hero .c-content-hero.m-box-panel.m-pos-middle .c-content-hero__body { margin-bottom: 0; }
@media screen and (max-width: 47.9988em) {
  .c-carousel.m-style-hero .c-content-hero.m-box-panel .c-content-hero__body { margin-bottom: 4.5rem; padding: 1.25rem; }
}

/* ── Mobilde görsel oranı (<768 px; "Yüksekliğe göre" = Yükseklik ayarının oranı) ──────────────────────────── */
@media screen and (max-width: 47.9988em) {
  .c-carousel.m-style-hero.m-mratio-portrait .c-content-hero__media-wrapper, .c-carousel.m-style-hero.m-mratio-portrait .c-content-hero__image-wrapper { aspect-ratio: 9 / 16; height: auto; }
  .c-carousel.m-style-hero.m-mratio-tall .c-content-hero__media-wrapper, .c-carousel.m-style-hero.m-mratio-tall .c-content-hero__image-wrapper { aspect-ratio: 4 / 5; height: auto; }
  .c-carousel.m-style-hero.m-mratio-square .c-content-hero__media-wrapper, .c-carousel.m-style-hero.m-mratio-square .c-content-hero__image-wrapper { aspect-ratio: 1 / 1; height: auto; }
  .c-carousel.m-style-hero.m-mratio-landscape .c-content-hero__media-wrapper, .c-carousel.m-style-hero.m-mratio-landscape .c-content-hero__image-wrapper { aspect-ratio: 16 / 9; height: auto; }
}

/* ── Geçiş efekti: "Solarak" — slaytlar üst üste, etkin olan görünür (theme.js m-active verir) ─────────────── */
.c-carousel.m-transition-fade .c-carousel__content { display: grid; transform: none !important; transition: none; }
.c-carousel.m-transition-fade .c-carousel__item { grid-area: 1 / 1; opacity: 0; transition: opacity .9s ease, visibility 0s linear .9s; visibility: hidden; }
.c-carousel.m-transition-fade .c-carousel__item.m-active { opacity: 1; transition: opacity .9s ease; visibility: visible; z-index: 1; }

/* ── Varyant "Kutulu": sayfa genişliğinde, kenar boşluklu ─────────────────────────────────────────────────── */
.c-carousel.m-style-hero.m-layout-boxed { margin: 1.25rem auto 0; max-width: var(--w-max); padding: 0 var(--gutter); }
@media screen and (min-width: 48em) {
  .c-carousel.m-style-hero.m-layout-boxed .c-content-hero__media-wrapper, .c-carousel.m-style-hero.m-layout-boxed .c-content-hero__image-wrapper { max-height: none; }
}

/* ── Varyant "Yalnız görsel (banner)": metin yok, karartma yok, slaytın tamamı bağlantı ───────────────────── */
.c-carousel.m-style-hero.m-layout-banner .c-overlay.m-custom-gradient { display: none; }

/* ── Varyant "Bölünmüş": görsel + bej metin paneli ───────────────────────────────────────────────────────── */
.c-carousel.m-style-hero.m-layout-split .c-content-hero { background: var(--c-beige); }
.c-carousel.m-style-hero.m-layout-split .c-overlay.m-custom-gradient { display: none; }
.c-carousel.m-style-hero.m-layout-split .c-content-hero__caption { inset: auto; left: auto; max-width: none; position: relative; top: auto; transform: none; }
.c-carousel.m-style-hero.m-layout-split .c-content-hero__body { margin: 0; max-width: 32rem; padding: 2.5rem 0 3.125rem; text-align: left; width: 100%; }
.c-carousel.m-style-hero.m-layout-split .c-content-hero__body .c-content-hero__label,
.c-carousel.m-style-hero.m-layout-split .c-content-hero__body .c-content-hero__title { color: var(--c-text); }
.c-carousel.m-style-hero.m-layout-split .c-content-hero__body .c-content-hero__description { color: var(--c-text-2); }
.c-carousel.m-style-hero.m-layout-split .c-content-hero__actions { justify-content: flex-start; margin-bottom: 0; }
.c-carousel.m-style-hero.m-layout-split .c-content-hero__button { min-width: 12rem; width: auto; }
.c-carousel.m-style-hero.m-layout-split .c-button.m-readmore-light { border-color: var(--c-text); color: var(--c-text); }
.c-carousel.m-style-hero.m-layout-split .c-button.m-readmore-light::after { background-color: var(--c-text); }
.c-carousel.m-style-hero.m-layout-split .c-content-hero.m-btn-solid .c-button.m-readmore-light { background: var(--c-text); color: var(--c-bg); }
.c-carousel.m-style-hero.m-layout-split .c-content-hero.m-btn-solid .c-button.m-readmore-light::after { background-color: var(--c-bg); }
.c-carousel.m-style-hero.m-layout-split .c-content-hero.m-box-panel .c-content-hero__body { -webkit-backdrop-filter: none; backdrop-filter: none; background: none; padding-left: 0; padding-right: 0; }
.c-carousel.m-style-hero.m-layout-split .c-content-hero__link:focus-visible { outline-color: var(--c-text); }
@media screen and (max-width: 47.9988em) {
  .c-carousel.m-style-hero.m-layout-split .c-content-hero__media-wrapper, .c-carousel.m-style-hero.m-layout-split .c-content-hero__image-wrapper { aspect-ratio: 4 / 5; }
  .c-carousel.m-style-hero.m-layout-split .c-content-hero__body { padding: 1.875rem 0 2.5rem; }
  .c-carousel.m-style-hero.m-layout-split .c-content-hero__button { width: 100%; }
}
@media screen and (min-width: 48em) {
  .c-carousel.m-style-hero.m-layout-split .c-content-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .c-carousel.m-style-hero.m-layout-split .c-content-hero__media-wrapper, .c-carousel.m-style-hero.m-layout-split .c-content-hero__image-wrapper { aspect-ratio: 4 / 3; max-height: none; }
  .c-carousel.m-style-hero.m-layout-split.m-height-short .c-content-hero__media-wrapper, .c-carousel.m-style-hero.m-layout-split.m-height-short .c-content-hero__image-wrapper { aspect-ratio: 16 / 9; }
  .c-carousel.m-style-hero.m-layout-split.m-height-full .c-content-hero__media-wrapper, .c-carousel.m-style-hero.m-layout-split.m-height-full .c-content-hero__image-wrapper {
    aspect-ratio: auto; height: calc(100vh - 3.5625rem); height: calc(100svh - 3.5625rem); }
  .c-carousel.m-style-hero.m-layout-split .c-content-hero__caption { align-items: center; display: flex; justify-content: center; padding: 0 3rem; }
  .c-carousel.m-style-hero.m-layout-split.m-image-right .c-content-hero__media-wrapper,
  .c-carousel.m-style-hero.m-layout-split.m-image-right .c-content-hero__image-wrapper { order: 2; }
  .c-carousel.m-style-hero.m-layout-split.m-image-right .c-content-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .c-carousel.m-style-hero.m-layout-split .c-content-hero.m-pos-top .c-content-hero__caption { align-items: flex-start; }
  .c-carousel.m-style-hero.m-layout-split .c-content-hero.m-pos-bottom .c-content-hero__caption { align-items: flex-end; }
  .c-carousel.m-style-hero.m-layout-split .c-content-hero.m-align-center .c-content-hero__body { text-align: center; }
  .c-carousel.m-style-hero.m-layout-split .c-content-hero.m-align-center .c-content-hero__actions { justify-content: center; }
  .c-carousel.m-style-hero.m-layout-split .c-content-hero.m-align-right .c-content-hero__body { text-align: right; }
  .c-carousel.m-style-hero.m-layout-split .c-content-hero.m-align-right .c-content-hero__actions { justify-content: flex-end; }
  /* Sayfalama paneli değil görseli izler: görselin altında ortalı */
  .c-carousel.m-style-hero.m-layout-split .c-carousel__pagination.m-color-light .c-carousel__pagination-bullet-custom::before { background: rgba(51, 51, 51, .25); }
  .c-carousel.m-style-hero.m-layout-split .c-carousel__pagination.m-color-light .c-carousel__pagination-bullet-custom.m-active::before { background: var(--c-text); }
}
@media screen and (min-width: 64em) {
  .c-carousel.m-style-hero.m-layout-split .c-content-hero__caption { padding: 0 4.5rem; }
  .c-carousel.m-style-hero.m-layout-split .c-carousel__arrow-next::before, .c-carousel.m-style-hero.m-layout-split .c-carousel__arrow-prev::before { background-color: var(--c-text); }
}
