/* Homepage conversion + responsive schedule polish v32.5 */
.hero{isolation:isolate}
.hero-media-carousel{position:absolute;inset:0;z-index:-2;overflow:hidden;background:#061427}
.hero-media-carousel .hero-slide{position:absolute;inset:0;display:block;opacity:0;transition:opacity 1.35s cubic-bezier(.22,.61,.36,1);will-change:opacity}
.hero-media-carousel .hero-slide.is-active{opacity:1}
.hero-media-carousel picture,.hero-media-carousel img{display:block;width:100%;height:100%}
.hero-media-carousel img{object-fit:cover;transform:scale(1.006);transition:transform 8.5s ease-out}
.hero-media-carousel .hero-slide.is-active img{transform:scale(1.02)}
.hero.hero-carousel-ready>.hero-image{opacity:0;pointer-events:none}
.hero-content{position:relative;z-index:1}
.hero:after{background:linear-gradient(90deg,#031329e8 0%,#031329a8 38%,#03132950 62%,#03132918 82%),linear-gradient(0deg,#031329d9 0%,transparent 34%)!important}
.hero .eyebrow{color:#65c4ff;font-weight:800}
.hero h1,.hero-description,.target-label{word-break:keep-all;text-wrap:balance}

/* Live tutor schedule: prevent control overlap and page-level horizontal overflow. */
#schedule{overflow:hidden}
#schedule>#dataStatus{width:min(1200px,calc(100% - 80px));margin:0 auto 12px;padding:0;color:#627493}
#schedule .section-heading{align-items:flex-end}
#schedule .schedule-controls{display:grid;grid-template-columns:auto 42px minmax(106px,auto) 42px;align-items:center;gap:8px;min-width:0;color:#1767ff}
#schedule .schedule-controls button{width:42px!important;height:42px!important;min-width:42px;border:1px solid #c8d9f1;border-radius:8px;background:#fff;color:#1767ff;display:inline-grid;place-items:center;transition:border-color .18s,background .18s,box-shadow .18s,transform .18s}
#schedule .schedule-controls button:not(:disabled):hover{border-color:#8eb8ff;background:#f5f9ff;box-shadow:0 7px 18px #1767ff12;transform:translateY(-1px)}
#schedule .schedule-controls #refreshData{width:auto!important;min-width:0!important;height:42px!important;padding:0 14px!important;white-space:nowrap;font-weight:750;border-color:#b8d0f3}
#schedule #weekLabel{display:block;min-width:106px;padding:0 8px;text-align:center;white-space:nowrap;color:#0a2050;font-weight:800;letter-spacing:-.02em}
#schedule .week-grid{min-width:0}
#schedule .day{border-color:#dbe6f4;border-radius:12px;box-shadow:0 8px 24px #12345f0a}
#schedule .day h3{padding:11px 10px;background:#f3f7fc;font-weight:750}
#schedule .day.today h3{background:#eaf3ff;color:#1767ff}
#schedule .slot{padding:14px 12px}
#schedule .day .more{padding:10px 8px 12px;font-weight:700}

@media(max-width:760px){
  .hero{min-height:670px}
  .hero.hero-carousel-mobile .hero-media-carousel img{object-fit:cover!important;object-position:center center;transform:scale(1.002)}
  .hero.hero-carousel-mobile .hero-media-carousel .hero-slide.is-active img{transform:scale(1.012)}
  .hero.hero-carousel-mobile:after{background:linear-gradient(90deg,#031329e8 0%,#031329b8 52%,#03132968 100%),linear-gradient(0deg,#031329dc 0%,transparent 38%)!important}
  #schedule{padding-top:32px}
  #schedule>#dataStatus{width:calc(100% - 32px);margin-bottom:14px;font-size:12px;line-height:1.55}
  #schedule .wrap{width:calc(100% - 32px)}
  #schedule .section-heading{display:block;margin-bottom:18px}
  #schedule .section-heading h2{font-size:26px;line-height:1.3;word-break:keep-all}
  #schedule .section-heading p{font-size:15px;line-height:1.65;word-break:keep-all}
  #schedule .schedule-controls{width:100%;margin-top:16px;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px}
  #schedule .schedule-controls #refreshData{grid-column:1/-1;grid-row:1;width:100%!important;height:44px!important;border-radius:10px;background:#f7faff}
  #schedule .schedule-controls #weekPrev{grid-column:1;grid-row:2;width:44px!important;height:44px!important}
  #schedule #weekLabel{grid-column:2;grid-row:2;min-width:0;height:44px;display:grid;place-items:center;border:1px solid #d6e3f4;border-radius:10px;background:#fff;font-size:14px}
  #schedule .schedule-controls #weekNext{grid-column:3;grid-row:2;width:44px!important;height:44px!important}
  #schedule .week-grid{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:min(86vw,340px);gap:12px;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:0;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;padding:1px 0 10px;scrollbar-width:none}
  #schedule .week-grid::-webkit-scrollbar{display:none;width:0;height:0}
  #schedule .day{scroll-snap-align:start;scroll-snap-stop:always;min-width:0}
  #schedule .slot{padding:15px 13px}
  #schedule .avatar{width:46px;height:46px}
  #schedule .slot b{font-size:15px}
  #schedule .slot time,#schedule .slot small{font-size:12px}
}

@media(max-width:430px){
  .hero{min-height:650px}
  #schedule .week-grid{grid-auto-columns:calc(100vw - 48px)}
  #schedule .section-heading h2{font-size:24px}
  #schedule>#dataStatus{width:calc(100% - 28px)}
  #schedule .wrap{width:calc(100% - 28px)}
}

@media(prefers-reduced-motion:reduce){
  .hero-media-carousel .hero-slide,.hero-media-carousel img{transition:none!important;transform:none!important}
  #schedule .schedule-controls button{transition:none!important}
}
