/* ============================================================
   Nibras — Playful layer (yalnızca tanıtım sitesi)
   ============================================================

   Bu katman tanıtım sitesini "kurumsal SaaS" görünümünden, okul
   çağındaki bir çocuğun kendini evinde hissedeceği bir yere taşır.
   Referanslar: Duolingo (karakter + basılan "3D" düğmeler),
   ClassDojo (rol kartları), Khan Academy Kids (canlı sahne).

   Hikâye: sayfa bir OKUL GÜNÜ gibi akar — hero'da sabah güneşi ve
   bahçedeki iki öğrenci (Selma ve Adem), aşağı indikçe ders, kara
   tahta, fotoğraf albümü; en altta alt bilgi AKŞAM olur: çayırda ateş
   böcekleri ve kitap yığınının üstünde okuyan bir öğrenci.

   KURALLAR
   - Yalnızca _Layout.cshtml yükler. Panel düzenleri (yönetici,
     öğretmen, öğrenci) bu dosyayı GÖRMEZ; oradaki hiçbir şeyi
     değiştirmez.
   - material.css'ten SONRA yüklenir; aynı özgüllükte kazanır.
   - Marka kimliği korunur: zümrüt yeşil + safran altın + logo
     kırmızısı ana renklerdir. Gökyüzü/mercan/nane/leylak yalnızca
     illüstrasyonlarda ve açık zeminlerde yardımcı renktir.
   - Her hareket prefers-reduced-motion'da kapanır (dosyanın sonu).
   - SVG içindeki parçalara verilen CSS transform, o parçanın
     transform ÖZNİTELİĞİNİ EZER. Bu yüzden animasyon alan SVG
     grupları hiçbir zaman transform özniteliği taşımaz (bkz.
     _KidsScene.cshtml başlığı).
   ============================================================ */


/* ============================================================
   1) TOKENLAR
   ============================================================ */
:root {
  --font-fun: "Baloo Bhaijaan 2", "IBM Plex Sans Arabic", system-ui, sans-serif;

  --ink-line: #1F2D25;          /* illüstrasyon ve çıkartma kontur rengi */

  --sky: #4DB5F0;   --sky-soft: #E4F4FD;   --sky-deep: #1C79B3;
  --coral: #FF7B6B; --coral-soft: #FFEAE6; --coral-deep: #C8473A;
  --sun: #FFC93C;   --sun-soft: #FFF4D6;   --sun-deep: #B98300;
  --mint: #58C08A;  --mint-soft: #E3F6EB;  --mint-deep: #23804F;
  --lilac: #9A89F2; --lilac-soft: #EFECFE; --lilac-deep: #5E4CC9;

  /* Basılan yüzeylerin alt kenarı ("3D" gölge) */
  --edge-emerald: #173F24;
  --edge-sun: #C99100;
  --edge-paper: #E3D9C3;

  /* Yay eğrileri — yalnızca momentum taşıyan girişlerde aşma var */
  --spring-pop: cubic-bezier(.34, 1.56, .64, 1);
  --spring-soft: cubic-bezier(.22, 1.2, .36, 1);
}


/* ============================================================
   2) TİPOGRAFİ — yuvarlak, sıcak başlıklar
   Gövde metni IBM Plex Sans Arabic'te kalır (okunurluk); yalnızca
   başlık, düğme ve etiketler yuvarlak Baloo'ya geçer. Arapça
   harflerin üst/alt uzantıları uzun olduğu için satır aralığı
   Latin'den geniş tutulur.
   ============================================================ */
.hero__h,
.section-header h2,
.tsx-header__title,
.live-band h2,
.cta-band h2,
.fun-card h3,
.polaroid h3,
.role-card strong,
.news-tile h3,
.res-gate__text strong,
.tsx-card__name,
.footer h5 {
  font-family: var(--font-fun);
  letter-spacing: 0;
}
.section-header h2,
.tsx-header__title {
  font-weight: 800;
  line-height: 1.3;
}
html:not([lang="ar"]) .section-header h2,
html:not([lang="ar"]) .tsx-header__title { line-height: 1.12; }

/* Bölüm etiketi: büyük harfli ince çizgi yerine renkli çıkartma */
.section-header .kicker,
.tsx-header__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-fun);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--emerald-deep);
  background: var(--mint-soft);
  border: 2px solid #CBEBD8;
  padding: 4px 14px 3px;
  border-radius: 999px;
  transform: rotate(-2deg);
}
[dir="rtl"] .section-header .kicker,
[dir="rtl"] .tsx-header__kicker { transform: rotate(2deg); }
.section-header .kicker::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 3px rgba(255, 201, 60, .35);
}


/* ============================================================
   3) DÜĞMELER — basılan "3D" düğmeler
   Alt kenar koyu bir şerittir; basınca düğme o şeridin içine
   iner (geri bildirim pointer-down anında, bırakmayı beklemez).
   Bootstrap'ın .btn:first-child:active kuralı (0,3,0) arka planı
   kendi değişkenleriyle boyadığı için renkler --bs-btn-* üzerinden
   de verilir; aksi hâlde basılı düğme bir anlığına saydamlaşır.
   ============================================================ */
.btn {
  font-family: var(--font-fun);
  font-weight: 700;
  font-size: 16px;
  border-radius: 16px;
  padding: 13px 22px 11px;
  line-height: 1.1;
}
.btn--lg { padding: 17px 30px 15px; font-size: 18px; border-radius: 18px; }

.btn--emerald,
.btn--primary {
  --bs-btn-hover-bg: #357B47;
  --bs-btn-active-bg: var(--emerald);
  --bs-btn-active-color: #fff;
  --bs-btn-active-border-color: transparent;
  background: var(--emerald);
  color: #fff;
  border: 0;
  box-shadow: 0 5px 0 var(--edge-emerald);
  margin-bottom: 5px;
}
.btn--emerald:hover,
.btn--primary:hover {
  background: #357B47;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--edge-emerald);
}
.btn--saffron {
  --bs-btn-hover-bg: #FFD35F;
  --bs-btn-active-bg: var(--sun);
  --bs-btn-active-color: var(--ink);
  --bs-btn-active-border-color: transparent;
  background: var(--sun);
  color: var(--ink);
  border: 0;
  box-shadow: 0 5px 0 var(--edge-sun);
  margin-bottom: 5px;
}
.btn--saffron:hover {
  background: #FFD35F;
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--edge-sun);
}
/* Rengini satır içi stille kendisi veren ikincil düğmeler (ör. ders
   detayındaki koyu kartta krem yazılı "سجّل كطالب") bu beyaz zemini ALMAZ:
   beyaz zemin + krem yazı düğmeyi görünmez yapıyordu. Onlar marketing.css'in
   saydam hâlinde kalır. */
.btn--secondary:not([style*="color"]) {
  --bs-btn-hover-bg: #fff;
  --bs-btn-active-bg: #fff;
  --bs-btn-active-color: var(--emerald-deep);
  --bs-btn-active-border-color: var(--edge-paper);
  background: #fff;
  color: var(--emerald-deep);
  border: 2px solid var(--edge-paper);
  box-shadow: 0 5px 0 var(--edge-paper);
  margin-bottom: 5px;
}
.btn--secondary:not([style*="color"]):hover {
  background: #fff;
  color: var(--emerald-deep);
  border-color: #D5C9AE;
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #D5C9AE;
}
.btn--ghost { border-radius: 14px; }
.btn--ghost:hover { background: var(--cream-2); }

.btn--emerald:active,
.btn--primary:active,
.btn--saffron:active,
.btn--secondary:not([style*="color"]):active {
  transform: translateY(5px);
  box-shadow: 0 0 0 transparent;
  transition-duration: 70ms;
}
/* Eski "nefes alan parlama" döngüsü 3D kenarı eziyordu; düğme artık
   dikkati hareketle değil biçimiyle çekiyor. */
.btn--emerald.btn--lg,
.btn--saffron.btn--lg { animation: none; }

/* Düğme içindeki ok: üzerine gelince gideceği yöne doğru küçük bir adım */
.btn svg { transition: transform .35s var(--spring-pop); }
.btn:hover svg { transform: translateX(3px); }
[dir="rtl"] .btn:hover svg { transform: translateX(-3px); }


/* ============================================================
   4) ÜST ŞERİT (NAV)
   ============================================================ */
.nav__links { gap: 2px; }
.nav__links a {
  font-family: var(--font-fun);
  font-weight: 600;
  font-size: 15.5px;
  padding: 7px 10px 5px;
  border-radius: 12px;
  white-space: nowrap;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), transform .3s var(--spring-pop);
}
.nav__links a::after { display: none; }
.nav__links a:hover {
  background: var(--sun-soft);
  color: var(--ink);
  transform: translateY(-2px) rotate(-2deg);
}
.nav__links a:nth-child(2n):hover { background: var(--sky-soft); transform: translateY(-2px) rotate(2deg); }
.nav__links a:nth-child(3n):hover { background: var(--mint-soft); }
.nav__links a:nth-child(5n):hover { background: var(--coral-soft); }
@media (min-width: 1241px) and (max-width: 1360px) {
  .nav__links a { padding-inline: 6px; font-size: 14.5px; }
}
.nav__actions .btn { padding: 11px 18px 9px; font-size: 15px; }
.nav__actions .btn--emerald,
.nav__actions .btn--primary { box-shadow: 0 4px 0 var(--edge-emerald); margin-bottom: 4px; }
.nav__actions .btn--emerald:active,
.nav__actions .btn--primary:active { transform: translateY(4px); box-shadow: none; }
@media (max-width: 1240px) {
  .nav__menu .nav__links a { font-size: 17px; border-radius: 12px; }
  .nav__menu .nav__links a:hover { transform: none; }
}

