:root {
  --navy: #0e3477;
  --navy-dark: #0a1f4a;
  --gold: #f1b400;
  --gold-dark: #d99e00;
  --ink: #1c2540;
  --muted: #5b6478;
  --soft: #f5f8ff;
  --wa: #25d366;
  --radius: 14px;
}
html { scroll-behavior: smooth; }
body { font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--ink); line-height: 1.65; background: #fff; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.01em; color: var(--navy-dark); }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }

/* top bar + nav */
.topbar { background: var(--navy-dark); color: #dfe7fb; font-size: .85rem; padding: 6px 0; }
.topbar a { color: #fff; text-decoration: none; }
.site-nav { background: #fff; box-shadow: 0 2px 12px rgba(14, 52, 119, .08); padding: .4rem 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-weight: 800; color: var(--navy); font-size: 1.25rem; }
.brand-text small { font-weight: 600; color: var(--gold-dark); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.site-nav .nav-link { color: var(--navy); font-weight: 600; padding: .6rem .8rem; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--gold-dark); }
.mega-menu { width: 100%; left: 0; right: 0; border: 0; border-top: 3px solid var(--gold); padding: 1.5rem 0; border-radius: 0 0 var(--radius) var(--radius); max-height: 75vh; overflow-y: auto; }
.mega-menu h6 { font-weight: 700; margin-bottom: .5rem; }
.mega-menu h6 a { text-decoration: none; color: var(--navy); }
.mega-menu li a { display: block; padding: .15rem 0; color: var(--ink); text-decoration: none; font-size: .92rem; }
.mega-menu li a:hover { color: var(--gold-dark); }
.mega-menu li a.more { color: var(--navy); font-weight: 600; }
@media (min-width: 1200px) { .nav-item.dropdown:hover > .dropdown-menu { display: block; } }

/* buttons */
.btn { border-radius: 999px; font-weight: 600; padding: .6rem 1.4rem; }
.btn-gold { background: var(--gold); color: var(--navy-dark); border: 0; }
.btn-gold:hover { background: var(--gold-dark); color: var(--navy-dark); }
.btn-navy { background: var(--navy); color: #fff; border: 0; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; border: 0; }
.btn-wa:hover { background: #1ebe5d; color: #fff; }
.btn-outline-light:hover { color: var(--navy); }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(241, 180, 0, .25), transparent 60%), linear-gradient(135deg, var(--navy-dark), var(--navy) 60%, #1a4aa3); color: #fff; padding: 4.5rem 0 5rem; position: relative; overflow: hidden; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.15; }
.hero h1 span { color: var(--gold); }
.hero .lead { color: #dbe5ff; max-width: 38rem; }
.hero .badge-pill { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); color: #fff; padding: .35rem .9rem; border-radius: 999px; font-size: .85rem; margin: 0 .4rem .5rem 0; }
.page-hero { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: #fff; padding: 3.2rem 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.page-hero p { color: #dbe5ff; margin-bottom: 0; }
.page-hero .breadcrumb a, .page-hero .breadcrumb-item.active, .page-hero .breadcrumb-item + .breadcrumb-item::before { color: #c9d6f7; }
.hero-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 1.6rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.hero-card h2 { font-size: 1.3rem; }

/* sections */
.section { padding: 4rem 0; }
.section-soft { background: var(--soft); }
.section-title { text-align: center; margin-bottom: .5rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-sub { text-align: center; color: var(--muted); max-width: 46rem; margin: 0 auto 2.2rem; }
.gold-rule { width: 56px; height: 4px; background: var(--gold); border-radius: 4px; margin: .6rem auto 1rem; }

/* cards */
.course-card { background: #fff; border: 1px solid #e4eaf7; border-radius: var(--radius); padding: 1.3rem; height: 100%; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(14, 52, 119, .12); border-color: var(--gold); }
.course-card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--soft); color: var(--navy); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: .8rem; }
.course-card h3, .course-card h5 { font-size: 1.1rem; margin-bottom: .4rem; }
.course-card p { color: var(--muted); font-size: .93rem; flex-grow: 1; }
.course-card .tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-dark); font-weight: 700; }
.feature { text-align: center; padding: 1.4rem; border-radius: var(--radius); background: #fff; border: 1px solid #e4eaf7; height: 100%; }
.feature i { font-size: 2rem; color: var(--navy); }
.feature h3 { font-size: 1.05rem; margin: .6rem 0 .3rem; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }
.chip { display: inline-block; padding: .35rem .9rem; border-radius: 999px; background: #fff; border: 1px solid #d5def3; color: var(--navy); text-decoration: none; font-size: .9rem; margin: 0 .3rem .5rem 0; }
.chip:hover { background: var(--navy); color: #fff; }

/* nav tabs for categories */
.cat-tabs { gap: .4rem; border: 0; justify-content: center; margin-bottom: 1.5rem; }
.cat-tabs .nav-link { border: 1px solid #d5def3; border-radius: 999px; color: var(--navy); font-weight: 600; background: #fff; }
.cat-tabs .nav-link.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* course detail */
.sticky-card { position: sticky; top: 90px; }
.enquiry-card { background: var(--navy); color: #fff; border-radius: 18px; padding: 1.5rem; }
.enquiry-card h2, .enquiry-card h3 { color: var(--gold); font-size: 1.25rem; }
.syllabus-list { list-style: none; padding: 0; counter-reset: s; }
.syllabus-list li { counter-increment: s; padding: .75rem 1rem .75rem 3.2rem; border: 1px solid #e4eaf7; border-radius: 10px; margin-bottom: .5rem; position: relative; background: #fff; }
.syllabus-list li::before { content: counter(s); position: absolute; left: .9rem; top: .7rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--gold); color: var(--navy-dark); font-weight: 700; display: grid; place-items: center; font-size: .85rem; }
.tool { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid #d5def3; border-radius: 10px; padding: .45rem .9rem; margin: 0 .5rem .5rem 0; font-weight: 600; font-size: .92rem; }
.job-card { background: #fff; border: 1px solid #e4eaf7; border-radius: var(--radius); padding: 1.3rem; transition: box-shadow .2s, border-color .2s; }
.job-card:hover { box-shadow: 0 12px 28px rgba(14, 52, 119, .1); border-color: var(--gold); }
.meta-pill { display: inline-flex; align-items: center; gap: .35rem; background: var(--soft); color: var(--navy); border-radius: 999px; padding: .2rem .7rem; font-size: .82rem; margin: 0 .35rem .35rem 0; }
.cta-band { background: linear-gradient(135deg, var(--gold), #ffd04d); color: var(--navy-dark); padding: 3rem 0; }
.cta-band h2 { color: var(--navy-dark); }
.info-card { background: #fff; border: 1px solid #e4eaf7; border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 1.2rem; }
.accordion-button:not(.collapsed) { background: var(--soft); color: var(--navy); }

/* footer */
.site-footer { background: var(--navy-dark); color: #c9d6f7; padding: 3.5rem 0 1.5rem; margin-top: 0; }
.site-footer h5, .site-footer h6 { color: #fff; }
.site-footer a { color: #dfe7fb; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer hr { border-color: rgba(255, 255, 255, .15); }
.site-footer .social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); margin-right: .4rem; font-size: 1.1rem; }
.popular-links a { margin: 0 .5rem; white-space: nowrap; display: inline-block; opacity: .85; }

/* floating WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 1030; background: var(--wa); color: #fff; border-radius: 999px; padding: .75rem 1.1rem; display: inline-flex; gap: .5rem; align-items: center; font-weight: 700; text-decoration: none; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.wa-float i { font-size: 1.5rem; }
.wa-float:hover { background: #1ebe5d; color: #fff; }
@media (max-width: 575px) { .wa-float { padding: .8rem; } }

@media (max-width: 767px) { .hero { padding: 3rem 0; } .section { padding: 2.8rem 0; } .sticky-card { position: static; } }
.brand-logo { height: 56px; width: auto; max-width: 62vw; object-fit: contain; }

h1, h2, h3 { overflow-wrap: anywhere; }
article img { max-width: 100%; height: auto; }
.map-embed { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.course-thumb { display: block; width: 100%; height: auto !important; aspect-ratio: 16 / 9; object-fit: cover; flex: 0 0 auto; border-radius: calc(var(--radius) - 4px); margin-bottom: .8rem; background: var(--soft); }

.call-float { position: fixed; left: 18px; bottom: 18px; z-index: 1030; background: var(--navy); color: #fff; border-radius: 999px; padding: .75rem 1.1rem; display: inline-flex; gap: .5rem; align-items: center; font-weight: 700; text-decoration: none; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.call-float i { font-size: 1.3rem; }
.call-float:hover { background: #0a2757; color: #fff; }

/* ---------- tools logo scroller ---------- */
.tool-strip { background: #fff; border-bottom: 1px solid #e8edf8; padding: 1.4rem 0 .8rem; }
.tool-strip-title { text-align: center; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: .9rem; }
.tool-marquee { display: flex; overflow: hidden; width: 100%; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tool-track { display: flex; flex: 0 0 auto; gap: 1rem; list-style: none; margin: 0; padding: 0 .5rem; min-width: 100%; justify-content: space-around; animation: tool-scroll 55s linear infinite; }
.tool-marquee:hover .tool-track { animation-play-state: paused; }
.tool-logo { display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; background: #fff; border: 1px solid #e1e8f7; border-radius: 12px; padding: .5rem 1rem; font-weight: 600; font-size: .92rem; color: var(--ink); box-shadow: 0 1px 2px rgba(14,52,119,.05); }
.tool-logo img { width: 28px; height: 28px; object-fit: contain; flex: 0 0 auto; }
.tool-mono { width: 28px; height: 28px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: 0 0 auto; }
.tool-note { text-align: center; font-size: .72rem; color: #8a93a8; margin: .7rem auto 0; }
@keyframes tool-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-100% - 1rem)); } }
@media (prefers-reduced-motion: reduce) { .tool-marquee { overflow-x: auto; } .tool-track { animation: none; } .tool-track[aria-hidden="true"] { display: none; } }

/* ---------- course detail page ---------- */
.cd-hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(241,180,0,.18), transparent 60%), linear-gradient(135deg, var(--navy-dark), var(--navy)); color: #fff; padding: 2.6rem 0 3.6rem; }
.cd-hero h1 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
.cd-hero p { color: #dbe5ff; }
.cd-hero .breadcrumb a, .cd-hero .breadcrumb-item.active, .cd-hero .breadcrumb-item + .breadcrumb-item::before { color: #c9d6f7; }
.cd-hero-img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 18px; border: 4px solid rgba(255,255,255,.18); box-shadow: 0 18px 40px rgba(0,0,0,.35); display: block; }
.cd-pill { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 999px; padding: .25rem .8rem; font-size: .83rem; margin: 0 .4rem .4rem 0; }
.cd-facts { margin-top: -2rem; position: relative; z-index: 2; }
.cd-facts .fact { background: #fff; border: 1px solid #e1e8f7; border-radius: 14px; padding: .9rem 1rem; display: flex; align-items: center; gap: .8rem; height: auto; box-shadow: 0 6px 18px rgba(14,52,119,.08); }
.cd-facts .fact i { font-size: 1.4rem; color: var(--gold-dark); }
.cd-facts .fact b { display: block; line-height: 1.2; color: var(--navy-dark); }
.cd-facts .fact small { color: var(--muted); }
.cd-card { background: #fff; border: 1px solid #e1e8f7; border-radius: 16px; padding: 1.5rem; margin-bottom: 1.5rem; }
.cd-card > h2 { font-size: 1.35rem; display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.cd-card > h2 i { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 10px; background: #fff6d6; color: var(--gold-dark); font-size: 1.05rem; flex: 0 0 auto; }
.cd-outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; list-style: none; padding: 0; margin: 0; }
.cd-outcomes li { display: flex; gap: .7rem; align-items: flex-start; background: var(--soft); border-radius: 12px; padding: .85rem 1rem; }
.cd-outcomes li i { color: #1a9a55; font-size: 1.15rem; margin-top: .1rem; }
.cd-syllabus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; list-style: none; padding: 0; margin: 0; counter-reset: sy; }
.cd-syllabus li { counter-increment: sy; position: relative; padding: .7rem .9rem .7rem 3rem; border: 1px solid #e4eaf7; border-radius: 12px; background: #fff; font-weight: 500; }
.cd-syllabus li::before { content: counter(sy, decimal-leading-zero); position: absolute; left: .8rem; top: .65rem; width: 1.9rem; height: 1.9rem; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 700; font-size: .78rem; display: grid; place-items: center; }
.cd-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; list-style: none; padding: 0; margin: 0; }
.cd-tools li { display: flex; align-items: center; gap: .6rem; border: 1px solid #e1e8f7; border-radius: 12px; padding: .65rem .8rem; background: #fff; font-weight: 600; font-size: .9rem; }
.cd-tools img { width: 30px; height: 30px; object-fit: contain; flex: 0 0 auto; }
.cd-tools .tool-mono { width: 30px; height: 30px; }
.cd-roles { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.cd-roles li { background: #eef3ff; color: var(--navy); border-radius: 999px; padding: .4rem .95rem; font-weight: 600; font-size: .9rem; }
.cd-audience { list-style: none; padding: 0; margin: 0; }
.cd-audience li { padding: .5rem 0 .5rem 1.8rem; position: relative; border-bottom: 1px dashed #e1e8f7; }
.cd-audience li:last-child { border-bottom: 0; }
.cd-audience li i { position: absolute; left: 0; top: .6rem; color: var(--gold-dark); }
.cd-branch { border: 1px solid #e1e8f7; border-radius: 14px; padding: 1rem; background: var(--soft); }
.cd-branch h3 { font-size: 1rem; margin-bottom: .3rem; }
.cd-branch p { font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.cd-branch .btn { width: 100%; }
.cd-side-call { background: #fff; border: 1px solid #e1e8f7; border-radius: 16px; padding: 1.1rem; margin-top: 1rem; }
.cd-side-call h3 { font-size: 1rem; }
.cd-side-call a.row-call { display: flex; justify-content: space-between; gap: .6rem; padding: .5rem 0; border-top: 1px solid #eef2fb; text-decoration: none; font-size: .9rem; }
.cd-side-call a.row-call span { color: var(--muted); }
.cd-side-call a.row-call b { color: var(--navy); white-space: nowrap; }
@media (max-width: 767px) { .cd-outcomes, .cd-syllabus { grid-template-columns: 1fr; } .cd-hero { padding-bottom: 3rem; } .cd-card { padding: 1.1rem; } }
