/*
 * Homepage section titles adapted directly from !TestWebPages/title-bar.html.
 * Style 1 uses no rules from this file and remains the theme's original design.
 */
.kh-home-section-title.titlebar {
  --primary:#badff0;
  --primary-strong:#79bedd;
  --primary-dark:#527a8d;
  --primary-deep:#315365;
  --primary-soft:#e8f5fb;
  --primary-pale:#f7fcfe;
  --line:#cbe8f4;
  --line-soft:#e2f0f6;
  --shadow-soft:0 8px 24px rgba(61,101,120,.07);
  position:relative;
  width:100%;
  min-height:96px;
  display:flex;
  align-items:center;
  gap:15px;
}
.kh-home-section-title.titlebar h2 {
  position:relative;
  z-index:4;
  flex:0 0 auto;
  width:auto;
  min-height:0;
  margin:0;
  padding:0;
  display:block;
  color:#243740;
  border:0;
  background:none;
  font-family:var(--font-heading);
  font-size:clamp(18px,2vw,23px);
  line-height:1.45;
  font-weight:800;
  text-align:inherit;
  white-space:nowrap;
  filter:none;
  transform:none;
}
.kh-home-section-title.titlebar .tb-icon {
  position:relative;
  z-index:4;
  display:grid;
  place-items:center;
  color:var(--primary-strong);
  font-size:17px;
}
.kh-home-section-title.titlebar .tb-sub {
  display:block;
  color:var(--primary-dark);
  font-size:8px;
  letter-spacing:.2px;
  font-weight:800;
}
html[lang^="en"] .kh-home-section-title.titlebar .tb-sub {
  font-family:"Inter",Arial,sans-serif;
  letter-spacing:1.35px;
  direction:ltr;
}
.kh-home-section-title.titlebar .tb-line,
.kh-home-section-title.titlebar .tb-fade-line {
  display:block;
  min-width:18px;
  height:1px;
}
.kh-home-section-title.titlebar .tb-line.main,
.kh-home-section-title.titlebar .tb-fade-line { flex:1 1 auto; }
.kh-home-section-title.titlebar .tb-line.short {
  flex:0 0 50px;
  height:3px;
  border-radius:999px;
  background:var(--primary-strong);
}
.kh-home-section-title.titlebar .tb-title-text {
  position:relative;
  z-index:4;
}

/* Source 03 — Glass Capsule Line. */
.kh-home-section-title.tb-03 .tb-title-wrap {
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 16px;
  border:1px solid rgba(255,255,255,.82);
  border-radius:18px;
  background:rgba(255,255,255,.60);
  box-shadow:0 10px 25px rgba(61,101,120,.08);
  backdrop-filter:blur(10px);
}
.kh-home-section-title.tb-03 .tb-icon {
  width:39px;
  height:39px;
  color:#fff;
  border-radius:12px;
  background:var(--primary-strong);
}
.kh-home-section-title.tb-03-fa .tb-fade-line {
  background:linear-gradient(to left,var(--primary) 0%,rgba(121,190,221,.58) 45%,transparent 100%);
}
.kh-home-section-title.tb-03-en .tb-fade-line {
  background:linear-gradient(to right,var(--primary) 0%,rgba(121,190,221,.58) 45%,transparent 100%);
}

/* Source 05 — Framed Title. */
.kh-home-section-title.tb-05 .tb-title-wrap {
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 16px;
  border:1px solid var(--primary);
  border-radius:5px 16px 5px 16px;
  background:#fff;
}
.kh-home-section-title.tb-05 .tb-icon {
  width:32px;
  height:32px;
  color:#fff;
  border-radius:9px;
  background:var(--primary-strong);
}
.kh-home-section-title.tb-05 .tb-line.main { background:var(--primary); }
.kh-home-section-title.tb-05-fa .tb-title-wrap {
  flex-direction:row;
  text-align:right;
  border-radius:16px 5px 16px 5px;
}
.kh-home-section-title.tb-05-en .tb-title-wrap {
  flex-direction:row;
  text-align:left;
  border-radius:5px 16px 5px 16px;
}

