:root {
  --ast-global-color-0: #e39009;
  --ast-global-color-1: #d09a40;
  --ast-global-color-2: #0f172a;
  --ast-global-color-3: #4a4a4a;
  --ast-global-color-4: #faf5e5;
  --ast-global-color-5: #ffffff;
  --ast-global-color-6: #f0e6c5;
  --ast-global-color-7: #141004;
  --ast-global-color-8: #222222;
  --sv-container-width: 1440px;
  --sv-content-padding: clamp(16px, 3vw, 32px);
  --sv-font: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sv-marketing-page-bg: #f3eee2;
}

html { box-sizing: border-box; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; background: #fff; color: #172033; font-family: var(--sv-font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.ast-main-header-nav-open { overflow-x: hidden; overflow-y: auto; }
img { max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: #c87900; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:focus { color: #e39009; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; color: #0f2345; line-height: 1.2; font-weight: 600; }
p { margin: 0 0 1.2em; }
ul, ol { margin-top: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto !important; width: auto; height: auto; top: 8px; left: 8px; z-index: 100000; padding: 12px 16px; border-radius: 8px; background: #fff; color: #0f2345; box-shadow: 0 10px 30px rgba(15,35,69,.2); }
.ast-flex { display: flex; }
.ast-flex-grow-1 { flex: 1 1 auto; }
.ast-inline-flex { display: inline-flex; }
.clear::after { content: ""; display: table; clear: both; }
#page.site { min-height: var(--sv-page-min-height, 100vh); display: flex; flex-direction: column; }
#content.site-content { flex: 1 0 auto; width: 100%; }
.ast-container { width: 100%; max-width: var(--sv-container-width); margin-right: auto; margin-left: auto; padding-right: var(--sv-content-padding); padding-left: var(--sv-content-padding); }
.ast-container--fluid, body.ast-page-builder-template #content > .ast-container { max-width: none; padding-right: 0; padding-left: 0; }
.content-area, .site-main { width: 100%; min-width: 0; }
.ast-article-single { margin: 0; }
body:not(.ast-page-builder-template) .site-main { padding-top: clamp(38px, 5vw, 72px); padding-bottom: clamp(52px, 7vw, 96px); }
body.ast-page-builder-template .entry-content { width: 100%; }
body.ast-page-builder-template .entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.wp-site-blocks, .entry-content { overflow-wrap: break-word; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="date"], input[type="time"], select, textarea { max-width: 100%; border: 1px solid #d8cfbf; border-radius: 12px; background: #fff; color: #172033; padding: 11px 13px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(227,144,9,.18); border-color: #e39009; }
button, .button, input[type="submit"], .wp-element-button { border: 0; border-radius: 999px; background: #ff6a00; color: #fff; padding: 12px 22px; font-weight: 600; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
button:hover, .button:hover, input[type="submit"]:hover, .wp-element-button:hover { color: #fff; transform: translateY(-1px); filter: brightness(.98); }
a.button:link,
a.button:visited,
a.button:hover,
a.button:focus,
a.button:active,
a.wp-element-button:link,
a.wp-element-button:visited,
a.wp-element-button:hover,
a.wp-element-button:focus,
a.wp-element-button:active,
a.wp-block-button__link:link,
a.wp-block-button__link:visited,
a.wp-block-button__link:hover,
a.wp-block-button__link:focus,
a.wp-block-button__link:active { color: #fff; }
.woocommerce .woocommerce-breadcrumb { margin: 0 0 22px; color: #64748b; }
.woocommerce ul.products { margin-bottom: 0; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: 14px; border-top-color: #e39009; }
@media (max-width: 767px) { body { font-size: 15px; } }

/*
 * Marketing pages keep their individual section containers, but the WordPress
 * article wrapper itself must not create a second boxed page around them.
 */
body.sv-marketing-full-width #content.site-content,
body.sv-marketing-full-width #content > .ast-container,
body.sv-marketing-full-width #primary,
body.sv-marketing-full-width .site-main,
body.sv-marketing-full-width .ast-article-single,
body.sv-marketing-full-width .entry-content {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.sv-marketing-full-width .entry-content > :first-child {
  margin-top: 0 !important;
}

body.sv-marketing-full-width .entry-content > :last-child {
  margin-bottom: 0 !important;
}

/* Legacy Gutenberg/Spectra hero wrappers were saved with the old 1240 px cap. */
body.sv-marketing-full-width .entry-content > .wp-block-uagb-container,
body.sv-marketing-full-width .entry-content > .wp-block-group,
body.sv-marketing-full-width .entry-content > .uagb-section__wrap {
  width: min(100%, var(--sv-container-width)) !important;
  max-width: var(--sv-container-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Custom shortcode sections own their background and may extend edge-to-edge. */
body.sv-marketing-full-width .entry-content > .sv-about-page,
body.sv-marketing-full-width .entry-content > [class*="sv-korepetitoriai"],
body.sv-marketing-full-width .entry-content > .woocommerce {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/*
 * Shared background and full-width hero treatment for the main marketing
 * pages. The hero is intentionally as wide as the global site container,
 * while the curved lower-right cut-out reveals the same page background.
 */
body.sv-marketing-full-width,
body.sv-marketing-full-width #page.site,
body.sv-marketing-full-width #content.site-content,
body.sv-marketing-full-width #primary,
body.sv-marketing-full-width .site-main,
body.sv-marketing-full-width .ast-article-single,
body.sv-marketing-full-width .entry-content {
  background-color: var(--sv-marketing-page-bg) !important;
}

body.sv-marketing-full-width .entry-content > .wp-block-uagb-container.uagb-block-7dc1b7fc {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  transform: none !important;
  overflow: hidden !important;
  background-color: var(--sv-marketing-page-bg) !important;
}

/* Keep the hero's text width controlled independently from its image width. */
body.sv-marketing-full-width
  .entry-content > .wp-block-uagb-container.uagb-block-7dc1b7fc
  > .uagb-container-inner-blocks-wrap {
  width: 100% !important;
  max-width: min(1140px, calc(100% - (2 * var(--sv-content-padding)))) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

/* The tutor application shortcode is the only marketing page without a hero. */
body.sv-marketing-full-width .entry-content > .sv-taptik {
  width: min(980px, calc(100% - (2 * var(--sv-content-padding)))) !important;
  max-width: 980px !important;
  margin-top: clamp(48px, 6vw, 88px) !important;
  margin-right: auto !important;
  margin-bottom: clamp(56px, 7vw, 100px) !important;
  margin-left: auto !important;
}

@media (max-width: 767px) {
  body.sv-marketing-full-width .entry-content > .sv-taptik {
    width: calc(100% - 24px) !important;
    margin-top: 36px !important;
    margin-bottom: 52px !important;
  }
}

/*
 * Keep the three public marketing heroes visually consistent. The old About
 * page override forced a shorter hero and pulled its copy too close to the
 * header. About now follows the same saved Spectra hero sizing as Tutors and
 * Contact instead of maintaining a page-ID-specific height.
 *
 * On phones the legacy Spectra hero has an extra inner horizontal inset on
 * top of the theme container inset. Remove that second inset so the hero copy
 * aligns much more closely with the content that follows each hero.
 */
@media (max-width: 767px) {
  body:is(.sv-page-about, .sv-page-tutors, .sv-page-contact).sv-marketing-full-width
    .entry-content > .wp-block-uagb-container.uagb-block-7dc1b7fc
    > .uagb-container-inner-blocks-wrap {
    width: calc(100% - 48px) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body:is(.sv-page-about, .sv-page-tutors, .sv-page-contact).sv-marketing-full-width
    .entry-content > .wp-block-uagb-container.uagb-block-7dc1b7fc
    > .uagb-container-inner-blocks-wrap
    > .wp-block-uagb-container,
  body:is(.sv-page-about, .sv-page-tutors, .sv-page-contact).sv-marketing-full-width
    .entry-content > .wp-block-uagb-container.uagb-block-7dc1b7fc
    .wp-block-uagb-advanced-heading,
  body:is(.sv-page-about, .sv-page-tutors, .sv-page-contact).sv-marketing-full-width
    .entry-content > .wp-block-uagb-container.uagb-block-7dc1b7fc
    .uagb-ifb-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
