/* Module showcase (partials/moduleShowcase.ejs) on the home, features and gallery pages. */
.modx { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.modx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.modx-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid #E8EEF5; text-decoration: none; color: #0F172A;
  box-shadow: 0 20px 40px -34px rgba(15,23,42,.45); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.modx-card:hover, .modx-card:focus-visible { transform: translateY(-4px); border-color: #BFDBFE; box-shadow: 0 30px 50px -30px rgba(30,111,242,.45); outline: none; }
.modx-card:focus-visible { box-shadow: 0 0 0 3px #93C5FD, 0 30px 50px -30px rgba(30,111,242,.45); }
.modx-media { position: relative; aspect-ratio: 16 / 9; background: #0B1220; overflow: hidden; }
.modx-media video, .modx-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.modx-cat { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(15,23,42,.72); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .02em; backdrop-filter: blur(4px); }
.modx-ok { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  background: rgba(16,185,129,.92); color: #fff; font-size: .72rem; font-weight: 700; }
.modx-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.modx-body h3 { margin: 0; font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; }
.modx-body p { margin: 0; color: #64748B; font-size: .93rem; line-height: 1.55; flex: 1; }
.modx-go { font-weight: 700; color: #1E6FF2; font-size: .92rem; }
.modx-go i { margin-left: 4px; transition: transform .2s ease; }
.modx-card:hover .modx-go i { transform: translateX(3px); }
.modx-more { margin: 26px auto 0; max-width: 860px; text-align: center; color: #334155; font-size: .95rem; line-height: 1.6; }
.modx-note { margin: 10px auto 0; max-width: 860px; text-align: center; color: #64748B; font-size: .82rem; line-height: 1.55; }
.modx-note i { color: #10B981; margin-right: 4px; }
.modx-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

@media (max-width: 1000px) { .modx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .modx-grid { grid-template-columns: 1fr; gap: 16px; } .modx-body { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .modx-card, .modx-go i { transition: none; } .modx-card:hover { transform: none; } }
/* portal dark theme (public/js/theme-manager.js sets html.dark-mode) */
html.dark-mode .modx-card { background: #0F172A; border-color: #1E293B; color: #E2E8F0; }
html.dark-mode .modx-body p, html.dark-mode .modx-note { color: #94A3B8; }
html.dark-mode .modx-more { color: #CBD5E1; }

/* Module landing pages (modulDetay.ejs, moduller.ejs) */
.modp-page main { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.modp-video { position: relative; border-radius: 20px; overflow: hidden; background: #0B1220; aspect-ratio: 16 / 9; box-shadow: 0 30px 60px -30px rgba(15,23,42,.55); }
.modp-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.modp-rec { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(15,23,42,.72); color: #fff; font-size: .72rem; font-weight: 700; }
.modp-rec i { color: #F43F5E; font-size: .55rem; vertical-align: middle; margin-right: 4px; }
.modp-sec { padding: 64px 16px; }
.modp-alt { background: #F8FAFC; }
.modp-wrap { max-width: 1200px; margin: 0 auto; }
.modp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.modp-kicker { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #1E6FF2; margin-bottom: 8px; }
.modp-sec h2 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; color: #0F172A; margin: 0 0 20px; }
.modp-learn, .modp-steps, .modp-who { list-style: none; margin: 0; padding: 0; }
.modp-learn li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #EEF2F7; color: #334155; line-height: 1.5; }
.modp-learn i { color: #10B981; margin-top: 4px; }
.modp-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; color: #334155; line-height: 1.5; }
.modp-steps b { flex: 0 0 32px; height: 32px; border-radius: 50%; background: #EFF6FF; color: #1E6FF2; display: grid; place-items: center; font-weight: 800; }
.modp-who { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.modp-who li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #E2E8F0; color: #334155; font-size: .9rem; font-weight: 600; }
.modp-trust { display: flex; gap: 10px; color: #475569; font-size: .92rem; line-height: 1.6; margin: 0; }
.modp-trust i { color: #10B981; margin-top: 4px; }
.modp-access h2 { margin-bottom: 14px; }
.modp-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modp-tier { display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; row-gap: 2px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid #E2E8F0; text-decoration: none; color: #0F172A; transition: border-color .2s ease, transform .2s ease; }
.modp-tier i { grid-row: span 2; color: #1E6FF2; font-size: 1.1rem; margin-top: 2px; }
.modp-tier b { font-size: .98rem; }
.modp-tier span { color: #64748B; font-size: .85rem; line-height: 1.45; }
.modp-tier:hover, .modp-tier:focus-visible { border-color: #93C5FD; transform: translateY(-2px); outline: none; }
.modp-tier-main { background: #1E6FF2; border-color: #1E6FF2; color: #fff; }
.modp-tier-main i, .modp-tier-main span { color: #E0ECFF; }
.modp-login { margin: 14px 0 0; color: #64748B; font-size: .9rem; }
.modp-login a { color: #1E6FF2; font-weight: 700; }
.modp-faq { display: grid; gap: 10px; max-width: 860px; }
.modp-faq details { background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 14px 18px; }
.modp-faq summary { cursor: pointer; font-weight: 700; color: #0F172A; }
.modp-faq p { margin: 10px 0 0; color: #475569; line-height: 1.6; }
.modp-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.modp-filter button { padding: 9px 14px; border-radius: 999px; border: 1px solid #E2E8F0; background: #fff; color: #334155; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.modp-filter button.on { background: #0F172A; border-color: #0F172A; color: #fff; }
.modp-filter button:focus-visible { outline: 3px solid #93C5FD; outline-offset: 2px; }
.modx-card[hidden] { display: none; }
@media (max-width: 900px) { .modp-two { grid-template-columns: 1fr; gap: 36px; } .modp-sec { padding: 44px 16px; } }
@media (max-width: 520px) { .modp-tiers { grid-template-columns: 1fr; } .modp-sec h2 { font-size: 1.4rem; } }
@media (prefers-reduced-motion: reduce) { .modp-tier { transition: none; } .modp-tier:hover { transform: none; } }
html.dark-mode .modp-alt { background: #0B1220; }
html.dark-mode .modp-sec h2, html.dark-mode .modp-faq summary { color: #F1F5F9; }
html.dark-mode .modp-learn li, html.dark-mode .modp-steps li, html.dark-mode .modp-trust, html.dark-mode .modp-faq p { color: #CBD5E1; border-color: #1E293B; }
html.dark-mode .modp-who li, html.dark-mode .modp-tier, html.dark-mode .modp-faq details, html.dark-mode .modp-filter button { background: #0F172A; border-color: #1E293B; color: #E2E8F0; }
html.dark-mode .modp-tier span { color: #94A3B8; }
html.dark-mode .modp-tier-main { background: #1E6FF2; border-color: #1E6FF2; color: #fff; }
html.dark-mode .modp-tier-main span { color: #E0ECFF; }
html.dark-mode .modp-filter button.on { background: #F1F5F9; color: #0F172A; }
html.dark-mode .modp-steps b { background: #172554; color: #93C5FD; }

/* the "All modules" button sits on a light background */
.modx-ctas .ph-btn-ghost { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.modx-ctas .ph-btn-ghost:hover { background: #DBEAFE; }
