/* Gen1service Advanced Keyword Slider — integrated isolated section */
/* Gen1service Advanced Keyword Slider — isolated styles */
:root {
  --g1-navy: #173c66;
  --g1-blue: #236a9f;
  --g1-teal: #2c969b;
  --g1-orange: #ff6427;
  --g1-ink: #24415e;
  --g1-muted: #647d96;
  --g1-line: #d9e7ef;
  --g1-pale: #f3f8fb;
}
.g1-keyword-slider {
  --g1-ks-bg-desktop: url('../../img/gen1service-main-slider.webp');
  --g1-ks-bg-mobile: url('../../img/gen1service-mob-main-slider.webp');
  position: relative; isolation: isolate; overflow: hidden;
  width: calc(100% - 32px); max-width: 1480px; margin: 20px auto 30px;
  min-height: clamp(350px, 25vw, 430px); border: 1px solid #d5e4ed; border-radius: 5px;
  background: linear-gradient(110deg, #f9fcfe 0%, #edf5f9 100%);
  box-shadow: 0 16px 42px rgba(22, 57, 87, .10);
}
/* One combined slider: original banner artwork stays visible on the right; the text side is softly blurred and washed out for legibility. */
.g1-keyword-slider:before {
  content: ""; position: absolute; z-index: -2; inset: -5px;
  background-image: var(--g1-ks-bg-desktop); background-size: cover; background-position: center right; background-repeat: no-repeat;
  filter: saturate(.92); transform: scale(1.015); transition: background-image .25s ease;
}
.g1-keyword-slider:after {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(250,253,255,.97) 34%, rgba(245,250,253,.90) 49%, rgba(239,247,251,.60) 61%, rgba(231,243,249,.12) 78%, rgba(225,240,247,.02) 100%);
  backdrop-filter: blur(1.4px);
}

