/* ==========================================================================
   YOLO static migration - conservative fixes & helper styles
   Kept in a separate file on purpose so the original builder CSS is untouched.
   ========================================================================== */

/* ---- Maintenance note replacing the Hostinger/Zyro-powered forms ------- */
.yolo-maintenance-note {
  box-sizing: border-box;
  width: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding: 28px 24px;
  color: rgb(26, 26, 26);
}
.yolo-maintenance-note p {
  max-width: 420px;
  margin: 0;
  font-family: 'Inter Regular', 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
.yolo-maintenance-note .yolo-email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgb(255, 255, 255);
  background-color: rgb(255, 202, 100);
  color: rgb(55, 54, 54);
  font-family: 'Inter Regular', 'Inter', Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.yolo-maintenance-note .yolo-email-btn:hover {
  background-color: rgb(255, 222, 120);
  color: rgb(55, 54, 54);
}

/* ---- Generic lightbox for images flagged image--zoom ------------------- */
.yolo-lightbox,
.yolo-video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.yolo-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.image--zoom img {
  cursor: zoom-in;
}

/* ---- Video (YouTube) modal --------------------------------------------- */
.yolo-video-modal {
  cursor: default;
  padding: 24px;
}
.yolo-video-modal__box {
  position: relative;
  width: min(920px, 94vw);
}
.yolo-video-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.yolo-video-modal__wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}
.yolo-video-modal__wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Mobile header: keep dropdown scrollable ---------------------------- */
.block-header-layout-mobile__dropdown--open {
  overflow-y: auto !important;
}

/* ---- Small safety net against horizontal overflow ----------------------- */
html,
body {
  overflow-x: clip;
}



/* ==========================================================================
   Classic header + global vertical rhythm (spacing fine-tune)
   Content is untouched; only layout spacing/margins are harmonised.
   ========================================================================== */

/* ---- 1. Header: balanced centred container ----------------------------- */
.block-header .block-header-layout-desktop {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 1360px !important;
  margin-inline: auto !important;
  padding: 0 clamp(20px, 3vw, 44px) !important;
  box-sizing: border-box !important;
}
.block-header .block-header-layout-desktop .block-header__logo {
  flex: 0 0 auto !important;
  margin-right: clamp(20px, 2.4vw, 44px) !important;
}
.block-header .block-header-layout-desktop .block-header__nav {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.block-header .block-header-layout-desktop .block-header__nav-links {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: var(--link-spacing, clamp(14px, 1.3vw, 26px)) !important;
  white-space: nowrap !important;
}
.block-header .block-header-layout-desktop .block-header__nav-links a,
.block-header .block-header__nav-links .item-content {
  white-space: nowrap !important;
}

/* shrink spacing only when needed to keep one line (never two) */
@media (min-width: 1280px) and (max-width: 1439px) {
  .block-header {
    --link-spacing: 22px !important;
  }
  .block-header .block-header__nav-links a,
  .block-header .block-header-item .item-content {
    font-size: 13px !important;
  }
}
@media (min-width: 1440px) {
  .block-header {
    --link-spacing: 30px !important;
  }
}
@media (min-width: 1280px) {
  .block-header .block-header-layout-mobile {
    display: none !important;
  }
}
@media (max-width: 1279px) {
  .block-header .block-header-layout-desktop {
    display: none !important;
  }
  .block-header .block-header-layout-mobile {
    display: grid !important;
    max-width: 1360px !important;
    margin-inline: auto !important;
    box-sizing: border-box !important;
  }
}

/* ---- 2. Global spacing tokens & vertical rhythm ------------------------ */
.block {
  --space-sm: 16px;
  --space-md: 28px;
  --space-lg: 48px;
}

/* every page: consistent air under the yellow header */
.page__blocks > .block:first-child {
  padding-top: clamp(44px, 4vw, 60px) !important;
}

/* harmonise headline/paragraph margins that come from inline styles */
.text-box h1 { margin-bottom: 20px !important; }
.text-box h2 { margin-bottom: 18px !important; }
.text-box h3 { margin-bottom: 12px !important; }
.text-box p { line-height: 1.6 !important; }

/* ---- 3. Footer: slightly tighter bottom ---------------------------------- */
.block--footer {
  padding-top: clamp(36px, 4vw, 52px) !important;
  padding-bottom: clamp(20px, 2.4vw, 32px) !important;
}
.block--footer .block-layout {
  max-width: 1360px !important;
}

/* ---- Yolo Exam Platform placeholder (Classic) --------------------------- */
.yolo-platform {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 62vh;
  padding: 96px 24px;
  font-family: 'Jost', 'Inter Regular', Arial, sans-serif;
}
.yolo-platform__icon {
  width: 84px;
  height: 84px;
  margin-bottom: 26px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: #fff2c4;
  color: #b98a00;
}
.yolo-platform__title {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.yolo-platform__text {
  margin: 0;
  max-width: 520px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
  opacity: 0.92;
}
.yolo-platform__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  padding: 14px 34px;
  border: 1px solid rgb(255, 255, 255);
  border-radius: 4px;
  background-color: rgb(255, 202, 100);
  color: rgb(55, 54, 54);
  font-family: 'Inter Regular', 'Inter', Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.yolo-platform__cta:hover {
  background-color: rgb(255, 222, 120);
  color: rgb(55, 54, 54);
}


/* ---- 4. Remove reserved empty grid tracks (old form/hero reservation) --- */
/* Every first content block uses auto tracks: empty rows collapse to 0 and
   the consistent padding above (see rule 2) provides the real spacing. */
.page__blocks > .block:first-child .block-layout,
.page__blocks > .block#zWwUgc .block-layout,
.page__blocks > .block#zpd1oJ .block-layout {
  --grid-template-rows: repeat(40, auto) !important;
  --t-grid-template-rows: repeat(40, auto) !important;
  --m-grid-template-rows: repeat(40, auto) !important;
  --small-desktop-grid-template-rows: repeat(40, auto) !important;
  /* kill the reserved min-heights inherited from the old builder (they were
     sized for content that no longer exists, e.g. the removed forms) */
  --block-min-height: 0px !important;
  --m-block-min-height: 0px !important;
  --t-block-min-height: 0px !important;
  --small-desktop-block-min-height: 0px !important;
}

/* ---- 5. Yolo Exam Platform stays compact -------------------------------- */
.yolo-platform {
  min-height: 44vh !important;
  padding: 72px 24px !important;
}


/* ---- 6. Breathing between collapsed blocks and before the footer --------- */
.page__blocks > .block#zWwUgc,
.page__blocks > .block#zpd1oJ {
  margin-top: clamp(52px, 6vw, 84px) !important;
}
.block--footer {
  margin-top: clamp(52px, 6vw, 80px) !important;
}



