/* =====================================================================
   YAZI / SAYFA DETAYI (single.php, page.php, template-parts/article-*.php)
   Kalp temalı detay sayfası:
   - En üstte okuma ilerleme çubuğu, ucunda atan kalp noktası
   - Başlık alanı: açık mavi zemin, solda kırıntı + H1 + meta çipleri,
     sağda asimetrik köşeli görsel; altta sırayla uzayıp salınan saç telleri
   - İçerik: numaralı H2'ler (01, 02...), bordo vurgular, okunaklı tipografi
   - "Yapay zekâ ile özetle" paneli her sayfada içeriğin başında
   - Yan sütun: ilerleme halkalı içindekiler + lacivert randevu kartı
   991px altında tek sütun: içindekiler açılır kutu olarak içerikten önce gelir.
   ===================================================================== */

.ar {
  --ar-navy: #14294a;
  --ar-navy-2: #486281;
  --ar-wine: #6b2a3e;
  --ar-wine-soft: #f6eef1;
  --ar-ink: #26303f;
  --ar-muted: #5d6b80;
  --ar-line: rgba(20, 41, 74, 0.1);
  --ar-soft: #eef2f7;
  --ar-radius: 22px;
  color: var(--ar-ink);
}

/* ---- Okuma ilerleme çubuğu ---- */

.ar-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  height: 3px;
  pointer-events: none;
}

.ar-progress-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--p, 0) * 100%);
  background: linear-gradient(90deg, #14294a 0%, #486281 50%, #6b2a3e 100%);
}

/* çubuğun ucunda atan nokta */
.ar-progress-bar::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6b2a3e;
  box-shadow: 0 0 0 0 rgba(107, 42, 62, 0.5);
  transform: translate(50%, -50%);
  animation: ar-beat 1.2s ease-in-out infinite;
}

@keyframes ar-beat {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107, 42, 62, 0.45); }
  30% { box-shadow: 0 0 0 6px rgba(107, 42, 62, 0); }
}

/* ---- Başlık alanı ---- */

.ar-hero {
  position: relative;
  padding: clamp(36px, 4vw, 70px) 0 clamp(70px, 6vw, 100px);
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(72, 98, 129, 0.16) 0%, transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(107, 42, 62, 0.07) 0%, transparent 70%),
    linear-gradient(180deg, #f6f8fb 0%, #eaf0f7 100%);
}

.ar-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(28px, 4vw, 70px);
}

.ar-hero.no-image .ar-hero-inner {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.ar-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 22px;
  color: var(--ar-muted);
  font-size: 13px;
}

.ar-hero.no-image .ar-crumbs {
  justify-content: center;
}

.ar-crumbs a {
  color: var(--ar-muted);
  transition: color 0.25s ease;
}

.ar-crumbs a:hover {
  color: var(--ar-wine);
}

.ar-hero-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(20, 41, 74, 0.08);
  color: var(--ar-wine);
  font-size: 13px;
  font-weight: 600;
}

.ar-hero-cat::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ar-wine);
  animation: ar-beat 1.2s ease-in-out infinite;
}

.ar-hero-cat:hover {
  color: var(--ar-navy);
}

.ar-hero-title {
  margin: 0 0 18px;
  color: var(--ar-navy);
  font-family: var(--custom-first-font);
  font-size: clamp(30px, 3.2vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.ar-hero-excerpt {
  max-width: 600px;
  margin: 0 0 22px;
  color: var(--ar-muted);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.6;
}

.ar-hero.no-image .ar-hero-excerpt {
  margin-left: auto;
  margin-right: auto;
}

.ar-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.ar-hero.no-image .ar-hero-meta {
  justify-content: center;
}

.ar-hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ar-navy);
  font-size: 13px;
  font-weight: 500;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.ar-hero-meta svg {
  width: 17px;
  height: 17px;
  color: var(--ar-wine);
}

/* asimetrik köşeli görsel + arkasında kayık lacivert çerçeve */
.ar-hero-media {
  position: relative;
  margin: 0;
}

.ar-hero-media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid rgba(72, 98, 129, 0.35);
  border-radius: 34px 120px 34px 34px;
}

.ar-hero-media img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 34px 120px 34px 34px;
  object-fit: cover;
  box-shadow: 0 30px 60px rgba(20, 41, 74, 0.2);
}

.ar-hero-pulse {
  position: absolute;
  bottom: 22px;
  left: -22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(20, 41, 74, 0.18);
  color: var(--dhi-blue);
  animation: ar-float 5s ease-in-out infinite;
}

