/* Qareon — MAY-CASH-style header: green topbar + floating nav card.
   Replaces the old Bootstrap navbar + news ticker. */

:root {
  --qa-green: #05a88d;
  --qa-green-dark: #037f6a;
  --qa-orange: #f08d49;
  --qa-orange-bar: #f5820a; /* topbar */
  --qa-ink: #384047;
  --qa-dark: rgb(14 23 42); /* navy hero / footer band */
}

/* display:contents removes the wrapper's box so the sticky main-nav's
   containing block becomes the page (it sticks for the whole scroll), and
   nothing overrides its position:sticky. */
.qa-site-header { display: contents; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: #01a98d;
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-family: "Plus Jakarta Sans", sans-serif;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; gap: 18px; flex-wrap: wrap;
}
.topbar__segments {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0;
  list-style: none; margin: 0; padding: 0;
}
.topbar__segments li { position: relative; padding: 0 16px; font-weight: 600; }
.topbar__segments li:first-child { padding-left: 0; }
.topbar__segments li + li::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.5);
}
.topbar__segments li a {
  color: rgba(255, 255, 255, 0.82); text-decoration: none !important;
  transition: color 0.2s ease; display: inline-flex; align-items: center; gap: 6px;
}
.topbar__segments li a:hover, .topbar__segments li.is-active a { color: #fff; }
.topbar__segments li a i { font-size: 12px; }

/* Language pill switch */
.topbar__lang { position: relative; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 0; padding: 3px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.22);
}
.lang-switch__opt {
  border: 0; background: transparent; color: rgba(255, 255, 255, 0.85);
  font: 700 12px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: 0.06em;
  padding: 6px 12px; border-radius: 999px; cursor: pointer; text-decoration: none !important;
  transition: background 0.18s ease, color 0.18s ease; display: inline-block;
}
.lang-switch__opt.is-active { background: #fff; color: var(--qa-green-dark); }

/* ---------- Floating main nav card ---------- */
.main-nav {
  position: sticky; top: 0; z-index: 40; padding: 6px 0 14px; background: var(--qa-green);
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-nav.is-scrolled { background: #fff; border-bottom: 1px solid rgba(15, 23, 42, 0.06); box-shadow: 0 6px 24px -14px rgba(15, 23, 42, 0.25); }
.nav-shell {
  display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 18px;
  padding: 10px 22px; background: #fff; border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 22px; box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.18);
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* On scroll the nav becomes a flat all-white bar: the card blends into the band. */
.main-nav.is-scrolled .nav-shell { background: transparent; border-color: transparent; box-shadow: none; border-radius: 0; padding: 8px 22px; }
.brand img { width: 150px; max-width: 42vw; height: auto; }
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-links > a {
  position: relative; display: inline-flex; align-items: center; padding: 12px 20px;
  font-family: "Plus Jakarta Sans", sans-serif; font-size: 15px; font-weight: 600; color: var(--qa-ink);
  text-decoration: none !important; transition: color 0.2s ease;
}
.nav-links > a + a::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 18px; background: rgba(15, 23, 42, 0.1);
}
.nav-links > a:hover, .nav-links > a.is-active { color: var(--qa-green); }
.nav-links > a.nav-promo {
  color: #fff !important; background: var(--qa-green); border-radius: 999px; margin-left: 10px;
  padding: 10px 20px !important; font-weight: 700 !important;
}
.nav-links > a.nav-promo::before { display: none; }
.nav-links > a.nav-promo:hover { background: var(--qa-green-dark); color: #fff !important; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12); background: rgba(255, 255, 255, 0.6); color: var(--qa-ink);
}
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .topbar__segments li { padding: 0 10px; font-size: 12px; }
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 16px;
    box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.28); padding: 8px; margin: 8px 12px 0;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links > a { padding: 12px 16px; }
  .nav-links > a + a::before { display: none; }
  .nav-links > a.nav-promo { margin: 6px 0 0; text-align: center; justify-content: center; }
  .nav-shell { position: relative; flex-wrap: wrap; }
}

/* Hero band — dark navy */
.qa-hero { background: var(--qa-dark); position: relative; overflow: hidden; }
.qa-hero__carousel { position: relative; z-index: 1; }

/* ---------- Homepage section rhythm ----------
   header/hero gray → About white → Services gray → Doc-center white → Contact gray */
.home #nos_services,
.home #contact { background: #f7f7f7; }

/* ---------- Hero — professional presentation ---------- */
.qa-hero__copy { max-width: 560px; }
.qa-hero__eyebrow {
  display: inline-block; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--qa-green, #05a88d); background: #e6f6f3; padding: 6px 14px;
  border-radius: 999px; margin-bottom: 18px;
}
.qa-hero__title {
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem); line-height: 1.12; letter-spacing: -0.02em;
  color: var(--qa-green, #05a88d); margin: 0 0 1rem;
}
.qa-hero__sub {
  font-size: 1.15rem; line-height: 1.65; color: rgba(255, 255, 255, 0.82); margin: 0 0 1.6rem; text-wrap: balance;
}
.qa-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.qa-hero__actions .btn { padding: 12px 26px; font-weight: 600; border-radius: 12px; }
/* Dark-hero buttons: green filled + white outline */
.qa-hero .btn-primary { background: var(--qa-green) !important; border-color: var(--qa-green) !important; color: #fff !important; box-shadow: 0 14px 28px -12px rgba(5,168,141,0.6); }
.qa-hero .btn-primary:hover { background: var(--qa-green-dark) !important; border-color: var(--qa-green-dark) !important; }
.qa-hero .btn-outline-primary {
  --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,0.55);
  --bs-btn-hover-color: var(--qa-dark); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff;
  color: #fff; border-color: rgba(255,255,255,0.55);
}
.qa-hero .video-wrapper { margin: 0; }
/* No border/shadow on the hero video */
.qa-hero .video-wrapper,
.qa-hero .video-wrapper video,
.qa-hero .plyr,
.qa-hero .plyr--video { box-shadow: none !important; border: 0 !important; }
@media (max-width: 991px) { .qa-hero__copy { max-width: none; } }

/* ---------- Hero carousel — MAY-CASH grid-stack crossfade (no height jump) ---------- */
.qa-hero__carousel { position: relative; width: 100%; }
.qa-hero__track { position: relative; list-style: none; margin: 0; padding: 0; display: grid; }
.qa-hero__slide {
  grid-area: 1 / 1; opacity: 0;
  transition: opacity 0.6s ease; pointer-events: none;
}
.qa-hero__slide.is-active { opacity: 1; pointer-events: auto; position: relative; z-index: 1; }

/* Staggered entrance for the active slide's content (re-plays on each change). */
.qa-hero__slide.is-active .qa-hero__eyebrow,
.qa-hero__slide.is-active .qa-hero__title,
.qa-hero__slide.is-active .qa-hero__sub,
.qa-hero__slide.is-active .qa-hero__actions { animation: qa-slide-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.qa-hero__slide.is-active .qa-hero__eyebrow { animation-delay: 0.10s; }
.qa-hero__slide.is-active .qa-hero__title   { animation-delay: 0.20s; }
.qa-hero__slide.is-active .qa-hero__sub     { animation-delay: 0.32s; }
.qa-hero__slide.is-active .qa-hero__actions { animation-delay: 0.44s; }
.qa-hero__slide.is-active .qa-hero__visual img { animation: qa-img-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: 0.12s; }
@keyframes qa-slide-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes qa-img-in { from { opacity: 0; transform: translateY(-50%) translateX(44px) scale(0.92); } to { opacity: 1; transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .qa-hero__slide.is-active .qa-hero__eyebrow,
  .qa-hero__slide.is-active .qa-hero__title,
  .qa-hero__slide.is-active .qa-hero__sub,
  .qa-hero__slide.is-active .qa-hero__actions,
  .qa-hero__slide.is-active .qa-hero__visual img { animation: none; }
}

/* Image clipped into a big circle on the right (bleeds off the edge), inside a
   large concentric green ring with a wide navy gap, plus a faint outer outline. */
.qa-hero__visual { position: relative; min-height: 460px; }
/* Image fills right up to the inside of the green ring (no navy gap). */
.qa-hero__visual img {
  position: absolute; top: 50%; right: -158px; transform: translateY(-50%);
  width: 640px; height: 640px; max-width: none; max-height: none;
  border-radius: 50%; object-fit: cover; z-index: 2;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55);
}
/* Thick green ring — concentric, hugging the image */
.qa-hero__visual::before {
  content: ''; position: absolute; top: 50%; right: -182px; transform: translateY(-50%);
  width: 692px; height: 692px; border-radius: 50%;
  border: 26px solid var(--qa-green, #05a88d); box-sizing: border-box; z-index: 1;
  animation: qa-ring-breathe 10s ease-in-out infinite;
}
/* Faint outer outline ring */
.qa-hero__visual::after {
  content: ''; position: absolute; top: 50%; right: -240px; transform: translateY(-50%);
  width: 800px; height: 800px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12); box-sizing: border-box; z-index: 0;
}
@keyframes qa-ring-breathe { 0%,100% { transform: translateY(-50%) scale(1); } 50% { transform: translateY(-50%) scale(1.025); } }
@media (prefers-reduced-motion: reduce) { .qa-hero__visual::before { animation: none; } }

/* Pill dots at the bottom center (white → green pill when active). */
.qa-hero__chrome { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 5; display: flex; justify-content: center; pointer-events: none; }
.qa-hero__chrome > * { pointer-events: auto; }
.qa-hero__dots { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.qa-hero__dots li { line-height: 0; }
.qa-hero__dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.4); cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.qa-hero__dots button.is-active { width: 26px; background: var(--qa-green, #05a88d); }

@media (max-width: 991px) {
  .qa-hero__visual { position: relative; min-height: 0; text-align: center; padding: 8px 0 6px; }
  .qa-hero__visual img {
    position: relative; top: auto; right: auto; transform: none;
    width: 280px; height: 280px; margin: 0 auto; display: inline-block;
    border: 6px solid var(--qa-green, #05a88d); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
  }
  .qa-hero__visual::before, .qa-hero__visual::after { display: none; }
  .qa-hero__slide.is-active .qa-hero__visual img { animation: none; }
  .qa-hero .container { padding-bottom: 2rem; }
}

/* Shared page hero band (green, white, left-aligned) — used by the document
   center and e-learning fronts. Matches the .qa-lms-hero styling. */
.qa-page-hero { background: var(--qa-green, #05a88d); color: #fff; padding: 56px 0; }
.qa-page-hero__eyebrow {
  display: inline-block; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.qa-page-hero h1, .qa-page-hero h2 { color: #fff; font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; margin: 0 0 0.6rem; max-width: 720px; }
.qa-page-hero p { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; max-width: 680px; margin: 0; }

/* ---- Video gallery block (MAY-CASH style) ---------------------------- */
.qa-videos-body { padding-top: 48px; }
.section-video-gallery { padding: 8px 0 72px; position: relative; }
.section-video-gallery--has-bg { background: #f7f7f7; }
.section-video-gallery .section-heading--center { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-video-gallery .section-heading h2 {
  font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--qa-ink);
}
.section-video-gallery .section-heading p { color: #667085; margin: 10px 0 0; }
/* Fixed 3-up grid (each card = 4/12 cols). A lone video stays one-third wide,
   left-aligned, instead of stretching full width. */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.video-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06); box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.18);
}
.video-card__media { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-card__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card__body { padding: 20px 22px 24px; }
.video-card__title { font-family: "Plus Jakarta Sans", sans-serif; font-size: 18px; font-weight: 800; margin: 0 0 8px; color: var(--qa-ink); }
.video-card__desc { font-size: 14.5px; line-height: 1.55; color: #667085; margin: 0; }
@media (max-width: 991px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .section-video-gallery { padding: 8px 0 48px; }
  .video-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---- Blog listing ---- */
.qa-blog { padding: 48px 0 72px; }
.qa-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.qa-blog-card { background: #fff; border: 1px solid rgba(15, 23, 42, 0.07); border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.18); display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.qa-blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px -18px rgba(15, 23, 42, 0.28); }
.qa-blog-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.qa-blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.qa-blog-card:hover .qa-blog-card__media img { transform: scale(1.05); }
.qa-blog-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.qa-blog-card__cat { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #037f6a; background: #e6f6f3; padding: 4px 11px; border-radius: 999px; margin-bottom: 12px; }
.qa-blog-card__title { font-size: 1.2rem; font-weight: 800; line-height: 1.3; margin: 0 0 10px; }
.qa-blog-card__title a { color: var(--qa-ink); text-decoration: none; }
.qa-blog-card__title a:hover { color: var(--qa-green); }
.qa-blog-card__excerpt { color: #667085; font-size: 0.95rem; line-height: 1.55; margin: 0 0 16px; flex: 1; }
.qa-blog-card__meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #94a3b8;
  border-top: 1px solid #f1f5f9; padding-top: 14px; }
.qa-blog-card__more { color: var(--qa-green); font-weight: 700; text-decoration: none; }
.qa-blog-card__more:hover { color: var(--qa-green-dark); }
.qa-blog-pagination { margin-top: 44px; }
.qa-blog-pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.qa-blog-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
  padding: 0 12px; border-radius: 10px; border: 1px solid #e2e8f0; color: var(--qa-ink); text-decoration: none; font-weight: 600; }
.qa-blog-pagination .page-numbers.current { background: var(--qa-green); color: #fff; border-color: var(--qa-green); }
@media (max-width: 991px) { .qa-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .qa-blog-grid { grid-template-columns: 1fr; } }

/* ---- Blog single post ---- */
.qa-blog-single { padding: 0 0 72px; }
.qa-post { max-width: 820px; margin: 0 auto; }
.qa-post__cover { margin: -60px 0 34px; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.35); }
.qa-post__cover img { width: 100%; height: auto; display: block; }
.qa-post__content { font-size: 1.06rem; line-height: 1.75; color: #374151; }
.qa-post__content .qa-lead { font-size: 1.2rem; color: #1e293b; font-weight: 500; margin-bottom: 1.4rem; }
.qa-post__content h3 { font-size: 1.4rem; font-weight: 800; color: var(--qa-ink); margin: 2rem 0 0.8rem; }
.qa-post__content p { margin: 0 0 1.1rem; }
.qa-post__content a { color: var(--qa-green-dark); font-weight: 600; }
.qa-post__foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid #eef2f6; }
.qa-post__back { color: var(--qa-green-dark); font-weight: 700; text-decoration: none; }
.qa-post__back:hover { color: var(--qa-green); }

/* ---- Document center filter + search (one row) ---- */
.qa-doc-filter-wrap { background: #fff; border-bottom: 1px solid #eef2f6; }
.qa-doc-toolbar { display: flex; align-items: center; gap: 12px; padding: 20px 0; }
.qa-doc-filter { flex: 0 0 auto; }
.qa-doc-select { font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--qa-ink); cursor: pointer; min-width: 230px;
  padding: 11px 42px 11px 18px; border: 1px solid #dde5ec; border-radius: 999px; background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23384047' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
.qa-doc-select:focus { outline: none; border-color: var(--qa-green); box-shadow: 0 0 0 3px rgba(5, 168, 141, 0.12); }
.qa-doc-search { position: relative; flex: 1 1 auto; }
.qa-doc-search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 0.9rem; pointer-events: none; }
.qa-doc-search input { width: 100%; padding: 11px 16px 11px 40px; border: 1px solid #dde5ec; border-radius: 999px;
  font: inherit; font-size: 0.92rem; color: var(--qa-ink); background: #fff; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.qa-doc-search input:focus { border-color: var(--qa-green); box-shadow: 0 0 0 3px rgba(5, 168, 141, 0.12); }
.qa-doc-empty-wrap { padding: 64px 0; }
.qa-doc-empty { text-align: center; color: #94a3b8; font-size: 1.05rem; margin: 0; }
@media (max-width: 560px) { .qa-doc-toolbar { flex-wrap: wrap; } .qa-doc-filter, .qa-doc-select { width: 100%; } }
