/* Kurser i Sang – shared styles.
 * Layout model (same as the original Wix site):
 *  - Desktop: a 980px stage centred on the page. 1 design pixel = var(--u).
 *  - Mobile (< 768px): a 320px design scaled to the screen width.
 * Each element's position lives in the <style> block of its page. */

:root { --u: min(1px, calc(100vw / 980)); }
@media (max-width: 767px) { :root { --u: calc(100vw / 320); } }

html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: #000; overflow-x: clip; -webkit-font-smoothing: antialiased; }
@media (min-width: 768px) { .xd { display: none !important; } }
@media (max-width: 767px) { .xm { display: none !important; } }

.pg { position: relative; height: calc(var(--hd) * var(--u)); overflow: clip; }
@media (max-width: 767px) { .pg { height: calc(var(--hm) * var(--u)); } }
.c { position: absolute; box-sizing: border-box; margin: 0; }
.hd { z-index: 20; }
.anchor { height: 0 !important; pointer-events: none; scroll-margin-top: 0; }

/* Rich text */
.rt { overflow-wrap: break-word; }
.rt p, .rt h1, .rt h2, .rt h3, .rt h4, .rt h5, .rt h6, .rt ul, .rt ol { margin: 0; }
.rt ul, .rt ol { padding-left: 1.3em; }
.rt a { color: inherit; }
.rt.msg { visibility: hidden; }
.rt.msg.show { visibility: visible; }

/* Images & backgrounds */
.im { display: block; overflow: hidden; }
.im img, .im picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.bg { overflow: hidden; pointer-events: none; }
.bgm { position: absolute; inset: 0; }
.bgm video, .bgm img, .bgm picture { display: block; width: 100%; height: 100%; object-fit: cover; }
[data-parallax] .bgm { top: -20%; bottom: -20%; will-change: transform; }
@media (max-width: 767px) { [data-parallax] .bgm { top: 0; bottom: 0; transform: none !important; } }
.vi svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* Buttons */
.btn { display: flex; align-items: center; justify-content: center; text-decoration: none; padding: 0; cursor: pointer;
       font: inherit; background: none; border: 0 solid transparent; transition: border-color .4s, background-color .4s; -webkit-appearance: none; appearance: none; }
.btn span { white-space: nowrap; transition: color .4s; }

