/*
 * V5.6 — sola yaklaşan header, performans dostu tedavi kartları ve modern video galerisi.
 * Yalnızca kids şablonunu etkiler.
 */

/* ---------------------------------------------------------
   1. Header: menüyü logoya yaklaştır, yazıları rahat tut
   --------------------------------------------------------- */
.template-kids .site-header .header-inner{
  width:min(calc(100% - 30px),1520px)!important;
  gap:14px!important;
}
.template-kids .site-header .brand{
  min-width:154px!important;
  margin-right:2px!important;
}
.template-kids .site-header .main-nav{
  flex:1 1 auto!important;
  justify-content:flex-start!important;
  margin-left:0!important;
  margin-right:0!important;
  gap:1px!important;
}
.template-kids .site-header .main-nav a{
  padding:10px 8px!important;
  font-size:13px!important;
  line-height:1.1!important;
  font-weight:800!important;
  letter-spacing:-.022em!important;
}
.template-kids .site-header .header-actions{
  margin-left:auto!important;
  flex:0 0 auto!important;
}
.template-kids.smart-header .site-header.is-scrolled .header-inner{
  width:min(calc(100% - 24px),1520px)!important;
  gap:13px!important;
  padding-inline:17px!important;
}
.template-kids.smart-header .site-header.is-scrolled .main-nav{
  justify-content:flex-start!important;
}

/* Hizmet detay header da ana sayfaya yakın ölçüde kalır. */
.service-detail-page .site-header .header-inner,
.service-detail-page.smart-header .site-header.is-scrolled .header-inner{
  width:min(calc(100% - 26px),1520px)!important;
  gap:12px!important;
}
.service-detail-page .site-header .brand{
  min-width:146px!important;
  margin-right:0!important;
}
.service-detail-page .site-header .main-nav{
  flex:1 1 auto!important;
  justify-content:flex-start!important;
  margin:0!important;
  gap:1px!important;
}
.service-detail-page .site-header .main-nav a{
  padding:10px 8px!important;
  font-size:13.5px!important;
  line-height:1.1!important;
  font-weight:800!important;
  letter-spacing:-.024em!important;
}
.service-detail-page .site-header .header-actions{
  margin-left:auto!important;
}

/* ---------------------------------------------------------
   2. Ortak bölüm başlıkları: üst metin ve başlık kesin alt alta
   --------------------------------------------------------- */
.template-kids .home56-section-heading{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  width:100%!important;
  text-align:center!important;
}
.template-kids .home56-section-heading>span,
.template-kids .home56-section-heading>h2{
  display:block!important;
  width:100%!important;
  max-width:940px!important;
  margin:0 auto!important;
  text-align:center!important;
}
.template-kids .home56-section-heading>span{
  line-height:1.3!important;
  text-wrap:balance;
}
.template-kids .home56-section-heading>h2{
  line-height:1.02!important;
  text-wrap:balance;
}

/* ---------------------------------------------------------
   3. Tedavi kartları: slider altı hissi, sıfır zıplama
   --------------------------------------------------------- */