/* Source 08 — Dotted Minimal. */
.kh-home-section-title.tb-08 .tb-dots {
  flex:0 0 92px;
  height:35px;
  background-image:radial-gradient(circle,var(--primary) 1.5px,transparent 1.6px);
  background-size:10px 10px;
  opacity:.72;
}
.kh-home-section-title.tb-08 .tb-title-wrap {
  flex:0 0 auto;
  text-align:center;
}
.kh-home-section-title.tb-08-fa .tb-fade-line {
  background:linear-gradient(to left,var(--primary) 0%,transparent 100%);
}
.kh-home-section-title.tb-08-en .tb-fade-line {
  background:linear-gradient(to right,var(--primary) 0%,transparent 100%);
}

/* Source 09 — Folder Tab. */
.kh-home-section-title.tb-09 .tb-title-wrap {
  position:relative;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 18px 12px;
  border:1px solid var(--line);
  background:#fff;
}
.kh-home-section-title.tb-09 .tb-icon {
  width:32px;
  height:32px;
  color:#fff;
  border-radius:9px;
  background:var(--primary-strong);
}
.kh-home-section-title.tb-09-fa .tb-title-wrap { border-radius:0 13px 13px 13px; }
.kh-home-section-title.tb-09-en .tb-title-wrap { border-radius:13px 0 13px 13px; }
.kh-home-section-title.tb-09 .tb-tab {
  position:absolute;
  bottom:100%;
  width:65px;
  height:13px;
  background:var(--primary-soft);
}
.kh-home-section-title.tb-09-fa .tb-tab {
  right:0;
  border-radius:9px 9px 0 0;
}
.kh-home-section-title.tb-09-en .tb-tab {
  left:0;
  border-radius:9px 9px 0 0;
}
.kh-home-section-title.tb-09-fa .tb-fade-line {
  background:linear-gradient(to left,var(--primary) 0%,transparent 100%);
}
.kh-home-section-title.tb-09-en .tb-fade-line {
  background:linear-gradient(to right,var(--primary) 0%,transparent 100%);
}

/* Source 13 — Layered Title. */
.kh-home-section-title.tb-13 .tb-title-wrap {
  position:relative;
  flex:0 0 auto;
  padding:12px 22px;
}
.kh-home-section-title.tb-13 .tb-title-wrap::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
}
.kh-home-section-title.tb-13 .tb-layer {
  position:absolute;
  inset:4px -4px -4px 4px;
  z-index:1;
  border-radius:10px;
  background:rgba(186,223,240,.36);
}
.kh-home-section-title.tb-13 .tb-layer.second {
  inset:-4px 4px 4px -4px;
  background:rgba(121,190,221,.15);
}
.kh-home-section-title.tb-13 .tb-icon {
  flex:0 0 40px;
  width:40px;
  height:40px;
  color:#fff;
  border-radius:12px;
  background:var(--primary-strong);
}
.kh-home-section-title.tb-13-fa .tb-fade-line {
  background:linear-gradient(to left,var(--primary) 0%,transparent 100%);
}
.kh-home-section-title.tb-13-en .tb-fade-line {
  background:linear-gradient(to right,var(--primary) 0%,transparent 100%);
}
.kh-home-section-title.tb-13-fa .tb-layer { inset:4px -4px -4px 4px; }
.kh-home-section-title.tb-13-fa .tb-layer.second { inset:-4px 4px 4px -4px; }
.kh-home-section-title.tb-13-en .tb-layer { inset:4px 4px -4px -4px; }
.kh-home-section-title.tb-13-en .tb-layer.second { inset:-4px -4px 4px 4px; }

/* Source 18 — Miniature Card. */
.kh-home-section-title.tb-18 .tb-title-wrap {
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:11px;
  padding:10px 15px;
  border:1px solid var(--line-soft);
  border-radius:15px;
  background:#fff;
  box-shadow:var(--shadow-soft);
}
.kh-home-section-title.tb-18 .tb-icon {
  width:39px;
  height:39px;
  color:#fff;
  border-radius:11px;
  background:var(--primary-strong);
}
.kh-home-section-title.tb-18 .tb-line.main { background:var(--primary); }
.kh-home-section-title.tb-18-fa .tb-title-wrap {
  flex-direction:row;
  text-align:right;
}
.kh-home-section-title.tb-18-en .tb-title-wrap {
  flex-direction:row;
  text-align:left;
}