/* Desktop menu + language selector */
#dnav ul { list-style: none; margin: 0; padding: 0; position: relative; height: 100%; }
#dnav li { position: absolute; top: 0; height: 100%; }
#dnav a { display: block; text-align: center; text-decoration: none; white-space: nowrap; color: #fff; transition: color .4s; }
#dnav a.cur { color: rgb(253, 197, 88); }
#dnav a:hover, #dnav a:focus-visible { color: rgb(255, 198, 87); }
.lg { display: block; text-decoration: none; color: #000; }
.lg img, .lg span { position: absolute; display: block; }
.lg span { transition: color .4s; white-space: nowrap; }
.lg.cur { color: rgb(253, 197, 88); cursor: default; }
a.lg:hover, a.lg:focus-visible { color: #fff; }
.lg.sep { border-left: 1px solid rgb(252, 252, 252); }

/* Forms */
.wform { position: absolute; left: 0; top: 0; width: 100%; height: 0; margin: 0; }
.fi { border: 0 solid transparent; border-radius: 0; outline: none; margin: 0; -webkit-appearance: none; appearance: none; resize: none; }
.fi:focus-visible { box-shadow: 0 0 0 calc(2 * var(--u)) rgba(33, 166, 148, .35); }
.lab { display: block; white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Video gallery */
.vth, .vtile { padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; display: block; }
.vth img, .vtile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.vth:hover img { opacity: .8; }
.pl { position: absolute; display: block; }
.pl svg { display: block; width: 100%; height: 100%; }
.varr svg { display: block; width: 100%; height: 100%; }
.vstrip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.vstrip::-webkit-scrollbar { display: none; }
.vtile { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.vtile .pl { left: 50%; top: 50%; width: calc(30 * var(--u)); height: calc(30 * var(--u)); transform: translate(-50%, -50%); color: #fff; }

#vbox { position: fixed; inset: 0; z-index: 200; background: #fff; display: flex; align-items: center; justify-content: center; }
#vbox[hidden] { display: none; }
#vbox video { width: min(73vw, 128vh); max-height: 82vh; aspect-ratio: 16 / 9; background: #000; outline: none; }
#vbox .vx { position: absolute; top: 12px; right: 18px; width: 30px; height: 30px; border: 0; background: none; cursor: pointer; padding: 6px; color: #2f2e2e; }
#vbox .vn, #vbox .vp { position: absolute; top: 50%; width: 44px; height: 60px; margin-top: -30px; border: 0; background: none; cursor: pointer; color: rgba(49, 47, 46, .8); padding: 12px; }
#vbox .vn { right: 6px; } #vbox .vp { left: 6px; transform: rotate(180deg); }
#vbox svg { display: block; width: 100%; height: 100%; }
@media (max-width: 767px) { #vbox { background: #000; } #vbox video { width: 100vw; max-height: 80vh; } #vbox .vx { color: #fff; } #vbox .vn, #vbox .vp { color: #fff; top: auto; bottom: 16px; } }

/* Slideshow */
#slides { overflow: hidden; }
#slides .track { position: absolute; inset: 0; }
#slides .slide { position: absolute; inset: 0; overflow: hidden; visibility: hidden; transform: translateX(100%); }
#slides .slide.on { visibility: visible; transform: none; }
#slides .slide.mv { visibility: visible; transition: transform var(--sdur, 4.5s) cubic-bezier(.87, 0, .13, 1); }
#slides .prev, #slides .next { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; z-index: 3; }
#slides .prev svg, #slides .next svg { display: block; width: 100%; height: 100%; }
#slides .next { transform: scaleX(-1); }
#slides .dots { position: absolute; left: 0; right: 0; display: flex; justify-content: center; align-items: center; z-index: 3; }
#slides .dots button { padding: 0; border: 0; border-radius: 50%; cursor: pointer; box-sizing: border-box; }

/* Mobile header, menu, back-to-top, quick actions */
#mtoggle { padding: 0; border: 0; background: none; cursor: pointer; }
#mtoggle span { position: absolute; display: block; }
#mmenu { position: fixed; inset: 0; background: #fff; z-index: 120; overflow-y: auto; }
#mmenu[hidden] { display: none !important; }
#mmenu .mlang { position: absolute; top: calc(29 * var(--u)); left: calc(72 * var(--u)); width: calc(175 * var(--u)); height: calc(40 * var(--u)); display: flex; }
#mmenu .mlang > * { flex: 1; display: flex; align-items: center; justify-content: center; gap: calc(8 * var(--u)); text-decoration: none; color: #000;
                    font: 400 calc(15 * var(--u)) / calc(21 * var(--u)) 'Questrial KS', Arial, sans-serif; }
#mmenu .mlang > * + * { border-left: 1px solid rgba(0, 0, 0, .08); }
#mmenu .mlang .cur { color: rgb(253, 197, 88); }
#mmenu .mlang img { width: calc(21 * var(--u)); height: calc(21 * var(--u)); }
#mclose { position: absolute; top: calc(33 * var(--u)); right: calc(30 * var(--u)); width: calc(30 * var(--u)); height: calc(30 * var(--u)); padding: 0; border: 0; background: none; cursor: pointer; }
#mclose span { position: absolute; left: calc(5 * var(--u)); right: calc(5 * var(--u)); top: 50%; height: calc(2 * var(--u)); margin-top: calc(-1 * var(--u)); background: rgb(237, 21, 102); transform: rotate(45deg); }
#mclose span + span { transform: rotate(-45deg); }
#mmenu ul { list-style: none; margin: 0; padding: 0; position: absolute; top: calc(110 * var(--u)); left: calc(54 * var(--u)); width: calc(216 * var(--u)); }
#mmenu ul a { display: block; text-align: center; text-decoration: none; color: rgb(237, 21, 102);
              font: 500 calc(25 * var(--u)) / calc(72 * var(--u)) 'Barlow Condensed KS', 'Arial Narrow', sans-serif; }
#mmenu ul a.cur { color: #000; }
#totop { position: fixed; right: calc(15 * var(--u)); bottom: calc(96 * var(--u)); width: calc(38 * var(--u)); height: calc(38 * var(--u)); padding: 0; border: 0; background: none;
         cursor: pointer; z-index: 90; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .3)); }
#totop.show { opacity: 1; visibility: visible; }
#totop svg { display: block; width: 100%; height: 100%; }
#qab { position: fixed; right: calc(16 * var(--u)); bottom: calc(16 * var(--u)); z-index: 100; }
#qbtn { position: relative; display: flex; align-items: center; justify-content: center; gap: calc(3.5 * var(--u)); width: calc(50 * var(--u)); height: calc(50 * var(--u)); border: 0; border-radius: 50%;
        background: rgb(30, 74, 52); cursor: pointer; padding: 0; z-index: 2; }
