/* Ortak iç sayfa hero — ana sayfa slider kalıbı (BG + veil + FG) */

.ph-hero {
  --ph-ink: #1e3a4c;
  --ph-muted: rgba(39, 71, 96, 0.72);
  --ph-navy: #274760;
  --ph-blue: #307bc4;
  --ph-ice: #d2eaef;
  --ph-deep: #07101c;
  --ph-sans: "Figtree", "Poppins", system-ui, sans-serif;
  --ph-ui: "Poppins", system-ui, sans-serif;
  --ph-header-offset: 96px;
  --ph-shell: min(1160px, calc(100% - 2.75rem));
  position: relative;
  isolation: isolate;
  min-height: clamp(500px, 72svh, 700px);
  display: grid;
  align-items: center;
  margin: 0;
  color: var(--ph-ink);
  background: #0b1824;
  overflow: hidden;
}

.ph-hero--theme-dark {
  --ph-ink: #ffffff;
  --ph-muted: rgba(232, 242, 248, 0.84);
}

.ph-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0b1824;
}

.ph-hero__bg,
.ph-hero__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ph-hero__bg picture,
.ph-hero__bg-img {
  display: block;
  width: 100%;
  height: 100%;
}

.ph-hero__bg-img {
  object-fit: cover;
  object-position: 62% center;
  transform-origin: 60% 50%;
  will-change: transform;
}

.ph-hero__fallback {
  background:
    radial-gradient(ellipse 55% 60% at 72% 40%, rgba(48, 123, 196, 0.28), transparent 62%),
    linear-gradient(145deg, #050b14 0%, #0c1a2e 48%, #15304f 100%);
}

/* Ana sayfa veil — light theme (metin sol, FG sağ) */
.ph-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(247, 250, 252, 0.78) 0%, rgba(247, 250, 252, 0.32) 36%, transparent 58%),
    linear-gradient(180deg, rgba(247, 250, 252, 0.14) 0%, transparent 22%, transparent 78%, rgba(11, 24, 36, 0.1) 100%);
}

.ph-hero--theme-dark .ph-hero__veil {
  background:
    linear-gradient(90deg, rgba(8, 18, 30, 0.82) 0%, rgba(8, 18, 30, 0.5) 34%, rgba(8, 18, 30, 0.12) 58%, transparent 76%),
    linear-gradient(180deg, rgba(8, 18, 30, 0.18) 0%, transparent 18%, transparent 72%, rgba(8, 18, 30, 0.45) 100%);
}

.ph-hero__fg {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.ph-hero__fg-img {
  position: absolute;
  right: 9%;
  /* Aşağı kaydır + büyüt: üstte kafa kalsın, crop bacaklardan */
  bottom: -22%;
  height: 118%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: right top;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(8, 18, 30, 0.22));
  will-change: transform, opacity;
}

.ph-hero__inner {
  position: relative;
  z-index: 3;
  width: var(--ph-shell);
  margin: 0 auto;
  padding: calc(var(--ph-header-offset) + 1.25rem) 0 clamp(2.75rem, 6vw, 4rem);
}

.ph-hero__copy {
  max-width: 36rem;
}

.ph-hero--align-center .ph-hero__copy {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.ph-hero__crumbs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  font-family: var(--ph-ui);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(39, 71, 96, 0.55);
}

.ph-hero--theme-dark .ph-hero__crumbs {
  color: rgba(232, 242, 248, 0.62);
}

.ph-hero--align-center .ph-hero__crumbs {
  justify-content: center;
}