/* Logo rozeti üzerine gelince hafifçe "zıplar" */
.nav__brand:hover .brand-badge { transform: translateY(-2px) rotate(-6deg); }
.nav__brand .brand-badge { transition: transform .45s var(--spring-pop); }


/* ============================================================
   5) HERO — güneşli bahçe sahnesi
   ============================================================ */
.hero--play {
  padding-block: 40px 130px;
  background:
    radial-gradient(circle at 1.5px 1.5px, rgba(47, 109, 62, .10) 1.5px, transparent 0) 0 0 / 26px 26px,
    linear-gradient(180deg, #FFF7E3 0%, #FFF9EC 55%, var(--cream) 100%);
  isolation: isolate;
}
.hero--play .hero__inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 36px;
}
@media (max-width: 920px) {
  .hero--play .hero__inner { grid-template-columns: 1fr; gap: 12px; }
}

/* Üst çıkartma */
.hero--play .hero__eyebrow {
  background: #fff;
  border: 2px solid var(--edge-paper);
  box-shadow: 0 4px 0 var(--edge-paper);
  font-family: var(--font-fun);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  padding: 5px 16px 4px 6px;
  gap: 10px;
  margin-bottom: 22px;
}
[dir="rtl"] .hero--play .hero__eyebrow { padding: 5px 6px 4px 16px; }
@media (max-width: 600px) {
  .hero--play .hero__eyebrow {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 13px;
  }
}
.hero--play .hero__eyebrow .new {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sun);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  padding: 3px 12px 2px;
  letter-spacing: 0;
  /* Telefonda rozet ikiye bölünmesin ("Hoş / geldin"); satır atlayan yanındaki açıklamadır. */
  white-space: nowrap;
  flex-shrink: 0;
}
.hero-wave-hand {
  display: inline-block;
  transform-origin: 70% 80%;
  animation: pl-hand-wave 2.6s ease-in-out infinite;
}
@keyframes pl-hand-wave {
  0%, 55%, 100% { transform: rotate(0); }
  62% { transform: rotate(18deg); }
  70% { transform: rotate(-10deg); }
  78% { transform: rotate(16deg); }
  86% { transform: rotate(-6deg); }
}

/* Başlık */
.hero--play .hero__h {
  font-family: var(--font-fun);
  font-weight: 800;
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: 1.28;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 18px;
}
html:not([lang="ar"]) .hero--play .hero__h { font-size: clamp(40px, 4.8vw, 68px); line-height: 1.14; letter-spacing: -0.01em; }
/* El çizimi sarı alt çizgi — vurgunun ARKA PLANI olarak çizilir, ayrı bir
   SVG kutusu olarak değil: vurgu satır içi kalır ve her dilde doğal olarak
   satır atlayabilir; box-decoration-break her satıra kendi çizgisini verir.
   Açılışta çizgi okuma yönünde "çekilir" (background-size 0 → %100). */
.hero--play .hero__h .accent {
  color: var(--emerald);
  display: inline;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 16 C50 5 98 22 150 12 S248 3 296 13' fill='none' stroke='%23FFC93C' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 96%;
  background-size: 0% .3em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: .06em;
  animation: pl-underline 1s cubic-bezier(.6, .1, .3, 1) .75s forwards;
}
[dir="rtl"] .hero--play .hero__h .accent { background-position: 100% 96%; }
/* Latin başlıkta satır aralığı dar: çizgi daha yukarıda durur ki alt
   satırın harflerine değmesin. */
html:not([lang="ar"]) .hero--play .hero__h .accent { background-position: 0 84%; }
.hero--play .hero__h .accent::after { display: none; }
@keyframes pl-underline { to { background-size: 100% .3em; } }

.hero--play .hero__sub {
  font-size: 18.5px;
  line-height: 1.8;
  color: var(--ink-3);
  max-width: 520px;
  margin-bottom: 30px;
}

/* İstatistik hapları (eski ince çizgili sayı satırının yerine) */
.hero--play .hero__meta {
  border-top: 0;
  padding-top: 0;
  margin-top: 34px;
  gap: 12px;
}
.hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  background: #fff;
  border: 2px solid var(--edge-paper);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--edge-paper);
  transition: transform .35s var(--spring-pop);
}
[dir="rtl"] .hero-stat { padding: 8px 8px 8px 16px; }
.hero-stat:hover { transform: translateY(-3px) rotate(-2deg); }
.hero-stat__ico {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}
.hero-stat--sky .hero-stat__ico { background: var(--sky); }
.hero-stat--coral .hero-stat__ico { background: var(--coral); }
.hero-stat--mint .hero-stat__ico { background: var(--mint); }
.hero-stat__txt { display: flex; flex-direction: column; gap: 3px; }
.hero-stat__num {
  font-family: var(--font-fun);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}
.hero-stat__lbl { font-size: 13.5px; color: var(--ink-3); line-height: 1.2; }

/* Sahne kutusu */
.hero--play .hero__visual.kids-visual {
  max-width: 640px;
  width: 100%;
  aspect-ratio: auto;
  margin: 0;
  margin-inline-start: auto;
  animation: pl-scene-in .9s var(--spring-soft) .2s both;
}
@keyframes pl-scene-in {
  from { opacity: 0; transform: translateY(26px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 920px) {
  .hero--play .hero__visual.kids-visual { margin-inline: auto; max-width: 560px; }
}

/* Hero zeminindeki uçuşan çıkartmalar */
.hero-confetti { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-confetti svg {
  position: absolute;
  width: 34px; height: 34px;
  animation: pl-bob 6s ease-in-out infinite;
}
.hero-confetti svg:nth-child(1) { top: 9%;  inset-inline-start: 3%;  animation-duration: 7s; }
.hero-confetti svg:nth-child(2) { top: 62%; inset-inline-start: 1.5%; animation-duration: 5.5s; animation-delay: -2s; }
.hero-confetti svg:nth-child(3) { top: 14%; inset-inline-start: 44%; animation-duration: 6.5s; animation-delay: -1s; width: 26px; height: 26px; }
.hero-confetti svg:nth-child(4) { bottom: 16%; inset-inline-start: 40%; animation-duration: 8s; animation-delay: -3s; }
.hero-confetti svg:nth-child(5) { top: 4%;  inset-inline-end: 4%; animation-duration: 6s; animation-delay: -4s; width: 28px; height: 28px; }
@keyframes pl-bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-12px) rotate(14deg); }
}
@media (max-width: 920px) { .hero-confetti svg:nth-child(3), .hero-confetti svg:nth-child(4) { display: none; } }
@media (max-width: 560px) { .hero-confetti svg:not(:nth-child(5)) { display: none; } }

/* Bölümler arası dalga */
.pl-wave {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  width: 100%;
  height: 70px;
  display: block;
  pointer-events: none;
  z-index: 1;
}
.pl-wave path { fill: var(--cream); }
@media (max-width: 760px) { .pl-wave { height: 38px; } .hero--play { padding-bottom: 80px; } }


/* ============================================================
   6) ÇOCUK SAHNESİ — _KidsScene.cshtml
   Konum SVG özniteliklerinde; buradaki bütün transform-origin
   değerleri o grubun YEREL koordinatındadır (px = kullanıcı birimi).
   ============================================================ */
.kids-scene {
  position: relative;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.kids-scene__svg { width: 100%; height: auto; display: block; overflow: visible; }
.ks-glyph { font-family: var(--font-fun); font-weight: 800; }

/* Katman paralaksı: imleç hareketi --px/--py'yi (-1..1) günceller */
.ks-layer { transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.ks-layer--far  { transform: translate(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -6px)); }
.ks-layer--mid  { transform: translate(calc(var(--px, 0) * -5px),  calc(var(--py, 0) * -3px)); }
.ks-layer--near { transform: translate(calc(var(--px, 0) * 12px),  calc(var(--py, 0) * 8px)); }

/* Bulutlar, güneş, bayrak, çan, ağaçlar */
.ks-cloud { animation: pl-drift 22s ease-in-out infinite alternate; }
.ks-cloud--b { animation-duration: 28s; animation-delay: -9s; }
.ks-cloud--c { animation-duration: 18s; animation-delay: -4s; }
@keyframes pl-drift { from { transform: translateX(-14px); } to { transform: translateX(34px); } }

.ks-sun__rays { animation: pl-spin 36s linear infinite; }
@keyframes pl-spin { to { transform: rotate(360deg); } }
.ks-sun__eyes { transform-box: fill-box; transform-origin: center; animation: pl-sun-blink 5.5s infinite; }
@keyframes pl-sun-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }

