/*
 * New header and footer on pages that keep Edumall's layout.
 * Everything is scoped to .djc so it cannot change Edumall's own styles.
 */
.djc {
	--ink: #0E1430; --ink-2: #4B5475; --ink-3: #7A82A0; --line: #E6E9F2; --soft: #F5F7FC; --surface: #FFFFFF;
	--blue: #0A6BD6; --blue-700: #0756B0; --blue-50: #E8F2FD; --amber: #F7890C; --wa: #1FAF5A; --night: #0E1430;
	--glass: rgba(255,255,255,.9);
	--font: "Inter", "Hind", "Segoe UI", system-ui, sans-serif;
	--shadow: 0 1px 2px rgba(14,20,48,.04), 0 10px 30px -14px rgba(14,20,48,.16);
	font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink);
	-webkit-font-smoothing: antialiased;
}
.djc *, .djc *::before, .djc *::after { box-sizing: border-box; }
.djc a { color: inherit; text-decoration: none; }
.djc ul { list-style: none; margin: 0; padding: 0; }
.djc p { margin: 0; }
.djc h4 { margin: 0 0 14px; font: 600 .95rem/1.3 var(--font); color: #fff; letter-spacing: -0.01em; }
.djc svg.lucide { width: 1.1em; height: 1.1em; flex: none; }
.djc .wrap { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }

/* Buttons */
.djc .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: 600 .94rem/1 var(--font); padding: 11px 16px; border-radius: 12px; transition: transform .18s, background .18s; white-space: nowrap; position: relative; overflow: hidden; }
.djc .btn:hover { transform: translateY(-1px); }
.djc .btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 20px -10px rgba(10,107,214,.75); }
.djc .btn-primary:hover { background: var(--blue-700); color: #fff; }
.djc .btn-ghost { background: var(--blue-50); color: var(--blue); }
.djc .btn-wa { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.djc .btn-wa svg { width: 20px; height: 20px; fill: var(--wa); }
.djc .btn svg.lucide { width: 18px; height: 18px; }

/* Announcement + header */
.djc .announce { background: var(--night); color: #DDE3FF; font-size: .88rem; text-align: center; padding: 8px 16px; }
.djc .announce a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.djc .top { position: sticky; top: 0; z-index: 9990; background: var(--glass); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.admin-bar .djc .top { top: 32px; }
.djc .top .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; position: relative; }
.djc .brand { display: flex; align-items: center; }
.djc .logo { display: block; height: 52px; aspect-ratio: 285 / 128; background: url("logo.png") left center / contain no-repeat; }
.djc nav.main { display: flex; gap: 2px; margin-left: auto; }
.djc nav.main a { padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .93rem; color: var(--ink-2); }
.djc nav.main a:hover { color: var(--ink); background: var(--soft); }
.djc nav.main a[aria-current="page"] { color: var(--blue); background: var(--blue-50); }
.djc .nav-login { display: none; }
.djc .top-actions { display: flex; gap: 8px; }
.djc .theme-btn { display: none; } /* Edumall pages are light only */
.djc .menu-btn { display: none; margin-left: auto; background: var(--soft); color: var(--ink); border: 0; border-radius: 10px; padding: 10px 14px; font: 700 .9rem var(--font); cursor: pointer; }
.djc .progress { display: none; }
@media (max-width: 1040px) {
	.djc .menu-btn { display: block; }
	.djc .top-actions { display: none; }
	.djc nav.main { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 18px; box-shadow: var(--shadow); }
	.djc nav.main.open { display: flex; }
	.djc nav.main a { padding: 12px; font-size: 1.02rem; }
	.djc nav.main .nav-login { display: block; color: var(--blue); }
}
@media (max-width: 782px) { .admin-bar .djc .top { top: 46px; } }
@media (max-width: 520px) { .djc .logo { height: 42px; } }

/* Footer */
.djc footer.site { background: var(--night); color: #A9B1CF; padding-block: 60px 28px; margin-top: 0; font-size: .95rem; }
.djc .foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.djc .foot-grid > * { min-width: 0; }
.djc .foot-grid .stack { display: grid; gap: 16px; align-content: start; }
.djc .foot-grid ul { display: grid; gap: 9px; }
.djc .foot-grid a:hover { color: #fff; }
.djc footer .logo { height: 56px; filter: brightness(1.25) saturate(1.1); }
.djc .contact-lines { display: grid; gap: 8px; }
.djc .contact-lines li { display: flex; gap: 10px; align-items: center; }
.djc .contact-lines svg.lucide { width: 16px; height: 16px; color: #8FB6F0; }
.djc .socials { display: flex; gap: 10px; flex-wrap: wrap; }
.djc .socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #DCE6FA; }
.djc .socials a:hover { background: var(--blue); color: #fff; }
.djc .socials svg.lucide { width: 19px; height: 19px; }
.djc .foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.djc .foot-bottom .legal { display: flex; gap: 18px; }
.djc .foot-bottom a:hover { color: #fff; }
@media (max-width: 860px) { .djc .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .djc .foot-grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp + mobile bar */
.djc .float-wa { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 9991; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 14px 28px -10px rgba(31,175,90,.8); }
.djc .float-wa svg { width: 30px; height: 30px; fill: #fff; }
.djc .mbar { display: none; }
@media (max-width: 760px) {
	.djc .float-wa { display: none; }
	.djc .mbar { display: grid; grid-template-columns: auto 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9991; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--glass); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s cubic-bezier(.16,1,.3,1); }
	.djc .mbar.show { transform: none; }
	.djc .mbar .btn { padding: 14px 16px; }
	body.dj-chrome { padding-bottom: 76px; }
}

/* Edumall's own back-to-top button sits where the WhatsApp button is */
body.dj-chrome #page-scroll-up { right: 20px; bottom: 96px; }

/* Courses dropdown in the header */
.djc nav.main .has-sub { position: relative; display: flex; }
.djc nav.main .has-sub > a { display: inline-flex; align-items: center; gap: 7px; }
.djc nav.main .caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .55; }
.djc nav.main .has-sub .sub { position: absolute; top: calc(100% + 8px); left: -8px; min-width: 290px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px -20px rgba(14,20,48,.35); display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 60; }
.djc nav.main .has-sub .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.djc nav.main .has-sub:hover .sub, .djc nav.main .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.djc nav.main .has-sub .sub a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 10px; color: var(--ink); background: none; }
.djc nav.main .has-sub .sub a:hover { background: var(--blue-50); }
.djc nav.main .has-sub .sub b { font-weight: 600; font-size: .93rem; }
.djc nav.main .has-sub .sub small { color: var(--ink-3); font-size: .8rem; font-weight: 500; }
@media (max-width: 1040px) {
	nav.main .has-sub { display: grid; }
	nav.main .has-sub .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; background: none; }
	nav.main .has-sub .sub small, .djc nav.main .caret { display: none; }
	nav.main .has-sub .sub a { padding: 9px 12px; }
}


/* Typography system for the site-wide header and footer */
.djc { line-height: 1.6; letter-spacing: -0.011em; font-feature-settings: "kern", "calt"; -moz-osx-font-smoothing: grayscale; }
.djc nav.main a, .djc .btn { letter-spacing: -0.006em; line-height: 1.2; }
.djc h4 { letter-spacing: -0.011em; }
.djc .foot-bottom { letter-spacing: -0.004em; }

/* ---------- Top menu: dropdown groups (Courses, Free learning, About) ---------- */
.djc nav.main .sub-toggle { display: none; }
.djc nav.main .has-sub .sub { min-width: 300px; padding: 8px; gap: 2px; }
.djc nav.main .has-sub.is-wide .sub { min-width: 540px; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 6px; }
.djc nav.main .has-sub.is-wide .sub > .is-feature, .djc nav.main .has-sub.is-wide .sub > .sub-label { grid-column: 1 / -1; }
.djc nav.main .has-sub .sub a.sub-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; text-decoration: none; }
.djc nav.main .has-sub .sub a.sub-item:hover, .djc nav.main .has-sub .sub a.sub-item:focus-visible { background: var(--blue-50); }
.djc nav.main .has-sub .sub a.sub-item[aria-current="page"] { background: var(--blue-50); }
.djc nav.main .has-sub .sub a.sub-item[aria-current="page"] b { color: var(--blue); }
.djc nav.main .sub-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--blue); transition: background .15s, color .15s; }
.djc nav.main .sub-ic svg { width: 17px; height: 17px; }
.djc nav.main .sub-item:hover .sub-ic { background: var(--blue); color: #fff; }
.djc nav.main .sub-tx { display: grid; gap: 1px; min-width: 0; }
.djc nav.main .sub-tx b { font-weight: 600; font-size: .92rem; color: var(--ink); line-height: 1.3; }
.djc nav.main .sub-tx small { font-size: .78rem; color: var(--ink-3); font-weight: 500; line-height: 1.3; }
.djc nav.main .sub a.is-feature { margin-bottom: 4px; background: linear-gradient(120deg, #FFF3E3, #EEF4FD); border: 1px solid #F8D8B0; }
.djc nav.main .sub a.is-feature .sub-ic { background: linear-gradient(135deg, #FFB347, #F7890C); color: #fff; }
.djc nav.main .sub a.is-feature:hover { background: linear-gradient(120deg, #FFE9CC, #E1ECFB); }
.djc nav.main .sub-label { display: block; padding: 10px 10px 4px; margin-top: 4px; border-top: 1px solid var(--line); font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.djc nav.main .sub a.is-topic { padding: 7px 10px; }
.djc nav.main .sub a.is-topic b { font-weight: 500; font-size: .9rem; color: var(--ink-2); }
.djc nav.main .sub a.is-topic:hover b { color: var(--blue); }
.djc nav.main .has-sub > a[aria-current="page"] { color: var(--blue); }

@media (max-width: 1040px) {
	.djc nav.main .has-sub { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
	.djc nav.main .has-sub > a .caret { display: none; }
	.djc nav.main .sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); cursor: pointer; }
	.djc nav.main .sub-toggle:hover { background: var(--soft); }
	.djc nav.main .sub-toggle .caret { display: block; transition: transform .2s; }
	.djc nav.main .has-sub.open .sub-toggle .caret { transform: rotate(-135deg) translateY(-2px); }
	.djc nav.main .has-sub .sub, .djc nav.main .has-sub.is-wide .sub { grid-column: 1 / -1; display: none; min-width: 0; grid-template-columns: minmax(0, 1fr); padding: 0 0 8px 8px; }
	.djc nav.main .has-sub.open .sub { display: grid; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; }
	.djc nav.main .sub-tx small { display: block; }
	.djc nav.main .sub-label { border-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .djc nav.main .sub-toggle .caret { transition: none; } }
