/* Bootstrap 5.3.3 product topics. Shared shell, product cards and contact form stay reusable. */
.topic-page {
  --topic-border: rgba(9,85,173,.12);
  --topic-muted: #596575;
  --topic-paper: #f4f7fb;
  --topic-sticky-top: 170px;
  color: var(--keda-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.8;
}
.topic-page *, .topic-page *::before, .topic-page *::after { box-sizing: border-box; }
.topic-container { width: 100%; max-width: 1280px; padding-right: 32px; padding-left: 32px; }
.topic-page a { text-underline-offset: 4px; }
.topic-page a:focus-visible, .topic-page button:focus-visible { outline: 3px solid var(--keda-orange); outline-offset: 5px; }
.topic-page img { max-width: 100%; }
.topic-hero { position: relative; overflow: hidden; padding: 64px 0 72px; border-bottom: 1px solid var(--topic-border); background: linear-gradient(115deg,#fff 20%,#f4f7fb 100%); }
.topic-hero::before { position: absolute; right: -120px; top: -280px; width: 720px; height: 720px; border: 1px solid rgba(9,85,173,.07); border-radius: 50%; content: ''; pointer-events: none; }
.topic-hero .row { position: relative; --bs-gutter-x: 72px; }
.topic-hero-copy { padding-top: 12px; padding-bottom: 12px; }
.topic-hero h1 { max-width: 680px; margin: 0 0 24px; color: var(--keda-blue); font-size: clamp(38px,3.5vw,52px); font-weight: 700; line-height: 1.13; letter-spacing: -1.6px; }
.topic-title-tail { white-space: nowrap; }
.topic-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--keda-blue); font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: 3px; }
.topic-brand::before { width: 32px; height: 3px; border-radius: 2px; background: var(--keda-orange); content: ''; }
.topic-hero-description { max-width: 630px; margin: 0; color: var(--topic-muted); font-size: 18px; line-height: 1.85; }
.topic-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 30px; }
.topic-primary-link.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 54px; padding: 14px 22px; border: 1px solid var(--keda-blue); border-radius: 10px; background: var(--keda-blue); color: #fff; font-size: 17px; font-weight: 700; line-height: 1.4; box-shadow: 0 8px 20px rgba(9,85,173,.12); }
.topic-primary-link.btn:hover { border-color: var(--keda-blue); background: var(--keda-blue); color: #fff; box-shadow: 0 12px 28px rgba(9,85,173,.2); }
.topic-primary-link span { color: #fff; font-size: 24px; line-height: 1; }
.topic-secondary-link { display: inline-flex; align-items: center; gap: 20px; padding: 9px 0; border-bottom: 1px solid rgba(9,85,173,.25); color: var(--keda-blue); font-size: 17px; font-weight: 700; text-decoration: none; }
.topic-secondary-link span { color: var(--keda-orange); }
.topic-secondary-link:hover { border-bottom-color: var(--keda-orange); color: var(--keda-blue); }
.topic-hero-visual { position: relative; isolation: isolate; max-width: 460px; margin: 0 auto; padding: 15px; border: 1px solid rgba(9,85,173,.12); border-radius: 30px 30px 80px 30px; background: rgba(9,85,173,.045); }
.topic-hero-visual::after { position: absolute; inset: 24px -14px -14px 24px; z-index: -1; border: 1px solid rgba(9,85,173,.15); border-radius: inherit; content: ''; }
.topic-hero-image { overflow: hidden; aspect-ratio: 1; padding: 22px; border: 1px solid rgba(9,85,173,.08); border-radius: 20px 20px 66px 20px; background: #fff; box-shadow: 0 24px 50px rgba(9,85,173,.07); }
.topic-hero-image img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.topic-hero-detail { position: absolute; right: 28px; bottom: -8px; width: 64px; height: 8px; border-radius: 6px; background: var(--keda-orange); }
.topic-page--reactor .topic-hero-visual { border-radius: 100px 28px 28px; }
.topic-page--reactor .topic-hero-image { border-radius: 86px 18px 18px; }
.topic-page--rotary .topic-hero-visual { border-radius: 30px 90px 30px 30px; }
.topic-page--rotary .topic-hero-image { border-radius: 20px 76px 20px 20px; }
.topic-page--rotary .topic-hero-detail { right: auto; left: 28px; }
.topic-models, .topic-related, .topic-guide { padding: 72px 0; }
.topic-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.topic-section-heading h2 { position: relative; max-width: 940px; margin: 0; padding-top: 22px; color: var(--keda-blue); font-size: clamp(28px,2.5vw,36px); font-weight: 700; line-height: 1.25; letter-spacing: -.6px; }
.topic-section-heading h2::before { position: absolute; top: 0; left: 0; width: 44px; height: 4px; border-radius: 4px; background: var(--keda-orange); content: ''; }
.topic-section-link { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 14px; padding: 6px 0; color: var(--keda-blue); font-size: 17px; font-weight: 600; text-decoration: none; }
.topic-section-link span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--topic-border); border-radius: 50%; color: var(--keda-orange); }
.topic-section-link:hover { color: var(--keda-orange); }
.topic-page .product-grid { margin-bottom: 0; }
.topic-page .product-grid > li { display: flex; }
.topic-page .product-card { width: 100%; }
.topic-applications { padding: 72px 0; background: var(--topic-paper); }
.topic-application-grid { margin-bottom: 0; padding-left: 0; list-style: none; counter-reset: applications; }
.topic-application-grid > li { counter-increment: applications; }
.topic-application-card.card { position: relative; display: flex; overflow: hidden; border: 1px solid var(--topic-border); border-radius: 20px; background: #fff; box-shadow: 0 8px 24px rgba(9,85,173,.025); }
.topic-application-media { order: -1; overflow: hidden; aspect-ratio: 16/10; padding: 18px; border-bottom: 1px solid var(--topic-border); background: #fff; }
.topic-application-media img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.topic-application-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 28px 32px 30px; }
.topic-application-copy::before { margin-bottom: 13px; color: var(--keda-orange); font-size: 15px; font-weight: 700; letter-spacing: 2px; line-height: 1.2; content: '0' counter(applications); }
.topic-application-copy h3 { margin: 0 0 14px; color: var(--keda-blue); font-size: 26px; font-weight: 700; line-height: 1.3; letter-spacing: -.3px; }
.topic-application-copy p { margin: 0 0 24px; color: var(--topic-muted); font-size: 18px; line-height: 1.8; }
.topic-text-link { display: inline-flex; align-items: center; gap: 20px; margin-top: auto; padding: 0 0 4px; border-bottom: 1px solid rgba(9,85,173,.18); color: var(--keda-blue); font-size: 17px; font-weight: 700; text-decoration: none; }
.topic-text-link::after { color: var(--keda-orange); font-size: 22px; line-height: 1; content: '↗'; }
.topic-text-link:hover { color: var(--keda-blue); border-color: var(--keda-orange); }
.topic-related { border-bottom: 1px solid var(--topic-border); }
.topic-guide { background: var(--topic-paper); }
.topic-guide-sidebar { position: sticky; top: var(--topic-sticky-top); }
.topic-contents { padding: 14px; border: 1px solid var(--topic-border); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(9,85,173,.025); }
.topic-contents-list { max-height: min(660px,calc(100vh - var(--topic-sticky-top) - 50px)); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0 8px 0 0; list-style: none; counter-reset: contents; scrollbar-width: thin; scrollbar-color: rgba(9,85,173,.22) transparent; }
.topic-contents-list li { margin: 0; padding: 0; counter-increment: contents; }
.topic-contents-list li + li { border-top: 1px solid #f0f3f7; }
.topic-contents-list a { display: flex; align-items: baseline; gap: 10px; padding: 13px 10px; border-radius: 8px; color: var(--topic-muted); font-size: 16px; line-height: 1.6; text-decoration: none; }
.topic-contents-list a::before { flex: 0 0 22px; color: var(--keda-blue); font-size: 12px; font-weight: 700; content: counter(contents,decimal-leading-zero); }
.topic-contents-list a:hover, .topic-contents-list a[aria-current="location"] { background: rgba(9,85,173,.055); color: var(--keda-blue); }
.topic-contents-list a[aria-current="location"] { box-shadow: inset 3px 0 var(--keda-orange); }
.topic-guide-content { overflow: hidden; border: 1px solid var(--topic-border); border-radius: 20px; background: #fff; counter-reset: questions; }
.topic-question { min-width: 0; padding: 32px 36px; counter-increment: questions; }
.topic-question + .topic-question { border-top: 1px solid var(--topic-border); }
.topic-question-heading { position: relative; margin: 0 0 18px; padding-left: 50px; color: var(--keda-blue); font-size: 25px; font-weight: 700; line-height: 1.45; letter-spacing: -.3px; }
.topic-question-heading::before { position: absolute; top: 2px; left: 0; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(9,85,173,.1); border-radius: 10px; background: rgba(9,85,173,.04); color: var(--keda-blue); font-size: 13px; letter-spacing: 0; content: counter(questions,decimal-leading-zero); }
.topic-question p { margin: 0 0 18px; color: var(--topic-muted); font-size: 18px; line-height: 1.9; overflow-wrap: break-word; }
.topic-question > :last-child { margin-bottom: 0; }
.topic-question a { color: var(--keda-blue); }
.topic-question a:hover { color: var(--keda-orange); }
.topic-question h3[id], .topic-models, .topic-applications, .topic-guide { scroll-margin-top: calc(var(--topic-sticky-top) + 20px); }
.topic-guide-figure { display: flex; justify-content: center; margin: 24px 0 0; padding: 16px; border: 1px solid var(--topic-border); border-radius: 14px; background: #fff; }
.topic-guide-figure img { display: block; width: auto; height: auto; max-width: 100%; max-height: 660px; object-fit: contain; }
.topic-contents-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px; border: 0; background: #fff; color: var(--keda-blue); font-family: inherit; font-size: 18px; font-weight: 700; text-align: left; }
.topic-contents-toggle span { color: var(--keda-orange); font-size: 24px; }
.topic-contents-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.topic-confidence { padding: 20px 0 72px; background: var(--topic-paper); }
.topic-confidence-card { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.5fr); gap: 48px; padding: 40px 44px; border: 1px solid var(--keda-blue); border-radius: 20px; background: var(--keda-blue); color: #fff; }
.topic-confidence-heading h2 { margin: 0 0 16px; color: #fff; font-size: 32px; font-weight: 700; line-height: 1.2; }
.topic-confidence-heading p { margin: 0; color: #fff; font-size: 18px; line-height: 1.7; }
.topic-confidence ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 28px; align-content: center; margin: 0; padding: 0; list-style: none; }
.topic-confidence li { position: relative; margin: 0; padding-left: 18px; color: #fff; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.topic-confidence li::before { position: absolute; top: 10px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--keda-orange); content: ''; }
.topic-confidence li:nth-last-child(-n+2) { padding-top: 17px; border-top: 1px solid rgba(255,255,255,.25); }
.topic-confidence li:nth-last-child(-n+2)::before { top: 27px; }
.topic-confidence a { color: #fff; text-decoration: none; }
.topic-confidence a:hover { text-decoration: underline; }
.topic-confidence .icon-whatsapp, .topic-confidence .icon-envelope-o { margin-right: 7px; }
.topic-contact { scroll-margin-top: 170px; }
@media(hover:hover) and (prefers-reduced-motion:no-preference) { .topic-application-card:hover .topic-application-media img { transform: scale(1.025); } }
@media(min-width:1600px) { .topic-hero { padding-top: 78px; padding-bottom: 86px; } }
@media(max-width:1199.98px) {
  .topic-hero .row { --bs-gutter-x: 42px; }
  .topic-hero h1 { font-size: 42px; }
  .topic-hero-image { padding: 12px; }
  .topic-question { padding: 28px; }
  .topic-confidence-card { gap: 32px; padding: 32px; }
}
@media(max-width:991.98px) {
  .topic-container { padding-right: 24px; padding-left: 24px; }
  .topic-hero { padding: 44px 0 56px; }
  .topic-hero .row { --bs-gutter-y: 42px; }
  .topic-hero-copy { padding-top: 0; padding-bottom: 0; }
  .topic-hero h1 { max-width: 680px; font-size: 44px; }
  .topic-hero-description { max-width: none; }
  .topic-hero-visual { max-width: 400px; }
  .topic-models, .topic-related, .topic-guide, .topic-applications { padding: 52px 0; }
  .topic-guide-sidebar { position: static; }
  .topic-contents { padding: 6px; }
  .topic-contents-list { max-height: 370px; padding: 0 8px; }
  .topic-contents-list a { font-size: 16px; }
  .topic-application-copy { padding: 24px; }
  .topic-application-copy h3 { font-size: 24px; }
  .topic-confidence { padding-bottom: 52px; }
  .topic-confidence-card { grid-template-columns: 1fr; gap: 28px; }
  .topic-confidence ul { gap: 18px 28px; }
  .topic-contact { scroll-margin-top: 110px; }
}
@media(max-width:575.98px) {
  .topic-container { padding-right: 18px; padding-left: 18px; }
  .topic-hero { padding: 32px 0 40px; }
  .topic-hero .row { --bs-gutter-x: 24px; --bs-gutter-y: 32px; }
  .topic-hero h1 { margin-bottom: 20px; font-size: 36px; line-height: 1.16; letter-spacing: -1px; }
  .topic-brand { margin-bottom: 18px; font-size: 15px; }
  .topic-hero-description { font-size: 17px; line-height: 1.85; }
  .topic-hero-actions { gap: 22px; margin-top: 24px; }
  .topic-primary-link.btn { min-height: 52px; padding: 13px 17px; gap: 20px; font-size: 16px; }
  .topic-secondary-link { gap: 10px; font-size: 16px; }
  .topic-hero-visual { max-width: 340px; padding: 10px; }
  .topic-hero-visual::after { inset: 18px -5px -10px 18px; }
  .topic-hero-image { padding: 18px; }
  .topic-models, .topic-related, .topic-guide, .topic-applications { padding: 40px 0; }
  .topic-section-heading { gap: 16px; margin-bottom: 24px; }
  .topic-section-heading h2 { font-size: 28px; line-height: 1.3; }
  .topic-section-link { gap: 8px; font-size: 16px; }
  .topic-section-link span { width: 26px; height: 26px; }
  .topic-application-media { aspect-ratio: 16/9; }
  .topic-application-copy { padding: 24px; }
  .topic-application-copy h3 { font-size: 24px; }
  .topic-application-copy p { font-size: 17px; }
  .topic-question { padding: 24px 20px; }
  .topic-question-heading { padding-left: 0; font-size: 23px; line-height: 1.45; }
  .topic-question-heading::before { position: static; margin-bottom: 14px; }
  .topic-question p { font-size: 17px; line-height: 1.9; }
  .topic-guide-figure { padding: 10px; border-radius: 10px; }
  .topic-confidence { padding: 0 0 40px; }
  .topic-confidence-card { padding: 28px 24px; border-radius: 16px; }
  .topic-confidence-heading h2 { font-size: 28px; }
  .topic-confidence ul { grid-template-columns: 1fr; gap: 16px; }
  .topic-confidence li { font-size: 17px; }
}
@media(prefers-reduced-motion:reduce) { .topic-application-media img { transition: none; } }