.ar-hero-pulse svg {
  width: 30px;
  height: 30px;
}

@keyframes ar-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(-6deg); }
}

/* alttaki saç telleri: saç derisi çizgisinden sırayla uzar (--d gecikme), sonra hafifçe salınır
   (--s süre, --sd negatif gecikme = her tel farklı fazda). Değerler article-hero.php'de üretilir. */
.ar-hero-hair {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 70px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  pointer-events: none;
}

.ar-hair-scalp {
  fill: none;
  stroke: var(--dhi-blue-deep, #1a2c56);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.18;
}

.ar-hair-strand {
  fill: none;
  stroke: url(#ar-hair-grad);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.75;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation:
    ar-hair-grow 1.2s cubic-bezier(0.2, 0.7, 0.3, 1) var(--d, 0.3s) forwards,
    ar-hair-sway var(--s, 3.5s) ease-in-out var(--sd, 0s) infinite alternate;
}

.ar-hair-strand:nth-of-type(3n) {
  stroke-width: 1.3;
  opacity: 0.55;
}

@keyframes ar-hair-grow {
  to { stroke-dashoffset: 0; }
}

@keyframes ar-hair-sway {
  from { transform: rotate(-5deg); }
  to   { transform: rotate(5deg); }
}

/* ---- Gövde düzeni ---- */

.ar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: start;
  gap: clamp(32px, 4vw, 42px);
  padding: clamp(40px, 4vw, 64px) 0 clamp(60px, 5vw, 90px);
}

.ar-main {
  min-width: 0;
}

/* yan sütun ekrandan uzunsa kendi içinde kayar */
.ar-aside {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  scrollbar-width: none;
}

.ar-aside::-webkit-scrollbar {
  display: none;
}

/* ---- Yapay zekâ ile özetle ---- */

.ar-ai {
  position: relative;
  margin-bottom: clamp(30px, 3vw, 46px);
  padding: 20px 22px 22px;
  overflow: hidden;
  border: 1px solid var(--ar-line);
  border-radius: var(--ar-radius);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(72, 98, 129, 0.12) 0%, transparent 55%),
    #fff;
  box-shadow: 0 18px 40px rgba(20, 41, 74, 0.07);
}

/* üstte kayan ince renk şeridi */
.ar-ai::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10a37f, #d97757, #20808d, #4285f4, #6b2a3e, #10a37f);
  background-size: 200% 100%;
  animation: ar-flow 6s linear infinite;
}

@keyframes ar-flow {
  to { background-position: -200% 0; }
}

.ar-ai-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.ar-ai-spark {
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #14294a 0%, #486281 100%);
  color: #fff;
}

.ar-ai-spark svg {
  width: 22px;
  height: 22px;
  animation: ar-twinkle 3s ease-in-out infinite;
}

@keyframes ar-twinkle {
  0%, 100% { transform: rotate(0) scale(1); }
  50% { transform: rotate(18deg) scale(1.08); }
}

