:root {
  --ink: #06111b;
  --surface: #0b1a27;
  --line: rgba(188, 215, 230, .24);
  --paper: #f3f0e9;
  --muted: #b4c1c9;
  --orange: #ff6519;
  --cyan: #6ed7df;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: Arial, Helvetica, sans-serif; }

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(130px, 220px) auto;
  gap: 20px;
  align-items: center;
  padding: 12px clamp(16px, 4vw, 56px);
  background: rgba(6, 17, 27, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; flex-direction: column; width: max-content; color: var(--paper); text-decoration: none; font-size: 9px; font-weight: 700; letter-spacing: .32em; line-height: .95; }
.brand-mark { color: var(--paper); font-size: 16px; letter-spacing: .06em; }
.brand span:last-child { color: var(--orange); padding-left: 2px; }
.progress-wrap { justify-self: center; width: 100%; }
.progress-track { height: 2px; margin-top: 7px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.progress-track i { display: block; width: 4%; height: 100%; background: linear-gradient(90deg, var(--orange), var(--cyan)); transition: width .22s ease; }
nav { justify-self: end; display: flex; align-items: center; gap: 10px; }
.courses-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--orange); background: var(--orange); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: .015em; white-space: nowrap; box-shadow: 0 8px 20px rgba(255, 101, 25, .18); transition: background .16s ease, color .16s ease, transform .16s ease; }
.courses-cta span { font-size: 18px; line-height: .8; }
.courses-cta:hover { background: transparent; color: var(--orange); transform: translateY(-1px); }

main { padding: 20px clamp(12px, 3vw, 36px) 42px; }
.pages { max-width: 920px; margin: 0 auto; display: grid; gap: clamp(14px, 2vw, 26px); }
.guide-page { scroll-margin-top: 72px; position: relative; width: 100%; overflow: hidden; background: var(--surface); box-shadow: 0 16px 42px rgba(0, 0, 0, .28); }
.guide-page img { display: block; width: 100%; height: auto; background: var(--surface); }
.page-hotspot { position: absolute; z-index: 2; display: block; border: 0; outline: 0; }
.page-hotspot:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.page-number { position: absolute; right: 12px; bottom: 10px; padding: 5px 7px; background: rgba(6, 17, 27, .76); color: var(--muted); font-size: 11px; letter-spacing: .08em; }
footer { max-width: 920px; margin: 0 auto; padding: 32px clamp(16px, 3vw, 36px) 46px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }
footer a { color: var(--orange); font-weight: 700; text-decoration: none; }

.scroll-cue {
  position: fixed;
  z-index: 9;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(110, 215, 223, .28);
  border-radius: 999px;
  background: rgba(6, 17, 27, .90);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .05);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  pointer-events: none;
  transform: translateX(-50%);
  opacity: 1;
  backdrop-filter: blur(14px);
  transition: opacity .22s ease, transform .22s ease;
}
.scroll-cue::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px rgba(255, 101, 25, .7); }
.scroll-cue-arrow { color: var(--orange); font-size: 17px; line-height: .8; animation: scroll-cue-nudge 1.35s ease-in-out 2; }
.scroll-cue.is-hidden { opacity: 0; transform: translate(-50%, 8px); }

@keyframes scroll-cue-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@media (max-width: 680px) {
  .topbar { grid-template-columns: 1fr auto; gap: 9px; min-height: 60px; padding: 9px max(14px, env(safe-area-inset-right)) 9px max(14px, env(safe-area-inset-left)); }
  .progress-wrap { display: none; }
  .courses-cta { min-height: 42px; padding: 8px 11px; font-size: 12px; }
  .courses-cta span { font-size: 16px; }
  main { padding: 0 0 28px; }
  .pages { width: 100%; max-width: none; gap: 10px; }
  .guide-page { box-shadow: none; }
  .page-number { right: 8px; bottom: 8px; }
  footer { flex-direction: column; gap: 12px; padding-top: 24px; }
  .scroll-cue { bottom: max(13px, env(safe-area-inset-bottom)); min-height: 40px; padding: 8px 13px; font-size: 11px; }
}

