/*
Theme Name: Qnote Academy
Theme URI: https://qnoteacademy.co.za
Author: DIPEO LearnTech
Author URI: https://dipeo.co.za
Description: Custom theme for Qnote Digital Music Academy (Maraba Events and Entertainment (Pty) Ltd). Landing pages are built from HTML blocks that use the .qn class system. Contact details are in Appearance > Customize > Qnote contact details. Enquiries from the built-in form appear under Enquiries in the admin menu.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: qnote
*/

:root {
	--ink: #0F2547;
	--ink-2: #16305A;
	--ink-3: #DCE6F7;
	--paper: #F7F9FD;
	--white: #FFFFFF;
	--text: #1B2B45;
	--muted: #5A6B85;
	--muted-d: #5A6B85;
	--line: #E2E8F2;
	--line-d: #E2E8F2;
	--orange: #FF7A1A;
	--orange-d: #C2410C;
	--orange-soft: #FFF1E6;
	--blue: #1E63E9;
	--blue-2: #3B82F6;
	--blue-soft: #EAF2FF;
	--cyan: #FF7A1A;
	--violet: #1E63E9;
	--magenta: #FF7A1A;
	--grad: linear-gradient(110deg, #FF7A1A 0%, #FF8F3A 38%, #2F7BFF 62%, #1E63E9 100%);
	--grad-warm: linear-gradient(115deg, #E8590C 0%, #C2410C 100%);
	--grad-soft: linear-gradient(115deg, rgba(255, 122, 26, .12), rgba(30, 99, 233, .12));
	--r: 18px;
	--r-sm: 12px;
	--shadow: 0 18px 50px -26px rgba(15, 37, 71, .28);
	--head: 'Sora', system-ui, sans-serif;
	--body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--paper); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; color: inherit; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; color: var(--ink); border-radius: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.fill { fill: currentColor; stroke: none; }

.site-inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.site-inner.narrow { max-width: 820px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-family: var(--head); font-weight: 600; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; line-height: 1.2; background: var(--ink); color: #fff; }
.btn:hover { transform: translateY(-1px); color: #fff; }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 10px 28px -12px rgba(36, 99, 235, .8); }
.btn-grad:hover { box-shadow: 0 14px 34px -12px rgba(139, 47, 201, .85); }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 15, 30, .92); color: #fff; border-bottom: 1px solid transparent; transition: background .2s ease, border-color .2s ease; }
.site-header.scrolled { background: var(--ink); border-bottom-color: var(--line-d); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex: none; }
.brand:hover { color: #fff; }
.brand img { width: 44px; height: auto; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word b { font-family: var(--head); font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.brand-word small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); margin-top: 3px; }
.primary-nav { display: flex; align-items: center; gap: 22px; }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-nav .menu a { display: block; padding: 10px 14px; color: #E6E9F5; text-decoration: none; font-weight: 600; font-size: .96rem; border-radius: 999px; }
.primary-nav .menu a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { background: rgba(255, 255, 255, .09); color: #fff; }
.primary-nav .menu li { position: relative; }
.primary-nav .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--ink-2); border: 1px solid var(--line-d); border-radius: var(--r-sm); display: none; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.btn-cta { padding: 11px 22px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span:not(.screen-reader-text) { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Inner page hero + entry */
.page-hero { background: var(--ink); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; background: radial-gradient(closest-side, rgba(139, 47, 201, .35), transparent); pointer-events: none; }
.page-hero .meta { color: var(--muted-d); }
.kick { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.kick::before { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.site-main { padding: 56px 0 72px; }
.site-main.landing { padding: 0; }
.entry { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 4vw, 48px); }
.entry h2 { font-size: 1.6rem; margin-top: 1.4em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.post-card .body { padding: 22px; }
.error-404 { text-align: center; padding: 100px 0; }
.error-404 .big { font-family: var(--head); font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-404 .btn-row { justify-content: center; }

/* ===== Landing system (.qn) ===== */
.qn { overflow-x: hidden; }
.qn-sec { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.qn-dark { background: var(--ink); color: #E6E9F5; }
.qn-dark h1, .qn-dark h2, .qn-dark h3 { color: #fff; }
.qn-dark p { color: var(--muted-d); }
.qn-white { background: #fff; }
.qn-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.qn-head { max-width: 720px; margin-bottom: 44px; }
.qn-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.qn-head.center .kick { justify-content: center; }
.qn-head p { font-size: 1.1rem; color: var(--muted); }
.qn-dark .qn-head p { color: var(--muted-d); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); }

/* Hero */
.qn-hero { background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 96px); position: relative; overflow: hidden; }
.qn-hero::before { content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -260px; background: radial-gradient(closest-side, rgba(36, 99, 235, .45), transparent 70%); pointer-events: none; }
.qn-hero::after { content: ""; position: absolute; width: 620px; height: 620px; left: -260px; bottom: -340px; background: radial-gradient(closest-side, rgba(139, 47, 201, .4), transparent 70%); pointer-events: none; }
.qn-hero .qn-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.qn-hero h1 { color: #fff; }
.qn-hero .lead { color: #C9CFE4; max-width: 580px; margin-bottom: 28px; }
.qn-hero .btn-row { margin-bottom: 30px; }
.qn-badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.qn-badges li { font-size: .82rem; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line-d); color: #DCE1F2; }
.qn-page-hero { padding: clamp(56px, 7vw, 88px) 0 clamp(52px, 6vw, 72px); }
.qn-page-hero .qn-wrap { grid-template-columns: 1fr; }
.qn-page-hero .lead { max-width: 720px; }

/* Player card (hero) */
.qn-player { background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); border: 1px solid var(--line-d); border-radius: 24px; padding: 22px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); backdrop-filter: blur(6px); }
.qn-player-top { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.qn-player-art { width: 76px; height: 76px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; flex: none; }
.qn-player-art img { width: 46px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.qn-player-top small { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.qn-player-top b { font-family: var(--head); font-size: 1.1rem; color: #fff; display: block; line-height: 1.25; }
.qn-player-top span { font-size: .88rem; color: var(--muted-d); }
.qn-tracks { list-style: none; margin: 0; padding: 0; counter-reset: trk; }
.qn-tracks li { counter-increment: trk; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 10px; font-size: .95rem; color: #E6E9F5; }
.qn-tracks li::before { content: counter(trk, decimal-leading-zero); font-family: var(--head); font-size: .78rem; color: var(--muted-d); }
.qn-tracks li em { font-style: normal; font-size: .78rem; color: var(--muted-d); }
.qn-tracks li.on { background: rgba(28, 200, 232, .12); color: #fff; }
.qn-tracks li.on::before { content: "\25B6"; color: var(--cyan); }
.qn-progress { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); margin-top: 16px; overflow: hidden; }
.qn-progress i { display: block; height: 100%; width: 38%; background: var(--grad); border-radius: 4px; }

/* Equaliser */
.eq { display: inline-flex; align-items: flex-end; gap: 4px; height: 34px; }
.eq i { width: 5px; border-radius: 3px; background: var(--grad); height: 40%; animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.2s; } .eq i:nth-child(3) { animation-delay: -.5s; } .eq i:nth-child(4) { animation-delay: -.8s; }
.eq i:nth-child(5) { animation-delay: -.35s; } .eq i:nth-child(6) { animation-delay: -.65s; } .eq i:nth-child(7) { animation-delay: -.95s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .eq i { animation: none; height: 60%; } html { scroll-behavior: auto; } }

/* Stats strip */
.qn-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-top: -44px; position: relative; z-index: 2; box-shadow: var(--shadow); }
.qn-stats > div { padding: 26px 24px; border-left: 1px solid var(--line); }
.qn-stats > div:first-child { border-left: 0; }
.qn-stats b { display: block; font-family: var(--head); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qn-stats span { font-size: .92rem; color: var(--muted); }

/* Cards */
.qn-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.qn-cards.two { grid-template-columns: repeat(2, 1fr); }
.qn-cards.four { grid-template-columns: repeat(4, 1fr); }
.qn-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.qn-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.qn-card p { color: var(--muted); }
.qn-card .tag { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--grad-soft); color: var(--violet); margin-bottom: 16px; }
.qn-card ul { margin: 0 0 18px; padding-left: 1.1em; color: var(--muted); }
.qn-card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.qn-card.feature { background: var(--ink); color: #E6E9F5; border-color: var(--ink-3); }
.qn-card.feature h3 { color: #fff; }
.qn-card.feature p, .qn-card.feature ul { color: var(--muted-d); }
.qn-card.feature .tag { background: rgba(28, 200, 232, .14); color: var(--cyan); }
.qn-card.feature .more { color: var(--cyan); }
.qn-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--grad-soft); display: grid; place-items: center; margin-bottom: 18px; color: var(--blue); }
.qn-ico svg { width: 26px; height: 26px; }
.qn-dark .qn-card { background: var(--ink-2); border-color: var(--line-d); color: #E6E9F5; }
.qn-dark .qn-card p { color: var(--muted-d); }
.qn-dark .qn-ico { background: rgba(28, 200, 232, .12); color: var(--cyan); }

/* Module list */
.qn-modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; list-style: none; margin: 0; padding: 0; counter-reset: mod; }
.qn-modules li { counter-increment: mod; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; padding: 18px; border-radius: var(--r-sm); background: var(--ink-2); border: 1px solid var(--line-d); }
.qn-modules li::before { content: counter(mod, decimal-leading-zero); font-family: var(--head); font-weight: 800; font-size: 1.4rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.3; }
.qn-modules b { display: block; color: #fff; font-family: var(--head); font-size: 1.05rem; margin-bottom: 2px; }
.qn-modules span { color: var(--muted-d); font-size: .95rem; }

/* Split */
.qn-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.qn-split.top { align-items: start; }
.qn-checks { list-style: none; padding: 0; margin: 0 0 24px; }
.qn-checks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.qn-checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E"); }
.qn-checks li::after { content: ""; position: absolute; left: 7px; top: 9px; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* Photos */
.qn-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.qn-photos figure { margin: 0; position: relative; border-radius: var(--r-sm); overflow: hidden; background: var(--ink-2); aspect-ratio: 4 / 3; }
.qn-photos figure.wide { grid-column: span 2; aspect-ratio: auto; min-height: 100%; }
.qn-photos figure.wide img { position: absolute; inset: 0; }
.qn-photos img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.qn-photos figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; font-size: .85rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(11, 15, 30, .85)); }
.qn-photo-main { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.qn-photo-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.qn-photo-main .chip { position: absolute; left: 16px; bottom: 16px; background: rgba(11, 15, 30, .82); color: #fff; padding: 10px 14px; border-radius: 12px; font-size: .88rem; font-weight: 600; display: flex; gap: 10px; align-items: center; }

/* Motto band */
.qn-motto { background: var(--grad); color: #fff; text-align: center; padding: clamp(48px, 7vw, 80px) 0; }
.qn-motto blockquote { margin: 0 auto; max-width: 860px; font-family: var(--head); font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.qn-motto cite { display: block; margin-top: 16px; font-style: normal; font-size: 1rem; opacity: .85; font-family: var(--body); font-weight: 500; letter-spacing: 0; }

/* Steps */
.qn-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; counter-reset: st; }
.qn-steps li { counter-increment: st; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; position: relative; }
.qn-steps li::before { content: counter(st); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--head); font-weight: 800; margin-bottom: 16px; }
.qn-steps b { display: block; font-family: var(--head); font-size: 1.08rem; margin-bottom: 6px; }
.qn-steps span { color: var(--muted); font-size: .96rem; }

/* Table */
.qn-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.qn-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.qn-table th, .qn-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.qn-table th { font-family: var(--head); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.qn-table tr:last-child td { border-bottom: 0; }
.qn-table td:last-child, .qn-table th:last-child { text-align: right; }
.qn-table .grp td { text-align: left; background: var(--grad-soft); font-weight: 700; font-family: var(--head); font-size: .85rem; }

/* FAQ */
.qn-faq { max-width: 860px; margin: 0 auto; }
.qn-faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 12px; }
.qn-faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-family: var(--head); font-weight: 600; position: relative; }
.qn-faq summary::-webkit-details-marker { display: none; }
.qn-faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--grad-soft); color: var(--violet); display: grid; place-items: center; font-size: 1.2rem; }
.qn-faq details[open] summary::after { content: "\2212"; }
.qn-faq details > div { padding: 0 22px 20px; color: var(--muted); }

/* Callout */
.qn-note { border-left: 4px solid; border-image: var(--grad) 1; background: #fff; padding: 18px 22px; border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--muted); }
.qn-note b { color: var(--text); }

/* Contact */
.qn-contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.qn-contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.qn-contact-list li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; }
.qn-contact-list li > span:first-child { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.qn-contact-list small { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.qn-contact-list a, .qn-contact-list b { font-weight: 600; color: var(--text); text-decoration: none; word-break: break-word; }
.qn-contact-list a:hover { color: var(--blue); }
.qn-formbox { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow); }
.qn-formbox h2 { font-size: 1.6rem; }

/* Form */
.qn-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.qn-form .full { grid-column: 1 / -1; }
.qn-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.qn-field input, .qn-field select, .qn-field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--text); }
.qn-field input:focus, .qn-field select:focus, .qn-field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(36, 99, 235, .12); }
.qn-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.qn-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.qn-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qn-form-note { font-size: .88rem; color: var(--muted); margin-left: 10px; }
.qn-form-msg { padding: 16px 18px; border-radius: var(--r-sm); margin-bottom: 18px; }
.qn-form-msg.ok { background: #E7F8EF; color: #11613A; border: 1px solid #B9E8CF; }
.qn-form-msg.err { background: #FDECEC; color: #8A1C1C; border: 1px solid #F4C2C2; }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-d); padding-top: 64px; font-size: .95rem; }
.fcta { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: linear-gradient(115deg, rgba(28, 200, 232, .12), rgba(139, 47, 201, .18)); border: 1px solid var(--line-d); border-radius: 24px; padding: 32px 36px; margin-bottom: 64px; }
.fcta h3 { color: #fff; font-size: 1.55rem; margin-bottom: 6px; }
.fcta p { margin: 0; }
.fcta .kick { margin-bottom: 8px; }
.fcta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .9fr .9fr 1.7fr; gap: 36px; padding-bottom: 48px; }
.footer-contact { font-size: .92rem; }
.footer-logo { margin-bottom: 16px; }
.footer-motto { font-family: var(--head); font-weight: 600; color: #fff; font-size: 1.05rem; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-badges span { font-size: .78rem; font-weight: 600; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-d); color: #DCE1F2; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted-d); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { color: var(--cyan); margin-top: 3px; width: 18px; height: 18px; }
.footer-contact a { word-break: break-word; }
.footer-bottom { border-top: 1px solid var(--line-d); padding: 22px 0 28px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: .85rem; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.footer-menu a { color: var(--muted-d); text-decoration: none; }
.to-top { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-d); color: #fff; display: grid; place-items: center; }
.to-top:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { color: #fff; transform: scale(1.05); }

/* ===== Responsive ===== */
@media (max-width: 1023px) {
	.nav-toggle { display: flex; }
	.primary-nav { position: fixed; inset: 76px 0 auto 0; max-height: calc(100vh - 76px); overflow-y: auto; background: var(--ink); border-top: 1px solid var(--line-d); flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 24px 28px; display: none; }
	.primary-nav.is-open { display: flex; }
	.primary-nav .menu { flex-direction: column; }
	.primary-nav .menu a { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
	.primary-nav .sub-menu { position: static; display: none; border: 0; background: transparent; padding: 0 0 0 14px; }
	.primary-nav li.open > .sub-menu { display: block; }
	.qn-hero .qn-wrap { grid-template-columns: 1fr; }
	.qn-cards, .qn-cards.four { grid-template-columns: repeat(2, 1fr); }
	.qn-steps { grid-template-columns: repeat(2, 1fr); }
	.qn-photos { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.fcta { grid-template-columns: 1fr; }
	.fcta .eq { display: none; }
	.qn-contact-grid, .qn-split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	body { font-size: 16px; }
	.site-inner, .qn-wrap { padding: 0 16px; }
	.header-inner { min-height: 68px; }
	.primary-nav { inset: 68px 0 auto 0; max-height: calc(100vh - 68px); }
	.brand-word small { font-size: .62rem; letter-spacing: .1em; }
	.qn-stats { grid-template-columns: 1fr 1fr; margin-top: -32px; }
	.qn-stats > div { padding: 20px 16px; }
	.qn-stats > div:nth-child(3) { border-left: 0; }
	.qn-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
	.qn-cards, .qn-cards.two, .qn-cards.four, .qn-modules, .qn-steps { grid-template-columns: 1fr; }
	.qn-photos figure.wide { grid-column: span 2; }
	.qn-form { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.fcta { padding: 26px 22px; }
	.btn-row .btn { flex: 1 1 auto; }
	.qn-player { padding: 16px; }
	.qn-form-note { display: block; margin: 10px 0 0; }
	.wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

/* 1.1.0: header login link, portal app pages, plugin form inside the theme form box */
.nav-login { font-family: var(--head); font-weight: 600; font-size: .92rem; text-decoration: none; color: #E6E9F5; padding: 8px 4px; }
.nav-login:hover { color: var(--cyan); }
.site-main.app { padding: 36px 0 72px; min-height: 60vh; }
.qn-formbox .qnh-apply { margin-top: 8px; }
.qn-formbox.wide { max-width: 940px; margin: 0 auto; }
.qn-legal { max-width: 860px; }
.qn-legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.qn-legal table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; }
.qn-legal td, .qn-legal th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.primary-nav .menu a, .nav-login, .btn-cta { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1320px) {
	.primary-nav { gap: 12px; }
	.primary-nav .menu a { padding: 10px 9px; font-size: .92rem; }
	.btn-cta { padding: 10px 18px; }
	.brand-word small { display: none; }
}

/* ===== 1.2.0: light skin, orange + blue ===== */
a:hover { color: var(--orange-d); }
:focus-visible { outline-color: var(--orange); }
.kick { color: var(--orange-d); }
.btn-grad { background: var(--grad-warm); box-shadow: 0 10px 26px -12px rgba(255, 106, 0, .7); }
.btn-grad:hover { box-shadow: 0 14px 32px -12px rgba(255, 106, 0, .85); }
.btn-ghost { background: #fff; border-color: #C9D6EC; color: var(--blue); }
.btn-ghost:hover { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }
.btn-line { border-color: var(--blue); color: var(--blue); }
.btn-line:hover { background: var(--blue); color: #fff; }

/* Header */
.site-header, .site-header.scrolled { background: rgba(255, 255, 255, .96); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 6px 24px -18px rgba(15, 37, 71, .35); }
.brand, .brand:hover { color: var(--ink); }
.brand-word small { color: var(--muted); }
.primary-nav .menu a { color: var(--ink); }
.primary-nav .menu a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { background: var(--orange-soft); color: var(--orange-d); }
.primary-nav .sub-menu { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.nav-toggle span:not(.screen-reader-text) { background: var(--ink); }
.nav-login { color: var(--blue); }
.nav-login:hover { color: var(--orange-d); }

/* Heroes */
.qn-hero, .page-hero { background: linear-gradient(160deg, #FFF4EA 0%, #FFFFFF 45%, #EEF4FF 100%); color: var(--ink); }
.qn-hero::before { background: radial-gradient(closest-side, rgba(59, 130, 246, .22), transparent 70%); }
.qn-hero::after { background: radial-gradient(closest-side, rgba(255, 122, 26, .22), transparent 70%); }
.page-hero::after { background: radial-gradient(closest-side, rgba(255, 122, 26, .18), transparent); }
.qn-hero h1 { color: var(--ink); }
.qn-hero .lead { color: var(--muted); }
.page-hero .meta { color: var(--muted); }
.qn-badges li { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: 0 4px 14px -10px rgba(15, 37, 71, .3); }

/* Player card */
.qn-player { background: #fff; border-color: var(--line); box-shadow: 0 30px 70px -34px rgba(15, 37, 71, .45); backdrop-filter: none; }
.qn-player-top small { color: var(--orange-d); }
.qn-player-top b { color: var(--ink); }
.qn-player-top span, .qn-tracks li::before, .qn-tracks li em { color: var(--muted); }
.qn-tracks li { color: var(--text); }
.qn-tracks li.on { background: var(--orange-soft); color: var(--ink); }
.qn-tracks li.on::before { color: var(--orange); }
.qn-progress { background: var(--blue-soft); }

/* Tinted sections instead of dark ones */
.qn-dark { background: linear-gradient(180deg, #EEF4FF 0%, #F6F9FF 100%); color: var(--text); }
.qn-dark h1, .qn-dark h2, .qn-dark h3 { color: var(--ink); }
.qn-dark p, .qn-dark .qn-head p { color: var(--muted); }
.qn-dark .qn-card { background: #fff; border-color: var(--line); color: var(--text); }
.qn-dark .qn-card p { color: var(--muted); }
.qn-dark .qn-ico { background: var(--orange-soft); color: var(--orange-d); }
.qn-modules li { background: #fff; border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(15, 37, 71, .4); }
.qn-modules b { color: var(--ink); }
.qn-modules span { color: var(--muted); }

/* Cards */
.qn-card .tag { background: var(--orange-soft); color: var(--orange-d); }
.qn-card.feature { background: linear-gradient(150deg, #1E63E9 0%, #3B82F6 100%); border-color: transparent; color: #fff; }
.qn-card.feature h3 { color: #fff; }
.qn-card.feature p, .qn-card.feature ul { color: #DCE8FF; }
.qn-card.feature .tag { background: #fff; color: var(--orange-d); }
.qn-card.feature .more { color: #fff; }
.qn-ico { background: var(--blue-soft); color: var(--blue); }
.qn-table .grp td { background: var(--orange-soft); color: var(--ink); }
.qn-faq summary::after { background: var(--orange-soft); color: var(--orange-d); }
.qn-note { border-image: var(--grad-warm) 1; }
.qn-contact-list li > span:first-child { background: var(--orange-soft); color: var(--orange-d); }
.qn-photos figure { background: var(--blue-soft); }
.qn-photos figcaption { background: linear-gradient(transparent, rgba(15, 37, 71, .82)); }
.qn-photo-main .chip { background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 8px 20px -10px rgba(15, 37, 71, .5); }
.qn-steps li::before { background: var(--grad-warm); }

/* Footer: light */
.site-footer { background: #F1F5FC; color: var(--muted); border-top: 1px solid var(--line); }
.fcta { background: var(--grad); border: 0; color: #fff; box-shadow: 0 24px 50px -28px rgba(30, 99, 233, .6); }
.fcta h3 { color: #fff; }
.fcta p { color: rgba(255, 255, 255, .92); }
.fcta .kick { color: #fff; }
.fcta .kick::before { background: #fff; }
.fcta .eq i { background: #fff; }
.fcta .btn-grad { background: #fff; color: var(--orange-d); box-shadow: none; }
.fcta .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .75); color: #fff; }
.fcta .btn-ghost:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.footer-motto, .footer-col h4 { color: var(--ink); }
.footer-badges span { border-color: #C9D6EC; color: var(--blue); background: #fff; }
.footer-col a, .footer-menu a { color: var(--muted); }
.footer-col a:hover, .footer-menu a:hover { color: var(--orange-d); }
.footer-contact svg { color: var(--orange); }
.footer-bottom { border-top-color: #DCE4F2; }
.to-top { border-color: #C9D6EC; color: var(--blue); }
.to-top:hover { background: var(--blue); color: #fff; }

/* Portals (Qnote Academy Hub plugin) */
body .qnh-hero-card { background: linear-gradient(135deg, #1E63E9 0%, #3B82F6 70%, #FF8A2A 150%); }
body .qnh-hero-card::after { background: radial-gradient(closest-side, rgba(255, 154, 61, .55), transparent); }
body .qnh-ring { background: radial-gradient(closest-side, #1E63E9 78%, transparent 79% 100%), conic-gradient(#FFB066, #FF7A1A calc(var(--p) * 1%), rgba(255, 255, 255, .22) 0); }
body .qnh-ring span, body .qnh-hero-card .qnh-muted, body .qnh-hero-card .qnh-small { color: #DCE8FF; }
body .qnh-tabs i { background: var(--orange); }
body .qnh-tabs a[aria-current] { border-bottom-color: var(--orange); }

@media (max-width: 1023px) {
	.primary-nav { background: #fff; border-top-color: var(--line); box-shadow: 0 20px 40px -20px rgba(15, 37, 71, .35); }
}
.qn-hero .grad-text, .qn-page-hero .grad-text { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--orange); }
.qn-stats b { background: none; color: var(--blue); -webkit-background-clip: initial; background-clip: initial; }
.qn-stats > div:nth-child(odd) b { color: var(--orange); }
body .qnh-stepper li.on::before, body .qnh-stepper li.done::before { background: var(--grad-warm); }

/* 1.2.0: gallery page, image banners, lightbox */
.qn-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.qn-gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: 0 10px 30px -24px rgba(15, 37, 71, .45); transition: transform .2s ease, box-shadow .2s ease; }
.qn-gallery figure:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.qn-gallery figure.wide { grid-column: span 2; }
.qn-gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-soft); cursor: zoom-in; }
.qn-gallery figure.wide a { aspect-ratio: 8 / 3; }
.qn-gallery img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .4s ease; }
.qn-gallery figure:hover img { transform: scale(1.04); }
.qn-gallery figcaption { padding: 14px 16px 16px; border-top: 3px solid; border-image: var(--grad-warm) 1; }
.qn-gallery figcaption b { display: block; font-family: var(--head); color: var(--ink); font-size: 1rem; }
.qn-gallery figcaption span { font-size: .9rem; color: var(--muted); }
.qn-banner { position: relative; border-radius: 24px; overflow: hidden; min-height: 360px; display: flex; align-items: center; box-shadow: var(--shadow); }
.qn-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qn-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .9) 42%, rgba(255, 255, 255, 0) 75%); }
.qn-banner-copy { position: relative; z-index: 1; max-width: 520px; padding: clamp(28px, 5vw, 56px); }
.qn-banner-copy p { color: var(--muted); }
.qn-credits { margin: 40px 0 0; font-size: .82rem; color: var(--muted); }
.qn-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15, 37, 71, .9); display: none; align-items: center; justify-content: center; padding: 24px; }
.qn-lightbox.open { display: flex; }
.qn-lightbox figure { margin: 0; max-width: min(1000px, 100%); text-align: center; color: #fff; }
.qn-lightbox img { max-width: 100%; max-height: 78vh; width: auto; margin: 0 auto; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.qn-lightbox figcaption { margin-top: 12px; font-size: .95rem; }
.qn-lightbox button { position: absolute; background: #fff; color: var(--ink); border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.qn-lightbox .lb-close { top: 18px; right: 18px; }
.qn-lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.qn-lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 1023px) { .qn-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
	.qn-gallery { grid-template-columns: 1fr; }
	.qn-gallery figure.wide { grid-column: auto; }
	.qn-gallery figure.wide a { aspect-ratio: 4 / 3; }
	.qn-banner { min-height: 0; flex-direction: column; align-items: stretch; }
	.qn-banner > img { position: static; height: 200px; }
	.qn-banner::after { display: none; }
	.qn-banner-copy { background: #fff; }
	.qn-lightbox .lb-prev, .qn-lightbox .lb-next { top: auto; bottom: 18px; transform: none; }
}

/* ===== 1.3.0: accessibility contrast, addresses, consent banner ===== */
.qn-hero .grad-text, .qn-page-hero .grad-text { color: #D9530A; }
.qn-stats > div:nth-child(odd) b { color: #D9530A; }
.btn-grad { box-shadow: 0 10px 26px -12px rgba(194, 65, 12, .6); }
.fcta .btn-grad { color: #C2410C; }
.footer-contact small { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); font-weight: 700; margin-bottom: 1px; }
.qn-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px -24px rgba(15, 37, 71, .5); padding: 18px 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: .93rem; }
.qn-consent p { margin: 0; flex: 1 1 320px; color: var(--muted); }
.qn-consent .btn { padding: 10px 18px; }
.cookie-link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; }
.cookie-link:hover { color: var(--orange-d); }
.qn-verify { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.qn-verify > div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 18px; }
.qn-verify small { display: block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.qn-verify b { font-family: var(--head); color: var(--ink); }
.qn-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.qn-profile { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); }
.qn-profile .avatar { width: 100%; aspect-ratio: 1; border-radius: 18px; background: var(--grad); display: grid; place-items: center; color: #fff; font-family: var(--head); font-size: 3.2rem; font-weight: 800; }
.qn-profile dl { display: grid; grid-template-columns: 170px 1fr; gap: 6px 16px; margin: 14px 0 0; font-size: .95rem; }
.qn-profile dt { color: var(--muted); }
.qn-profile dd { margin: 0; }
@media (max-width: 1279px) and (min-width: 1024px) {
	.primary-nav .menu a { padding: 10px 7px; font-size: .88rem; }
	.nav-login { font-size: .88rem; }
}
@media (max-width: 1023px) { .qn-verify { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
	.qn-profile { grid-template-columns: 1fr; }
	.qn-profile .avatar { max-width: 120px; font-size: 2.2rem; }
	.qn-profile dl { grid-template-columns: 1fr; gap: 0; }
	.qn-profile dd { margin-bottom: 8px; }
}
/* 1.3.0: eight-item menu fits on laptops; menu button below 1280px */
@media (max-width: 1439px) and (min-width: 1280px) {
	.primary-nav { gap: 14px; }
	.primary-nav .menu { gap: 2px; }
	.primary-nav .menu a { padding: 9px 9px; font-size: .9rem; }
	.brand-word small { display: none; }
	.btn-cta { padding: 10px 18px; }
}
@media (max-width: 1279px) {
	.nav-toggle { display: flex; }
	.primary-nav { position: fixed; inset: 76px 0 auto 0; max-height: calc(100vh - 76px); overflow-y: auto; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(15, 37, 71, .35); flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 24px 28px; display: none; }
	.primary-nav.is-open { display: flex; }
	.primary-nav .menu { flex-direction: column; }
	.primary-nav .menu a { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
	.nav-login { padding: 10px 12px; font-size: 1rem; }
}
.qn-profile .avatar { background: linear-gradient(135deg, #1E63E9 0%, #3B82F6 100%); }

/* 1.3.0: QCTO and MICT SETA logos (used with written permission) */
.qn-recog { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qn-recog-item { display: flex; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; }
.qn-recog-item img { height: 54px; width: auto; flex: none; }
.qn-recog-item p { margin: 0; font-size: .93rem; color: var(--muted); line-height: 1.5; }
.qn-recog-item b { color: var(--ink); }
.qn-recog-band { padding: 36px 0 0; }
.qn-card .qn-card-logo { height: 40px; width: auto; margin-bottom: 14px; align-self: flex-start; }
.footer-logos { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.footer-logos a { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.footer-logos img { height: 30px; width: auto; }
@media (max-width: 720px) {
	.qn-recog { grid-template-columns: 1fr; }
	.qn-recog-item { flex-direction: column; align-items: flex-start; gap: 12px; }
	.qn-recog-item img { height: 46px; }
}