.ks-flag { transform-origin: 490px 168px; animation: pl-flag 1.3s ease-in-out infinite alternate; }
@keyframes pl-flag { from { transform: skewY(-5deg) scaleX(1); } to { transform: skewY(6deg) scaleX(.9); } }
.ks-bell { transform-origin: 490px 212px; animation: pl-bell 3.2s ease-in-out infinite; }
@keyframes pl-bell { 0%, 60%, 100% { transform: rotate(0); } 68% { transform: rotate(16deg); } 76% { transform: rotate(-13deg); } 84% { transform: rotate(8deg); } 92% { transform: rotate(-4deg); } }
.ks-clock { transform-origin: 490px 250px; animation: pl-spin 12s linear infinite; }

.ks-tree--a { transform-origin: 84px 350px; animation: pl-sway 5s ease-in-out infinite; }
.ks-tree--b { transform-origin: 401px 352px; animation: pl-sway 4.2s ease-in-out infinite -1.5s; }
@keyframes pl-sway { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
.ks-flower { animation: pl-flower 3s ease-in-out infinite; }
.ks-flowers g:nth-child(2n) .ks-flower { animation-delay: -1.2s; }
@keyframes pl-flower { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* Yüzen nesneler */
.ks-float { animation: pl-float 5s ease-in-out infinite; }
.ks-float--2 { animation-duration: 6.2s; animation-delay: -2s; }
.ks-float--3 { animation-duration: 4.6s; animation-delay: -1s; }
.ks-float--4 { animation: pl-twinkle 2.6s ease-in-out infinite; }
.ks-float--5 { animation-duration: 7s; animation-delay: -3s; }
.ks-float--6 { animation-duration: 5.6s; animation-delay: -2.4s; }
@keyframes pl-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(7deg); } }
@keyframes pl-twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.25) rotate(20deg); } }

/* Kâğıt uçağın noktalı rotası akar */
.ks-trail { animation: pl-march 1.2s linear infinite; }
@keyframes pl-march { to { stroke-dashoffset: -22; } }

/* --- Karakterler: sahneye özgü giriş burada; yüz, göz, zıplama
   ve konfeti kuralları kids.css'te (paneller de aynı dosyayı yükler). --- */
/* Giriş zıplaması bir kez oynar; bitince playful.js sahneye .is-entered
   koyar ve kural düşer. (Düşmeseydi dokunma zıplaması bittiğinde animasyon
   adı geri değişir ve giriş baştan oynardı.) */
.kids-scene:not(.is-entered) .kid-spot[data-kid="girl"] .kid { animation: pl-kid-enter .85s var(--spring-pop) .45s both; }
.kids-scene:not(.is-entered) .kid-spot[data-kid="boy"] .kid  { animation: pl-kid-enter .85s var(--spring-pop) .62s both; }
@keyframes pl-kid-enter {
  0%   { transform: translateY(40px) scale(.9, 1.08); opacity: 0; }
  55%  { transform: translateY(-14px) scale(.96, 1.04); opacity: 1; }
  78%  { transform: translateY(0) scale(1.05, .95); }
  100% { transform: none; opacity: 1; }
}

/* Konuşma balonları */
.kids-bubble {
  position: absolute;
  z-index: 3;
  max-width: 46%;
  padding: 8px 16px 6px;
  background: #fff;
  border: 2.5px solid var(--ink-line);
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--ink-line);
  font-family: var(--font-fun);
  font-weight: 700;
  font-size: clamp(13px, 1.45vw, 17px);
  line-height: 1.35;
  color: var(--ink);
  white-space: nowrap;
  transform-origin: 50% 120%;
  opacity: 0;
  transform: translateY(8px) scale(.6);
  transition: opacity .18s ease-out, transform .45s var(--spring-pop);
  pointer-events: none;
}
.kids-bubble.is-on { opacity: 1; transform: none; }
.kids-bubble::after {
  content: "";
  position: absolute;
  bottom: -9px;
  width: 16px; height: 16px;
  background: #fff;
  border: 2.5px solid var(--ink-line);
  border-top: 0; border-left: 0;
  transform: rotate(45deg);
  border-radius: 0 0 4px 0;
}
/* Konumlar sahnenin fiziksel koordinatlarıdır (viewBox 600×520) —
   dil yönünden bağımsız, bu yüzden left/right fiziksel yazılır. */
.kids-bubble--girl { left: 12%; top: 24%; }
.kids-bubble--girl::after { right: 26%; }
.kids-bubble--boy { left: 55%; top: 22.5%; }
.kids-bubble--boy::after { left: 22%; }
/* JS yoksa ilk balon görünür kalsın */
.kids-scene:not(.is-live) .kids-bubble--girl { opacity: 1; transform: none; }

/* --- Fotoğraflı sahne (_PhotoScene.cshtml, .photo-scene) ---
   Pencerede bina fotoğrafı tabandır; diğer üç fotoğraf 24 sn'lik döngüde
   6'şar sn arayla sırayla üstüne gelip gider; hepsi kaybolunca bina yeniden
   görünür. Her fotoğraf görünürken hafifçe yaklaşır (Ken Burns). Etiketler
   fotoğraflarla aynı zamanlamayı kullanır. */
/* Katmanlar aynı 600×520 kutuyu paylaşır: yüksekliği öndeki SVG belirler, ötekiler
   onun üstüne/altına mutlak konumla oturur (bkz. _PhotoScene.cshtml başındaki not). */
.photo-scene .ps-back { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.photo-scene .kids-scene__svg { position: relative; z-index: 2; }
.ps-window {
  position: absolute; inset: 0; z-index: 1;
  overflow: hidden;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 520' preserveAspectRatio='none'%3E%3Cpath d='M300%2018%20C420%2010%20540%2040%20575%20140%20C605%20225%20590%20330%20560%20400%20C525%20480%20430%20505%20300%20508%20C170%20510%2070%20490%2035%20410%20C5%20340%20-2%20230%2030%20150%20C62%2070%20180%2025%20300%2018%20Z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 520' preserveAspectRatio='none'%3E%3Cpath d='M300%2018%20C420%2010%20540%2040%20575%20140%20C605%20225%20590%20330%20560%20400%20C525%20480%20430%20505%20300%20508%20C170%20510%2070%20490%2035%20410%20C5%20340%20-2%20230%2030%20150%20C62%2070%20180%2025%20300%2018%20Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
/* Fotoğraf kutusu SVG'deki eski <image> ile aynı: x -10, y 4, 620×512 (viewBox birimi). */
.ps-photo {
  position: absolute;
  left: -1.667%; top: .77%; width: 103.334%; height: 98.462%;
  object-fit: cover; object-position: 50% 50%;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  -webkit-user-drag: none;
}
/* Dikey fotoğraf (resim dersi) üstten hizalanır: y -90, yükseklik 606. */
.ps-photo--tall { top: -17.308%; height: 116.538%; object-position: 50% 0; }
.ps-shade { position: absolute; left: 0; right: 0; top: 75%; bottom: 0; background: rgba(31, 45, 37, .10); }
.ps-photo--1 { animation: ps-zoom 24s ease-in-out infinite alternate; }
.ps-photo--2, .ps-photo--3, .ps-photo--4 { opacity: 0; animation: ps-fade 24s linear infinite; }
@keyframes ps-zoom { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes ps-fade {
  0%   { opacity: 0; transform: scale(1); }
  4%   { opacity: 1; }
  25%  { opacity: 1; }
  29%  { opacity: 0; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1.06); }
}
.ps-flag { transform-origin: 0 -35px; animation: pl-flag 1.3s ease-in-out infinite alternate; }
/* Mührün dönen yazısı: merkez (526, 86), kutu 120×120 → sahnenin %20'si. */
.ps-seal-ring {
  position: absolute; z-index: 3;
  left: 77.667%; top: 5%;
  width: 20%; aspect-ratio: 1;
  pointer-events: none;
  will-change: transform;
  animation: pl-spin 40s linear infinite;
}
.ps-seal-ring > img, .ps-seal-ring > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ps-spark { animation: pl-twinkle 2.8s ease-in-out infinite; }
.ps-spark--2 { animation-delay: -1s; animation-duration: 2.2s; }
.ps-spark--3 { animation-delay: -1.8s; animation-duration: 3.4s; }

.ps-caps { position: absolute; left: 0; right: 0; bottom: 17%; height: 0; pointer-events: none; }
.ps-cap {
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  padding: 5px 16px 3px;
  background: #fff;
  border: 2.5px solid var(--ink-line);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink-line);
  font-family: var(--font-fun);
  font-weight: 800;
  font-size: clamp(13px, 1.4vw, 16px);
  line-height: 1.4;
  color: var(--ink-line);
  white-space: nowrap;
}
.ps-cap--1 { animation: ps-cap1 24s linear infinite; }
.ps-cap--2, .ps-cap--3, .ps-cap--4 { opacity: 0; animation: ps-capfade 24s linear infinite; }
@keyframes ps-cap1 { 0%, 20% { opacity: 1; } 23%, 97% { opacity: 0; } 99.5%, 100% { opacity: 1; } }
@keyframes ps-capfade { 0% { opacity: 0; } 4%, 25% { opacity: 1; } 28%, 100% { opacity: 0; } }
/* Gecikmeler kısayol "animation" kurallarından SONRA gelmeli; önce gelirse kısayol onları sıfırlar. */
.ps-photo--2, .ps-cap--2 { animation-delay: 5s; }
.ps-photo--3, .ps-cap--3 { animation-delay: 11s; }
.ps-photo--4, .ps-cap--4 { animation-delay: 17s; }

/* Fotoğraflı sahne daha büyük: görsel sütunu metinden geniş. */
.hero--play:has(.photo-scene) .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.hero--play .hero__visual.kids-visual:has(.photo-scene) { max-width: 760px; }
@media (max-width: 920px) {
  .hero--play:has(.photo-scene) .hero__inner { grid-template-columns: 1fr; }
  .hero--play .hero__visual.kids-visual:has(.photo-scene) { max-width: 600px; }
}

/* Dokunmatik cihazda (telefon, tablet) SVG'nin İÇİNDEKİ küçük süs döngüleri durur:
   iOS onları ana iş parçacığında çizer ve kaydırma sırasında takılırlardı.
   Fotoğraf geçişleri ve dönen mühür (HTML katmanları, yalnızca transform/opacity)
   telefonda da oynamaya devam eder. Uçak (SMIL) playful.js'te durdurulur. */
@media (hover: none) {
  .photo-scene .kids-scene__svg * { animation: none !important; }
}

/* Sahne ekran dışındayken bütün döngüler durur (playful.js) */
.kids-scene.is-paused *,
.kids-scene.is-paused { animation-play-state: paused !important; }



/* ============================================================
   7) "NEREDEN BAŞLARSIN?" — rol kartları
   ============================================================ */
.roles { position: relative; padding-block: 8px 72px; }
.roles__head { text-align: center; margin: 0 auto 34px; max-width: 640px; }
.roles__head .section-header { margin: 0 auto; text-align: center; }
.roles__head h2 { margin-bottom: 6px; }
.roles__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1000px) { .roles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px)  { .roles__grid { gap: 12px; } }

