/* ============================================================
   Click Here To Grow — layout polish fixes
   Applied 2026-09-24. Loaded site-wide via <link> in <head>.
   Reverses no functionality; purely presentational.
   ============================================================ */

/* 1. Language switcher: keep ONLY the dark top-bar flags (#pa-option-a-bar).
   Hide the thin white strip, the floating pill, and the "Language" text row. */
#lang-flag-bar,
.language-switcher-bar,
.chg-lang-opta {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* 2. Sticky behaviour: the MAIN nav sticks; the flags bar scrolls away. */
#pa-option-a-bar { position: static !important; }
#masthead {
  position: sticky !important;
  top: 0 !important;
  z-index: 99998 !important;
}
/* Keep anchored headings clear of the sticky header */
.entry-content h2, .entry-content h3,
.chg-sheet h2, .chg-sheet h3 {
  scroll-margin-top: 96px;
}

/* 3. Cheat-sheet cards: equal heights, buttons pinned to the bottom. */
div.wp-block-group[style*="border-color:#D5EAD8"] {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}
div.wp-block-group[style*="border-color:#D5EAD8"] .wp-block-buttons {
  margin-top: auto !important;
  padding-top: 14px !important;
}
/* Breathing room after card rows so headings never collide with cards */
.entry-content .wp-block-columns { margin-bottom: 1.75rem; }

/* 4. Testimonials: separate name from title; readable line length. */
.uagb-tm__company::before { content: " \2014  "; }
.uagb-tm__author-name { font-weight: 700; }
.uagb-tm__desc {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

/* 5. Heroes: tame the giant empty bands. */
div.wp-block-cover[style*="min-height:360px"] { min-height: 0 !important; }
.wp-block-cover__inner-container {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}
#about   { padding-top: 64px !important;  padding-bottom: 64px !important; }
#contact { padding-top: 56px !important;  padding-bottom: 56px !important; }

/* 6. Author photo: anchor to the top so the head is never cropped. */
#about .wp-block-media-text__media img { object-position: top !important; }

/* 7. Privacy page: spacing for the added H1 */
.chg-added-h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 1.25rem;
  color: #0F172A;
}

/* 9. Testimonial carousel: restore the rotating loop.
   The static snapshot ships slick.min.js but lost UAGB's init script and
   slick's CSS, so all quotes stacked. Scoped to the reviews block. */
#reviews .slick-slider { position: relative; display: block; box-sizing: border-box; -webkit-user-select: none; user-select: none; touch-action: pan-y; }
#reviews .slick-list { position: relative; display: block; overflow: hidden; margin: 0; padding: 0; }
#reviews .slick-list:focus { outline: none; }
#reviews .slick-track { position: relative; top: 0; left: 0; display: block; margin-left: auto; margin-right: auto; }
#reviews .slick-track:before, #reviews .slick-track:after { display: table; content: ""; }
#reviews .slick-track:after { clear: both; }
#reviews .slick-slide { display: none; float: left; height: 100%; min-height: 1px; }
#reviews .slick-initialized .slick-slide { display: block; }
#reviews .slick-slide img { display: inline-block; }
#reviews .slick-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(45,95,138,.12); color: #2d5f8a; font-size: 24px; line-height: 1; cursor: pointer; }
#reviews .slick-arrow:hover { background: rgba(45,95,138,.25); }
#reviews .slick-prev { left: -56px; }
#reviews .slick-next { right: -56px; }
#reviews .slick-dots { list-style: none; display: flex !important; justify-content: center; gap: 8px; margin: 18px 0 0; padding: 0; }
#reviews .slick-dots li button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(45,95,138,.25); font-size: 0; padding: 0; cursor: pointer; }
#reviews .slick-dots li.slick-active button { background: #2d5f8a; }
@media (max-width: 900px) {
  #reviews .slick-prev { left: 4px; }
  #reviews .slick-next { right: 4px; }
}
/* One quote visible at a time, centred in the section */
#reviews .uagb-testimonial__wrap { max-width: 780px; margin-left: auto; margin-right: auto; }

/* 10. Homepage white gap: make all four languages identical with no gap.
   (a) Only the English homepage uses ast-page-builder-template. Astra gives its
       empty .entry-header margin-top:2em (the white band), and its alignfull
       breakout selector (".ast-page-builder-template .ast-no-sidebar ...", a
       descendant combinator over two classes on the same <body>) never matches,
       leaving the hero inset instead of full-bleed. Correct both. */
.ast-page-builder-template .entry-header { margin-top: 0 !important; }
.ast-page-builder-template.ast-no-sidebar .entry-content > .alignfull {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    max-width: 100vw !important;
    width: 100vw !important;
}
/* (b) Anonymous emoji flag strips injected on translated pages (div with no
   id/class, inline style with #e9ecef border): hide them like the other bars. */
div[style*="border-bottom:1px solid #e9ecef"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* 11. The actual white-gap culprit (EN homepage only).
   Astra's `.ast-single-post.ast-page-builder-template .site-main > article`
   rule puts padding-top:2em on the article; the .entry-header is already
   display:none, so this padding is the white band below the green nav. */
.ast-single-post.ast-page-builder-template .site-main > article {
    padding-top: 0 !important;
}