.ar-ai-title {
  margin: 2px 0 4px;
  color: var(--ar-navy);
  font-family: var(--custom-first-font);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.ar-ai-desc {
  margin: 0;
  color: var(--ar-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.ar-ai-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.ar-ai-btn {
  --brand: var(--ar-navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--ar-line);
  border-radius: 12px;
  background: #fff;
  color: var(--ar-navy) !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.ar-ai-btn svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
  transition: color 0.25s ease;
}

.ar-ai-btn.is-chatgpt { --brand: #10a37f; }
.ar-ai-btn.is-claude { --brand: #d97757; }
.ar-ai-btn.is-perplexity { --brand: #20808d; }
.ar-ai-btn.is-google { --brand: #4285f4; }
.ar-ai-btn.is-grok { --brand: #111; }
.ar-ai-btn.is-copy { --brand: var(--ar-wine); border-style: dashed; }

.ar-ai-btn:hover {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 10px 20px rgba(20, 41, 74, 0.14);
  color: #fff !important;
  transform: translateY(-2px);
}

.ar-ai-btn:hover svg {
  color: #fff;
}

.ar-ai-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.ar-ai-btn.is-done {
  border-color: #10a37f;
  color: #10a37f !important;
}

/* ---- İçerik tipografisi ---- */

.ar-content {
  counter-reset: ar-h2;
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.8;
}

.ar-content > * + * {
  margin-top: 1.1em;
}

.ar-content p {
  margin-bottom: 0;
  line-height: inherit;
}

/* ilk paragraf: büyük ilk harf */
.ar--post .ar-content > p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--ar-wine);
  font-family: var(--custom-first-font);
  font-size: 3.6em;
  font-weight: 700;
  line-height: 0.8;
}

.ar-content h2,
.ar-content h3,
.ar-content h4 {
  color: var(--ar-navy);
  font-family: var(--custom-first-font);
  font-weight: 600;
  line-height: 1.25;
  scroll-margin-top: 30px;
}

/* H2: üstte bordo numara + çizgi */
.ar-content h2 {
  position: relative;
  margin-top: 2.2em;
  padding-top: 34px;
  font-size: clamp(23px, 1.8vw, 30px);
  counter-increment: ar-h2;
}

.ar-content h2::before {
  content: counter(ar-h2, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ar-wine);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.ar-content h2::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 34px;
  width: 64px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ar-wine), transparent);
}

.ar-content h3 {
  margin-top: 1.8em;
  font-size: clamp(19px, 1.35vw, 22px);
}

.ar-content h4 {
  margin-top: 1.5em;
  font-size: 18px;
}

.ar-content a {
  color: var(--ar-wine);
  text-decoration: underline;
  text-decoration-color: rgba(107, 42, 62, 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.25s ease, color 0.25s ease;
}

.ar-content a:hover {
  color: var(--ar-navy);
  text-decoration-color: currentColor;
}

.ar-content strong {
  color: var(--ar-navy);
  font-weight: 600;
}

.ar-content ul,
.ar-content ol {
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.ar-content li + li {
  margin-top: 0.5em;
}

.ar-content ul > li {
  position: relative;
  padding-left: 28px;
}

/* madde işareti: bordo nabız noktası */
.ar-content ul > li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ar-wine);
  box-shadow: 0 0 0 4px var(--ar-wine-soft);
}

.ar-content ol {
  counter-reset: ar-ol;
}

.ar-content ol > li {
  position: relative;
  padding-left: 42px;
  counter-increment: ar-ol;
}

.ar-content ol > li::before {
  content: counter(ar-ol);
  position: absolute;
  top: 0.15em;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--ar-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.ar-content blockquote {
  position: relative;
  margin: 1.8em 0;
  padding: 26px 28px 26px 74px;
  border-radius: var(--ar-radius);
  background: linear-gradient(135deg, var(--ar-soft) 0%, #fff 100%);
  color: var(--ar-navy);
  font-size: 1.08em;
  font-style: italic;
}

.ar-content blockquote::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  left: 22px;
  color: var(--ar-wine);
  font-family: Georgia, serif;
  font-size: 76px;
  font-style: normal;
  line-height: 1;
}

.ar-content blockquote p + p {
  margin-top: 0.6em;
}

.ar-content blockquote cite {
  display: block;
  margin-top: 10px;
  color: var(--ar-muted);
  font-size: 14px;
  font-style: normal;
}

.ar-content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.ar-content figure {
  margin: 1.8em 0;
}

.ar-content figcaption {
  margin-top: 10px;
  color: var(--ar-muted);
  font-size: 13.5px;
  text-align: center;
}

.ar-content iframe,
.ar-content video {
  max-width: 100%;
  border-radius: 18px;
}

.ar-content .wp-block-embed__wrapper iframe,
.ar-content iframe[src*="youtube"] {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.ar-content hr {
  height: 2px;
  margin: 2.4em 0;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--ar-line), transparent);
}

.ar-content table {
  width: 100%;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--ar-line);
  border-radius: 16px;
  font-size: 15px;
}

.ar-content .wp-block-table {
  overflow-x: auto;
}

.ar-content th,
.ar-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ar-line);
  text-align: left;
}

.ar-content th {
  background: var(--ar-navy);
  color: #fff;
  font-weight: 600;
}

.ar-content tr:last-child td {
  border-bottom: 0;
}

.ar-content tr:nth-child(even) td {
  background: #f8fafc;
}

.ar-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

/* ---- Etiketler ---- */

.ar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 0 !important;
  padding: 0;
  list-style: none;
}

.ar-tags a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--ar-soft);
  color: var(--ar-navy);
  font-size: 13px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.ar-tags a:hover {
  background: var(--ar-navy);
  color: #fff;
}

/* ---- İnceleyen doktor ---- */