#qbtn i { width: calc(5 * var(--u)); height: calc(5 * var(--u)); border-radius: 50%; background: rgb(253, 197, 88); transition: transform .2s, width .2s, height .2s, border-radius .2s; }
#qab.open #qbtn i:nth-child(2) { opacity: 0; }
#qab.open #qbtn i { position: absolute; width: calc(20 * var(--u)); height: calc(3 * var(--u)); border-radius: calc(2 * var(--u)); }
#qab.open #qbtn i:nth-child(1) { transform: rotate(45deg); } #qab.open #qbtn i:nth-child(3) { transform: rotate(-45deg); }
#qab .qbg { position: fixed; inset: 0; background: rgba(255, 255, 255, .9); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
#qab.open .qbg { opacity: 1; visibility: visible; }
#qab .qacts { position: absolute; right: calc(3 * var(--u)); bottom: calc(66 * var(--u)); display: flex; flex-direction: column; gap: calc(14 * var(--u)); align-items: flex-end;
              opacity: 0; visibility: hidden; transform: translateY(calc(10 * var(--u))); transition: opacity .2s, transform .2s, visibility .2s; }
#qab.open .qacts { opacity: 1; visibility: visible; transform: none; }
#qab .qa { display: flex; align-items: center; gap: calc(16 * var(--u)); text-decoration: none; }
#qab .ql { background: #fff; border-radius: calc(4 * var(--u)); box-shadow: 0 0 calc(8 * var(--u)) #ccc; padding: calc(5 * var(--u)) calc(8 * var(--u)); color: #20303c;
           font: 400 calc(13 * var(--u)) / 1.3 'Helvetica Neue', Helvetica, Arial, sans-serif; }
#qab .qi { width: calc(44 * var(--u)); height: calc(44 * var(--u)); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 calc(3 * var(--u)) calc(6 * var(--u)) rgba(0, 0, 0, .2); }
#qab .qi svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }
#qab .qmail .qi { background: rgb(190, 24, 103); } #qab .qfb .qi { background: rgb(60, 90, 153); }

/* Entrance animations (replicating the Wix ones) */
.aw { opacity: var(--a-o, 0); transform: translate(calc(var(--a-x, 0) * var(--u)), calc(var(--a-y, 0) * var(--u))); }
.ai { opacity: 1; transform: none; transition: opacity var(--a-d, 1s) var(--a-e, ease), transform var(--a-d, 1s) var(--a-e, ease); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aw { opacity: 1 !important; transform: none !important; }
  [data-parallax] .bgm { transform: none !important; }
  #slides .slide.mv { transition-duration: .01s; }
}