.template-kids .home56-services{
  padding-top:76px!important;
}
.template-kids .home56-services-shell{
  padding:18px!important;
  border-radius:34px!important;
  background:rgba(255,255,255,.86)!important;
  border:1px solid rgba(36,91,127,.075)!important;
  box-shadow:0 18px 48px rgba(31,72,104,.075),inset 0 1px 0 rgba(255,255,255,.96)!important;
}
.template-kids .home56-services-grid{
  gap:14px!important;
}
.template-kids .home56-service-card,
.template-kids .home56-service-card:hover,
.template-kids .home56-service-card:focus-visible{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:126px!important;
  min-height:126px!important;
  max-height:126px!important;
  padding:14px 10px 12px!important;
  gap:8px!important;
  overflow:hidden!important;
  border:1px solid rgba(39,89,126,.09)!important;
  border-radius:21px!important;
  background:var(--service-card-bg,#fff)!important;
  box-shadow:0 9px 22px rgba(39,77,107,.065),inset 0 1px 0 rgba(255,255,255,.98)!important;
  transform:none!important;
  translate:none!important;
  rotate:none!important;
  scale:none!important;
  will-change:auto!important;
  transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease!important;
}
.template-kids .home56-service-card::before{
  inset:auto -20% -96% -20%!important;
  height:104%!important;
  opacity:.22!important;
  transform:none!important;
  transition:opacity .2s ease!important;
}
.template-kids .home56-service-card::after{
  background:radial-gradient(130px circle at var(--home49-x,50%) var(--home49-y,50%),rgba(255,255,255,.9),transparent 70%)!important;
  opacity:0!important;
  transition:opacity .2s ease!important;
}
.template-kids .home56-service-card:hover,
.template-kids .home56-service-card:focus-visible{
  border-color:color-mix(in srgb,var(--service-icon-color) 24%,#fff)!important;
  box-shadow:0 12px 26px rgba(31,73,106,.10),inset 0 1px 0 rgba(255,255,255,.98)!important;
  outline:none!important;
}
.template-kids .home56-service-card:hover::before,
.template-kids .home56-service-card:focus-visible::before{
  opacity:.36!important;
  transform:none!important;
}
.template-kids .home56-service-card:hover::after,
.template-kids .home56-service-card:focus-visible::after{
  opacity:.62!important;
}
.template-kids .home56-service-icon,
.template-kids .home56-service-card:hover .home56-service-icon,
.template-kids .home56-service-card:focus-visible .home56-service-icon{
  width:58px!important;
  height:55px!important;
  transform:none!important;
  translate:none!important;
  rotate:none!important;
  scale:none!important;
  filter:none!important;
  transition:color .2s ease,filter .2s ease!important;
}
.template-kids .home56-service-card:hover .home56-service-icon,
.template-kids .home56-service-card:focus-visible .home56-service-icon{
  filter:saturate(1.08) drop-shadow(0 5px 8px color-mix(in srgb,var(--service-icon-color) 12%,transparent))!important;
}
.template-kids .home56-service-icon svg{
  width:51px!important;
  height:51px!important;
}
.template-kids .home56-service-title{
  max-width:150px!important;
  font-size:13.7px!important;
  font-weight:900!important;
  line-height:1.13!important;
  letter-spacing:-.025em!important;
}
.template-kids .home56-service-spark-layer{
  position:absolute;
  inset:0;
  z-index:5;
  overflow:hidden;
  pointer-events:none;
}
.template-kids .home56-service-particle{
  --particle-size:10px;
  --particle-x:50%;
  --particle-color:#43b6ef;
  --particle-drift:0px;
  position:absolute;
  left:var(--particle-x);
  bottom:5px;
  width:var(--particle-size);
  height:var(--particle-size);
  margin-left:calc(var(--particle-size) / -2);
  border:1px solid color-mix(in srgb,var(--particle-color) 34%,#fff);
  border-radius:999px;
  background:radial-gradient(circle at 30% 28%,#fff 0 20%,color-mix(in srgb,var(--particle-color) 32%,transparent) 58%,transparent 75%);
  box-shadow:0 2px 7px color-mix(in srgb,var(--particle-color) 18%,transparent);
  animation:home56ParticleRise var(--particle-duration,1.35s) ease-out forwards;
  pointer-events:none;
}
.template-kids .home56-service-particle.is-star{
  border:0;
  border-radius:0;
  background:var(--particle-color);
  clip-path:polygon(50% 0,61% 36%,100% 50%,61% 64%,50% 100%,39% 64%,0 50%,39% 36%);
  box-shadow:none;
}
@keyframes home56ParticleRise{
  0%{opacity:0;transform:translate3d(0,5px,0) scale(.55) rotate(0)}
  18%{opacity:.95}
  100%{opacity:0;transform:translate3d(var(--particle-drift),-82px,0) scale(1.05) rotate(90deg)}
}

/* ---------------------------------------------------------
   4. Video galerisi: büyük sunum + modern yan galeri
   --------------------------------------------------------- */
.template-kids .home56-videos{
  position:relative;
  padding:88px 0 94px!important;
  overflow:hidden;
  background:
    radial-gradient(circle at 8% 14%,color-mix(in srgb,var(--secondary) 8%,transparent),transparent 24%),
    radial-gradient(circle at 94% 82%,color-mix(in srgb,var(--primary) 8%,transparent),transparent 24%),
    var(--section-bg)!important;
}
.template-kids .home56-video-heading{
  margin-bottom:30px!important;
}
.template-kids .home56-video-gallery{
  display:grid;
  grid-template-columns:minmax(0,1.48fr) minmax(330px,.82fr);
  gap:18px;
  align-items:stretch;
  padding:18px;
  border:1px solid rgba(35,91,127,.08);
  border-radius:34px;
  background:rgba(255,255,255,.78);
  box-shadow:0 24px 62px rgba(31,72,104,.09),inset 0 1px 0 rgba(255,255,255,.96);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.template-kids .home56-video-gallery.is-single{
  grid-template-columns:1fr;
  max-width:920px;
  margin-inline:auto;
}
.template-kids .home56-video-feature,
.template-kids .home56-video-card{
  min-width:0;
  overflow:hidden;
  border:1px solid rgba(35,91,127,.085);
  background:var(--video-card,#fff);
  box-shadow:0 12px 30px rgba(31,72,104,.075);
}
.template-kids .home56-video-feature{
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  border-radius:28px;
}
.template-kids .home56-video-feature-thumb,
.template-kids .home56-video-card-thumb{
  position:relative;
  display:block;
  width:100%;
  padding:0;
  overflow:hidden;
  border:0;
  background:#dcecf5;
  cursor:pointer;
}
.template-kids .home56-video-feature-thumb{
  min-height:410px;
  aspect-ratio:16/10;
}
.template-kids .home56-video-feature-thumb img,
.template-kids .home56-video-card-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .5s cubic-bezier(.22,1,.36,1),filter .3s ease;
}
.template-kids .home56-video-feature:hover img,
.template-kids .home56-video-card:hover img{
  transform:scale(1.035);
  filter:saturate(1.04);
}
.template-kids .home56-video-shade{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(5,24,40,.02) 40%,rgba(5,24,40,.58) 100%);
  pointer-events:none;
}
.template-kids .home56-video-badge,
.template-kids .home56-video-mini-badge{
  position:absolute;
  z-index:3;
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 11px;
  border-radius:999px;
  background:rgba(255,255,255,.91);
  color:#203047;
  box-shadow:0 8px 18px rgba(16,49,74,.13);
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  backdrop-filter:blur(8px);
}
.template-kids .home56-video-badge{left:17px;top:17px}
.template-kids .home56-video-mini-badge{left:9px;top:9px;min-height:23px;padding-inline:8px;font-size:7.5px}
.template-kids .home56-video-play,
.template-kids .home56-video-mini-play{
  position:absolute;
  z-index:3;
  left:50%;
  top:50%;
  display:grid;
  place-items:center;
  color:#fff;
  background:var(--play-color,var(--secondary));
  border:5px solid rgba(255,255,255,.87);
  border-radius:50%;
  box-shadow:0 15px 34px color-mix(in srgb,var(--play-color,var(--secondary)) 28%,transparent);
  transform:translate(-50%,-50%);
  transition:scale .22s ease,box-shadow .22s ease;
}
.template-kids .home56-video-play{width:76px;height:76px}
.template-kids .home56-video-mini-play{width:46px;height:46px;border-width:4px}
.template-kids .home56-video-play svg{width:33px;height:33px}
.template-kids .home56-video-mini-play svg{width:21px;height:21px}
.template-kids .home56-video-feature:hover .home56-video-play,
.template-kids .home56-video-card:hover .home56-video-mini-play{
  scale:1.06;
  box-shadow:0 18px 38px color-mix(in srgb,var(--play-color,var(--secondary)) 36%,transparent);
}
.template-kids .home56-video-duration{
  position:absolute;
  z-index:3;
  right:12px;
  bottom:12px;
  padding:5px 8px;
  border-radius:9px;
  background:rgba(6,24,40,.74);
  color:#fff;
  font-size:9px;
  font-weight:800;
  line-height:1;
  backdrop-filter:blur(8px);
}
.template-kids .home56-video-feature-copy{
  padding:20px 22px 23px;
}
.template-kids .home56-video-feature-copy h3,
.template-kids .home56-video-card-copy h3{
  margin:0;
  color:var(--text);
  font-family:var(--kids-heading-font,var(--heading-font))!important;
  font-weight:900!important;
  letter-spacing:-.035em!important;
}
.template-kids .home56-video-feature-copy h3{
  font-size:27px;
  line-height:1.08;
}
.template-kids .home56-video-feature-copy p,
.template-kids .home56-video-card-copy p{
  margin:7px 0 0;
  color:var(--muted);
  line-height:1.55;
}
.template-kids .home56-video-feature-copy p{font-size:12.5px}
.template-kids .home56-video-rail-wrap{
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  min-height:0;
  padding:6px 0 0;
}
.template-kids .home56-video-rail-title{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:43px;
  padding:0 8px 9px;
  color:var(--text);
}
.template-kids .home56-video-rail-title span{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:12px;
  color:var(--primary);
  background:var(--soft-blue);
}
.template-kids .home56-video-rail-title span svg{width:18px;height:18px}
.template-kids .home56-video-rail-title strong{
  font-family:var(--kids-heading-font,var(--heading-font));
  font-size:17px;
  font-weight:900;
  letter-spacing:-.025em;
}
.template-kids .home56-video-rail{
  display:grid;
  gap:11px;
  align-content:start;
  max-height:486px;
  overflow:auto;
  padding:2px 7px 7px 2px;
  scrollbar-width:thin;
  scrollbar-color:color-mix(in srgb,var(--primary) 30%,transparent) transparent;
}
.template-kids .home56-video-card{
  display:grid;
  grid-template-columns:145px minmax(0,1fr);
  min-height:128px;
  border-radius:20px;
  transition:border-color .22s ease,box-shadow .22s ease,background-color .22s ease;
}
.template-kids .home56-video-card:hover{
  border-color:color-mix(in srgb,var(--primary) 20%,#fff);
  box-shadow:0 16px 34px rgba(31,72,104,.11);
}
.template-kids .home56-video-card-thumb{
  min-height:126px;
}
.template-kids .home56-video-card-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  padding:14px 15px 14px 14px;
}
.template-kids .home56-video-card-copy h3{
  display:-webkit-box;
  overflow:hidden;
  font-size:15px;
  line-height:1.14;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
.template-kids .home56-video-card-copy p{
  display:-webkit-box;
  overflow:hidden;
  font-size:10px;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
.template-kids .home56-video-controls{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding:10px 7px 0;
}
.template-kids .home56-video-controls button{
  display:grid;
  place-items:center;
  width:39px;
  height:39px;
  padding:0;
  border:1px solid rgba(35,91,127,.1);
  border-radius:13px;
  background:#fff;
  color:var(--primary);
  box-shadow:0 8px 20px rgba(31,72,104,.07);
  cursor:pointer;
  transition:background-color .2s ease,color .2s ease,border-color .2s ease;
}
.template-kids .home56-video-controls button:hover{
  background:var(--primary);
  color:#fff;
  border-color:var(--primary);
}
.template-kids .home56-video-controls svg{width:18px;height:18px}
.template-kids .home56-video-action{margin-top:24px!important}

/* ---------------------------------------------------------
   5. Gece görünümü
   --------------------------------------------------------- */
html[data-theme='night'] .template-kids .home56-services-shell,
html[data-theme='night'] .template-kids .home56-video-gallery{
  background:rgba(12,34,54,.84)!important;
  border-color:rgba(170,210,238,.1)!important;
  box-shadow:0 24px 62px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.04)!important;
}
html[data-theme='night'] .template-kids .home56-service-card,
html[data-theme='night'] .template-kids .home56-video-feature,
html[data-theme='night'] .template-kids .home56-video-card{
  background:#112943!important;
  border-color:rgba(170,210,238,.12)!important;
}
html[data-theme='night'] .template-kids :is(
  .home56-service-title,
  .home56-video-feature-copy h3,
  .home56-video-card-copy h3,
  .home56-video-rail-title,
  .home56-video-rail-title strong
){color:#eef8ff!important}
html[data-theme='night'] .template-kids :is(
  .home56-video-feature-copy p,
  .home56-video-card-copy p
){color:#b6c7d8!important}
html[data-theme='night'] .template-kids .home56-video-rail-title span{
  background:#173a58!important;
  color:#71d4ff!important;
}
html[data-theme='night'] .template-kids .home56-video-controls button{
  background:#173652!important;
  color:#eef8ff!important;
  border-color:rgba(170,210,238,.13)!important;
}
html[data-theme='night'] .template-kids .home56-video-badge,
html[data-theme='night'] .template-kids .home56-video-mini-badge{
  background:rgba(17,41,67,.9)!important;
  color:#eef8ff!important;
}

/* ---------------------------------------------------------
   6. Responsive
   --------------------------------------------------------- */
@media(max-width:1390px){
  .template-kids .site-header .header-inner{gap:10px!important}
  .template-kids .site-header .brand{min-width:136px!important}
  .template-kids .site-header .brand span{display:none!important}
  .template-kids .site-header .main-nav a{padding-inline:7px!important;font-size:12.3px!important}
  .template-kids .site-header .character-theme-switch{width:116px!important;min-width:116px!important}
  .service-detail-page .site-header .brand{min-width:128px!important}
  .service-detail-page .site-header .brand span{display:none!important}
  .service-detail-page .site-header .main-nav a{font-size:12.9px!important;padding-inline:7px!important}
}
@media(max-width:1210px) and (min-width:921px){
  .template-kids .site-header .phone-link{display:none!important}
  .template-kids .site-header .main-nav a{font-size:12px!important;padding-inline:6px!important}
  .service-detail-page .site-header .character-theme-switch{display:none!important}
  .service-detail-page .site-header .main-nav a{font-size:12.5px!important;padding-inline:6px!important}
}
@media(max-width:1120px){
  .template-kids .home56-video-gallery{grid-template-columns:1.2fr .9fr}
  .template-kids .home56-video-card{grid-template-columns:118px minmax(0,1fr)}
  .template-kids .home56-video-feature-thumb{min-height:360px}
}
@media(max-width:920px){
  .template-kids .home56-services{padding-top:64px!important}
  .template-kids .home56-video-gallery{
    display:block;
    padding:13px;
    border-radius:27px;
  }
  .template-kids .home56-video-feature{border-radius:23px}
  .template-kids .home56-video-feature-thumb{min-height:0;aspect-ratio:16/10}
  .template-kids .home56-video-feature-copy{padding:17px 17px 19px}
  .template-kids .home56-video-feature-copy h3{font-size:23px}
  .template-kids .home56-video-rail-wrap{margin-top:14px}
  .template-kids .home56-video-rail{
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:min(78vw,330px);
    gap:11px;
    max-height:none;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    padding:2px 2px 12px;
    scrollbar-width:none;
  }
  .template-kids .home56-video-rail::-webkit-scrollbar{display:none}
  .template-kids .home56-video-card{
    display:block;
    min-height:0;
    scroll-snap-align:start;
    border-radius:20px;
  }
  .template-kids .home56-video-card-thumb{min-height:0;aspect-ratio:16/9}
  .template-kids .home56-video-card-copy{padding:13px 14px 15px}
  .template-kids .home56-video-controls{padding-top:2px}
}
@media(max-width:700px){
  .template-kids .home56-services-shell{padding:12px!important;border-radius:25px!important}
  .template-kids .home56-services-grid{gap:10px!important}
  .template-kids .home56-service-card,
  .template-kids .home56-service-card:hover,
  .template-kids .home56-service-card:focus-visible{
    height:118px!important;
    min-height:118px!important;
    max-height:118px!important;
    padding:12px 8px 10px!important;
    border-radius:18px!important;
  }
  .template-kids .home56-service-icon,
  .template-kids .home56-service-card:hover .home56-service-icon{
    width:52px!important;
    height:49px!important;
  }
  .template-kids .home56-service-icon svg{width:46px!important;height:46px!important}
  .template-kids .home56-service-title{font-size:12.5px!important}
  .template-kids .home56-videos{padding:66px 0 72px!important}
  .template-kids .home56-video-play{width:62px;height:62px;border-width:4px}
  .template-kids .home56-video-play svg{width:28px;height:28px}
  .template-kids .home56-video-badge{left:11px;top:11px}
}
@media(prefers-reduced-motion:reduce){
  .template-kids .home56-service-card,
  .template-kids .home56-service-icon,
  .template-kids .home56-video-feature img,
  .template-kids .home56-video-card img,
  .template-kids .home56-video-play,
  .template-kids .home56-video-mini-play{
    transition:none!important;
    animation:none!important;
    transform:none!important;
    scale:none!important;
  }
  .template-kids .home56-service-particle{display:none!important}
}
