/* Public Kudagang theme, adapted from the local Satu Data design system. */
@font-face { font-family: Parkinsans; src: url('../fonts/Parkinsans-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Parkinsans; src: url('../fonts/Parkinsans-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Parkinsans; src: url('../fonts/Parkinsans-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Parkinsans; src: url('../fonts/Parkinsans-Bold.ttf') format('truetype'); font-weight: 700 900; font-display: swap; }
.portal-home, .portal-login, .portal-kms {
    --portal-primary: #084fb9;
    --portal-deep: #0f4494;
    --portal-accent: #bcfe5a;
    --portal-text: #273b4a;
    --portal-muted: #526777;
    --portal-surface: #fff;
    --portal-soft: #f5f7f8;
    --portal-border: #dce4e8;
    --portal-shadow: 0 8px 28px rgb(15 68 148 / 6%);
    font-family: Parkinsans, 'Segoe UI', sans-serif;
    color: var(--portal-text);
    background: var(--portal-surface);
    font-size: 14px;
    line-height: 1.7;
}
:where(.portal-home, .portal-login, .portal-kms) :where(h1,h2,h3,h4,h5,h6,p,a,button,input,select,.dm-sans,.wt-700) { font-family: inherit; }
:where(.portal-home, .portal-login, .portal-kms) :where(a,button,summary):focus-visible { outline: 3px solid #4a8bd1; outline-offset: 5px; }
.portal-home .container { max-width: 1200px; padding-inline: 24px; }
.portal-home .kudagang-header-section { background: var(--portal-deep); border-bottom: 1px solid rgb(255 255 255 / 12%); box-shadow: none; }
.portal-home .kudagang-header-section.sticky { background: var(--portal-deep); box-shadow: 0 4px 20px rgb(10 35 70 / 12%); }
.portal-home .kudagang-header-content { min-height: 78px; padding-block: 14px; }
.portal-home .kudagang-header-right .kudagang-header-bnts .connect-btn { background: #fff; color: var(--portal-deep); border: 1px solid #fff; border-radius: 10px; font-size: 13px; padding: 10px 20px; }
.portal-home .dark-mood-btn { border: 1px solid rgb(255 255 255 / 30%); border-radius: 10px; background: rgb(255 255 255 / 10%); }
.portal-hero { position: relative; isolation: isolate; padding: 68px 0 44px; overflow: hidden; color: #fff; background: radial-gradient(ellipse at 85% 20%, #2364ad 0, transparent 55%), linear-gradient(135deg, #103c80, #0f4494 60%, #0d3878); }
.portal-hero::before { content: ''; position: absolute; z-index: -1; width: 580px; height: 580px; top: -270px; right: -180px; border: 1px solid rgb(255 255 255 / 9%); border-radius: 50%; box-shadow: 0 0 0 90px rgb(255 255 255 / 3%), 0 0 0 180px rgb(255 255 255 / 2%); pointer-events: none; }
.portal-hero::after { content: ''; position: absolute; z-index: -1; width: 580px; height: 580px; bottom: -270px; left: -360px; border: 1px solid rgb(255 255 255 / 9%); border-radius: 50%; box-shadow: 0 0 0 90px rgb(255 255 255 / 3%), 0 0 0 180px rgb(255 255 255 / 2%); pointer-events: none; }
.portal-hero-intro { max-width: 790px; margin: 0 auto; text-align: center; }
.portal-kicker { display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin: 0 0 16px; padding: 7px 12px; border: 1px solid rgb(188 254 90 / 32%); border-radius: 999px; background: rgb(188 254 90 / 10%); color: var(--portal-accent); font-size: 11px; font-weight: 500; line-height: 1.5; letter-spacing: .1em; }
.portal-kicker::before { content: ''; flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--portal-accent); }
.portal-hero h1 { margin: 0; color: #fff; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.2; font-weight: 700; letter-spacing: -.045em; }
.portal-hero h1 span { color: var(--portal-accent); }
.portal-summary { margin: 20px auto 0; color: rgb(255 255 255 / 85%); font-size: 14px; line-height: 1.8; }
.portal-hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.portal-button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 46px; padding: 11px 20px; border-radius: 10px; font-size: 13px; font-weight: 600; transition: transform .2s, background .2s; }
.portal-button:hover { transform: translateY(-2px); }
.portal-button-accent, .portal-button-accent:hover { background: var(--portal-accent); color: #183a24; }
.portal-button-glass { border: 1px solid rgb(255 255 255 / 32%); background: rgb(255 255 255 / 6%); color: #fff; }
.portal-button-glass:hover { background: rgb(255 255 255 / 14%); color: #fff; }
.portal-topics { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; color: rgb(255 255 255 / 72%); font-size: 10px; }
.portal-topics span::before { content: ''; display: inline-block; width: 4px; height: 4px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--portal-accent); }
.portal-services { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: 36px; }
.portal-service { display: grid; grid-template-columns: 38px minmax(0,1fr) 14px; align-items: center; gap: 12px; padding: 18px 16px; border: 1px solid rgb(255 255 255 / 22%); border-radius: 14px; color: #fff; background: rgb(255 255 255 / 7%); transition: background .2s, transform .2s; }
.portal-service:hover { color: #fff; background: rgb(255 255 255 / 13%); transform: translateY(-3px); }
.portal-service-icon { display: grid; place-items: center; width: 38px; height: 42px; border-radius: 10px; background: rgb(255 255 255 / 10%); color: var(--portal-accent); font-size: 18px; }
.portal-service strong { display: block; font-size: 13px; font-weight: 600; }
.portal-service small { display: block; margin-top: 3px; color: rgb(255 255 255 / 70%); font-size: 10px; line-height: 1.5; }
.portal-service-arrow { color: var(--portal-accent); font-size: 18px; }
.portal-home .best-services-section { background: var(--portal-soft); }
.portal-home .best-services-section .overlay { padding: 52px 0 36px; background: none; }
.portal-home .section-title .sub-title { display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; padding: 6px 11px; border: 1px solid var(--portal-border); border-radius: 999px; background: var(--portal-surface); color: var(--portal-primary); font-size: 10px; line-height: 1.5; letter-spacing: .06em; font-weight: 600; margin-bottom: 14px; }
.portal-home .section-title .sub-title > i { flex-shrink: 0; font-size: 12px; letter-spacing: 0; }
.portal-home .section-title :where(h2,h4) { color: var(--portal-text); font-size: clamp(24px,2.2vw,30px); font-weight: 600; line-height: 1.3; letter-spacing: -.035em; }
.portal-home .best-services-left p { color: var(--portal-muted); font-size: 12px; line-height: 1.8; }
.portal-home .best-services-card, .portal-home .kudagang-card { border: 1px solid var(--portal-border); background: var(--portal-surface); border-radius: 16px; overflow: hidden; box-shadow: var(--portal-shadow); }
.portal-home .best-services-text, .portal-home .kudagang-text { padding: 18px; }
.portal-home :where(.best-services-text,.kudagang-text) h5 { color: var(--portal-text); font-size: 14px; font-weight: 600; line-height: 1.6; }
.portal-home .best-services-text p, .portal-home .kudagang-text p { color: var(--portal-muted); font-size: 11px; }
.portal-home .best-services-empty { background: var(--portal-surface); border-color: var(--portal-border); box-shadow: none; }
.portal-home .best-services-empty-copy h5 { color: var(--portal-text); }
.portal-home .best-services-empty-copy p { color: var(--portal-muted); }
.portal-home .learning-category-control { border-radius: 10px; border-color: var(--portal-border); background: var(--portal-surface); color: var(--portal-text); font-size: 12px; }
.portal-home .view-all-dashboard-btn { border-radius: 10px; background: var(--portal-primary); font-size: 12px; }
.portal-home .view-all-dashboard-btn strong { font-weight: 500; }
/* Statistics with an oversized mascot and three complementary accents. */
.portal-home .counter-section { padding: 72px 0 62px; background: var(--portal-surface); }
.portal-home .counter-card { display: grid; grid-template-columns: 1.35fr repeat(3,minmax(0,1fr)); align-items: center; isolation: isolate; overflow: visible; height: auto; min-height: 224px; padding: 28px 32px; border: 1px solid var(--portal-border); border-radius: 28px; background: radial-gradient(ellipse at 5% 90%,rgb(44 193 194 / 12%),transparent 48%),radial-gradient(ellipse at 95% 0%,rgb(188 254 90 / 16%),transparent 46%),var(--portal-soft); gap: 20px; box-shadow: 0 12px 32px rgb(15 68 148 / 5%); }
.portal-home .counter-card::before { display: none; }
.portal-home .counter-card .counter-item { display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; margin: 0; padding: 4px 12px; text-align: center; }
.portal-home .counter-card .counter-item + .counter-item { border-left: 1px solid var(--portal-border); }
.portal-home .counter-card h2 { margin: 0; color: var(--portal-primary); font-size: clamp(32px,3.4vw,46px); letter-spacing: -.045em; line-height: 1.2; }
.portal-home .counter-card p { margin: 0; color: var(--portal-muted); font-size: 11px; line-height: 1.7; }
.counter-mascot { position: relative; min-width: 0; height: 160px; }
.counter-mascot img { position: absolute; z-index: 1; top: 50%; left: 50%; width: 330px; max-width: none; height: auto; transform: translate(-50%,-50%) rotate(-3deg); filter: drop-shadow(0 12px 12px rgb(20 67 95 / 12%)); }
.counter-mascot-halo { position: absolute; inset: -8px 12px; border-radius: 50%; background: linear-gradient(135deg,rgb(188 254 90 / 45%),rgb(40 192 204 / 20%)); transform: rotate(-12deg); }
.counter-spark { position: absolute; z-index: 2; width: 12px; height: 12px; border-radius: 3px; transform: rotate(25deg); }
.counter-spark-one { top: -14px; left: 4px; background: #2cc1c2; box-shadow: 18px -13px 0 -3px #084fb9; }
.counter-spark-two { bottom: -6px; right: 12px; background: #bcfe5a; box-shadow: 15px -17px 0 -3px #f4b75e; }
.counter-stat-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #e2ecff; color: #084fb9; font-size: 14px; }
.counter-knowledge .counter-stat-icon { background: #d8f4ef; color: #087d79; }
.counter-accounts .counter-stat-icon { background: #e8f7cc; color: #527020; }
html.dark-scheme .portal-home .counter-stat-icon { background: #243d62; color: #a6caff; }
html.dark-scheme .portal-home .counter-knowledge .counter-stat-icon { background: #1a4447; color: #75e0d6; }
html.dark-scheme .portal-home .counter-accounts .counter-stat-icon { background: #334629; color: #bcfe5a; }
@media (min-width: 768px) and (max-width: 991.98px) {
    .portal-home .counter-card { grid-template-columns: 1.15fr repeat(3,minmax(0,1fr)); padding-inline: 20px; gap: 8px; }
    .counter-mascot img { width: 250px; }
}

.portal-home .elfsight-feed-section { padding: 12px 0 36px; background: var(--portal-surface); }
.portal-home .elfsight-feed-card { border: 1px solid var(--portal-border); border-radius: 18px; background: var(--portal-surface); box-shadow: none; }
.portal-home .elfsight-feed-title { color: var(--portal-text); font-size: 25px; letter-spacing: -.025em; }
.portal-home .elfsight-feed-description { color: var(--portal-muted); font-size: 12px; }
.portal-home .elfsight-feed-label { background: var(--portal-soft); color: var(--portal-primary); border-color: var(--portal-border); font-size: 10px; }
.portal-home .faq-seciton.v2 { padding: 64px 0; background: var(--portal-soft); }
.portal-home .faq-seciton-header { margin-bottom: 36px; }
.portal-home .faq-seciton .section-title .title { font-size: clamp(30px,3.2vw,42px); line-height: 1.25; }
.portal-home .faq-seciton .section-title .sub-title { font-size: 11px; }
.portal-home .faq-seciton-header .faq-header-right { padding: 18px; border: 1px solid var(--portal-border); border-radius: 24px; background: var(--portal-surface); transform: rotate(5deg); }
.portal-home .faq-seciton-header .faq-header-right img { width: 100px; }
.portal-home .faq-seciton .accordion-item { margin-bottom: 14px; border: 1px solid var(--portal-border); border-radius: 16px; background: var(--portal-surface); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.portal-home .faq-seciton .accordion-item:hover, .portal-home .faq-seciton .accordion-item:focus-within { border-color: var(--portal-primary); box-shadow: 0 5px 20px rgb(15 68 148 / 6%); }
.portal-home .faq-seciton .accordion-button { min-height: 60px; padding: 14px 18px; color: var(--portal-text); background: var(--portal-surface); font-size: 15px; font-weight: 700; line-height: 1.6; box-shadow: none; }
.portal-home .faq-seciton .accordion-button:not(.collapsed) { color: var(--portal-primary); background: var(--portal-soft); }
.portal-home .faq-seciton .accordion-body { padding: 14px 18px 18px; border-top: 1px solid var(--portal-border); color: var(--portal-muted); font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.portal-home .faq-seciton .accordion-body p { color: inherit; font-size: inherit; }
.portal-home .faq-seciton .accordion-body p:last-child { margin-bottom: 0; }
.portal-home .faq-seciton .accordion-body :is(ol,ul) { padding-left: 22px; margin: 12px 0; }
.portal-home .faq-seciton .accordion-body li { padding-left: 4px; margin-bottom: 8px; }
.portal-home .faq-seciton .accordion-body a { color: var(--portal-primary); text-decoration: underline; text-underline-offset: 3px; }
.portal-home .meeting-anytime-section { padding: 40px 0; background: var(--portal-surface); }
.portal-home .newsletter-get-demo-section { padding: 0; border: 1px solid rgb(255 255 255 / 12%); border-radius: 24px; overflow: hidden; box-shadow: 0 12px 32px rgb(15 68 148 / 12%); }
.portal-home .newsletter-get-demo-section-inner { position: relative; isolation: isolate; overflow: hidden; padding: 40px 44px; background: linear-gradient(120deg,#0f4494,#123b7c); border-radius: 0; min-height: 240px; }
.portal-home .newsletter-get-demo-section-inner > .row { position: relative; z-index: 1; align-items: center; }
.portal-home .newsletter-get-demo-section-inner::before,
.portal-home .newsletter-get-demo-section-inner::after { content: ''; position: absolute; pointer-events: none; border: 1px solid rgb(255 255 255 / 10%); border-radius: 24px; transform: rotate(-18deg); }
.portal-home .newsletter-get-demo-section-inner::before { width: 320px; height: 320px; top: -120px; right: -40px; background: rgb(255 255 255 / 3%); }
.portal-home .newsletter-get-demo-section-inner::after { width: 220px; height: 220px; bottom: -150px; right: 220px; border-color: rgb(188 254 90 / 18%); }
.portal-home .newsletter-get-demo-left h2 { margin: 0; color: #fff; font-size: clamp(24px,2.4vw,32px); line-height: 1.4; letter-spacing: -.03em; }
.portal-home .newsletter-get-demo-left { padding-bottom: 0; }
.portal-home .newsletter-get-demo-left a { display: inline-flex; align-items: center; gap: 16px; margin-top: 22px; padding: 11px 17px; border: 1px solid #bcfe5a; border-radius: 12px; background: #bcfe5a; color: #183a24; font-size: 13px; font-weight: 600; line-height: 1.5; transition: background .2s, box-shadow .2s; }
.portal-home .newsletter-get-demo-left a:hover { background: #d0ff8a; box-shadow: 0 5px 18px rgb(0 0 0 / 12%); }
.portal-home .newsletter-get-demo-left a svg { margin: 0; width: 20px; height: 20px; }
.portal-home .newsletter-box { max-height: 200px; }
.portal-home .newsletter-box img { max-height: 190px; filter: drop-shadow(0 12px 14px rgb(0 18 50 / 20%)); transform: rotate(-4deg); }
html.dark-scheme .portal-home .newsletter-get-demo-section-inner { background: linear-gradient(120deg,#142c4f,#10223d); }
.portal-home .footer-section.v2, .portal-home .footer-bottom { background: #fff; border-top-color: var(--portal-border); }
.portal-home .footer-bottom { padding-block: 28px; }
.portal-home .footer-copyright a, .portal-home .footer-copyright p { color: var(--portal-muted); font-size: 12px; }
.portal-home .align-end-footer { flex-wrap: wrap; gap: 10px 18px; }
.portal-home .footer-instagram-btn { background: var(--portal-surface); border: 1px solid var(--portal-border); color: var(--portal-text); border-radius: 10px; font-size: 11px; }
/* The existing header switch continues to own the public dark theme. */
html.dark-scheme .portal-home { --portal-text: #edf4ff; --portal-muted: #a8b9cc; --portal-surface: #121f30; --portal-soft: #19283b; --portal-border: #2c4059; --portal-primary: #90baff; }
html.dark-scheme .portal-home .view-all-dashboard-btn { background: #084fb9; color: #fff; }
html.dark-scheme .portal-home .learning-category-menu { background: var(--portal-surface); border-color: var(--portal-border); color: var(--portal-text); }
html.dark-scheme .portal-home .learning-category-search input { background: var(--portal-soft); color: var(--portal-text); }
html.dark-scheme .portal-home .learning-category-option { color: var(--portal-text); }
html.dark-scheme .portal-home .learning-category-option:hover, html.dark-scheme .portal-home .learning-category-option.is-selected { background: var(--portal-soft); }
html.dark-scheme .portal-home .elfsight-feed-card::before { display: none; }
/* Login has its own lightweight shell so viewport height never clips access options. */
.portal-login { margin: 0; }
.portal-login *, .portal-login *::before, .portal-login *::after { box-sizing: border-box; }
.portal-login a { text-decoration: none; }
.portal-login .floating-right { top: auto; bottom: 20px; left: auto; right: 20px; transform: none; }
.portal-login .floating-right .fl-btn { border-radius: 12px; }
.login-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); min-height: 100vh; min-height: 100svh; }
.login-story { position: relative; isolation: isolate; display: flex; flex-direction: column; padding: 28px clamp(32px,5vw,80px) 20px; color: #fff; background: radial-gradient(ellipse at 10% 70%, #2468b0, transparent 65%), linear-gradient(150deg,#103c80,#0f4494); overflow: hidden; }
.login-story::before { content: ''; position: absolute; z-index: -1; width: 600px; height: 600px; right: -410px; top: -250px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 50%; box-shadow: 0 0 0 100px rgb(255 255 255 / 3%), 0 0 0 200px rgb(255 255 255 / 2%); }
.portal-brand { display: inline-flex; align-items: center; align-self: flex-start; gap: 12px; color: #fff; font-size: 23px; font-weight: 600; letter-spacing: -.04em; line-height: 1.35; }
.portal-brand img { object-fit: contain; }
.portal-brand small { display: block; margin-top: 4px; font-size: 9px; font-weight: 400; letter-spacing: .02em; opacity: .75; }
.login-story-content { width: 100%; max-width: 480px; margin: auto; padding: 24px 0; }
.login-story h1 { margin: 0; font-size: clamp(30px,3.3vw,46px); font-weight: 600; line-height: 1.3; letter-spacing: -.045em; }
.login-story h1 span { color: var(--portal-accent); }
.login-story-content > p:not(.portal-kicker) { max-width: 410px; margin: 18px 0 0; font-size: 13px; line-height: 1.9; color: rgb(255 255 255 / 78%); }
.login-visual { position: relative; display: grid; place-items: center; max-width: 440px; height: clamp(260px,36svh,340px); margin: 20px auto 0; }
.login-visual img { position: relative; width: 330px; max-width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; animation: portal-login-mascot-float 5s ease-in-out infinite; }
@keyframes portal-login-mascot-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}
.login-visual-orbit { position: absolute; width: 300px; max-width: 100%; aspect-ratio: 1; border: 1px solid rgb(255 255 255 / 18%); border-radius: 50%; background: rgb(255 255 255 / 5%); box-shadow: 0 0 0 28px rgb(255 255 255 / 3%); }
.login-visual-label { position: absolute; padding: 9px 14px; border-radius: 10px; background: #fff; color: var(--portal-deep); box-shadow: 0 12px 24px rgb(0 0 0 / 10%); font-size: 10px; font-weight: 500; }
.label-learning { top: 42px; right: 0; transform: rotate(4deg); }
.label-knowledge { bottom: 32px; left: 0; transform: rotate(-4deg); }
.login-story-foot { margin: 0; color: rgb(255 255 255 / 65%); font-size: 11px; }
.login-panel { display: flex; flex-direction: column; align-items: center; padding: 28px clamp(24px,5vw,80px) 16px; background: #fff; }
.login-back { display: inline-flex; align-items: center; align-self: flex-start; gap: 10px; color: var(--portal-muted); font-size: 11px; }
.login-back:hover { color: var(--portal-primary); }
.login-card { width: 100%; max-width: 410px; margin: auto; padding: 24px 0; }
.login-eyebrow { font-size: 10px; font-weight: 600; color: var(--portal-primary); letter-spacing: .1em; }
.login-card h2 { margin: 12px 0; font-size: clamp(27px,2.5vw,34px); font-weight: 600; line-height: 1.35; letter-spacing: -.045em; }
.login-description { margin: 0; max-width: 365px; color: var(--portal-muted); font-size: 13px; line-height: 1.8; }
.login-methods { display: grid; gap: 12px; margin-top: 22px; }
.login-method { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--portal-border); border-radius: 14px; color: var(--portal-text); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.login-method:hover { border-color: var(--portal-primary); box-shadow: var(--portal-shadow); transform: translateY(-2px); }
.login-method-intra { background: #f0f5fc; border-color: #d5e2f4; }
.login-method-icon { display: grid; place-items: center; flex: 0 0 46px; height: 46px; background: #fff; border: 1px solid var(--portal-border); border-radius: 12px; }
.login-method-icon img { object-fit: contain; }
.login-method-copy { flex: 1; min-width: 0; }
.login-method-copy strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.6; }
.login-method-copy small { display: block; margin-top: 4px; color: var(--portal-muted); font-size: 12px; line-height: 1.6; }
.login-method-arrow { color: var(--portal-primary); font-size: 20px; }
.login-secure { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 18px; color: var(--portal-muted); font-size: 9px; }
.login-secure svg { flex-shrink: 0; }
.login-help { display: flex; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--portal-border); }
.login-help-icon { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 50%; background: #eef3f8; color: var(--portal-primary); font-weight: 600; }
.login-help strong { font-size: 12px; font-weight: 500; }
.login-help p { margin: 4px 0 8px; color: var(--portal-muted); font-size: 10px; }
.login-help a { color: var(--portal-primary); font-size: 11px; font-weight: 600; }
.login-help a:hover { text-decoration: underline; }
.login-footer { text-align: center; font-size: 11px; color: var(--portal-muted); line-height: 1.9; }
.login-footer span { color: #6f808d; }
.login-alert { margin-top: 16px; padding: 14px; border: 1px solid #efc7c2; border-radius: 10px; color: #b42318; background: #fdf0ee; font-size: 12px; }
@media (max-width: 1199.98px) {
    .portal-services { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 760px; margin-inline: auto; }
    .portal-home .best-services-section .slick-prev { left: -220px; }
    .portal-home .best-services-section .slick-next { left: -168px; }
}
@media (max-width: 991.98px) {
    .portal-home .best-services-left { margin-bottom: 26px; }
    .portal-home .best-services-left p { max-width: 540px; }
    .portal-home .learning-category-select { max-width: 340px; }
    .portal-home .best-services-section :is(.slick-prev,.slick-next) { top: -55px; bottom: auto; }
    .portal-home .best-services-section .slick-prev { left: auto; right: 64px; }
    .portal-home .best-services-section .slick-next { left: auto; right: 12px; }
    .login-story { padding-inline: 30px; }
    .login-panel { padding-inline: 30px; }
    .login-story h1 { font-size: 33px; }
    .login-visual-label { font-size: 9px; padding: 8px 10px; }
}
@media (max-width: 767.98px) {
    .portal-hero { padding: 52px 0 32px; }
    .portal-home .container { padding-inline: 20px; }
    .portal-kicker { font-size: 9px; letter-spacing: .08em; }
    .portal-summary { font-size: 12px; }
    .portal-services { margin-top: 28px; gap: 10px; }
    .portal-service { padding: 14px 12px; gap: 9px; grid-template-columns: 32px minmax(0,1fr) 12px; }
    .portal-service-icon { width: 32px; height: 36px; font-size: 15px; }
    .portal-service strong { font-size: 11px; }
    .portal-service small { font-size: 9px; }
    .portal-home .counter-section { padding: 66px 0 40px; }
    .portal-home .counter-card { grid-template-columns: repeat(3,minmax(0,1fr)); min-height: 0; padding: 16px 10px 24px; gap: 16px 0; border-radius: 24px; }
    .portal-home .counter-mascot { grid-column: 1 / -1; width: 220px; height: 120px; margin: 0 auto 10px; }
    .portal-home .counter-mascot img { width: 250px; top: 36%; }
    .portal-home .counter-card .counter-item { padding: 0 6px; gap: 8px; }
    .portal-home .counter-card h2 { font-size: clamp(25px,6.5vw,34px); }
    .portal-home .counter-card p { max-width: 110px; font-size: 9px; }
    .portal-home .counter-stat-icon { width: 30px; height: 30px; font-size: 12px; }

    .portal-home .faq-seciton-header .faq-header-right { display: none; }
    .portal-home .faq-seciton.v2 { padding: 40px 0; }
    .portal-home .faq-seciton .accordion-button { min-height: 60px; padding: 14px 16px; font-size: 15px; }
    .portal-home .faq-seciton .accordion-body { padding: 14px 16px 16px; font-size: 15px; }
    .portal-home .newsletter-get-demo-section-inner { padding: 28px; min-height: 0; }
    .portal-home .newsletter-get-demo-section-inner::before { right: -220px; }
    .portal-home .newsletter-get-demo-section-inner::after { display: none; }
    .portal-home .newsletter-box { display: none; }
    .portal-home .footer-copyright { margin-top: 20px; }
    .portal-home .align-end-footer { justify-content: center; }
    .login-layout { grid-template-columns: minmax(0,1fr); }
    .login-story { padding: 20px 24px; }
    .portal-brand { font-size: 20px; }
    .portal-brand img { width: 36px; height: 36px; }
    .login-story-content { display: none; }
    .login-story h1 { font-size: 30px; }
    .login-story-content > p:not(.portal-kicker) { max-width: 460px; font-size: 11px; margin-top: 12px; }
    .login-story .portal-kicker, .login-visual, .login-story-foot { display: none; }
    .login-panel { padding: 16px 24px; }
    .login-back { align-self: center; }
    .login-card { max-width: 450px; padding: 20px 0; }
    .login-card h2 { font-size: 28px; }
    .login-description { font-size: 12px; }
    .login-methods { margin-top: 20px; }
    .login-help { margin-top: 18px; padding-top: 16px; }
}
@media (min-width: 768px) and (max-height: 650px) {
    .login-story, .login-panel { padding-top: 20px; padding-bottom: 16px; }
    .login-story-content, .login-card { padding-block: 16px; }
    .login-story h1 { font-size: 30px; }
    .login-visual { height: 220px; margin-top: 16px; }
    .login-visual img { width: 250px; }
    .login-visual-orbit { width: 230px; }
    .login-methods { margin-top: 18px; }
    .login-help { margin-top: 16px; padding-top: 14px; }
}
@media (max-width: 420px) {
    .portal-home .container { padding-inline: 16px; }
    .portal-hero h1 { font-size: 30px; }
    .portal-topics { gap: 6px 12px; font-size: 9px; }
    .portal-services { grid-template-columns: minmax(0,1fr); }
    .portal-service { padding: 12px 14px; }
    .portal-service strong { font-size: 12px; }
    .portal-service small { font-size: 10px; }
    .portal-home .best-services-section :is(.slick-prev,.slick-next) { top: -52px; }
    .portal-home .learning-category-select { max-width: calc(100% - 110px); }
    .login-story, .login-panel { padding-inline: 20px; }
    .login-method { gap: 10px; padding: 14px; }
    .login-method-icon { flex-basis: 40px; height: 40px; }
    .login-method-copy strong { font-size: 12px; }
    .login-secure { font-size: 8px; }
}
@media (max-width: 767.98px) and (max-height: 700px) {
    .login-story { padding-block: 16px; }
    .login-card { padding-block: 16px; }
    .login-card h2 { font-size: 26px; }
    .login-methods { margin-top: 16px; gap: 10px; }
    .login-help { margin-top: 14px; padding-top: 12px; }
    .login-footer { line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) {
    .portal-home *, .portal-home *::before, .portal-home *::after, .portal-login * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Override legacy component selectors where they own stronger theme rules. */
.portal-home .kudagang-header-section { padding-block: 0; }
.portal-home .kudagang-header-section.sticky { padding-block: 0 !important; }
.portal-home .kudagang-header-left .header-logo { display: inline-flex; align-items: center; gap: 10px; }
.portal-home .kudagang-header-left .header-logo::after { content: 'Kudagang'; color: #fff; font-size: 21px; font-weight: 600; letter-spacing: -.04em; }
.portal-home .nav-expander img { filter: brightness(0) invert(1); }
.portal-home .kudagang-card .kudagang-text { width: 100%; background: var(--portal-surface); }
.portal-home .kudagang-card .kudagang-text .kudagang-title { color: var(--portal-text); font-size: 14px; font-weight: 600; line-height: 1.6; }
.portal-home :is(.max-img-kms,.max-img-lms) { aspect-ratio: 16/10; background: var(--portal-soft); }
.portal-home :is(.max-img-kms,.max-img-lms) > a { display: block; height: 100%; }
.portal-home :is(.max-img-kms,.max-img-lms) img { width: 100%; height: 100%; object-fit: cover; }
.portal-home .faq-seciton .accordion-button { padding-right: 58px; }
.portal-home .faq-seciton .accordion-button::after { content: '+'; position: absolute; left: auto; right: 14px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; margin: 0; background: var(--portal-soft); font-size: 23px; line-height: 1; font-weight: 400; color: var(--portal-primary); }
.portal-home .faq-seciton .accordion-button:not(.collapsed)::after { content: '−'; }
.portal-home .faq-seciton .accordion-button:not(.collapsed)::after { background: var(--portal-primary); color: var(--portal-surface); }
.portal-home .faq-seciton .accordion-collapse.collapse.show { box-shadow: none; }
html.dark-scheme body.portal-home .best-services-section { background: var(--portal-soft); }
html.dark-scheme body.portal-home .best-services-text h5 { color: var(--portal-text) !important; }
html.dark-scheme body.portal-home .counter-card h2 { color: var(--portal-primary) !important; }
html.dark-scheme body.portal-home .faq-seciton { background: var(--portal-soft) !important; }
html.dark-scheme body.portal-home .kudagang-header-section { background: var(--portal-deep); }
@media (max-width: 767.98px) { .portal-home .kudagang-header-left .header-logo::after { font-size: 18px; } }
/* Restored five-slide hero and two opposing topic ribbons. */
.portal-hero-slider { padding: 48px 0 26px; }
.portal-slider-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); align-items: center; gap: clamp(24px,4vw,56px); }
.portal-slider-copy, .portal-slider-media { min-width: 0; }
.portal-slider-copy:not(.slick-initialized) > .portal-copy-slide:not(:first-child), .portal-slider-images:not(.slick-initialized) > .portal-image-slide:not(:first-child) { display: none; }
.portal-copy-slide { min-height: 300px; padding: 20px 0; }
.portal-copy-slide .portal-kicker { font-size: 10px; letter-spacing: .11em; text-transform: uppercase; color: var(--portal-accent); }
.portal-home .portal-copy-slide h2 { margin: 0; color: #fff; font-size: clamp(30px,3.1vw,44px); line-height: 1.24; font-weight: 600; letter-spacing: -.045em; }
.portal-copy-slide h2 span { color: var(--portal-accent); }
.portal-copy-slide .portal-summary { max-width: 460px; margin: 18px 0 0; font-size: 12px; line-height: 1.9; }
.portal-copy-slide .portal-hero-actions { margin-top: 26px; justify-content: flex-start; align-items: center; }
.portal-copy-slide .portal-button { font-size: 12px; gap: 16px; }
.portal-slider-faq { font-size: 11px; color: rgb(255 255 255 / 80%); padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; }
.portal-slider-faq:hover { color: #fff; }
.portal-slider-images { border: 1px solid rgb(255 255 255 / 22%); border-radius: 20px; overflow: hidden; background: rgb(255 255 255 / 8%); box-shadow: 0 16px 44px rgb(0 20 60 / 18%); }
.portal-slider-images .slick-list { border-radius: inherit; }
.portal-image-slide { position: relative; aspect-ratio: 3/2; }
.portal-image-slide > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portal-image-slide::after { content: ''; position: absolute; inset: 60% 0 0; pointer-events: none; background: linear-gradient(transparent,rgb(7 26 54 / 65%)); }
.portal-image-badge { position: absolute; z-index: 1; bottom: 20px; left: 20px; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1px solid rgb(255 255 255 / 35%); border-radius: 10px; background: rgb(15 68 148 / 75%); backdrop-filter: blur(8px); color: #fff; font-size: 11px; font-weight: 500; }
.portal-image-badge i { color: var(--portal-accent); }
.portal-slider-controls { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.portal-slide-count { display: flex; gap: 7px; align-items: baseline; font-size: 12px; font-variant-numeric: tabular-nums; }
.portal-slide-count strong { font-weight: 600; color: var(--portal-accent); font-size: 17px; }
.portal-slide-count > span { color: rgb(255 255 255 / 55%); }
.portal-slide-rule { flex: 1; height: 1px; background: rgb(255 255 255 / 20%); margin-inline: 12px; }
.portal-slider-controls button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid rgb(255 255 255 / 28%); border-radius: 50%; background: transparent; color: #fff; font-size: 17px; cursor: pointer; transition: background .2s; }
.portal-slider-controls button:hover { background: rgb(255 255 255 / 15%); }
.portal-slider-controls .portal-slider-next { border-color: var(--portal-accent); color: #183a24; background: var(--portal-accent); }
.portal-slide-tabs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-top: 30px; }
.portal-slide-tab { display: flex; align-items: center; gap: 10px; position: relative; overflow: hidden; min-height: 54px; padding: 12px 16px; border: 1px solid rgb(255 255 255 / 20%); border-radius: 12px; background: rgb(255 255 255 / 5%); color: rgb(255 255 255 / 80%); font-size: 11px; font-weight: 500; cursor: pointer; transition: border-color .2s, background .2s; }
.portal-slide-tab > i { color: var(--portal-accent); font-size: 15px; }
.portal-slide-tab.is-active { background: rgb(188 254 90 / 12%); border-color: rgb(188 254 90 / 75%); color: #fff; }
.portal-slide-tab:hover { background: rgb(255 255 255 / 12%); color: #fff; }
.portal-tab-number { margin-left: auto; color: rgb(255 255 255 / 38%); font-size: 9px; }
.portal-carousel-heading { margin: 28px auto 14px; color: rgb(255 255 255 / 55%); text-align: center; font-size: 8px; font-weight: 500; letter-spacing: .14em; }
.portal-topic-carousel { overflow: hidden; position: relative; }
.portal-topic-carousel::before, .portal-topic-carousel::after { content: ''; position: absolute; inset-block: 0; z-index: 1; width: 7%; pointer-events: none; }
.portal-topic-carousel::before { left: 0; background: linear-gradient(90deg,#0f4088,transparent); }
.portal-topic-carousel::after { right: 0; background: linear-gradient(-90deg,#0e397b,transparent); }
.portal-topic-row { display: flex; width: 100%; overflow: hidden; }
.portal-topic-row + .portal-topic-row { margin-top: 10px; }
.portal-topic-track { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-start; width: max-content; gap: 12px; margin: 0; padding: 0 12px 0 0; list-style: none; animation: portal-topics-scroll 65s linear infinite; }
.portal-topic-row-reverse .portal-topic-track { animation-direction: reverse; animation-duration: 75s; }
.portal-topic-track li { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; min-height: 40px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 18%); background: rgb(255 255 255 / 7%); color: #fff; }
.portal-topic-track li > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgb(255 255 255 / 12%); }
.portal-topic-track img { width: 19px; height: 19px; object-fit: contain; }
.portal-topic-track strong { font-family: inherit; font-size: 10px; font-weight: 400; line-height: 1.5; white-space: nowrap; }
.portal-topic-carousel:hover .portal-topic-track, .portal-hero-slider.is-paused .portal-topic-track, .portal-hero-slider:focus-within .portal-topic-track { animation-play-state: paused; }
@keyframes portal-topics-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (max-width: 991.98px) {
    .portal-slider-layout { gap: 24px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
    .portal-home .portal-copy-slide h2 { font-size: 30px; }
    .portal-copy-slide { min-height: 325px; }
    .portal-slide-tabs { gap: 8px; }
    .portal-slide-tab { padding: 12px 10px; gap: 7px; font-size: 10px; }
    .portal-tab-number { display: none; }
}
@media (max-width: 767.98px) {
    .portal-hero-slider { padding: 26px 0 22px; }
    .portal-slider-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .portal-copy-slide { min-height: 255px; padding: 0; }
    .portal-home .portal-copy-slide h2 { font-size: clamp(29px,5.4vw,36px); }
    .portal-copy-slide .portal-summary { max-width: 560px; font-size: 11px; margin-top: 14px; }
    .portal-copy-slide .portal-hero-actions { margin-top: 20px; gap: 10px; }
    .portal-copy-slide .portal-button { font-size: 11px; min-height: 43px; padding-inline: 15px; }
    .portal-slider-images { border-radius: 16px; }
    .portal-image-slide { aspect-ratio: 16/9; }
    .portal-image-badge { left: 14px; bottom: 14px; padding: 7px 10px; font-size: 10px; }
    .portal-slider-controls { margin-top: 12px; }
    .portal-slide-tabs { display: flex; overflow-x: auto; gap: 8px; margin-top: 20px; padding: 0 0 7px; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 25%) transparent; }
    .portal-slide-tab { flex: 0 0 auto; min-height: 44px; padding: 10px 14px; font-size: 10px; }
    .portal-carousel-heading { margin-top: 20px; }
    .portal-topic-track { gap: 9px; padding-right: 9px; }
    .portal-topic-track li { gap: 7px; padding: 5px 11px 5px 6px; min-height: 36px; }
    .portal-topic-track strong { font-size: 9px; }
    .portal-topic-track li > span { width: 24px; height: 24px; }
    .portal-topic-track img { width: 17px; height: 17px; }
}
@media (max-width: 360px) {
    .portal-copy-slide { min-height: 290px; }
    .portal-home .portal-copy-slide h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .portal-topic-row { overflow-x: auto; }
    .portal-topic-duplicate { display: none; }
}
/* Navigation and carousel use the selected theme surfaces. */
.portal-home .kudagang-header-section, .portal-home .kudagang-header-section.sticky,
html.dark-scheme body.portal-home .kudagang-header-section { background: var(--portal-surface); border-bottom: 1px solid var(--portal-border); }
.portal-home .kudagang-header-section.sticky { box-shadow: 0 4px 20px rgb(15 68 148 / 7%); }
.portal-home .kudagang-header-left .header-logo::after { color: var(--portal-primary); }
.portal-home .nav-expander img { filter: none; }
.portal-home .kudagang-header-right .kudagang-header-bnts .connect-btn { background: #084fb9; border-color: #084fb9; color: #fff; box-shadow: 0 3px 10px rgb(8 79 185 / 12%); }
.portal-home .kudagang-header-right .kudagang-header-bnts .connect-btn:hover { background: #0f4494; border-color: #0f4494; }
.portal-hero-slider { padding-bottom: 0; }
.portal-slide-tab { border-color: var(--portal-border); background: var(--portal-surface); color: var(--portal-muted); box-shadow: 0 4px 14px rgb(0 20 60 / 6%); }
.portal-slide-tab > i { color: var(--portal-primary); }
.portal-slide-tab.is-active { background: var(--portal-surface); border-color: #a2df46; color: var(--portal-primary); box-shadow: inset 0 -3px 0 #a2df46, 0 4px 14px rgb(0 20 60 / 6%); }
.portal-slide-tab:hover { background: var(--portal-soft); color: var(--portal-primary); border-color: var(--portal-primary); }
.portal-tab-number { color: var(--portal-muted); }
.portal-carousel-band { margin-top: 28px; padding: 20px 0 24px; background: var(--portal-surface); border-top: 1px solid var(--portal-border); }
.portal-carousel-heading { margin: 0 auto 14px; color: var(--portal-muted); }
.portal-topic-carousel { background: var(--portal-surface); }
.portal-topic-carousel::before { background: linear-gradient(90deg,var(--portal-surface),transparent); }
.portal-topic-carousel::after { background: linear-gradient(-90deg,var(--portal-surface),transparent); }
.portal-topic-track li { border-color: var(--portal-border); background: var(--portal-surface); color: var(--portal-text); box-shadow: 0 2px 5px rgb(15 68 148 / 3%); }
.portal-topic-track li > span { background: #eaf2fb; }
.portal-topic-track li:nth-child(3n + 2) > span { background: #f2f9e6; }
.portal-topic-track li:nth-child(3n) > span { background: #fff5e3; }
@media (max-width: 767.98px) { .portal-carousel-band { margin-top: 16px; padding: 18px 0 20px; } }
/* Preserve the published slider copy, including its original subtitle. */
.portal-home .portal-copy-slide h2 { font-size: clamp(26px,2.5vw,34px); line-height: 1.28; letter-spacing: -.035em; }
.portal-slide-tagline { margin: 16px 0 0; max-width: 460px; color: #fff; font-size: 15px; font-weight: 500; line-height: 1.6; }
.portal-copy-slide .portal-summary { margin-top: 12px; }
.portal-copy-slide { min-height: 360px; }
@media (max-width: 991.98px) {
    .portal-home .portal-copy-slide h2 { font-size: 26px; }
    .portal-slide-tagline { font-size: 13px; }
    .portal-copy-slide { min-height: 390px; }
}
@media (max-width: 767.98px) {
    .portal-home .portal-copy-slide h2 { font-size: clamp(24px,4.3vw,30px); }
    .portal-copy-slide { min-height: 325px; }
    .portal-slide-tagline { font-size: 13px; margin-top: 14px; }
}
@media (max-width: 360px) { .portal-copy-slide { min-height: 365px; } .portal-home .portal-copy-slide h2 { font-size: 23px; } }

/* Dark hero keeps the brand accents against a quieter navy background. */
html.dark-scheme .portal-home { color-scheme: dark; }
html.dark-scheme .portal-home .portal-hero-slider { background: radial-gradient(ellipse at 85% 15%, #1b365a 0, transparent 55%), linear-gradient(135deg,#101c2d,#132640 60%,#0e1c30); }
html.dark-scheme .portal-home .portal-hero-slider::before, html.dark-scheme .portal-home .portal-hero-slider::after { border-color: rgb(144 186 255 / 10%); box-shadow: 0 0 0 90px rgb(144 186 255 / 3%), 0 0 0 180px rgb(144 186 255 / 2%); }
html.dark-scheme .portal-home .portal-slider-images { background: #19283b; border-color: #3a4e69; box-shadow: 0 16px 44px rgb(0 0 0 / 24%); }
html.dark-scheme .portal-home .portal-image-badge { background: rgb(18 31 48 / 88%); border-color: #4a6080; }
html.dark-scheme .portal-home .portal-kicker { background: rgb(188 254 90 / 8%); border-color: rgb(188 254 90 / 25%); }
html.dark-scheme .portal-home .portal-slider-controls button:not(.portal-slider-next) { background: #192b43; border-color: #4a6080; }
html.dark-scheme .portal-home .portal-slider-controls button:not(.portal-slider-next):hover { background: #294362; }
html.dark-scheme .portal-home .portal-slide-tab.is-active { background: #1b302d; color: #bcfe5a; }
html.dark-scheme .portal-home .portal-slide-tab.is-active > i { color: #bcfe5a; }
html.dark-scheme .portal-home .portal-topic-track li > span { background: #243a55; }
html.dark-scheme .portal-home .portal-topic-track li:nth-child(3n + 2) > span { background: #293e27; }
html.dark-scheme .portal-home .portal-topic-track li:nth-child(3n) > span { background: #493b26; }
html.dark-scheme .portal-home .nav-expander img { filter: brightness(0) invert(1); }
html.dark-scheme .portal-home .kudagang-header-right .session-dropdown-menu { background: var(--portal-surface); border-color: var(--portal-border); box-shadow: 0 16px 32px rgb(0 0 0 / 25%); }
html.dark-scheme .portal-home .kudagang-header-right .session-dropdown-menu a { color: var(--portal-text); }
html.dark-scheme .portal-home .kudagang-header-right .session-dropdown-menu a:hover { background: var(--portal-soft); }
/* Learning cards: full-width covers, readable overlays, and one clear link. */
.portal-home :is(.best-services-card,.kudagang-card).learning-card { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; color: var(--portal-text); text-decoration: none; border-radius: 18px; box-shadow: 0 5px 18px rgb(15 68 148 / 5%); transition: border-color .2s, box-shadow .2s; }
.portal-home .best-services-card.learning-card::before, .portal-home .best-services-card.learning-card::after { display: none; }
.portal-home .learning-card:hover, .portal-home .learning-card:focus-visible { border-color: var(--portal-primary); box-shadow: 0 10px 30px rgb(15 68 148 / 12%); }
.portal-home :is(.max-img-kms,.max-img-lms) { position: relative; flex-shrink: 0; width: 100%; height: auto; max-height: none; min-height: 0; aspect-ratio: 16/10; overflow: hidden; }
.portal-home :is(.max-img-kms,.max-img-lms) img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: none; max-height: none; object-fit: cover; object-position: center; }
.portal-home .learning-card :is(.best-services-img > img,.knowledge-card-cover > img) { transition: transform .45s ease; }
.portal-home .learning-card:hover :is(.best-services-img > img,.knowledge-card-cover > img), .portal-home .learning-card:focus-within :is(.best-services-img > img,.knowledge-card-cover > img) { transform: scale(1.045); }
.learning-card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg,rgb(10 29 55 / 12%) 0%,transparent 40%,rgb(10 29 55 / 38%) 100%); pointer-events: none; }
.learning-card-label { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border: 1px solid rgb(255 255 255 / 25%); border-radius: 999px; background: rgb(15 38 70 / 70%); color: #fff; font-size: 9px; font-weight: 500; line-height: 1.5; backdrop-filter: blur(8px); }
.learning-card-label i { font-size: 10px; color: #bcfe5a; }
.learning-card-open { position: absolute; display: grid; place-items: center; right: 14px; bottom: 14px; width: 34px; height: 34px; border: 1px solid rgb(255 255 255 / 40%); border-radius: 50%; background: rgb(255 255 255 / 12%); color: #fff; backdrop-filter: blur(8px); transition: background .2s, color .2s; }
.portal-home .learning-card:hover .learning-card-open, .portal-home .learning-card:focus-visible .learning-card-open { background: #bcfe5a; border-color: #bcfe5a; color: #183a24; }
.portal-home .learning-card .best-services-text { display: flex; flex: 1; flex-direction: column; width: 100%; padding: 18px; }
.portal-home .learning-card .text-title-lms { margin: 0 0 12px; min-height: 67px; font-size: 14px; font-weight: 600; line-height: 1.6; -webkit-line-clamp: 3; }
.portal-home .learning-card .learning-card-provider { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 18px; font-size: 10px; font-weight: 400; line-height: 1.8; }
.learning-card-provider > i { flex-shrink: 0; margin-top: 4px; color: var(--portal-primary); opacity: .7; }
.learning-card-provider > span { min-width: 0; }
.learning-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--portal-border); color: var(--portal-primary); font-size: 10px; font-weight: 500; }
.learning-card-footer > span { font-size: 17px; line-height: 1; }
.portal-home .slider-khusus .slick-slide > div { width: 100%; }
.portal-home .best-services-section .slick-prev, .portal-home .best-services-section .slick-next { border: 1px solid var(--portal-border); background: var(--portal-surface); box-shadow: 0 3px 10px rgb(15 68 148 / 4%); }
.portal-home .best-services-section .slick-prev:hover, .portal-home .best-services-section .slick-next:hover { border-color: var(--portal-primary); background: var(--portal-soft); }
html.dark-scheme .portal-home .learning-card:hover, html.dark-scheme .portal-home .learning-card:focus-visible { box-shadow: 0 10px 30px rgb(0 0 0 / 22%); }
@media (max-width: 767.98px) { .portal-home .learning-card .text-title-lms { min-height: 0; } }

/* Knowledge cards share the learning cover treatment, retaining author links. */
.portal-home .knowledge-card:focus-within { border-color: var(--portal-primary); box-shadow: 0 10px 30px rgb(15 68 148 / 12%); }
.portal-home .knowledge-card .kudagang-text { position: static; z-index: auto; display: flex; flex: 1; flex-direction: column; width: 100%; padding: 18px; min-height: 0; }
.portal-home .knowledge-card .kudagang-title { margin: 0 0 12px; min-height: 67px; font-size: 14px; line-height: 1.6; -webkit-line-clamp: 3; }
.knowledge-card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 18px; }
.knowledge-card-link:focus-visible { outline: none; }
.knowledge-card-link:focus-visible::after { outline: 3px solid #4a8bd1; outline-offset: -3px; }
.knowledge-card-category { display: inline-flex; align-items: center; align-self: flex-start; gap: 7px; max-width: 100%; margin-bottom: 14px; padding: 4px 8px; border: 1px solid var(--portal-border); border-radius: 7px; background: var(--portal-soft); color: var(--portal-muted); font-size: 9px; line-height: 1.7; }
.knowledge-card-category > i { color: var(--portal-primary); }
.knowledge-card-author { position: relative; z-index: 2; display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; margin-bottom: 18px; color: var(--portal-muted); font-size: 10px; line-height: 1.8; }
a.knowledge-card-author:hover { color: var(--portal-primary); }
.knowledge-card-author > i { color: var(--portal-primary); font-size: 13px; }
.knowledge-card-footer .knowledge-content-type { display: inline-flex; align-items: center; gap: 6px; color: var(--portal-muted); font-size: 9px; line-height: 1.6; }
.knowledge-card-footer .knowledge-card-action { display: inline-flex; align-items: center; gap: 10px; font-size: 9px; line-height: 1.6; }
.knowledge-card-action > span { font-size: 17px; line-height: 1; }
.portal-home .knowledge-card .kudagang-img { z-index: 2; border-radius: 0; }
.portal-home .knowledge-card-cover { position: relative; }
.portal-home .knowledge-card-cover :is(.learning-card-label,.learning-card-open,.learning-card-overlay) { pointer-events: none; }
.portal-home .knowledge-card:focus-within .learning-card-open { background: #bcfe5a; border-color: #bcfe5a; color: #183a24; }
@media (max-width: 767.98px) { .portal-home .knowledge-card .kudagang-title { min-height: 0; } }
.portal-home .knowledge-card::before, .portal-home .knowledge-card::after { display: none; }
.portal-home .knowledge-card .kudagang-text { border-radius: 0; }
html.dark-scheme .portal-home .knowledge-card { background: var(--portal-surface); border: 1px solid var(--portal-border); }
html.dark-scheme .portal-home .knowledge-card .kudagang-text { background: var(--portal-surface); border: 0; }
@media (max-width: 991.98px) {
    .portal-home .knowledge-section-container .best-services-left { margin-bottom: 80px; }
}