.ar-reviewer {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding: 22px 24px;
  border-left: 4px solid var(--ar-wine);
  border-radius: 6px var(--ar-radius) var(--ar-radius) 6px;
  background: linear-gradient(110deg, var(--ar-soft) 0%, #fff 100%);
}

.ar-reviewer-photo {
  flex: 0 0 76px;
  overflow: hidden;
  width: 76px;
  height: 76px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(20, 41, 74, 0.14);
}

.ar-reviewer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ar-reviewer-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  color: var(--ar-wine);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ar-reviewer-label svg {
  width: 16px;
  height: 16px;
}

.ar-reviewer-name {
  margin: 0;
  color: var(--ar-navy);
  font-family: var(--custom-first-font);
  font-size: 18px;
  font-weight: 600;
}

.ar-reviewer-bio {
  margin: 6px 0 0;
  color: var(--ar-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ---- Paylaş ---- */

.ar-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--ar-line);
}

.ar-share-label {
  color: var(--ar-navy);
  font-size: 14px;
  font-weight: 600;
}

.ar-share-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.ar-share-list a,
.ar-share-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--ar-line);
  border-radius: 12px;
  background: #fff;
  color: var(--ar-navy);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.ar-share-list svg {
  width: 18px;
  height: 18px;
}

.ar-share-list a:hover,
.ar-share-copy:hover {
  border-color: var(--ar-wine);
  background: var(--ar-wine);
  color: #fff;
  transform: translateY(-2px);
}

.ar-share-copy.is-done {
  border-color: #10a37f;
  background: #10a37f;
  color: #fff;
}

/* ---- SSS ---- */

.ar-faq {
  margin-top: 50px;
}

.ar-faq-title {
  margin-bottom: 18px;
  color: var(--ar-navy);
  font-family: var(--custom-first-font);
  font-size: clamp(22px, 1.7vw, 28px);
  font-weight: 600;
}

.ar-faq-item {
  border-bottom: 1px solid var(--ar-line);
}

.ar-faq-item summary {
  position: relative;
  padding: 18px 44px 18px 0;
  color: var(--ar-navy);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.ar-faq-item summary::-webkit-details-marker {
  display: none;
}

/* artı / eksi */
.ar-faq-item summary::before,
.ar-faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--ar-wine);
  transition: transform 0.3s ease;
}

.ar-faq-item summary::after {
  transform: rotate(90deg);
}

.ar-faq-item[open] summary::after {
  transform: rotate(0);
}

.ar-faq-item summary:hover {
  color: var(--ar-wine);
}

.ar-faq-item summary:focus-visible {
  outline: 2px solid var(--ar-wine);
  outline-offset: 2px;
}

.ar-faq-answer {
  padding: 0 0 20px;
  color: var(--ar-ink);
  font-size: 15.5px;
  line-height: 1.7;
}

.ar-faq-answer p + p {
  margin-top: 8px;
}

/* ---- Önceki / sonraki ---- */

.ar-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 50px;
}

.ar-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--ar-line);
  border-radius: 18px;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.ar-nav-link.is-next {
  grid-column: 2;
  text-align: right;
}

.ar-nav-link:hover {
  border-color: rgba(107, 42, 62, 0.4);
  box-shadow: 0 14px 30px rgba(20, 41, 74, 0.08);
  transform: translateY(-2px);
}

.ar-nav-dir {
  color: var(--ar-wine);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ar-nav-link.is-prev .ar-nav-dir::before { content: "\2190  "; }
.ar-nav-link.is-next .ar-nav-dir::after { content: "  \2192"; }

.ar-nav-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ar-navy);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* ---- Yan sütun ---- */

.ar-aside-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ar-toc {
  padding: 18px 18px 14px;
  border: 1px solid var(--ar-line);
  border-radius: var(--ar-radius);
  background: #fff;
  box-shadow: 0 18px 40px rgba(20, 41, 74, 0.06);
}

.ar-toc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  cursor: default;
}

.ar-toc-head::-webkit-details-marker {
  display: none;
}

.ar-toc-ring {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
}

.ar-toc-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ar-toc-ring circle {
  fill: none;
  stroke: var(--ar-soft);
  stroke-width: 3;
}

.ar-toc-ring .ar-toc-ring-bar {
  stroke: var(--ar-wine);
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--p, 0) * 100);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.2s linear;
}

.ar-toc-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ar-navy);
  font-size: 10.5px;
  font-weight: 600;
}

.ar-toc-title {
  color: var(--ar-navy);
  font-family: var(--custom-first-font);
  font-size: 16px;
  font-weight: 600;
}

.ar-toc-chevron {
  display: none;
  width: 20px;
  height: 20px;
  margin-left: auto;
  color: var(--ar-navy);
  transition: transform 0.3s ease;
}