/* ==========================================================================
   Horizontal system (width fix) - rooms wider, never glued to edges.
   Vertical rhythm from previous rounds is untouched.
   ========================================================================== */

/* main content areas: wider, centred container (kept from last round) */
.page__blocks > .block:not(.block--footer) .block-layout {
  max-width: 1360px !important;
  margin-inline: auto !important;
}

/* ---- FOOTER: collapse the orphan rows of the old builder grid ------- */
/* The builder footer still reserved ~9 grid rows (elements already removed).
   Collapse the reserved tracks: the original column arrangement is kept,
   empty rows shrink to zero and the footer hugs its real content. */
.block--footer .block-layout {
  --grid-template-rows: repeat(40, auto) !important;
  --t-grid-template-rows: repeat(40, auto) !important;
  --m-grid-template-rows: repeat(40, auto) !important;
  --small-desktop-grid-template-rows: repeat(40, auto) !important;
  --block-min-height: 0px !important;
  --m-block-min-height: 0px !important;
  --t-block-min-height: 0px !important;
  --small-desktop-block-min-height: 0px !important;
  min-height: 0 !important;
}
.block--footer {
  padding-top: clamp(34px, 3.5vw, 46px) !important;
  padding-bottom: clamp(18px, 2vw, 26px) !important;
}

/* ---- OUR TEAM: real 3-column centred grid ------------------------------ */
.page__blocks > .block#zDu1eO .block-layout {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  max-width: 1120px !important;
  margin-inline: auto !important;
  column-gap: clamp(24px, 2.6vw, 36px) !important;
  row-gap: clamp(20px, 2.4vw, 32px) !important;
  min-height: 0 !important;
}
.page__blocks > .block#zDu1eO .block-layout > .layout-element {
  grid-row: auto !important;
  grid-column: auto !important;
  margin: 0 !important;
  transform: none !important;
}
/* smaller screens: single centred column keeps each member together */
@media (max-width: 1023px) {
  .page__blocks > .block#zDu1eO .block-layout {
    grid-template-columns: 1fr !important;
    max-width: 680px !important;
  }
}