/* Source 20 — Professional Featured. */
.kh-home-section-title.tb-20 .tb-title-wrap {
  position:relative;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 18px;
  border:1px solid rgba(186,223,240,.70);
  background:linear-gradient(135deg,#fff,var(--primary-pale));
  box-shadow:0 12px 28px rgba(61,101,120,.11);
}
.kh-home-section-title.tb-20-fa .tb-title-wrap {
  flex-direction:row;
  text-align:right;
  border-radius:8px 20px 8px 20px;
}
.kh-home-section-title.tb-20-en .tb-title-wrap {
  flex-direction:row;
  text-align:left;
  border-radius:20px 8px 20px 8px;
}
.kh-home-section-title.tb-20 .tb-line.main { background:var(--primary); }
.kh-home-section-title.tb-20 .tb-icon {
  width:42px;
  height:42px;
  color:#fff;
  background:linear-gradient(135deg,var(--primary),var(--primary-strong));
}
.kh-home-section-title.tb-20-fa .tb-icon { border-radius:5px 13px 5px 13px; }
.kh-home-section-title.tb-20-en .tb-icon { border-radius:13px 5px 13px 5px; }
.kh-home-section-title.tb-20 .tb-orbit {
  position:absolute;
  z-index:1;
  width:66px;
  height:66px;
  border:1px solid rgba(186,223,240,.70);
  border-radius:50%;
}
.kh-home-section-title.tb-20-fa .tb-orbit { right:-10px; }
.kh-home-section-title.tb-20-en .tb-orbit { left:-10px; }
.kh-home-section-title.tb-20 .tb-orbit::after {
  content:"";
  position:absolute;
  top:5px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--primary-strong);
}
.kh-home-section-title.tb-20-fa .tb-orbit::after { right:12px; }
.kh-home-section-title.tb-20-en .tb-orbit::after { left:12px; }

/* Keep the existing "view all" action separate from the source title itself. */
.kh-home-section-title.titlebar .kh-section-heading__action { position:relative;z-index:6; }

/*
 * front.css mirrors the original brush heading in English and mirrors its
 * inner span back. Source title-bars do not use that nested span, so the
 * inherited scaleX(-1) would mirror the actual English letters.
 */
html[lang^="en"] .kh-section-heading.kh-home-section-title.titlebar h2,
html[lang^="en"] .kh-section-heading.kh-home-section-title.titlebar h2 span {
  padding:0;
  direction:ltr;
  text-align:left;
  unicode-bidi:isolate;
  transform:none;
}
html[lang^="en"] .kh-section-heading.kh-home-section-title.titlebar .tb-sub,
html[lang^="en"] .kh-section-heading.kh-home-section-title.titlebar .copy,
html[lang^="en"] .kh-section-heading.kh-home-section-title.titlebar .copy small {
  direction:ltr;
  text-align:left;
  unicode-bidi:isolate;
  transform:none;
}