.ar-toc-list {
  position: relative;
  max-height: min(34vh, 320px);
  margin: 14px 0 0 !important;
  padding: 0 4px 0 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: thin;
}

.ar-toc-list li {
  position: relative;
}

.ar-toc-list a {
  display: block;
  padding: 7px 10px 7px 16px;
  border-left: 2px solid var(--ar-soft);
  color: var(--ar-muted);
  font-size: 13.5px;
  line-height: 1.4;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.ar-toc-list .is-h3 a {
  padding-left: 28px;
  font-size: 13px;
}

.ar-toc-list a:hover {
  color: var(--ar-navy);
}

.ar-toc-list a.is-active {
  border-left-color: var(--ar-wine);
  background: linear-gradient(90deg, var(--ar-wine-soft), transparent);
  color: var(--ar-wine);
  font-weight: 600;
}

/* ---- İlgili yazılar ---- */

.ar-related {
  padding: clamp(56px, 5vw, 90px) 0;
  background: linear-gradient(180deg, #f6f8fb 0%, #eaf0f7 100%);
}

.ar-related-subtitle {
  margin: 0;
  color: var(--ar-wine);
  font-family: var(--custom-first-font);
  font-size: clamp(17px, 1.2vw, 21px);
  font-weight: 600;
  text-align: center;
}

.ar-related-title {
  margin: 0 0 clamp(26px, 2.4vw, 40px);
  color: var(--ar-navy);
  font-family: var(--custom-first-font);
  font-size: clamp(26px, 2vw, 32px);
  font-weight: 600;
  text-align: center;
}

.ar-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 380px));
  justify-content: center;
  gap: clamp(16px, 1.6vw, 26px);
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.ar-related-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--ar-radius);
  background: #fff;
  box-shadow: 0 16px 36px rgba(20, 41, 74, 0.07);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ar-related-card:hover {
  box-shadow: 0 24px 46px rgba(20, 41, 74, 0.13);
  transform: translateY(-4px);
}

.ar-related-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #dfe5ee;
}

.ar-related-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ar-related-card:hover .ar-related-image img {
  transform: scale(1.05);
}

.ar-related-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 22px;
}

.ar-related-body time {
  color: var(--ar-wine);
  font-size: 12.5px;
  font-weight: 500;
}

.ar-related-name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ar-navy);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* ---- Responsive ---- */

@media (max-width: 1199px) {
  .ar-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
}

@media (max-width: 991px) {
  .ar-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .ar-hero-media {
    order: -1;
    max-width: 560px;
  }

  .ar-hero-media img {
    aspect-ratio: 16 / 10;
  }

  .ar-hero-pulse {
    left: auto;
    right: 16px;
    bottom: -20px;
    width: 52px;
    height: 52px;
  }

  .ar-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
    margin: 0 auto;
  }

  /* yan sütun dağılır: içindekiler içerikten önce (kapalı kutu), form içerikten sonra */
  .ar-aside,
  .ar-aside-inner {
    display: contents;
  }

  .ar-toc {
    order: -1;
  }

  .fc-card {
    order: 1;
  }

  .ar-toc-head {
    cursor: pointer;
  }

  .ar-toc-chevron {
    display: block;
  }

  .ar-toc[open] .ar-toc-chevron {
    transform: rotate(180deg);
  }

  .ar-toc-list {
    max-height: none;
  }

  .ar-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ar-related-grid li:nth-child(3) {
    display: none;
  }
}

@media (max-width: 575px) {
  .ar-hero-media::before {
    inset: 12px -10px -12px 10px;
  }

  .ar-hero-media img,
  .ar-hero-media::before {
    border-radius: 24px 70px 24px 24px;
  }

  .ar-hero-meta li {
    padding: 7px 11px;
    font-size: 12.5px;
  }

  .ar-ai {
    padding: 18px 16px;
  }

  .ar-ai-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ar-ai-btn {
    justify-content: center;
    width: 100%;
  }

  .ar-content blockquote {
    padding: 56px 20px 20px;
  }

  .ar-content blockquote::before {
    top: 0;
    left: 16px;
  }

  .ar-reviewer {
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
  }

  .ar-reviewer-photo {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
  }

  .ar-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .ar-nav-link.is-next {
    grid-column: auto;
  }

  .ar-related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ar-related-grid li:nth-child(3) {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ar-progress-bar::after,
  .ar-hero-cat::before,
  .ar-hero-pulse,
  .ar-ai::before,
  .ar-ai-spark svg {
    animation: none;
  }

  .ar-hair-strand {
    animation: none;
    stroke-dashoffset: 0;
  }
}
