/*
 * Katalon Certification Hall of Fame: shared pieces and the promotion spots around Academy.
 * docs/hall-of-fame/PROMO_SECTIONS_REQUIREMENTS.md. Loaded with ktl_hof_promo_css() on the
 * Hall of Fame page, /certifications/, the 5 certification pages, the dashboard
 * Certifications tabs and /mcertificate/. (The home page's one button row is styled in
 * page-home-v3.php.)
 */

/* ---- Wall of sample names (ktl_hof_render_wall). Columns drift upward and loop: each list
   is printed twice and moves up by half its height. Spacing is a per-name margin, not a flex
   gap, so the two halves are exactly equal and the loop has no jump. ---- */
.hof-wall { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%); }
.hof-wall--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hof-wall-col { display: flex; flex-direction: column; min-width: 0; align-self: start; will-change: transform; backface-visibility: hidden; animation: hof-drift 60s linear infinite; }
.hof-wall-col--2 { animation-duration: 75s; margin-top: -60px; }
.hof-wall-col--3 { animation-duration: 66s; margin-top: -24px; }
.hof-wn { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 16px; font-family: "Inter Tight", sans-serif; font-size: 20px; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; color: rgba(255, 255, 255, 0.42); }
.hof-wn-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hof-wn.is-fresh { color: #75e8c5; }
.hof-wn-tag { flex: none; padding: 1px 6px; border-radius: 999px; background: #75e8c5; color: #06392b; font: 600 10px/14px "JetBrains Mono", monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.hof-wn.is-elite { color: #f3dc7a; font-weight: 600; }
.hof-wn-crown { flex: none; width: 18px; height: 14px; color: #e2bf2b; }
@keyframes hof-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }

/* Smaller names in the promotion panels */
.hof-wall--sm .hof-wn { font-size: 18px; margin-bottom: 14px; }
.hof-wall--sm .hof-wall-col--1 { animation-duration: 56s; }
.hof-wall--sm .hof-wall-col--2 { animation-duration: 68s; margin-top: -40px; }

/* ---- Small shared pieces ---- */
.hof-hexes { display: inline-flex; gap: 4px; vertical-align: middle; flex: none; }
.hof-hexes i { display: inline-block; width: 14px; height: 16px; background: #0f8461; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.hof-hexes.is-gold i { background: #e2bf2b; }

a.hof-pbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 6px; border: 1px solid #0f8461; background: #0f8461; color: #ffffff; font: 500 15px/1.2 "Inter", sans-serif; text-decoration: none; white-space: nowrap; transition: background-color 0.15s, border-color 0.15s; }
/* Hover and focus keep each button's own colours: the site's "a:hover" (blue, underlined) and
   ".certbtn:hover" (white text) would otherwise take over. */
a.hof-pbtn:hover, a.hof-pbtn:focus { color: #ffffff; text-decoration: none; }
a.hof-pbtn:hover { background: #0c6a4e; border-color: #0c6a4e; }
a.hof-pbtn--grey { background: #ffffff; border-color: #c9c9c9; color: #3a3a3a; }
a.hof-pbtn--grey:hover, a.hof-pbtn--grey:focus { color: #3a3a3a; }
a.hof-pbtn--grey:hover { background: #f2f2f2; border-color: #a8a8a8; }
a.hof-pbtn--dark { background: #202020; border-color: #202020; color: #fed730; }
a.hof-pbtn--dark:hover, a.hof-pbtn--dark:focus { color: #fed730; }
a.hof-pbtn--dark:hover { background: #000000; border-color: #000000; }
a.hof-pbtn--light { min-height: 48px; background: #19d89f; border-color: #19d89f; color: #06392b; font-weight: 600; }
a.hof-pbtn--light:hover, a.hof-pbtn--light:focus { color: #06392b; }
a.hof-pbtn--light:hover { background: #75e8c5; border-color: #75e8c5; }
a.hof-pbtn svg { flex: none; }

a.hof-pbtn:focus-visible, a.hof-elite-link:focus-visible, .hof-btab:focus-visible, .hof-certcard a:focus-visible, a.hof-li-btn:focus-visible { outline: 2px solid #19d89f; outline-offset: 3px; }
.hof-dash a.hof-pbtn:focus-visible, .hof-certcard a:focus-visible, .hof-btab:focus-visible, a.hof-li-btn:focus-visible { outline-color: #0f8461; }

/* ---- Dark panel (spots 3 and 4) ---- */
.hof-panel { background: #063b2c; color: #ffffff; border-radius: 16px; }
.hof-panel-eyebrow { margin: 0; font: 600 12px/20px "JetBrains Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: #75e8c5; }
.hof-panel-title { margin: 0; font-family: "Inter Tight", sans-serif; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: #ffffff; }
.hof-panel-text { margin: 0; font: 400 16px/1.6 "Inter", sans-serif; color: #cfe6df; }

/* ---- Spot 3: /certifications/ benefits + panel ---- */
.hof-learn-grid { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 32px; align-items: stretch; }
.hof-learn-benefits { margin: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hof-learn-benefits .cert-learn__item { width: 100%; }
.hof-learn-panel { height: 100%; display: flex; flex-direction: column; gap: 16px; padding: 36px 36px 32px; box-sizing: border-box; min-width: 0; }
.hof-learn-panel .hof-panel-title { font-size: 32px; }
.hof-learn-panel .hof-wall { flex: 1 1 0; min-height: 0; margin-top: 4px; }
.hof-learn-acts { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
a.hof-elite-link { display: inline-flex; align-items: center; gap: 8px; font: 500 15px/1.3 "Inter", sans-serif; color: #f3dc7a; text-decoration: none; }
a.hof-elite-link:hover, a.hof-elite-link:focus { color: #f3dc7a; }
a.hof-elite-link:hover { text-decoration: underline; }
a.hof-elite-link .hof-elite-crown { width: 18px; height: 14px; color: #f3dc7a; flex: none; }
@media (max-width: 1199.98px) {
  .hof-learn-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; }
  .hof-learn-panel { padding: 32px 28px 28px; }
  .hof-learn-panel .hof-panel-title { font-size: 28px; }
}
@media (max-width: 991.98px) {
  .hof-learn-grid { grid-template-columns: minmax(0, 1fr); }
  .hof-learn-panel { height: auto; }
  .hof-learn-panel .hof-wall { flex: none; height: 200px; }
}
@media (max-width: 575.98px) {
  .hof-learn-panel { padding: 28px 22px 24px; }
  .hof-learn-panel .hof-panel-title { font-size: 26px; }
}

/* ---- Spot 4: certification pages, "Hall of Fame | On LinkedIn" tabs ---- */
/* The band's existing animated decorations (community__decor-*) reach past the page edge at
   1000-1300 px and made the page scroll sideways; keep them inside the band. */
.community-section { overflow-x: clip; }
.hof-band-tabs { margin: 40px 16px 0; }
.hof-btabs { display: none; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto; padding: 4px; border-radius: 22px; background: #f8f8f8; border: 1px solid #e5e5e5; box-sizing: border-box; }
.hof-band-tabs.is-tabbed .hof-btabs { display: flex; }
.hof-btab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border: 0; border-radius: 18px; background: transparent; color: #5b6661; font: 600 16px/1 "Inter", sans-serif; cursor: pointer; white-space: nowrap; }
.hof-btab:hover { color: #0c1411; }
.hof-btab[aria-selected="true"] { background: #ffffff; color: #0c1411; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), inset 0 -3px 0 #0f8461; }
.hof-btab svg { flex: none; }
.hof-btab[aria-selected="true"] svg { color: #0f8461; }
.hof-bpanel { margin-top: 40px; } /* below the tab bar; without JavaScript, between the stacked panels */
.hof-bpanel[hidden] { display: none; }
.hof-bhof { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 48px; align-items: center; padding: 44px 48px; box-sizing: border-box; text-align: left; background: radial-gradient(ellipse 480px 320px at 85% 0, rgba(117, 232, 197, 0.14), transparent 70%), #063b2c; }
.hof-bhof .hof-panel-title { margin-top: 10px; max-width: 520px; font-size: 34px; }
.hof-bhof .hof-panel-text { margin: 14px 0 28px; max-width: 440px; font-size: 17px; }
.hof-bhof .hof-wall { height: 300px; }
.hof-bhof a.hof-pbtn--light { min-height: 56px; padding: 0 32px; border-radius: 4px; font-size: 16px; }
.hof-bli .community-slider { margin-top: 0; }
.hof-bli-cta { margin-top: 32px; display: flex; justify-content: center; padding: 0 16px; }
a.hof-li-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 32px; border-radius: 4px; background: #ffffff; color: #0f8461; box-shadow: inset 0 0 0 1px #0f8461; font: 500 16px/1.35 "Inter", sans-serif; text-decoration: none; }
a.hof-li-btn:hover, a.hof-li-btn:focus { color: #0f8461; text-decoration: none; }
a.hof-li-btn:hover { background: #f0faf5; }
@media (max-width: 1100px) {
  .hof-bhof { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 32px; padding: 40px; }
}
/* Tablet: text on top, the wall under it, so the title never gets squeezed. */
@media (max-width: 900px) {
  .hof-bhof { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 40px; }
  .hof-bhof .hof-panel-title, .hof-bhof .hof-panel-text { max-width: 560px; }
  .hof-bhof .hof-wall { height: 220px; }
}
@media (max-width: 760px) {
  .hof-btabs { width: 100%; }
  .hof-btab { flex: 1 1 0; padding: 0 12px; font-size: 15px; }
  .hof-bhof { gap: 24px; padding: 32px 24px; }
  .hof-bhof .hof-panel-title { font-size: 26px; }
  .hof-bhof .hof-panel-text { margin-bottom: 22px; font-size: 16px; }
  .hof-bhof .hof-wall { height: 200px; }
}
/* Phone: smaller names in both promotion walls so two columns fit without cutting names. */
@media (max-width: 575.98px) {
  .hof-bhof .hof-wall, .hof-learn-panel .hof-wall { gap: 14px; }
  .hof-bhof .hof-wn, .hof-learn-panel .hof-wn { font-size: 16px; margin-bottom: 12px; }
}
/* Narrow phones: one column, so no name is ever cut off. */
@media (max-width: 430px) {
  .hof-bhof .hof-wall, .hof-learn-panel .hof-wall { grid-template-columns: minmax(0, 1fr); }
  .hof-bhof .hof-wall-col--2, .hof-learn-panel .hof-wall-col--2 { display: none; }
  .hof-bhof .hof-wall-col--1, .hof-learn-panel .hof-wall-col--1 { margin-top: 0; }
}

/* ---- Spot 5: dashboard block ---- */
.hof-dash { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 20px; margin: 24px 0 28px; padding: 22px 24px; border: 1px solid #cfeee2; border-radius: 12px; background: #f4fbf8; }
.hof-dash-mark { width: 44px; height: 50px; flex: none; }
.hof-dash-crownmark { width: 52px; height: 52px; flex: none; border-radius: 14px; background: #202020; color: #fed730; display: inline-flex; align-items: center; justify-content: center; }
.hof-dash-crown { width: 26px; height: 20px; }
.hof-dash p.hof-dash-eyebrow { margin: 0; font: 600 11px/18px "JetBrains Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: #0c6a4e; }
.hof-dash p.hof-dash-title { margin: 2px 0 0; font: 600 20px/1.3 "Inter Tight", sans-serif; color: #0c1411; }
.hof-dash p.hof-dash-sub { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 400 15px/1.5 "Inter", sans-serif; color: #3c4642; }
.hof-dash-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.hof-dash--elite { background: #ffffff; border-color: #e5e5e5; box-shadow: inset 0 3px 0 #cba226; }
.hof-dash--elite p.hof-dash-eyebrow { color: #7a6000; }
.hof-dash--none { background: #f8f8f8; border-color: #e5e5e5; }
.hof-dash--none p.hof-dash-eyebrow, .hof-dash--none p.hof-dash-sub { color: #6b6b6b; }
.hof-dash--none p.hof-dash-title { color: #3a3a3a; }
@media (max-width: 900px) {
  .hof-dash { grid-template-columns: auto minmax(0, 1fr); }
  .hof-dash-acts { grid-column: 1 / -1; justify-content: flex-start; }
}
/* Small phones: the mark sits above the text so the text gets the full width. */
@media (max-width: 480px) {
  .hof-dash { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px; }
  .hof-dash-mark { width: 36px; height: 41px; }
  .hof-dash-crownmark { width: 44px; height: 44px; border-radius: 12px; }
  .hof-dash-acts a.hof-pbtn { width: 100%; }
}

/* ---- Spot 6: certificate page card: plain text, aligned like the cards below it ---- */
.mdetail-right .hof-certcard { margin-bottom: 30px; }
.mdetail-right__item .hof-holder { margin-top: 14px; }
.mdetail-right__item .hof-holder-name { display: block; margin: 0; font: 600 18px/1.35 "Inter", sans-serif; color: #000000; overflow-wrap: anywhere; }
.mdetail-right__item .hof-holder-name .hof-holder-crown { display: inline-block; width: 18px; height: 14px; margin-left: 6px; vertical-align: -1px; color: #e2bf2b; }
.mdetail-right__item .hof-holder-meta { display: block; margin-top: 2px; font: 400 14px/1.5 "Inter", sans-serif; color: #5b6661; }
.mdetail-right__item .hof-holder-meta.is-elite { color: #7a6000; }
.mdetail-right__item .hof-holder + span { display: block; margin-top: 12px; }
.hof-certcard-acts { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.mdetail-right__item .hof-certcard-acts .certbtn { margin-top: 0; padding-left: 14px; padding-right: 14px; font-size: 15px; }
.mdetail-right__item .certbtn.hof-certbtn-ghost { background: #ffffff; color: #0f8461; box-shadow: inset 0 0 0 1px #0f8461; }
.mdetail-right__item .certbtn.hof-certbtn-ghost:hover, .mdetail-right__item .certbtn.hof-certbtn-ghost:focus { background: #f0faf5; color: #0f8461; }

/* !important: beats the per-wall animation durations above, whatever their specificity. */
@media (prefers-reduced-motion: reduce) {
  .hof-wall-col { animation: none !important; }
}