@media (min-width: 681px) and (max-width: 900px) and (orientation: landscape) {
  main { padding: 0 0 34px; }
  .pages { width: 100%; max-width: none; gap: 10px; }
  .guide-page { box-shadow: none; }
  .page-number { right: 8px; bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue, .scroll-cue-arrow { animation: none; transition: none; }
}

/* r20261110 · WhatsApp, yaklaşan eğitimler */
.wa-icon { width: 18px; height: 18px; flex: none; fill: currentColor; }
.wa-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid rgba(110, 215, 223, .55); color: var(--paper); text-decoration: none; font-size: 13px; font-weight: 800; white-space: nowrap; transition: border-color .16s ease, color .16s ease; }
.wa-cta .wa-icon { color: #25d366; }
.wa-cta:hover { border-color: #25d366; color: #fff; }

.upcoming { max-width: 920px; margin: 16px auto 0; padding: 0 clamp(12px, 3vw, 36px); }
.upcoming[hidden] { display: none; }
.upcoming-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--orange); background: var(--surface); }
.upcoming-label { color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.upcoming-item { color: var(--paper); text-decoration: none; font-size: 14px; font-weight: 700; }
.upcoming-item b { color: var(--cyan); font-weight: 800; margin-right: 6px; }
.upcoming-item:hover { color: var(--orange); }
.upcoming-item + .upcoming-item::before { content: '·'; color: var(--muted); margin-right: 14px; }

.wa-bar { display: none; }

@media (min-width: 681px) and (max-width: 960px) {
  .topbar { grid-template-columns: auto 1fr; }
  .progress-wrap { display: none; }
  .wa-cta, .courses-cta { padding: 10px 12px; font-size: 12px; }
}

@media (max-width: 680px) {
  .guide-page { scroll-margin-top: 64px; }
  .wa-cta { display: none; }
  .upcoming { margin-top: 0; padding: 0; }
  .upcoming-inner { border-left-width: 3px; border-right: 0; border-top: 0; padding: 10px 14px; }
  .upcoming-item { font-size: 13px; }
  body { padding-bottom: 76px; }
  .wa-bar {
    position: fixed; z-index: 9; left: 50%; bottom: max(14px, env(safe-area-inset-bottom));
    display: inline-flex; align-items: center; gap: 9px; max-width: calc(100% - 32px);
    min-height: 46px; padding: 10px 18px; border-radius: 999px;
    background: #25d366; color: #06111b; text-decoration: none;
    font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .38);
    transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }
  .wa-bar span { overflow: hidden; text-overflow: ellipsis; }
  body.has-scrolled .wa-bar { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) { .wa-bar { transition: none; } }



/* r20261111b: üst çubuk mesajı (H) ve yaklaşan canlı eğitim rozeti için ortak metin kuralları. */
.serit p { margin: 0; }
.serit-etiket { color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.serit-metin { color: var(--paper); font-size: 14px; line-height: 1.4; }
.serit-baslik { font-weight: 800; }
.serit-alt { color: var(--muted); }
.serit-canli-etiket { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.serit-canli-oge { color: var(--paper); text-decoration: none; font-weight: 700; }
.serit-canli-oge b { color: var(--cyan); font-weight: 800; margin-right: 2px; }
.serit-canli-oge:hover { color: var(--orange); }
.serit-canli-oge + .serit-canli-oge::before { content: '·'; color: var(--muted); margin-right: 10px; }
.serit a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }


/* okuyucu v2 (r20261111b, 11.11.2026): alt okuma çubuğu (sayfa numarası + ilerleme + yakınlaştırma) ve yakınlaştırma.
   Eğitim Rehberi ile aynı blok; Rehber'de telefonda WhatsApp düğmesi de bu çubuğun solundadır. */
.topbar .progress-wrap { display: none; }
.page-number { display: none; }
.pages { touch-action: pan-x pan-y; }
body { padding-bottom: var(--alt-h, 56px); }
html { scroll-padding-bottom: calc(var(--alt-h, 56px) + 8px); } /* odaklanan/kaydırılan bağlantı alt çubuğun altında kalmasın */
.okuma-alt { position: fixed; z-index: 11; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; min-height: 54px;
  padding: 6px max(14px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: rgba(6, 17, 27, .8); border-top: 1px solid rgba(188, 215, 230, .14); backdrop-filter: blur(14px) saturate(1.15); -webkit-backdrop-filter: blur(14px) saturate(1.15); }
.okuma-ilerleme { position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: rgba(255, 255, 255, .12); }
.okuma-ilerleme i { display: block; width: 4%; height: 100%; background: linear-gradient(90deg, var(--orange), var(--cyan)); transition: width .22s ease; }
.okuma-sayfa { flex: 1 1 auto; min-width: 0; color: var(--paper); font: 700 13px/1 Arial, Helvetica, sans-serif; letter-spacing: .06em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.okuma-sayfa b { color: var(--orange); font-weight: 800; }
.zoom-controls { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.zoom-btn { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(110, 215, 223, .3); border-radius: 10px; background: rgba(255, 255, 255, .05); color: var(--paper); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: border-color .16s ease, opacity .16s ease; }
.zoom-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.zoom-btn:hover:not(:disabled) { border-color: var(--orange); }
.zoom-btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.zoom-btn:disabled { opacity: .35; cursor: default; }
.zoom-btn[hidden] { display: none; }
.zoom-reset { color: var(--orange); }
.zoom-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.scroll-cue, .scroll-cue.is-hidden { bottom: calc(var(--alt-h, 56px) + 12px); }
html.is-zoomed, html.is-zoomed body { overflow: hidden; }
html.is-zoomed main { position: fixed; z-index: 5; top: var(--zoom-top, 64px); right: 0; bottom: var(--alt-h, 56px); left: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: var(--ink); padding-bottom: 24px; }
html.is-zoomed .pages { max-width: none; margin: 0 auto; }
@media (min-width: 681px) {
  .okuma-alt { min-height: 48px; padding-top: 5px; padding-bottom: calc(5px + env(safe-area-inset-bottom)); }
  .zoom-btn { width: 38px; height: 38px; }
}
@media print { .okuma-alt { display: none; } }

/* Rehber v2: alt çubukta WhatsApp (telefon), üst düğme metinleri, H düzeni */
.courses-cta .cta-tam, .courses-cta .cta-orta, .courses-cta .cta-kisa { font-size: inherit; line-height: inherit; }
.courses-cta .cta-orta, .courses-cta .cta-kisa { display: none; }
.ust-orta { min-width: 0; }
.alt-wa { display: none; }
@media (max-width: 680px) {
  body { padding-bottom: var(--alt-h, 56px); }
  .alt-wa { display: inline-flex; flex: none; align-items: center; gap: 7px; min-height: 42px; padding: 0 14px; border-radius: 999px; background: #25d366; color: #06111b;
    text-decoration: none; font-size: 13px; font-weight: 800; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
  .alt-wa .wa-icon { width: 18px; height: 18px; }
  .alt-wa .alt-wa-kisa { display: none; }
  .alt-wa ~ .okuma-sayfa { text-align: center; }
  .alt-wa:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
}
@media (max-width: 360px) {
  .h-mesaj .serit-metin { font-size: 12px; }
  .h-mesaj .serit-alt { font-size: 11px; }
  .alt-wa { padding: 0 12px; }
  .alt-wa .alt-wa-uzun { display: none; }
  .alt-wa .alt-wa-kisa { display: inline; }
  .okuma-alt { gap: 6px; }
  .zoom-controls { gap: 4px; }
  .zoom-btn { width: 40px; }
}

/* H · mesaj üst çubukta; turuncu düğme sadeleşir */
body.duzen-h .topbar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; }
.h-mesaj { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding: 7px 14px; border: 1px solid var(--line); border-left: 3px solid var(--orange);
  background: linear-gradient(90deg, rgba(255, 101, 25, .16), var(--surface) 62%); text-align: left; } /* D1 kutusunun stili (Göktuğ 11.11) */
.h-mesaj .serit-metin { margin: 0; font-size: 13px; line-height: 1.3; color: var(--muted); }
.h-mesaj .serit-baslik { color: var(--paper); font-weight: 800; }
.h-mesaj .serit-canli, .h-canli-satir .serit-canli { display: inline-flex; align-items: center; gap: 4px 6px; padding: 4px 11px; border: 1px solid rgba(110, 215, 223, .45); border-radius: 999px; font-size: 12px; white-space: nowrap; }
.h-mesaj .serit-canli-etiket, .h-canli-satir .serit-canli-etiket { color: var(--cyan); font-size: 12px; letter-spacing: 0; text-transform: none; }
.h-mesaj .serit-canli-oge, .h-canli-satir .serit-canli-oge { font-size: 12px; }
body.duzen-h .courses-cta { min-height: 38px; padding: 8px 14px; font-size: 12.5px; box-shadow: none; }
body.duzen-h .courses-cta .cta-tam { display: none; }
body.duzen-h .courses-cta .cta-orta { display: inline; }
body.duzen-h .wa-cta { min-height: 38px; padding: 8px 13px; font-size: 12.5px; }
.upcoming-inner.h-canli-satir { display: none; }
@media (max-width: 960px) and (min-width: 681px) {
  body.duzen-h .brand { display: none; }
  body.duzen-h .topbar { grid-template-columns: minmax(0, 1fr) auto; }
  .h-mesaj { justify-content: flex-start; padding: 6px 12px; }
  .h-mesaj .serit-canli { display: none; }
  .h-mesaj .serit-baslik { display: block; }
  .h-mesaj .serit-alt { display: block; margin-top: 2px; font-size: 11.5px; }
  .h-mesaj .serit-metin { font-size: 12.5px; }
  .upcoming-inner.h-canli-satir { display: flex; justify-content: center; padding: 8px 14px; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); }
}
@media (max-width: 680px) {
  body.duzen-h .topbar { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; min-height: 56px; padding-top: 7px; padding-bottom: 7px; }
  body.duzen-h .brand { display: none; }
  .h-mesaj { justify-content: flex-start; padding: 6px 10px; }
  .h-mesaj .serit-metin { font-size: 12.5px; line-height: 1.22; }
  .h-mesaj .serit-baslik { display: block; }
  .h-mesaj .serit-alt { display: block; margin-top: 2px; font-size: 11.5px; }
  .h-mesaj .serit-canli { display: none; }
  body.duzen-h .courses-cta { min-height: 40px; gap: 6px; padding: 8px 11px; font-size: 12.5px; }
  body.duzen-h .courses-cta .cta-orta { display: none; }
  body.duzen-h .courses-cta .cta-kisa { display: inline; }
  .upcoming-inner.h-canli-satir { display: flex; justify-content: center; padding: 8px 14px; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); }
}
@media (max-width: 960px) { .ust-orta:empty { display: none; } }
body .guide-page { scroll-margin-top: calc(var(--topbar-h, 64px) + 6px); } /* derin bağlantı: üst çubuğun gerçek yüksekliği */
@media (min-width: 961px) and (max-width: 1359px) { /* dar masaüstü (rev4: 1359'a kadar): rozet sayfa başındaki satıra iner */
  .h-mesaj .serit-canli { display: none; }
  .upcoming-inner.h-canli-satir { display: flex; justify-content: center; padding: 8px 14px; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); }
}

/* r20261111b rev2 (Göktuğ 11.11): (1) renk geçişi üst çubuğun kendisinde, ayrı kutu yok; (2) daha rafine turuncu düğme;
   (3) masaüstünde sayfa numarası alt çubukta ortada; (4) telefonda WhatsApp biraz küçük, sayfa numarasıyla net boşluk. */
body.duzen-h .topbar {
  background: linear-gradient(90deg, rgba(255, 101, 25, .26) 0%, rgba(255, 101, 25, .10) 34%, rgba(11, 26, 39, 0) 64%), rgba(8, 20, 31, .97);
  border-bottom: 1px solid rgba(255, 140, 80, .22);
}
body.duzen-h .h-mesaj { padding: 0; border: 0; background: none; }
body.duzen-h .h-mesaj .serit-baslik { color: #fff; }
body.duzen-h .h-mesaj .serit-alt { color: #c9d4da; }
body.duzen-h .courses-cta {
  gap: 8px; min-height: 38px; padding: 8px 15px; border: 1px solid rgba(255, 170, 120, .55); border-radius: 8px;
  background: linear-gradient(180deg, #ff7a35 0%, #f2590f 100%); color: #10151b; font-weight: 800; letter-spacing: .01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 6px 18px rgba(255, 101, 25, .22); transition: filter .16s ease, transform .16s ease, box-shadow .16s ease;
}
body.duzen-h .courses-cta .cta-ok { font-size: 15px; line-height: 1; transition: transform .16s ease; }
body.duzen-h .courses-cta:hover { background: linear-gradient(180deg, #ff8a4c 0%, #f5661d 100%); color: #10151b; transform: none; filter: brightness(1.03); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 8px 22px rgba(255, 101, 25, .3); }
body.duzen-h .courses-cta:hover .cta-ok { transform: translateX(2px); }
body.duzen-h .courses-cta:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
body.duzen-h .wa-cta { border-radius: 8px; }
@media (min-width: 681px) {
  .okuma-sayfa { position: absolute; left: 50%; transform: translateX(-50%); flex: none; text-align: center; pointer-events: none; }
}
@media (max-width: 680px) {
  body.duzen-h .courses-cta { min-height: 38px; padding: 7px 12px; gap: 6px; }
  .alt-wa { min-height: 38px; gap: 6px; padding: 0 12px; font-size: 12px; }
  .alt-wa .wa-icon { width: 16px; height: 16px; }
  .okuma-sayfa { padding: 0 12px; }
}
@media (max-width: 360px) {
  .alt-wa { padding: 0 11px; }
  .okuma-sayfa { padding: 0 8px; }
}
@media (max-width: 420px) { /* telefon: yakınlaşınca üç zoom düğmesi + WhatsApp + sayfa numarası birlikte sığsın */
  .zoom-controls { gap: 4px; }
  .zoom-btn { width: 38px; }
  .alt-wa { padding: 0 11px; }
  .okuma-sayfa { padding: 0 6px; }
}
/* r20261111b rev3 (Göktuğ 11.11): masaüstünde mesaj biraz büyük; mesaj ve "Yaklaşan Canlı Eğitim" rozeti aynı orta çizgide, aralarında daha geniş açıklık. Mobil değişmez. */
@media (min-width: 961px) {
  body.duzen-h .h-mesaj { align-items: center; gap: 8px 30px; }
  body.duzen-h .h-mesaj .serit-metin { font-size: 14.5px; line-height: 1.25; }
  body.duzen-h .h-mesaj .serit-canli { line-height: 1.2; }
}
/* rev4 (denetim B1–B3): rozet üst çubukta yalnız ≥1360 px'te (mesajla aynı satırda); 961–1359'da iki cümle cümle sınırında iki satır;
   WhatsApp kısa metni ("Yaz") 367 px'e kadar — tam metin yakınlaşınca ancak 368 px'te sığıyor (numara–zoom ≥10 px). */
@media (min-width: 961px) and (max-width: 1359px) {
  body.duzen-h .h-mesaj .serit-baslik, body.duzen-h .h-mesaj .serit-alt { display: block; }
}
@media (min-width: 361px) and (max-width: 367px) {
  .alt-wa .alt-wa-uzun { display: none; }
  .alt-wa .alt-wa-kisa { display: inline; }
}