.role-card {
  --rc: var(--sky); --rc-soft: var(--sky-soft); --rc-edge: #BFE2F6;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 24px 16px 20px;
  background: #fff;
  border: 2px solid var(--rc-edge);
  border-radius: 26px;
  box-shadow: 0 6px 0 var(--rc-edge);
  text-decoration: none;
  color: var(--ink);
  transition: transform .4s var(--spring-pop), box-shadow .25s ease-out;
}
.role-card:hover { color: var(--ink); transform: translateY(-5px) rotate(-1.2deg); box-shadow: 0 11px 0 var(--rc-edge); }
.role-card:nth-child(2n):hover { transform: translateY(-5px) rotate(1.2deg); }
.role-card:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--rc-edge); transition-duration: 70ms; }
.role-card:focus-visible { outline: 3px solid var(--rc); outline-offset: 3px; }
.role-card--student { --rc: var(--sky);   --rc-soft: var(--sky-soft);   --rc-edge: #BFE2F6; }
.role-card--join    { --rc: var(--sun);   --rc-soft: var(--sun-soft);   --rc-edge: #F5DC96; }
.role-card--teacher { --rc: var(--mint);  --rc-soft: var(--mint-soft);  --rc-edge: #BFE6CF; }
.role-card--visitor { --rc: var(--coral); --rc-soft: var(--coral-soft); --rc-edge: #FACBC3; }

.role-card__art {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--rc-soft);
  display: grid; place-items: center;
  margin-bottom: 8px;
}
.role-card__art svg { width: 66px; height: 66px; overflow: visible; transition: transform .5s var(--spring-pop); }
.role-card:hover .role-card__art svg { transform: scale(1.14) rotate(-8deg); }
.role-card strong { font-size: 21px; font-weight: 800; line-height: 1.3; }
.role-card small { font-size: 14px; color: var(--ink-3); line-height: 1.6; min-height: 2.9em; }
.role-card__go {
  margin-top: 8px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--rc);
  color: #fff;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .16);
  transition: transform .4s var(--spring-pop);
}
.role-card:hover .role-card__go { transform: translateX(4px); }
[dir="rtl"] .role-card:hover .role-card__go { transform: translateX(-4px); }
[dir="rtl"] .role-card__go svg { transform: scaleX(-1); }
@media (max-width: 560px) {
  .role-card { padding: 18px 10px 16px; border-radius: 22px; }
  .role-card__art { width: 76px; height: 76px; }
  .role-card__art svg { width: 52px; height: 52px; }
  .role-card strong { font-size: 18px; }
  .role-card small { font-size: 12.5px; }
}


/* ============================================================
   8) DERS ŞERİDİ — eğik, akan bant
   ============================================================ */
/* Eğik bant sayfadan %4 geniş; taşan uçları kırpan sarmalayıcı olmasa
   sayfaya yatay kaydırma çubuğu eklerdi. Dikey dolgu, dönen bandın
   köşeleri kırpılmasın diye. */
.subject-ribbon-wrap { overflow: hidden; padding-block: 26px 30px; margin-bottom: -8px; }
.subject-ribbon {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding-block: 16px;
  background: var(--emerald);
  transform: rotate(-1.6deg);
  width: 104%;
  margin-inline-start: -2%;
  box-shadow: 0 6px 0 var(--edge-emerald);
  z-index: 2;
}
[dir="rtl"] .subject-ribbon { transform: rotate(1.6deg); }
/* İki özdeş set; her setin sonunda boşluk kadar iç dolgu var, böylece
   %50 kaydırma tam bir set periyoduna denk gelir ve döngü dikişsizdir. */
.subject-ribbon__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: pl-marquee 46s linear infinite;
}
.subject-ribbon__set {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
  padding-inline-end: 14px;
  list-style: none;
}
.subject-ribbon:hover .subject-ribbon__track { animation-play-state: paused; }
@keyframes pl-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pl-marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
[dir="rtl"] .subject-ribbon__track { animation-name: pl-marquee-rtl; }
.subject-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 6px 8px;
  background: #fff;
  border-radius: 999px;
  font-family: var(--font-fun);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  white-space: nowrap;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .18);
}
[dir="rtl"] .subject-chip { padding: 8px 8px 6px 18px; }
.subject-chip i {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 14px;
  color: #fff;
  background: var(--chip, var(--sky));
}


/* ============================================================
   9) ÖZELLİK KARTLARI — renkli, illüstrasyonlu
   ============================================================ */