.ph-hero__crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ph-hero__crumbs a {
  color: rgba(39, 71, 96, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ph-hero--theme-dark .ph-hero__crumbs a {
  color: rgba(232, 242, 248, 0.82);
}

.ph-hero__crumbs a:hover {
  color: var(--ph-navy);
}

.ph-hero--theme-dark .ph-hero__crumbs a:hover {
  color: #fff;
}

.ph-crumb-home {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ph-crumb-home svg {
  width: 0.95rem;
  height: 0.95rem;
}

.ph-chevron svg {
  width: 0.55rem;
  height: 0.55rem;
  opacity: 0.55;
}

.ph-hero__crumbs [aria-current="page"] {
  color: var(--ph-navy);
}

.ph-hero--theme-dark .ph-hero__crumbs [aria-current="page"] {
  color: rgba(255, 255, 255, 0.92);
}

.ph-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.95rem;
  font-family: var(--ph-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(39, 71, 96, 0.72);
}

.ph-hero--theme-dark .ph-hero__kicker {
  color: rgba(210, 234, 239, 0.9);
}

.ph-hero__dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--ph-blue);
  box-shadow: 0 0 0 4px rgba(48, 123, 196, 0.12);
  flex-shrink: 0;
}

.ph-hero--theme-dark .ph-hero__dot {
  background: var(--ph-ice);
  box-shadow: 0 0 0 4px rgba(210, 234, 239, 0.12), 0 0 14px rgba(210, 234, 239, 0.45);
}

.ph-hero__title {
  margin: 0 0 0.45rem;
  font-family: var(--ph-sans);
  font-weight: 700;
  font-size: clamp(2.45rem, 5.4vw, 3.85rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  color: var(--ph-navy);
  text-wrap: balance;
}

.ph-hero--article .ph-hero__title {
  font-size: clamp(1.72rem, 3.6vw, 2.55rem);
  line-height: 1.14;
  letter-spacing: -0.028em;
  max-width: 22rem;
}

.ph-hero--article .ph-hero__copy {
  max-width: 38rem;
}

.ph-hero--theme-dark .ph-hero__title {
  color: #fff;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.ph-hero__role {
  margin: 0 0 1.05rem;
  font-family: var(--ph-sans);
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  font-weight: 500;
  letter-spacing: -0.012em;
  color: rgba(39, 71, 96, 0.88);
}

.ph-hero--theme-dark .ph-hero__role {
  color: rgba(255, 255, 255, 0.94);
}

.ph-hero__lede {
  margin: 0 0 1.85rem;
  max-width: 32rem;
  font-family: var(--ph-ui);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  font-weight: 400;
  line-height: 1.72;
  color: var(--ph-muted);
  text-wrap: pretty;
}

.ph-hero--align-center .ph-hero__lede {
  margin-left: auto;
  margin-right: auto;
}

.ph-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.ph-hero--align-center .ph-hero__cta {
  justify-content: center;
}

.ph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.92rem 1.45rem;
  border-radius: 999px;
  font-family: var(--ph-ui);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.ph-btn--primary {
  color: #fff;
  background: var(--ph-blue);
  border: 1px solid transparent;
  box-shadow: 0 14px 34px rgba(48, 123, 196, 0.34);
}

.ph-btn--primary:hover,
.ph-btn--primary:focus-visible {
  background: #2a6db0;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(48, 123, 196, 0.42);
}

.ph-btn--ghost {
  color: var(--ph-navy);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(39, 71, 96, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ph-hero--theme-dark .ph-btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.32);
}

.ph-btn--ghost:hover,
.ph-btn--ghost:focus-visible {
  border-color: rgba(39, 71, 96, 0.45);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ph-navy);
  transform: translateY(-2px);
}

.ph-hero--theme-dark .ph-btn--ghost:hover,
.ph-hero--theme-dark .ph-btn--ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.ph-btn:focus-visible {
  outline: 2px solid var(--ph-blue);
  outline-offset: 3px;
}

.ph-btn svg {
  flex-shrink: 0;
  transition: transform 0.28s ease;
}

.ph-btn--primary:hover svg {
  transform: translateX(3px);
}

@media (max-width: 1023px) {
  .ph-hero__fg-img {
    height: 108%;
    max-width: 56%;
    right: 4%;
    bottom: -18%;
  }
}

@media (max-width: 767px) {
  .ph-hero {
    min-height: clamp(480px, 76svh, 640px);
    align-items: end;
  }

  .ph-hero__bg-img {
    object-position: 70% center;
  }

  .ph-hero__veil {
    background:
      linear-gradient(180deg, rgba(247, 250, 252, 0.15) 0%, rgba(247, 250, 252, 0.35) 38%, rgba(247, 250, 252, 0.92) 68%, rgba(247, 250, 252, 0.97) 100%);
  }

  .ph-hero--theme-dark .ph-hero__veil {
    background:
      linear-gradient(180deg, rgba(8, 18, 30, 0.2) 0%, rgba(8, 18, 30, 0.4) 36%, rgba(8, 18, 30, 0.9) 68%, rgba(8, 18, 30, 0.96) 100%);
  }

  .ph-hero__fg-img {
    height: 78%;
    max-width: 82%;
    right: -2%;
    bottom: -10%;
    opacity: 0.95;
  }

  .ph-hero__inner {
    padding: calc(var(--ph-header-offset) + 0.35rem) 0 2.35rem;
  }

  .ph-hero__copy {
    max-width: none;
  }

  .ph-hero__title {
    font-size: clamp(2.15rem, 9vw, 2.85rem);
  }

  .ph-hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .ph-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ph-btn,
  .ph-btn svg {
    transition: none;
  }

  .ph-hero__bg-img,
  .ph-hero__fg-img {
    will-change: auto;
  }
}