.g1-ks-topline {
  display: flex; align-items: center; gap: 9px; padding: 22px 28px 0;
  color: var(--g1-teal); font-size: 10px; font-weight: 900; letter-spacing: 1.7px;
}
.g1-ks-brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--g1-teal); box-shadow: 0 0 0 5px rgba(44,150,155,.12); }
.g1-ks-separator { color: #9bb2c1; }
.g1-ks-context { color: #69839a; }
.g1-ks-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: #6d8497; font-size: 9px; letter-spacing: 1.1px; white-space: nowrap; }
.g1-ks-live i { width: 7px; height: 7px; border-radius: 50%; background: #32a77d; box-shadow: 0 0 0 4px rgba(50,167,125,.12); }
.g1-ks-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 24px 28px 22px; align-items: center; }
.g1-ks-copy { min-width: 0; width: min(72%, 900px); border-left: 3px solid var(--g1-orange); padding: 2px 0 2px 20px; }
.g1-ks-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px;
  color: #d9501d; border: 1px solid #ffd4c4; background: rgba(255,100,39,.055);
  font-size: 10px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase;
}
.g1-ks-kicker:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--g1-orange); }
.g1-ks-heading-wrap { min-height: 88px; display: flex; align-items: center; padding: 9px 0 0; }
.g1-ks-heading {
  margin: 0; color: var(--g1-navy); font-size: clamp(27px, 3.05vw, 43px);
  line-height: 1.12; letter-spacing: -1.5px; font-weight: 850;
  animation: g1KsEnter .48s ease both;
}
.g1-ks-heading span { color: var(--g1-blue); }
.g1-ks-description { max-width: 650px; margin: 10px 0 17px; color: var(--g1-muted); font-size: 14px; line-height: 1.7; }
.g1-ks-benefits { display: flex; flex-wrap: wrap; gap: 8px; }
.g1-ks-benefits span {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 10px;
  border: 1px solid #dbe7ef; background: rgba(255,255,255,.78);
  color: #385a78; font-size: 10px; font-weight: 800;
}
.g1-ks-benefits b { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: #fff; background: var(--g1-teal); font-size: 10px; }
.g1-ks-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 21px; }
.g1-ks-progress-label { display: flex; align-items: center; gap: 9px; color: var(--g1-navy); font-size: 11px; font-weight: 900; }
.g1-ks-count-line { display: inline-block; width: 42px; height: 2px; background: linear-gradient(90deg, var(--g1-orange), #ffd1bd); }
#g1KsTotal { color: #8da2b2; }
.g1-ks-controls { display: flex; align-items: center; gap: 8px; }
.g1-ks-arrow { width: 34px; height: 33px; border: 1px solid #d1e1eb; background: rgba(255,255,255,.9); color: var(--g1-blue); font-size: 19px; cursor: pointer; transition: .2s ease; }
.g1-ks-arrow:hover { color: #fff; background: var(--g1-blue); border-color: var(--g1-blue); transform: translateY(-1px); }
.g1-ks-dots { display: flex; align-items: center; gap: 5px; }
.g1-ks-dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 10px; background: #bdcdd8; cursor: pointer; transition: width .25s, background .25s; }
.g1-ks-dot.is-active { width: 21px; background: var(--g1-orange); }
.g1-ks-side {
  position: relative; overflow: hidden; min-height: 212px; padding: 22px;
  border: 1px solid rgba(201,221,233,.95); background: rgba(255,255,255,.72);
  box-shadow: 0 12px 28px rgba(32,75,105,.065);
}
.g1-ks-side:before { content: ""; position: absolute; right: -52px; top: -78px; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(44,150,155,.18); box-shadow: 0 0 0 17px rgba(44,150,155,.04), 0 0 0 36px rgba(44,150,155,.025); }
.g1-ks-side-orbit { position: absolute; border: 1px solid rgba(35,106,159,.12); border-radius: 50%; pointer-events: none; }
.g1-ks-orbit-one { width: 125px; height: 125px; right: 14px; bottom: -80px; }
.g1-ks-orbit-two { width: 85px; height: 85px; right: 34px; bottom: -60px; }
.g1-ks-side-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; }
.g1-ks-side-icon { display: grid; place-items: center; width: 39px; height: 39px; color: #fff; background: linear-gradient(135deg, var(--g1-blue), var(--g1-teal)); font-size: 20px; box-shadow: 0 6px 13px rgba(35,106,159,.2); }
.g1-ks-side-head small { display: block; color: #71899b; font-size: 9px; font-weight: 900; letter-spacing: 1px; }
.g1-ks-side-head strong { display: block; margin-top: 5px; color: var(--g1-navy); font-size: 15px; }
.g1-ks-service-list { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 21px; }
.g1-ks-service-list span { padding: 11px 10px; border: 1px solid #e0eaf0; background: rgba(248,251,253,.92); color: #3c5d78; font-size: 10px; font-weight: 800; }
.g1-ks-service-list span:before { content: "✓"; margin-right: 7px; color: var(--g1-orange); font-weight: 900; }
.g1-ks-side-footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 17px; color: #648097; font-size: 9px; font-weight: 800; }
.g1-ks-side-footer b { color: var(--g1-teal); }
.g1-ks-footer-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--g1-orange); }
.g1-ks-watermark { position: absolute; right: 12px; bottom: -13px; color: rgba(35,106,159,.045); font-size: 68px; font-weight: 950; letter-spacing: -5px; pointer-events: none; }
.g1-ks-bottom-accent { height: 4px; background: #e6eff4; }
.g1-ks-bottom-accent span { display: block; height: 100%; width: 10%; background: linear-gradient(90deg, var(--g1-orange), #ff9b6d); transition: width .35s ease; }
@keyframes g1KsEnter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1450px) {
  .g1-keyword-slider { max-width: 1480px; }
}
@media (max-width: 760px) {
  .g1-keyword-slider { width: calc(100% - 20px); max-width: 1480px; margin: 12px auto 22px; border-radius: 5px; min-height: 0; }
  .g1-ks-topline { padding: 12px 13px 0; gap: 7px; font-size: 8px; letter-spacing: 1px; flex-wrap: wrap; }
  .g1-ks-context { font-size: 7px; letter-spacing: .6px; }
  .g1-ks-live { display: none; }
  .g1-ks-layout { grid-template-columns: 1fr; gap: 12px; padding: 13px 12px 11px; }
  .g1-ks-copy { padding-left: 12px; }
  .g1-ks-kicker { font-size: 8px; padding: 6px 8px; }
  .g1-ks-heading-wrap { min-height: 80px; padding-top: 6px; }
  .g1-ks-heading { font-size: clamp(25px, 7.1vw, 34px); line-height: 1.12; letter-spacing: -.8px; }
  .g1-ks-description { margin: 7px 0 10px; font-size: 12px; line-height: 1.5; }
  .g1-ks-benefits { gap: 6px; }
  .g1-ks-benefits span { min-height: 29px; padding: 5px 7px; font-size: 9px; }
  .g1-ks-benefits b { width: 14px; height: 14px; font-size: 9px; }
  .g1-ks-bottom { margin-top: 11px; }
  .g1-ks-progress-label { font-size: 10px; gap: 6px; }
  .g1-ks-count-line { width: 25px; }
  .g1-ks-controls { gap: 5px; }
  .g1-ks-arrow { width: 29px; height: 29px; font-size: 16px; }
  .g1-ks-dots { gap: 4px; }
  .g1-ks-dot { width: 5px; height: 5px; }
  .g1-ks-dot.is-active { width: 14px; }
  .g1-ks-side { min-height: 0; padding: 12px; }
  .g1-ks-side-head { gap: 9px; }
  .g1-ks-side-icon { width: 32px; height: 32px; font-size: 16px; }
  .g1-ks-side-head small { font-size: 8px; letter-spacing: .6px; }
  .g1-ks-side-head strong { font-size: 13px; }
  .g1-ks-service-list { gap: 6px; margin-top: 11px; }
  .g1-ks-service-list span { padding: 9px 7px; font-size: 9px; }
  .g1-ks-side-footer { margin-top: 12px; font-size: 8px; gap: 5px; }
  .g1-ks-watermark { font-size: 50px; }
  }
@media (prefers-reduced-motion: reduce) {
  .g1-keyword-slider, .g1-keyword-slider *, .g1-keyword-slider *:before, .g1-keyword-slider *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* Combined image + keyword slider responsive refinements */
.g1-ks-side { display:none !important; }
.g1-ks-heading-wrap { min-height: 94px; }
.g1-ks-description { max-width: 720px; }
@media (min-width: 1200px) {
  .g1-ks-copy { width: min(72%, 930px); }
  .g1-ks-heading { font-size: clamp(32px, 3.1vw, 48px); }
}
@media (max-width: 760px) {
  .g1-keyword-slider { width: calc(100% - 16px); margin: 10px auto 20px; min-height: 0; aspect-ratio: auto; }
  .g1-keyword-slider:before { background-image: var(--g1-ks-bg-mobile); background-size: cover; background-position: right center; }
  .g1-keyword-slider:after { background: linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(250,253,255,.97) 42%, rgba(245,250,253,.88) 62%, rgba(239,247,251,.44) 82%, rgba(231,243,249,.12) 100%); }
  .g1-ks-layout { grid-template-columns: 1fr; padding: 12px 11px 12px; }
  .g1-ks-copy { width: 100%; max-width: 100%; padding-left: 11px; padding-right: 2px; }
  .g1-ks-heading-wrap { min-height: 78px; max-width: 100%; }
  .g1-ks-heading { max-width: 100%; font-size: clamp(24px, 6.6vw, 32px); line-height: 1.12; letter-spacing: -.7px; }
  .g1-ks-description { max-width: 95%; font-size: 11.5px; line-height: 1.45; }
  .g1-ks-benefits { max-width: 96%; }
  .g1-ks-bottom { max-width: 100%; }
  .g1-ks-topline { position: relative; z-index: 1; }
  .g1-ks-bottom-accent { position: relative; z-index: 1; }
}
@media (max-width: 420px) {
  .g1-keyword-slider { width: calc(100% - 12px); }
  .g1-ks-topline { padding: 10px 10px 0; gap: 6px; font-size: 7px; }
  .g1-ks-layout { padding: 10px 9px 10px; }
  .g1-ks-copy { padding-left: 9px; }
  .g1-ks-heading-wrap { min-height: 72px; }
  .g1-ks-heading { font-size: clamp(22px, 6.2vw, 27px); }
  .g1-ks-description { font-size: 10.5px; margin: 6px 0 8px; }
  .g1-ks-benefits span { font-size: 8px; padding: 4px 6px; }
  .g1-ks-controls { gap: 4px; }
  .g1-ks-arrow { width: 26px; height: 27px; }
}


/* FINAL IMAGE-LAYER FIX: keep existing artwork visible behind the keyword copy. */
.g1-keyword-slider {
  background: #edf5f9 !important;
}
.g1-keyword-slider::before {
  z-index: 0 !important;
  inset: 0 !important;
  background-image: var(--g1-ks-bg-desktop) !important;
  background-size: cover !important;
  background-position: center right !important;
  background-repeat: no-repeat !important;
  transform: none !important;
}
.g1-keyword-slider::after {
  z-index: 1 !important;
  inset: 0 !important;
  pointer-events: none !important;
}
.g1-keyword-slider > .g1-ks-topline,
.g1-keyword-slider > .g1-ks-layout,
.g1-keyword-slider > .g1-ks-bottom-accent {
  position: relative !important;
  z-index: 2 !important;
}
@media (max-width: 760px) {
  .g1-keyword-slider::before {
    background-image: var(--g1-ks-bg-mobile) !important;
    background-size: cover !important;
    background-position: right center !important;
  }
  .g1-keyword-slider::after {
    background: linear-gradient(90deg,
      rgba(255,255,255,.97) 0%,
      rgba(250,253,255,.93) 42%,
      rgba(245,250,253,.78) 62%,
      rgba(239,247,251,.38) 82%,
      rgba(231,243,249,.10) 100%) !important;
  }
}


/* FIX: use an actual picture element for reliable desktop/mobile artwork loading. */
.g1-keyword-slider { position: relative !important; isolation: isolate !important; }
.g1-keyword-slider > .g1-ks-bg-media { position: absolute !important; inset: 0 !important; z-index: 0 !important; display: block !important; width: 100% !important; height: 100% !important; overflow: hidden !important; pointer-events: none !important; }
.g1-keyword-slider > .g1-ks-bg-media img { display: block !important; width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center right !important; }
.g1-keyword-slider::before { background-image: none !important; z-index: 0 !important; }
.g1-keyword-slider::after { z-index: 1 !important; }
.g1-keyword-slider > .g1-ks-topline, .g1-keyword-slider > .g1-ks-layout, .g1-keyword-slider > .g1-ks-bottom-accent { position: relative !important; z-index: 2 !important; }
@media (max-width: 760px) {
  .g1-keyword-slider > .g1-ks-bg-media img { object-position: right center !important; }
}


/* FINAL CLARITY + PER-SLIDE IMAGE FIX (Nov 2026) */
.g1-keyword-slider::after {
  background: linear-gradient(90deg,
    rgba(255,255,255,.995) 0%,
    rgba(250,253,255,.985) 34%,
    rgba(246,251,254,.94) 47%,
    rgba(241,248,252,.72) 56%,
    rgba(238,247,251,.30) 66%,
    rgba(238,247,251,.04) 76%,
    rgba(238,247,251,0) 84%) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.g1-keyword-slider > .g1-ks-bg-media img {
  filter: none !important;
  object-fit: cover !important;
  object-position: right center !important;
}
@media (max-width: 760px) {
  .g1-keyword-slider::after {
    background: linear-gradient(90deg,
      rgba(255,255,255,.99) 0%,
      rgba(250,253,255,.96) 43%,
      rgba(245,250,253,.82) 58%,
      rgba(239,247,251,.42) 75%,
      rgba(231,243,249,.08) 100%) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .g1-keyword-slider > .g1-ks-bg-media img { object-position: right center !important; }
}
