/* SOFTWARE TRAINING + SOFTWARE DETAIL (Er Dk 2026-10-28 redesign). Brand navy / red, white cards on a soft background.
   Prefix sx-. Phone first: one column under 640px, no horizontal page scroll (the field chips scroll inside their row). */
.sx { --red: #F1181C; --red-d: #B3121F; --navy: #0A3868; --soft: #f5f7fb; background: var(--soft); color: var(--ink); }
.sx-wrap { max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); box-sizing: border-box; }

/* ---- hero */
.sx-hero { position: relative; overflow: hidden; color: #fff; padding: 46px var(--gutter) 40px;
  background: radial-gradient(760px 380px at 95% -20%, rgba(241, 24, 28, .3), transparent 60%), linear-gradient(135deg, #072747 0%, #0A3868 62%, #0e4a86 100%); }
.sx-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); mask-image: linear-gradient(180deg, #000, transparent 90%); }
.sx-hero > .sx-in { position: relative; max-width: 1200px; margin: 0 auto; }
.sx-crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 13px; color: rgba(255,255,255,.62); margin-bottom: 16px; }
.sx-crumbs a { color: rgba(255,255,255,.85); text-decoration: none; } .sx-crumbs a:hover { color: #fff; text-decoration: underline; }
.sx-kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ffb3b5; margin-bottom: 8px; }
.sx-hero h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.025em; margin: 0; color: #fff; }
.sx-hero p.sx-sub { margin: 12px 0 0; max-width: 680px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.85); }
.sx-search { display: flex; align-items: center; gap: 10px; margin-top: 24px; max-width: 640px; height: 56px; padding: 0 8px 0 18px; background: #fff; border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.2); }
.sx-search svg { width: 20px; height: 20px; color: #7c869a; flex: none; }
.sx-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; color: var(--ink); background: none; height: 100%; }
.sx-search kbd { font: inherit; font-size: 12px; color: #7c869a; border: 1px solid #dfe3ea; border-radius: 6px; padding: 2px 7px; }
.sx-stats { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 20px; font-size: 14.5px; color: rgba(255,255,255,.88); }
.sx-stats b { color: #fff; font-size: 18px; margin-right: 4px; }

/* ---- field chips (one scrolling row) */
.sx-bar { position: sticky; top: 0; z-index: 5; background: rgba(245,247,251,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.sx-chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0; scrollbar-width: thin; }
.sx-chips button { flex: none; font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-strong); background: #fff;
  color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
.sx-chips button span { font-size: 12px; opacity: .65; margin-left: 3px; }
.sx-chips button:hover { border-color: #b9c4d6; }
.sx-chips button.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---- grid of software cards */
.sx-main { padding-top: 26px; padding-bottom: 64px; }
.sx-count { font-size: 14px; color: var(--ink-mute); margin: 0 0 16px; }
.sx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sx-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; min-width: 0; }
.sx-card:hover { transform: translateY(-2px); border-color: #c9d6ea; box-shadow: 0 16px 36px rgba(16,35,63,.1); }
.sx-top { display: flex; gap: 14px; align-items: center; min-width: 0; }
.sx-ico { width: 52px; height: 52px; border-radius: 13px; flex: none; display: grid; place-items: center; overflow: hidden; background: #f1f4f9; color: #fff;
  font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.sx-ico img { width: 100%; height: 100%; object-fit: cover; }
.sx-name { font-size: 16.5px; font-weight: 700; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.sx-pop { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #b54708; background: #fffaeb; border-radius: 6px; padding: 2px 7px; margin-top: 4px; }
.sx-line { font-size: 14px; line-height: 1.55; color: var(--ink-mute); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sx-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.sx-meta span { font-size: 12.5px; padding: 4px 9px; border-radius: 8px; background: #f1f4f9; color: var(--ink-soft); }
.sx-meta span.dur { background: #eaf1fb; color: var(--navy); font-weight: 600; }
.sx-go { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.sx-card:hover .sx-go { color: var(--red); }
.sx-more { display: flex; justify-content: center; margin-top: 26px; }
.sx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 12px; border: 0; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; background: var(--red); color: #fff; }
.sx-btn:hover { background: var(--red-d); color: #fff; }
.sx-btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--line-strong); }
.sx-btn.ghost:hover { background: #f5f7fb; color: var(--navy); }
.sx-btn.wa { background: #128c4a; } .sx-btn.wa:hover { background: #0e7239; }
.sx-empty { text-align: center; padding: 48px 16px; background: #fff; border: 1px dashed var(--line-strong); border-radius: 16px; color: var(--ink-mute); }
.sx-cta { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; margin-top: 40px; padding: 28px; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, #072747, #0A3868 65%, #0e4a86); }
.sx-cta h2 { margin: 0 0 4px; font-size: 22px; color: #fff; } .sx-cta p { margin: 0; color: rgba(255,255,255,.82); }
.sx-cta .sx-btn.ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }

/* ---- detail */
.sx-dhead { display: flex; gap: 22px; align-items: center; }
.sx-dhead .sx-ico { width: 88px; height: 88px; border-radius: 20px; font-size: 26px; box-shadow: 0 10px 28px rgba(0,0,0,.25); background: #fff; }
.sx-dhead .sx-ico.txt { color: #fff; }
.sx-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sx-facts span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; padding: 7px 12px; border-radius: 10px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.sx-facts svg { width: 16px; height: 16px; color: #7ef0a8; }
.sx-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.sx-actions .sx-btn.ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }
.sx-dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; padding: 28px 0 64px; }
.sx-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; box-shadow: 0 1px 2px rgba(16,35,63,.04); }
.sx-panel + .sx-panel { margin-top: 20px; }
.sx-panel h2 { font-size: 21px; letter-spacing: -.01em; margin: 0 0 14px; }
.sx-prose { font-size: 15.5px; line-height: 1.75; color: var(--ink-soft); }
.sx-prose p { margin: 0 0 12px; } .sx-prose > *:last-child { margin-bottom: 0; }
.sx-prose ul, .sx-prose ol { padding-left: 22px; margin: 0 0 12px; }
.sx-courses { display: grid; gap: 10px; }
.sx-course { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.sx-course b { display: block; font-size: 15px; line-height: 1.35; }
.sx-course small { color: var(--ink-mute); font-size: 13px; }
.sx-course a { flex: none; font-size: 13.5px; font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; }
.sx-course a:hover { color: var(--red); }
.sx-side { position: sticky; top: 16px; }
.sx-side .sx-panel { padding: 22px; }
.sx-glance { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.sx-glance li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.sx-glance li:last-child { border-bottom: 0; }
.sx-glance span { color: var(--ink-mute); } .sx-glance b { text-align: right; }
.sx-side .sx-btn { width: 100%; margin-top: 10px; }
.sx-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sx-tags a { font-size: 13px; padding: 5px 10px; border-radius: 8px; background: #f1f4f9; color: var(--ink-soft); text-decoration: none; }
.sx-tags a:hover { background: #eaf1fb; color: var(--navy); }
.sx-rel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sx-rel .sx-card { padding: 14px; gap: 8px; }
.sx-rel .sx-ico { width: 42px; height: 42px; font-size: 14px; border-radius: 11px; }
.sx-rel .sx-name { font-size: 14.5px; }
.sx-rev { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sx-rev:last-child { border-bottom: 0; }
.sx-rev .av { width: 46px; height: 46px; border-radius: 50%; flex: none; background: #eaf1fb; color: var(--navy); display: grid; place-items: center; font-weight: 700; overflow: hidden; }
.sx-rev .av img { width: 100%; height: 100%; object-fit: cover; }
.sx-stars { color: #f5a623; letter-spacing: 2px; }
.sx .syl { margin-top: 0; }

@media (max-width: 1000px) { .sx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sx-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-dgrid { grid-template-columns: 1fr; } .sx-side { position: static; order: -1; } }
@media (max-width: 640px) {
  .sx-grid { grid-template-columns: 1fr; gap: 12px; }
  .sx-hero { padding: 32px var(--gutter) 30px; } .sx-hero p.sx-sub { font-size: 15.5px; }
  .sx-search { height: 50px; } .sx-search kbd { display: none; }
  .sx-dhead { gap: 14px; align-items: flex-start; } .sx-dhead .sx-ico { width: 60px; height: 60px; font-size: 18px; border-radius: 14px; }
  .sx-panel { padding: 20px 18px; } .sx-cta { padding: 22px 18px; }
  .sx-actions .sx-btn { flex: 1 1 auto; }
}
.sx [hidden] { display: none !important; }
/* 2026-10-28: the original software card (design.css .sw-card) on the new page -- a "Popular" tag on the picture */
.sx .sw-card-pop { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #7a2e00; background: #ffd666; border-radius: 6px; padding: 3px 8px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.sx .sw-card-desc { flex: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sx .sw-card-enquire { margin-top: auto; }
/* 2026-10-28 (Er Dk: "card full page width"): Software Training uses the whole screen width -- as many card columns as fit */
.sx-full .sx-in, .sx-full .sx-wrap { max-width: none; }
.sx-full .sw-grid { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 18px; }
@media (max-width: 460px) { .sx-full .sw-grid { grid-template-columns: 1fr; } }

/* ---- software page in the online-batch layout (Er Dk 2026-10-28): templates/website/software_detail.html ---- */
.sxp .obs-hero h1 { overflow-wrap: anywhere; }
.sxp-img { height: 150px; background: linear-gradient(120deg, #0A3868, #5E0A14); }
.sxp-img img { max-height: 110px; max-width: 70%; object-fit: contain; border-radius: 12px; background: #fff; padding: 8px; }
.sxp-ini { width: 92px; height: 92px; border-radius: 22px; display: grid; place-items: center; color: #fff; font: 700 30px "Space Grotesk", sans-serif; box-shadow: 0 10px 28px rgba(0,0,0,.25); }
.sxp-buy-h b { display: block; font: 700 19px/1.3 "Space Grotesk", sans-serif; color: var(--ink); overflow-wrap: anywhere; }
.sxp-buy-h small { display: block; text-align: left !important; margin-top: 3px; }
.sxp .ox-buy .btn-ghost-d { border: 1px solid var(--line); color: var(--navy, #0A3868); background: #fff; }
.sxp-prose p, .sxp .ox-sec .syl p { white-space: normal; }
.sxp-prose { margin-bottom: 8px; }
.sxp .obs-lists { margin-top: 18px; }
.sxp-h3 { font-size: 17px; margin: 26px 0 12px; }
.sxp .ox-sec .syl-head h2 { font-size: 22px; margin: 0; }
.sxp-who { display: flex; align-items: center; gap: 8px; }
.sxp-who .av { position: relative; width: 28px; height: 28px; border-radius: 50%; background: #0A3868; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; overflow: hidden; flex: none; }
.sxp-who .av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sxp-more { margin: 14px 0 0 !important; font-size: 14px; }
.sxp-mname { font-size: 15px !important; white-space: normal !important; line-height: 1.25; min-width: 0; }
.sxp-mname small { display: block; font: 500 12px Inter, sans-serif; color: var(--ink-mute); }
.sxp .ox-list .sx-rel { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.sxp-clamp { max-height: 360px; overflow: hidden; position: relative; }
.sxp-clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(255,255,255,0), #fff); }
.sxp-clamp.open { max-height: none; } .sxp-clamp.open::after { display: none; }
.sxp-readmore { margin: 6px 0 0; padding: 0; border: 0; background: none; color: var(--navy, #0A3868); font: 600 14px Inter, sans-serif; cursor: pointer; }
.sxp-readmore:hover { color: var(--red); }
.sxp-awards { margin-top: 12px; }
.sxp .obs-step.certified .obs-dot { background: #0A1F3D; color: #fff; border-color: #0A1F3D; }

/* ---- Training Field page, Design 2 (Er Dk 2026-10-28): templates/website/course_detail_v2.html ---- */
.fd2-levels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; font-size: 13.5px; color: rgba(255,255,255,.85); }
.fd2-levels span { padding: 4px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); }
.fd2-levels i { font-style: normal; opacity: .6; }
.fd2-img { height: 160px; }
.fd2-img > img { width: 100%; height: 100%; max-height: none; max-width: none; object-fit: cover; }
.fd2-pics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 10px; width: 100%; height: 100%; box-sizing: border-box; }
.fd2-pics.n1 { grid-template-columns: 1fr; }
.fd2-pics img { width: 100%; height: 100%; max-height: none; max-width: none; object-fit: cover; border-radius: 8px; background: #fff; }
.fd2-pics.n3 img:first-child { grid-row: span 2; }
.fd2-lv { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: #fff; }
.fd2-lv summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.fd2-lv summary::-webkit-details-marker { display: none; }
.fd2-lv summary b { font-size: 16px; }
.fd2-lv summary small { color: var(--ink-mute); font-size: 13px; }
.fd2-pm { margin-left: auto; font-size: 20px; color: var(--ink-mute); line-height: 1; }
.fd2-lv[open] .fd2-pm { transform: rotate(45deg); }
.fd2-courses { display: grid; gap: 10px; padding: 0 14px 14px; }
.fd2-course { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.fd2-course b { display: block; font-size: 15px; line-height: 1.35; }
.fd2-course small { color: var(--ink-mute); font-size: 13px; }
.fd2-course a { flex: none; font-size: 13.5px; font-weight: 600; color: var(--navy, #0A3868); text-decoration: none; white-space: nowrap; }
.fd2-course a:hover { color: var(--red); }
.fd2-sw { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fd2-sw span { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: #eef3fa; color: #24456e; }
.fd2-swgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.fd2 .ox-sec .syl-course h2 { font-size: 22px; }
.fd2-obs { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; }
@media (max-width: 600px) { .fd2-course { flex-direction: column; } }
.fd2-swgrid [hidden] { display: none !important; }
.fd2-car { font-size: 13.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy, #0A3868); text-decoration: none; }
.fd2-car:hover { border-color: var(--navy, #0A3868); }