/* The 25 free-form title bars from !TestWebPages/title-bar.html. */
.kh-home-section-title.prof-new-titlebar{
  --primary:#BADFF0;--strong:#7DBDD9;--dark:#557A8C;--deep:#315465;--pale:#F7FCFE;
  position:relative;width:100%;min-height:84px;display:flex;align-items:center;gap:13px;overflow:hidden
}
.kh-home-section-title.prof-new-titlebar[dir="ltr"]{direction:ltr;text-align:left}
.kh-home-section-title.prof-new-titlebar[dir="rtl"]{direction:rtl;text-align:right}
.kh-home-section-title.prof-new-titlebar h2{position:relative;z-index:5;display:block;flex:0 0 auto;width:auto;min-height:0;margin:0;padding:0;color:#21343D;border:0;background:none;font-family:var(--font-heading);font-size:clamp(20px,2.3vw,28px);line-height:1.4;font-weight:900;text-align:start;white-space:nowrap;filter:none;transform:none;direction:inherit;unicode-bidi:plaintext}
.kh-home-section-title.prof-new-titlebar .copy{position:relative;z-index:5;flex:0 0 auto;text-align:start}
.kh-home-section-title.prof-new-titlebar .copy small{display:block;color:var(--dark);font-family:"Inter",Arial,sans-serif;font-size:8px;letter-spacing:1.55px;direction:ltr;text-align:left;font-weight:800}
.kh-home-section-title.prof-new-titlebar .icon{position:relative;z-index:5;flex:0 0 auto;color:var(--strong);font-size:19px}
.kh-home-section-title.prof-new-titlebar .big-no{display:none;position:relative;z-index:2;color:rgba(85,122,140,.13);font-family:"Inter",Arial,sans-serif;font-size:48px;line-height:1;font-weight:800}
.kh-home-section-title.prof-new-titlebar .line{display:block;position:relative;z-index:2;height:1px}
.kh-home-section-title.prof-new-titlebar .line.a{flex:1;background:linear-gradient(to left,var(--strong),rgba(186,223,240,.52),transparent)}
.kh-home-section-title.prof-new-titlebar[dir="ltr"] .line.a{background:linear-gradient(to right,var(--strong),rgba(186,223,240,.52),transparent)}
.kh-home-section-title.prof-new-titlebar .line.b,.kh-home-section-title.prof-new-titlebar .dots,.kh-home-section-title.prof-new-titlebar .shape{display:none;position:relative;z-index:2}
.kh-home-section-title.tb-new-01 .copy:before{content:"";position:absolute;z-index:-1;right:-12px;left:-10px;bottom:3px;height:38%;background:rgba(186,223,240,.58);clip-path:polygon(0 30%,14% 8%,38% 20%,60% 4%,100% 22%,94% 82%,62% 72%,32% 92%,0 78%)}
.kh-home-section-title.tb-new-02 .copy:before{content:"";position:absolute;z-index:-1;inset:7px -18px 3px;background:rgba(186,223,240,.58);clip-path:polygon(0 27%,18% 5%,38% 17%,59% 0,78% 13%,100% 4%,94% 85%,74% 70%,46% 91%,20% 78%,0 89%);transform:rotate(-1.7deg)}
.kh-home-section-title.tb-new-03 .dots,.kh-home-section-title.tb-new-08 .dots{display:block;flex:0 0 82px;height:36px;background-image:radial-gradient(circle,var(--strong) 1.6px,transparent 1.7px);background-size:10px 10px;opacity:.68}
.kh-home-section-title.tb-new-04 .line.a,.kh-home-section-title.tb-new-10 .line.a,.kh-home-section-title.tb-new-15 .line.a{height:22px;background:linear-gradient(var(--strong),var(--strong)) 0 50%/80% 1px no-repeat,linear-gradient(var(--strong),var(--strong)) 80% 50%/1px 50% no-repeat,linear-gradient(var(--strong),var(--strong)) 80% 100%/20% 1px no-repeat}
.kh-home-section-title.tb-new-04[dir="ltr"] .line.a,.kh-home-section-title.tb-new-10[dir="ltr"] .line.a,.kh-home-section-title.tb-new-15[dir="ltr"] .line.a{transform:scaleX(-1)}
.kh-home-section-title.tb-new-05 .big-no,.kh-home-section-title.tb-new-15 .big-no{display:block}.kh-home-section-title.tb-new-05 .line.a{height:3px;border-radius:999px}
.kh-home-section-title.tb-new-06 .s1{display:block;position:absolute;right:0;left:0;top:47%;height:24px;background:radial-gradient(70% 20px at 50% 0,transparent 65%,var(--strong) 67%,transparent 72%);opacity:.72}.kh-home-section-title.tb-new-06 .line.a{opacity:0}
.kh-home-section-title.tb-new-07,.kh-home-section-title.tb-new-20,.kh-home-section-title.tb-new-25{justify-content:center}.kh-home-section-title.tb-new-07 .line.a,.kh-home-section-title.tb-new-07 .line.b,.kh-home-section-title.tb-new-20 .line.a,.kh-home-section-title.tb-new-20 .line.b,.kh-home-section-title.tb-new-25 .line.a,.kh-home-section-title.tb-new-25 .line.b{display:block;flex:1;background:linear-gradient(to left,transparent,var(--strong))}.kh-home-section-title.tb-new-07 .line.b,.kh-home-section-title.tb-new-20 .line.b,.kh-home-section-title.tb-new-25 .line.b{background:linear-gradient(to right,transparent,var(--strong))}.kh-home-section-title.tb-new-07 .icon{width:43px;height:43px;display:grid;place-items:center;border:1px solid var(--primary);border-radius:50%;background:#fff;box-shadow:0 0 0 7px var(--pale)}
.kh-home-section-title.tb-new-08 .dots{flex-basis:92px}.kh-home-section-title.tb-new-08 .copy{text-align:center}
.kh-home-section-title.tb-new-09 .copy:before{content:"";position:absolute;inset-inline-start:0;bottom:calc(100% + 5px);width:62px;height:10px;border-radius:7px 7px 0 0;background:var(--primary)}.kh-home-section-title.tb-new-09 .copy:after{content:"";position:absolute;right:0;left:0;bottom:-7px;height:1px;background:var(--primary)}
.kh-home-section-title.tb-new-10 .copy:after{content:"";display:block;width:42px;height:3px;margin-top:5px;border-radius:999px;background:var(--strong)}
.kh-home-section-title.tb-new-11 .copy:before{content:"";position:absolute;z-index:-1;inset:5px -17px 4px;background:rgba(186,223,240,.58);clip-path:polygon(0 28%,15% 5%,38% 16%,55% 0,76% 14%,100% 4%,94% 86%,72% 70%,47% 92%,20% 76%,0 88%);transform:rotate(-1.3deg)}
.kh-home-section-title.tb-new-12 .line.a{height:7px;background:linear-gradient(to left,var(--strong),transparent) 0 0/100% 1px no-repeat,linear-gradient(to left,rgba(125,189,217,.42),transparent) 0 3px/72% 1px no-repeat,linear-gradient(to left,rgba(125,189,217,.22),transparent) 0 6px/46% 1px no-repeat}.kh-home-section-title.tb-new-12[dir="ltr"] .line.a{transform:scaleX(-1)}
.kh-home-section-title.tb-new-13 .s1,.kh-home-section-title.tb-new-13 .s2{display:block;position:absolute;width:125px;height:28px;inset-inline-start:118px;border-radius:50%;background:rgba(186,223,240,.45);transform:rotate(-4deg)}.kh-home-section-title.tb-new-13 .s2{inset-inline-start:135px;background:rgba(125,189,217,.16);transform:rotate(4deg)}
.kh-home-section-title.tb-new-14 .icon{font-size:29px;color:rgba(85,122,140,.22)}.kh-home-section-title.tb-new-14 .copy:after{content:"”";position:absolute;inset-inline-end:-18px;top:-17px;color:rgba(125,189,217,.24);font-size:48px;font-weight:900}
.kh-home-section-title.tb-new-16 .dots{display:block;width:64px;height:64px;border:1px solid var(--primary);border-radius:50%;box-shadow:inset 0 0 0 8px var(--pale)}
.kh-home-section-title.tb-new-17 .line.a{height:2px}.kh-home-section-title.tb-new-17 .line.a:before{content:"";position:absolute;inset-inline-end:0;top:-4px;border:5px solid transparent;border-inline-start-color:var(--strong)}
.kh-home-section-title.tb-new-18 .icon{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--primary);border-radius:50% 50% 50% 7px;background:var(--pale)}.kh-home-section-title.tb-new-18[dir="ltr"] .icon{border-radius:50% 50% 7px 50%}
.kh-home-section-title.tb-new-19 .s1{display:block;width:105px;height:14px;background:linear-gradient(135deg,transparent 42%,var(--strong) 43% 57%,transparent 58%) 0 0/14px 14px repeat-x}
.kh-home-section-title.tb-new-20 .s1{display:block;position:absolute;right:calc(50% - 34px);width:68px;height:68px;border:1px solid rgba(125,189,217,.42);border-radius:50%}.kh-home-section-title.tb-new-20 .s1:after{content:"";position:absolute;right:9px;top:6px;width:7px;height:7px;border-radius:50%;background:var(--strong)}
.kh-home-section-title.tb-new-21 .s1,.kh-home-section-title.tb-new-21 .s2{display:block;position:absolute;right:0;left:0;height:18px;background:radial-gradient(72% 18px at 50% 0,transparent 65%,var(--strong) 67%,transparent 72%);opacity:.52}.kh-home-section-title.tb-new-21 .s2{top:58%;opacity:.24}.kh-home-section-title.tb-new-21 .line.a{opacity:0}
.kh-home-section-title.tb-new-22 .line.a:before{content:"";position:absolute;inset-inline-start:20%;top:-5px;width:11px;height:11px;border:2px solid var(--strong);border-radius:50%;background:#fff}.kh-home-section-title.tb-new-22 .line.a:after{content:"";position:absolute;inset-inline-start:55%;top:-4px;width:9px;height:9px;border-radius:50%;background:var(--strong)}
.kh-home-section-title.tb-new-23 .icon{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--primary);border-radius:13px 4px 13px 4px;background:var(--pale)}.kh-home-section-title.tb-new-23[dir="ltr"] .icon{border-radius:4px 13px 4px 13px}.kh-home-section-title.tb-new-23 .line.a{height:5px;background:linear-gradient(to left,var(--strong),transparent) 0 0/100% 1px no-repeat,linear-gradient(to left,rgba(125,189,217,.28),transparent) 0 4px/62% 1px no-repeat}.kh-home-section-title.tb-new-23[dir="ltr"] .line.a{transform:scaleX(-1)}
.kh-home-section-title.tb-new-24 .dots{display:block;flex:0 0 110px;height:46px;background-image:radial-gradient(circle,var(--strong) 1.4px,transparent 1.5px);background-size:11px 11px;opacity:.56;mask-image:linear-gradient(to left,#000,transparent)}.kh-home-section-title.tb-new-24[dir="ltr"] .dots{mask-image:linear-gradient(to right,#000,transparent)}
.kh-home-section-title.tb-new-25 .line.a,.kh-home-section-title.tb-new-25 .line.b{height:2px}.kh-home-section-title.tb-new-25 .copy:before{content:"";position:absolute;z-index:-1;inset:5px -19px 3px;background:rgba(186,223,240,.55);clip-path:polygon(0 23%,14% 6%,34% 16%,56% 0,80% 14%,100% 4%,95% 86%,71% 71%,47% 92%,22% 77%,0 88%);transform:rotate(-1.2deg)}.kh-home-section-title.tb-new-25 .icon{color:var(--deep)}
.kh-home-section-title.prof-new-titlebar .kh-section-heading__action{position:relative;z-index:6;flex:0 0 auto}

@media(max-width:680px) {
  .kh-home-section-title.titlebar {
    min-height:78px;
    gap:8px;
    flex-wrap:wrap;
  }
  .kh-home-section-title.titlebar h2 {
    max-width:min(230px,58vw);
    font-size:17px;
    white-space:normal;
  }
  .kh-home-section-title.titlebar .tb-line.short { flex-basis:20px; }
  .kh-home-section-title.tb-08 .tb-dots { flex-basis:48px; }
  .kh-home-section-title.titlebar .kh-section-heading__action { margin-right:auto; }
  .kh-home-section-title.prof-new-titlebar{gap:8px;min-height:76px}
  .kh-home-section-title.prof-new-titlebar h2{max-width:min(230px,58vw);font-size:17px;white-space:normal}
  .kh-home-section-title.prof-new-titlebar .copy small{font-size:6.8px}
  .kh-home-section-title.prof-new-titlebar .icon{font-size:16px}
  .kh-home-section-title.prof-new-titlebar .big-no{font-size:38px}
  .kh-home-section-title.tb-new-03 .dots,.kh-home-section-title.tb-new-08 .dots{flex-basis:50px}
  .kh-home-section-title.tb-new-24 .dots{flex-basis:64px}
}