.fun-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 900px) { .fun-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.fun-card {
  --fc: var(--sky); --fc-soft: var(--sky-soft); --fc-edge: #BFE2F6;
  position: relative;
  padding: 26px 26px 28px;
  background: var(--fc-soft);
  border: 2px solid var(--fc-edge);
  border-radius: 30px;
  box-shadow: 0 7px 0 var(--fc-edge);
  transition: transform .45s var(--spring-pop), box-shadow .25s ease-out;
}
.fun-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 13px 0 var(--fc-edge); }
.fun-card:nth-child(2):hover { transform: translateY(-6px) rotate(1deg); }
.fun-card--coral { --fc: var(--coral); --fc-soft: var(--coral-soft); --fc-edge: #FACBC3; }
.fun-card--sun   { --fc: var(--sun);   --fc-soft: var(--sun-soft);   --fc-edge: #F5DC96; }
.fun-card__art {
  height: 150px;
  margin: -6px -6px 18px;
  border-radius: 22px;
  background: #fff;
  display: grid; place-items: center;
  overflow: hidden;
  position: relative;
}
.fun-card__art svg { width: 190px; height: 130px; overflow: visible; }
.fun-card h3 { font-size: 23px; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.fun-card p { color: var(--ink-2); line-height: 1.75; margin: 0; font-size: 15.5px; }
/* illüstrasyon içi küçük hareketler */
.fa-bob, .fa-bob2 { transform-box: fill-box; transform-origin: center; }
.fa-bob  { animation: pl-float 4.5s ease-in-out infinite; }
.fa-bob2 { animation: pl-float 5.2s ease-in-out infinite -2s; }
.fa-pulse { transform-box: fill-box; transform-origin: center; animation: pl-flower 1.5s ease-in-out infinite; }
.fa-blink { animation: pl-live 1.2s steps(2, jump-none) infinite; }
@keyframes pl-live { 50% { opacity: .25; } }
.fun-card:hover .fa-tilt { transform: rotate(-6deg) translateY(-4px); }
.fa-tilt { transform-box: fill-box; transform-origin: center; transition: transform .5s var(--spring-pop); }


/* ============================================================
   10) PROGRAMLAR — fotoğraf albümü (polaroid)
   ============================================================ */
.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin-top: 40px;
  padding-inline: 6px;
}
@media (max-width: 1100px) { .polaroid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .polaroid-grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; } }
.polaroid {
  --tilt: -2deg;
  position: relative;
  background: #fff;
  padding: 12px 12px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .04), 0 16px 34px rgba(31, 45, 37, .14);
  transform: rotate(var(--tilt));
  transition: transform .5s var(--spring-pop), box-shadow .3s ease-out;
}
.polaroid:nth-child(2) { --tilt: 1.8deg; }
.polaroid:nth-child(3) { --tilt: -1.2deg; }
.polaroid:nth-child(4) { --tilt: 2.4deg; }
.polaroid:hover {
  transform: rotate(0) translateY(-8px) scale(1.02);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .04), 0 26px 50px rgba(31, 45, 37, .2);
  z-index: 2;
}
.polaroid__tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 92px; height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 201, 60, .72);
  border-inline: 2px dashed rgba(255, 255, 255, .55);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  z-index: 2;
}
.polaroid:nth-child(2n) .polaroid__tape { background: rgba(77, 181, 240, .6); transform: translateX(-50%) rotate(4deg); }
.polaroid:nth-child(3) .polaroid__tape { background: rgba(88, 192, 138, .62); }
.polaroid__photo {
  aspect-ratio: 4 / 3.4;
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream-2);
}
.polaroid__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease-out); }
.polaroid:hover .polaroid__photo img { transform: scale(1.06); }
.polaroid__cap { padding: 14px 6px 0; }
.polaroid__kicker {
  display: inline-block;
  font-family: var(--font-fun);
  font-weight: 700;
  font-size: 13px;
  color: var(--emerald-deep);
  background: var(--mint-soft);
  padding: 2px 10px 1px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.polaroid:nth-child(2) .polaroid__kicker { background: var(--sky-soft); color: var(--sky-deep); }
.polaroid:nth-child(3) .polaroid__kicker { background: var(--coral-soft); color: var(--coral-deep); }
.polaroid:nth-child(4) .polaroid__kicker { background: var(--sun-soft); color: var(--sun-deep); }
.polaroid h3 { font-size: 20px; font-weight: 800; line-height: 1.35; color: var(--ink); margin: 0 0 6px; }
.polaroid p { font-size: 14px; line-height: 1.7; color: var(--ink-3); margin: 0; }


/* ============================================================
   11) KARA TAHTA — sayılar tebeşirle yazılmış
   ============================================================ */
.chalkboard {
  position: relative;
  padding: 16px;
  border-radius: 26px;
  background: linear-gradient(180deg, #A0693F, #8A5632);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 8px 0 #6B401F, 0 20px 40px rgba(31, 45, 37, .18);
}
.chalkboard__board {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 44px 32px 50px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .07), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(255, 255, 255, .05), transparent 55%),
    #24503A;
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .18), inset 0 10px 30px rgba(0, 0, 0, .25);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  text-align: center;
}
@media (max-width: 680px) { .chalkboard__board { grid-template-columns: 1fr; padding: 30px 18px 40px; gap: 26px; } }
.chalk-stat { position: relative; z-index: 1; }
.chalk-stat__ico {
  display: inline-grid; place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 2.5px dashed rgba(255, 255, 255, .55);
  color: #FFF6D8;
  font-size: 22px;
  margin-bottom: 10px;
}
.chalk-stat__num {
  display: block;
  font-family: var(--font-fun);
  font-weight: 800;
  font-size: clamp(48px, 6vw, 70px);
  line-height: 1.05;
  color: #FFFDF5;
  text-shadow: 0 0 1px rgba(255, 255, 255, .8), 0 0 14px rgba(255, 255, 255, .18);
}
/* "+" sayının önünde, ayrı bir öğe: sayaç (playful.js) yalnızca
   [data-count] metnini yeniden yazar, işaret yerinde kalır. Mantıksal
   sırada önde olduğu için RTL'de sağda, LTR'de solda okunur ("+5"). */
.stat-plus { display: inline-block; font-size: .6em; line-height: 1; vertical-align: .42em; margin-inline-end: .06em; opacity: .85; }
.hero-stat__num .stat-plus { font-size: .7em; vertical-align: .22em; opacity: .7; }
.chalk-stat:nth-child(2) .chalk-stat__num { color: #FFE58F; }
.chalk-stat:nth-child(3) .chalk-stat__num { color: #BFE8FF; }
.chalk-stat__lbl { display: block; margin-top: 6px; font-family: var(--font-fun); font-weight: 600; font-size: 17px; color: rgba(255, 255, 255, .8); }
.chalk-doodle { position: absolute; pointer-events: none; opacity: .5; }
.chalk-doodle--a { top: 14px; inset-inline-start: 18px; width: 90px; }
.chalk-doodle--b { bottom: 14px; inset-inline-end: 22px; width: 120px; }
.chalk-doodle--c { top: 18px; inset-inline-end: 30%; width: 40px; }
.chalkboard__ledge {
  position: absolute;
  inset-inline: 60px;
  bottom: 6px;
  height: 0;
}
.chalk-piece, .chalk-eraser { position: absolute; bottom: -2px; }
.chalk-piece {
  inset-inline-start: 12%;
  width: 46px; height: 11px;
  border-radius: 4px;
  background: #FFFDF5;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .2);
  transform: rotate(-4deg);
}
.chalk-piece--2 { inset-inline-start: calc(12% + 58px); width: 30px; background: #FFE58F; transform: rotate(6deg); }
.chalk-eraser {
  inset-inline-end: 10%;
  width: 70px; height: 20px;
  border-radius: 6px;
  background: linear-gradient(180deg, #F2C14E 0 55%, #5B6B78 55%);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}


/* ============================================================
   12) ÖĞRETMENLER — mevcut kaydırıcıya sıcak dokunuşlar
   ============================================================ */
main .tsx-card {
  border: 2px solid var(--edge-paper);
  border-radius: 28px;
  box-shadow: 0 6px 0 var(--edge-paper);
}
main .tsx-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 12px 0 var(--edge-paper); border-color: var(--edge-paper); }
main .tsx-card__av-wrap { position: relative; padding: 6px; background: none; }
main .tsx-card__av-wrap::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 3px dashed var(--sun);
  transition: transform 1.2s var(--ease-out);
}
main .tsx-card:hover .tsx-card__av-wrap::before { transform: rotate(180deg); }
main .tsx-card__av { box-shadow: 0 4px 0 rgba(0, 0, 0, .15); font-family: var(--font-fun); }
main .tsx-card__badge { border-radius: 50%; transform: rotate(-10deg); }
main .tsx-card:hover .tsx-card__badge { animation: pl-twinkle 1s ease-in-out; }
main .tsx-card__cta { font-family: var(--font-fun); font-size: 14px; border-width: 2px; }
main .tsx-header__cta { font-family: var(--font-fun); font-weight: 700; box-shadow: 0 4px 0 var(--emerald-glow); }


/* ============================================================
   13) CANLI DERSLER — koparılan takvim yaprağı
   ============================================================ */
.live-band {
  background: var(--sky-soft);
  border: 2px solid #BFE2F6;
  border-radius: 30px;
  box-shadow: 0 7px 0 #BFE2F6;
}
.live-item {
  border: 2px solid #D6ECF8;
  border-radius: 18px;
  transition: transform .35s var(--spring-pop);
}
.live-item:hover { transform: translateX(-4px) rotate(-.6deg); }
[dir="rtl"] .live-item:hover { transform: translateX(4px) rotate(.6deg); }
.live-item .date {
  position: relative;
  width: 58px;
  padding: 14px 6px 6px;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink-line);
  border-radius: 10px;
  box-shadow: 0 3px 0 var(--ink-line);
  overflow: hidden;
}
.live-item .date::before {
  content: "";
  position: absolute; inset-inline: 0; top: 0;
  height: 9px;
  background: var(--coral);
  border-bottom: 2px solid var(--ink-line);
}
.live-item .date .d { font-family: var(--font-fun); font-weight: 800; font-size: 24px; }
.live-item .date .m { opacity: 1; color: var(--ink-3); font-weight: 700; }


/* ============================================================
   14) MATERYAL KAPILARI, HABERLER, GALERİ
   ============================================================ */
main .res-gate {
  border: 2px solid var(--edge-paper);
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--edge-paper);
  transition: transform .4s var(--spring-pop), box-shadow .25s ease-out, border-color .2s;
}
main .res-gate:hover { transform: translateY(-4px) rotate(-.8deg); box-shadow: 0 10px 0 var(--edge-paper); border-color: var(--edge-paper); }
main .res-gate:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--edge-paper); transition-duration: 70ms; }
main .res-gate__ico { border-radius: 18px; background: var(--sun-soft); color: var(--sun-deep); transition: transform .5s var(--spring-pop); }
main .res-gate:nth-child(2) .res-gate__ico { background: var(--sky-soft); color: var(--sky-deep); }
main .res-gate:hover .res-gate__ico { transform: rotate(-10deg) scale(1.1); }

.news-tile { border: 2px solid var(--edge-paper); border-radius: 26px; box-shadow: 0 6px 0 var(--edge-paper); }
.news-tile:hover { transform: translateY(-4px); box-shadow: 0 10px 0 var(--edge-paper); }
.news-tile--featured { border-color: var(--ink); box-shadow: 0 6px 0 #000; }
.news-tile .tag { font-family: var(--font-fun); font-size: 13px; letter-spacing: 0; text-transform: none; padding: 3px 12px 2px; transform: rotate(-3deg); box-shadow: 0 2px 0 rgba(0, 0, 0, .08); }

main .cl-tile { border-radius: 22px; border: 4px solid #fff; box-shadow: 0 10px 24px rgba(31, 45, 37, .12); }
main .cl-tile:nth-child(3n+1):hover { transform: translateY(-4px) rotate(-1.2deg); }
main .cl-tile:nth-child(3n+2):hover { transform: translateY(-4px) rotate(1.2deg); }
main .cl-tile:nth-child(3n):hover { transform: translateY(-4px) rotate(-.6deg); }


/* --- Okul duyuruları: panoya iğnelenmiş renkli notlar --- */
/* auto-fill (auto-fit değil): tek bir duyuru varken not bütün satıra
   yayılıp bir şerit olmasın, not kâğıdı boyunda kalsın. */
.note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 30px 26px;
  margin-top: 30px;
  padding-inline: 6px;
}
.note {
  --nc: #FFF1B8; --tilt: -1.5deg;
  position: relative;
  padding: 30px 22px 20px;
  background: var(--nc);
  border-radius: 4px 4px 22px 4px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 14px 26px rgba(31, 45, 37, .13);
  transform: rotate(var(--tilt));
  transition: transform .45s var(--spring-pop), box-shadow .3s ease-out;
}
.note:nth-child(3n+2) { --nc: #DDF2E6; --tilt: 1.3deg; }
.note:nth-child(3n)   { --nc: #DCEFFC; --tilt: -.7deg; }
.note:hover { transform: rotate(0) translateY(-5px) scale(1.02); box-shadow: 0 2px 0 rgba(0, 0, 0, .05), 0 22px 40px rgba(31, 45, 37, .18); }
.note__pin {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 22px; height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #FFB3A8 0 18%, var(--coral) 45%, var(--coral-deep) 100%);
  box-shadow: 0 4px 5px rgba(0, 0, 0, .25);
}
.note:nth-child(3n+2) .note__pin { background: radial-gradient(circle at 35% 32%, #B5E4FF 0 18%, var(--sky) 45%, var(--sky-deep) 100%); }
.note:nth-child(3n) .note__pin   { background: radial-gradient(circle at 35% 32%, #FFE59A 0 18%, var(--sun) 45%, var(--sun-deep) 100%); }
.note__ico {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  color: var(--emerald-deep);
  margin-bottom: 10px;
}
.note__title { font-family: var(--font-fun); font-weight: 800; font-size: 19px; line-height: 1.4; color: var(--ink); margin: 0 0 6px; }
.note__body { font-size: 14.5px; line-height: 1.75; color: var(--ink-2); margin: 0 0 12px; }
.note__date { font-family: var(--font-fun); font-size: 13px; font-weight: 600; color: var(--ink-3); }


/* ============================================================
   15) ÖĞRENCİ YORUMLARI — konuşma balonları
   ============================================================ */
.bubble-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 26px;
  margin-top: 30px;
}
@media (max-width: 860px) { .bubble-grid { grid-template-columns: 1fr; } }
.say {
  --sc: var(--sky-soft); --se: #BFE2F6;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.say:nth-child(2) { --sc: var(--sun-soft); --se: #F5DC96; }
.say:nth-child(3) { --sc: var(--mint-soft); --se: #BFE6CF; }
.say:nth-child(4) { --sc: var(--coral-soft); --se: #FACBC3; }
.say__bubble {
  position: relative;
  margin: 0;
  padding: 22px 24px 20px;
  background: var(--sc);
  border: 2px solid var(--se);
  border-radius: 26px;
  box-shadow: 0 6px 0 var(--se);
  font-family: var(--font-fun);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  transition: transform .45s var(--spring-pop);
}
.say:hover .say__bubble { transform: rotate(-1.2deg) translateY(-3px); }
.say:nth-child(2n):hover .say__bubble { transform: rotate(1.2deg) translateY(-3px); }
.say__bubble::after {
  content: "";
  position: absolute;
  bottom: -15px;
  inset-inline-start: 40px;
  width: 24px; height: 24px;
  background: var(--sc);
  border-inline-end: 2px solid var(--se);
  border-bottom: 2px solid var(--se);
  transform: skewY(30deg) rotate(45deg);
  border-radius: 0 0 6px 0;
}
[dir="rtl"] .say__bubble::after { border-radius: 0 0 0 6px; transform: skewY(-30deg) rotate(-45deg); }
.say__who { display: flex; align-items: center; gap: 12px; padding-inline-start: 18px; }
.say__av {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--se);
  box-shadow: 0 3px 0 var(--se);
  overflow: hidden;
  flex-shrink: 0;
  transition: transform .45s var(--spring-pop);
}
.say:hover .say__av { transform: rotate(-10deg) scale(1.06); }
.say__av svg { width: 100%; height: 100%; display: block; }
.say__name { display: block; font-family: var(--font-fun); font-weight: 800; font-size: 17px; color: var(--ink); line-height: 1.2; }
.say__meta { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }


/* ============================================================
   16) SON ÇAĞRI — güneşli kart + köşeden bakan Selma
   ============================================================ */
.cta-play {
  position: relative;
  overflow: visible;
  border-radius: 34px;
  padding: 56px 48px;
  background:
    radial-gradient(circle at 1.5px 1.5px, rgba(94, 70, 16, .10) 1.5px, transparent 0) 0 0 / 24px 24px,
    linear-gradient(135deg, #FFD95E 0%, #FFC93C 100%);
  border: 2px solid #E9B11E;
  box-shadow: 0 8px 0 var(--edge-sun);
  isolation: isolate;
}
.cta-play__content { position: relative; z-index: 2; max-width: 600px; }
.cta-play h2 { font-family: var(--font-fun); font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.3; color: var(--ink); margin: 0 0 12px; }
html:not([lang="ar"]) .cta-play h2 { line-height: 1.1; }
.cta-play p { font-size: 17px; line-height: 1.75; color: #4A3A10; margin: 0 0 26px; max-width: 520px; }
/* Bootstrap'ın .row'u (çocuklara width:100% veren ızgara) burada KULLANILMAZ. */
.cta-play__row { display: flex; gap: 14px; flex-wrap: wrap; margin: 0; }
.cta-play .btn--secondary { border-color: #E9B11E; box-shadow: 0 5px 0 #D69E0C; }
.cta-play .btn--secondary:hover { border-color: #D69E0C; box-shadow: 0 7px 0 #C08A00; }
.cta-play__kid {
  position: absolute;
  z-index: 1;
  inset-inline-end: 40px;
  bottom: 0;
  width: 250px;
  pointer-events: none;
}
.cta-play__kid .kid-spot { pointer-events: auto; }
/* Selma belden kesiktir: yalnızca ALT kenar kırpılır (etek kartın
   altından taşmasın); üst ve yanlar serbest, zıplayınca başı kesilmez. */
.cta-play__kid svg {
  width: 100%; height: auto; display: block;
  overflow: visible;
  clip-path: inset(-300px -300px 0 -300px);
  transform-origin: 50% 100%;
}
/* Kart görünür olunca Selma kenarın arkasından "pat" diye belirir */
.cta-play[data-reveal].is-in .cta-play__kid svg { animation: pl-peek .9s var(--spring-pop) .3s both; }
@keyframes pl-peek { from { transform: scale(.55); opacity: 0; } to { transform: none; opacity: 1; } }
.cta-play__bubble {
  left: auto; right: auto;
  top: 0;
  inset-inline-start: -42%;
  max-width: none;
}
.cta-play.is-in .cta-play__bubble { animation: pl-bubble-in .6s var(--spring-pop) .9s both; }
.cta-play__bubble::after { left: auto; right: auto; inset-inline-end: 16%; }
@keyframes pl-bubble-in { from { opacity: 0; transform: translateY(10px) scale(.5); } to { opacity: 1; transform: none; } }
.cta-play__stars { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.cta-play__stars svg { position: absolute; width: 30px; height: 30px; animation: pl-twinkle 2.8s ease-in-out infinite; }
.cta-play__stars svg:nth-child(1) { top: 16%; inset-inline-end: 34%; }
.cta-play__stars svg:nth-child(2) { bottom: 18%; inset-inline-end: 44%; width: 20px; height: 20px; animation-delay: -1s; }
.cta-play__stars svg:nth-child(3) { top: 12%; inset-inline-start: 50%; width: 18px; height: 18px; animation-delay: -1.8s; }
@media (max-width: 900px) {
  .cta-play { padding: 40px 26px 250px; text-align: center; }
  .cta-play__content { margin-inline: auto; }
  .cta-play p { margin-inline: auto; }
  .cta-play__row { justify-content: center; }
  .cta-play__kid { inset-inline-end: 50%; transform: translateX(50%); width: 220px; }
  [dir="rtl"] .cta-play__kid { transform: translateX(-50%); }
  /* Dar kartta balon kafanın SAĞ üstüne alınır (fiziksel; sahne aynalanmaz)
     ve kartın içinde kalır; yıldızlar başlığın üstüne binmesin diye gizlenir. */
  .cta-play__bubble { inset-inline-start: auto; left: 64%; right: auto; top: -2%; }
  .cta-play__bubble::after { inset-inline-end: auto; right: auto; left: 18%; }
  .cta-play__stars svg:nth-child(1),
  .cta-play__stars svg:nth-child(3) { display: none; }
}


/* ============================================================
   17) İÇ SAYFA BAŞLIKLARI — çıkartma ve karalamalar
   Kurslar, öğretmenler, materyal listeleri aynı kalıpla başlıyor
   (section.section-pad > .container > .section-header). Görünümlere
   dokunmadan başlığın arkasına yumuşak bir leke ve iki karalama eklenir.

   Seçici BİLEREK dar: kendi başlık zemini olan sayfalar (ders detayı
   .cd-hero, öğretmen detayı .td-hero) bu kalıba uymaz. Geniş seçici
   (ilk section, ne olursa) onların ::before katmanını — koyu zemini —
   eziyor ve beyaz başlık krem zeminde kayboluyordu.
   ============================================================ */
body:not(:has(.hero)) main > section.section-pad:first-of-type:has(> .container > .section-header) { position: relative; isolation: isolate; }
body:not(:has(.hero)) main > section.section-pad:first-of-type:has(> .container > .section-header)::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 18px;
  inset-inline-start: max(12px, calc(50% - 700px));
  /* Telefonda 380px sabit genişlik 390px ekranın kenarından taşıyordu (12 + 380 > 390). */
  width: min(380px, calc(100% - 24px)); height: 220px;
  background: radial-gradient(closest-side, rgba(255, 201, 60, .28), transparent 72%);
  pointer-events: none;
}
body:not(:has(.hero)) main > section.section-pad:first-of-type:has(> .container > .section-header)::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 34px;
  inset-inline-end: max(16px, calc(50% - 640px));
  width: 150px; height: 110px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 110'%3E%3Cpath d='M20 70 C40 40 60 90 80 60 S120 40 132 58' fill='none' stroke='%234DB5F0' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M112 12 L116 22 L127 23 L119 30 L121 41 L112 35 L103 41 L105 30 L97 23 L108 22 Z' fill='%23FFC93C' stroke='%231F2D25' stroke-width='3' stroke-linejoin='round'/%3E%3Ccircle cx='30' cy='26' r='9' fill='none' stroke='%23FF7B6B' stroke-width='4'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: .9;
  pointer-events: none;
  animation: pl-bob 7s ease-in-out infinite;
}
@media (max-width: 760px) {
  body:not(:has(.hero)) main > section.section-pad:first-of-type:has(> .container > .section-header)::after { width: 96px; height: 70px; top: 14px; opacity: .7; }
}


/* ============================================================
   18) ALT BİLGİ — akşam: ateş böcekleri, kitap okuyan öğrenci
   ============================================================ */
/* Alt bilgi artık taşmaya izin verir (tepe ve okuyan öğrenci üst kenardan
   dışarı çıkar). Taşması SAYFAYI genişletecek tek şey — köşedeki logo
   filigranı — bu yüzden .footer__night'ın içine alındı; orası kırpar. */
.footer {
  overflow: visible;
  /* Üst kenardan DİKEY taşma serbest (tepe, okuyan öğrenci); YATAY taşma kırpılır.
     Telefonda sola taşan her piksel sayfayı genişletir ve tarayıcı görünümü
     küçültüp kenarı kesiyordu. */
  overflow-x: clip;
  /* Oturan öğrencinin (≈210px) sığacağı kadar boşluk: kısa sayfalarda
     (öğretmenler, haberler) içerik alt bilgiye yakın bitiyor ve öğrenci
     son kartların köşesine biniyordu. */
  margin-top: 210px;
  background:
    radial-gradient(circle at 12% 70%, rgba(228, 185, 63, .10) 0%, transparent 42%),
    radial-gradient(circle at 88% 85%, rgba(176, 42, 55, .08) 0%, transparent 38%),
    linear-gradient(180deg, #1E4A2A 0%, #14351D 48%, #0A1810 100%);
}
.footer__night { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
/* Ateş böcekleri: akşam çayırında yavaşça süzülen sarı ışıklar */
.firefly {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #FFE98A;
  box-shadow: 0 0 8px 2px rgba(255, 233, 138, .55);
  animation: pl-firefly 7s ease-in-out infinite, pl-glow 2.4s ease-in-out infinite;
}
.firefly:nth-child(2n) { animation-duration: 9s, 3.1s; animation-delay: -3s, -1s; }
.firefly:nth-child(3n) { animation-duration: 8s, 2s; animation-delay: -5s, -.4s; width: 4px; height: 4px; }
@keyframes pl-firefly {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(18px, -14px); }
  66% { transform: translate(-12px, -26px); }
}
@keyframes pl-glow { 0%, 100% { opacity: .95; } 50% { opacity: .2; } }
/* Tepe: sırtı genişliğin %92'sinde (RTL'de aynalanır → %8) ve alt
   bilginin ~50px üstünde. Okuyan öğrenci tam o sırta oturur. */
.footer__hill {
  position: absolute;
  top: -58px;
  inset-inline: 0;
  height: 60px;
  width: 100%;
  display: block;
  pointer-events: none;
}
[dir="rtl"] .footer__hill { transform: scaleX(-1); }
.footer__hill path { fill: #1E4A2A; }
/* SVG'nin alt kenarı (kitap yığınının dibi) tepe sırtına oturur.
   viewBox 170×216; yığının ortası (x=0) soldan 80, sağdan 90 birim. */
.footer__reader {
  --rw: 128px;
  position: absolute;
  z-index: 2;
  width: var(--rw);
  top: calc(-48px - var(--rw) * 216 / 170);
  /* clamp(0, …, %100 − genişlik): öğrenci hiçbir ekran genişliğinde kenardan
     taşmaz; taşarsa sayfa yana genişler (overflow: clip bilmeyen eski iPhone'larda
     da çalışsın diye CSS'te konumdan çözüldü). */
  left: clamp(0px, calc(92% - var(--rw) * 80 / 170), calc(100% - var(--rw)));
}
[dir="rtl"] .footer__reader { left: auto; right: clamp(0px, calc(92% - var(--rw) * 90 / 170), calc(100% - var(--rw))); }
/* Köşedeki soluk logo ekranın dışına taşıyordu (marketing.css: -80px). */
.footer::before { inset-inline-end: 0; }
.footer__reader svg { width: 100%; height: auto; overflow: visible; display: block; }
@media (max-width: 760px) {
  .footer__reader { --rw: 104px; }
  .footer { margin-top: 176px; }
}
.footer .top { border-bottom-color: rgba(255, 233, 168, .22); }
.footer h5 { font-size: 16px; letter-spacing: 0; text-transform: none; color: #FFE9A8; }
.footer ul a { transition: color .2s, padding .3s var(--spring-pop); }
.footer ul a:hover { color: #fff; padding-inline-start: 6px; }
.footer__social a { border-radius: 14px; transition: transform .35s var(--spring-pop), background .2s; }
.footer__social a:hover { transform: translateY(-3px) rotate(-8deg); }


/* ============================================================
   19) GİRİŞ ANİMASYONLARI — [data-reveal] biraz daha canlı
   ============================================================ */
/* Giriş bir GEÇİŞ değil, bir ANİMASYON: geçiş olsaydı sıralı gecikme
   (transition-delay) kartın üzerine gelme hareketine de uygulanır ve hover
   240ms geç tepki verirdi. Dolgu modu "backwards": animasyon bitince hiçbir
   iz bırakmaz, hover dönüşümleri serbest kalır. */
[data-reveal="pop"] { transform: none; opacity: 0; }
[data-reveal="pop"].is-in {
  opacity: 1;
  animation: pl-pop-in .75s var(--spring-soft) backwards;
  animation-delay: var(--rd, 0ms);
}
@keyframes pl-pop-in { from { opacity: 0; transform: translateY(28px) scale(.94); } }
.stagger > [data-reveal]:nth-child(2) { --rd: 80ms; }
.stagger > [data-reveal]:nth-child(3) { --rd: 160ms; }
.stagger > [data-reveal]:nth-child(4) { --rd: 240ms; }
/* Polaroid eğimi reveal'in transform'unu ezmesin: giriş bittikten
   sonra eğim devreye girer */
.polaroid[data-reveal]:not(.is-in) { transform: translateY(30px) rotate(0) scale(.95); }
.polaroid[data-reveal].is-in { transform: rotate(var(--tilt)); transition: opacity .5s ease-out, transform .6s var(--spring-soft), box-shadow .3s ease-out; }
.polaroid[data-reveal].is-in:hover { transform: rotate(0) translateY(-8px) scale(1.02); }


/* ============================================================
   20) ERİŞİLEBİLİRLİK — azaltılmış hareket
   Döngüler, zıplamalar ve kayan bant durur; renk, biçim ve
   üzerine gelince renk değişimi kalır. Sahne sabit bir resim olur.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .kids-scene *,
  .kids-scene,
  .hero--play .hero__visual.kids-visual,
  .ps-photo, .ps-cap, .ps-seal-ring, .ps-spark,
  .hero-confetti svg,
  .hero-wave-hand,
  .subject-ribbon__track,
  .fun-card *,
  .cta-play__stars svg,
  .cta-play__kid *,
  .cta-play__bubble,
  .firefly,
  .footer__reader *,
  body:not(:has(.hero)) main > section.section-pad:first-of-type:has(> .container > .section-header)::after {
    animation: none !important;
  }
  .hero--play .hero__h .accent { animation: none; background-size: 100% .3em; }
  .ps-photo--2, .ps-photo--3, .ps-photo--4, .ps-cap--2, .ps-cap--3, .ps-cap--4 { display: none; }
  .ps-cap--1 { opacity: 1; }
  .kids-bubble { transition: opacity .15s linear; transform: none; }
  .ks-layer, .kid__head, .kid__pupils { transition: none; }
  .subject-ribbon__track { flex-wrap: wrap; width: auto; justify-content: center; }
  .subject-ribbon__track [aria-hidden="true"] { display: none; }
  .role-card, .fun-card, .polaroid, .say__bubble, .say__av, main .res-gate,
  .hero-stat, main .tsx-card, .live-item, .nav__links a, .btn, .btn svg, main .cl-tile {
    transition-property: background, color, border-color, box-shadow, opacity;
  }
  .role-card:hover, .fun-card:hover, .polaroid:hover, .polaroid[data-reveal].is-in:hover,
  .say:hover .say__bubble, .say:hover .say__av, main .res-gate:hover, .hero-stat:hover,
  main .tsx-card:hover, .live-item:hover, .nav__links a:hover, main .cl-tile:hover,
  .role-card:nth-child(2n):hover, .fun-card:nth-child(2):hover, .say:nth-child(2n):hover .say__bubble {
    transform: none;
  }
  .polaroid, .polaroid[data-reveal].is-in, .note, .note:hover { transform: rotate(var(--tilt)); }
  [data-reveal="pop"].is-in { animation: none; }
  .cta-play.is-in .cta-play__kid svg { animation: none; }
}


/* ============================================================
   21) HABER ŞERİDİ — hero'nun altında akan son haberler
   (Views/Home/_NewsTicker.cshtml, davranış: playful.js §6)
   Hero'daki üst çıkartmanın ("للطالب …") geniş hâli: beyaz hap,
   basılı "3D" alt kenar, içinde sarı etiket ve megafon. Şerit
   dalganın üstünde durur; hero'nun alt boşluğu şerit kadar kısalır,
   böylece aşağıdaki bölümler neredeyse aynı yerde kalır.
   ============================================================ */
.hero--play:has(.news-ticker) { padding-bottom: 92px; }
.news-ticker-wrap { position: relative; z-index: 2; margin-top: 34px; }
.news-ticker {
  --ticker-dur: 40s;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 62px;
  padding: 6px;
  background: #fff;
  border: 2px solid var(--edge-paper);
  border-radius: 999px;
  box-shadow: 0 5px 0 var(--edge-paper), 0 16px 34px rgba(31, 45, 37, .08);
}
.news-ticker__label {
  flex-shrink: 0;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-inline: 6px 18px;
  background: var(--sun);
  border-radius: 999px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12);
  font-family: var(--font-fun);
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, transform .35s var(--spring-pop);
}
.news-ticker__label:hover { background: #FFD35F; color: var(--ink); transform: rotate(-2deg); }
[dir="rtl"] .news-ticker__label:hover { transform: rotate(2deg); }
.news-ticker__label:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.news-ticker__ico {
  width: 38px; height: 38px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: #fff;
  border-radius: 50%;
}
.news-ticker__ico svg { width: 25px; height: 25px; transform-origin: 30% 60%; animation: pl-megaphone 3.4s ease-in-out infinite; }
@keyframes pl-megaphone {
  0%, 68%, 100% { transform: rotate(0); }
  74% { transform: rotate(-14deg); }
  80% { transform: rotate(10deg); }
  86% { transform: rotate(-6deg); }
}
/* Uçlar yumuşakça silinir: başlık etiketin arkasına "kesilmeden" girer */
.news-ticker__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
.news-ticker__track { display: flex; width: max-content; animation: pl-marquee var(--ticker-dur) linear infinite; }
[dir="rtl"] .news-ticker__track { animation-name: pl-marquee-rtl; }
.news-ticker:hover .news-ticker__track,
.news-ticker.is-offscreen .news-ticker__track { animation-play-state: paused; }
.news-ticker__set { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.news-ticker__item { display: flex; align-items: center; }
/* Başlıklar arasında sarı nokta */
.news-ticker__item::after {
  content: "";
  flex-shrink: 0;
  width: 8px; height: 8px;
  margin-inline: 22px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 3px var(--sun-soft);
}
.news-ticker__item a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 2px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.news-ticker__title { font-family: var(--font-fun); font-weight: 700; font-size: 16.5px; line-height: 1.4; }
.news-ticker__item a:hover .news-ticker__title,
.news-ticker__item a:focus-visible .news-ticker__title {
  color: var(--emerald-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.news-ticker__item a:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.news-ticker__tag,
.news-ticker__new {
  padding: 1px 10px 0;
  border-radius: 999px;
  font-family: var(--font-fun);
  font-weight: 800;
  font-size: 12.5px;
  line-height: 1.7;
}
.news-ticker__tag--news { background: var(--sky-soft); color: var(--sky-deep); }
.news-ticker__tag--ann { background: var(--coral-soft); color: var(--coral-deep); }
.news-ticker__new { background: var(--mint); color: #fff; }
.news-ticker__date { font-size: 13px; color: var(--ink-4); }
.news-ticker__pause {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  padding: 0;
  background: var(--cream);
  border: 2px solid var(--edge-paper);
  border-radius: 50%;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .2s, transform 90ms ease-out;
}
.news-ticker__pause:hover { background: var(--sun-soft); color: var(--ink); }
.news-ticker__pause:active { transform: scale(.92); }
.news-ticker__pause:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.news-ticker__pause svg { width: 18px; height: 18px; }
.news-ticker__pause .i-play,
.news-ticker.is-paused .news-ticker__pause .i-pause { display: none; }
.news-ticker.is-paused .news-ticker__pause .i-play { display: block; }

/* Durdurulmuş şerit: akış yerine elle kaydırılabilir liste. İkinci set ve
   set içi tekrarlar gizlenir; odaklanan bağlantı görünür alana kendiliğinden kayar. */
.news-ticker.is-paused .news-ticker__track { animation: none; }
.news-ticker.is-paused .news-ticker__viewport,
[dir="rtl"] .news-ticker.is-paused .news-ticker__viewport { overflow-x: auto; scrollbar-width: thin; }
.news-ticker.is-paused .news-ticker__set[aria-hidden="true"],
.news-ticker.is-paused .news-ticker__item[aria-hidden="true"] { display: none; }
/* Duran listede yalnızca BİTİŞ ucu solar (devamı olduğunu söyler); ilk başlığın başı net kalır */
.news-ticker.is-paused .news-ticker__viewport {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
          mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}
[dir="rtl"] .news-ticker.is-paused .news-ticker__viewport {
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent);
          mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent);
}
.news-ticker.is-paused .news-ticker__set { padding-inline-start: 8px; }

@media (max-width: 760px) {
  .hero--play:has(.news-ticker) { padding-bottom: 58px; }
  .news-ticker-wrap { margin-top: 22px; }
  .news-ticker { min-height: 56px; padding: 5px; gap: 4px; }
  /* Dar ekranda etiket yalnızca megafon: metin ekran okuyucu için kalır */
  .news-ticker__label { padding-inline: 4px; }
  .news-ticker__label-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .news-ticker__title { font-size: 15px; }
  .news-ticker__date { display: none; }
  .news-ticker__item::after { margin-inline: 16px; }
  .news-ticker__pause { width: 40px; height: 40px; }
}

/* Azaltılmış hareket: şerit akmaz, megafon sallanmaz; başlıklar elle
   kaydırılabilir bir liste olarak durur (duraklat düğmesine gerek kalmaz). */
@media (prefers-reduced-motion: reduce) {
  .news-ticker__track,
  .news-ticker__ico svg { animation: none !important; }
  .news-ticker__viewport { overflow-x: auto; scrollbar-width: thin; }
  .news-ticker__viewport {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }
  [dir="rtl"] .news-ticker__viewport {
    -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent);
  }
  .news-ticker__set { padding-inline-start: 8px; }
  .news-ticker__set[aria-hidden="true"],
  .news-ticker__item[aria-hidden="true"] { display: none; }
  .news-ticker__pause { display: none; }
  .news-ticker__label, .news-ticker__label:hover, [dir="rtl"] .news-ticker__label:hover { transform: none; transition: background .2s; }
}
