/*
Theme Name: Nouf Academy Plus
Theme URI: https://example.com/nouf-academy
Author: Nouf Academy
Description: قالب عربي RTL عصري لأكاديمية نوف للتدريب وتنمية المهارات — منصة دورات الفيديو، متكامل مع إضافة Arabic Video Courses.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nouf-academy
*/

:root {
	--na-primary: #16b8a6;
	--na-primary-600: #0e9c8d;
	--na-navy: #123f3a;
	--na-navy-900: #0c302c;
	--na-accent: #2fc7b4;
	--na-ink: #123f3a;
	--na-ink-soft: #3c5f5a;
	--na-muted: #6b8c87;
	--na-line: #e0efec;
	--na-line-strong: #cadfda;
	--na-bg: #eef6f4;
	--na-card: #ffffff;
	--na-soft: #d9efec;
	--na-soft-2: #eafaf7;
	--na-radius: 18px;
	--na-radius-sm: 12px;
	--na-shadow-sm: 0 6px 18px rgba(15, 44, 71, 0.06);
	--na-shadow: 0 16px 40px rgba(15, 44, 71, 0.09);
	--na-shadow-lg: 0 30px 70px rgba(15, 44, 71, 0.18);
	--na-gradient: linear-gradient(135deg, #19c2ad 0%, #0e9c8d 55%, #0c3b36 130%);
	--na-gradient-accent: linear-gradient(120deg, #43dcc7, #0e9c8d);
	--na-header-h: 74px;
	--na-fs-h1: clamp(30px, 3vw + 1rem, 52px);
	--na-fs-h2: clamp(24px, 1.6vw + 1rem, 36px);
	--na-fs-lead: clamp(15px, 0.5vw + 0.9rem, 18px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
	margin: 0;
	direction: rtl;
	font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
	color: var(--na-ink);
	background: linear-gradient(180deg, #eef6f4 0%, #e2f0ed 42%, #edf6f4 100%);
	background-attachment: fixed;
	line-height: 1.7;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--na-primary-600); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.na-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 28px); }

/* Scroll reveal — elegant easing, hidden only when JS is present */
:root { --na-ease: cubic-bezier(0.16, 1, 0.3, 1); }
.na-js .na-reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--na-ease), transform 0.9s var(--na-ease); }
.na-js .na-reveal.is-in { opacity: 1; transform: none; }
.na-js .na-reveal[data-delay="1"] { transition-delay: 0.1s; }
.na-js .na-reveal[data-delay="2"] { transition-delay: 0.2s; }
.na-js .na-reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ============ Buttons ============ */
.na-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
	border: 0; cursor: pointer; background: var(--na-gradient); color: #fff !important;
	box-shadow: 0 12px 26px rgba(14, 165, 164, 0.26);
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
	white-space: nowrap;
}
.na-btn:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 16px 32px rgba(14, 165, 164, 0.34); }
.na-btn:active { transform: translateY(0); }

/* Visible keyboard focus (accessibility) */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--na-primary);
	outline-offset: 2px;
	border-radius: 6px;
}
.na-hero :focus-visible, .na-cta :focus-visible, .na-band :focus-visible, .na-track:focus-visible { outline-color: #fff; }

/* Skip link */
.na-skip { position: fixed; top: -60px; inset-inline-start: 16px; z-index: 200; background: var(--na-navy); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 12px; font-weight: 700; transition: top 0.2s ease; }
.na-skip:focus { top: 0; }
#na-main:focus { outline: none; }
.na-btn--ghost { background: #fff; color: var(--na-navy) !important; border: 1.5px solid var(--na-line-strong); box-shadow: none; }
.na-btn--ghost:hover { border-color: var(--na-primary); }
.na-btn--lg { padding: 15px 30px; font-size: 16px; }
.na-btn--light { background: #fff; color: var(--na-navy) !important; box-shadow: 0 14px 34px rgba(0,0,0,0.16); }
.na-btn--outline-light { background: transparent; color: #fff !important; border: 1.5px solid rgba(255,255,255,0.55); box-shadow: none; }
.na-btn--outline-light:hover { background: rgba(255,255,255,0.14); }

/* ============ Header ============ */
.na-header {
	position: sticky; top: 0; z-index: 60;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--na-line);
	transition: box-shadow 0.25s ease;
}
.na-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--na-header-h); }

.na-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--na-navy); }
.na-brand__icon { width: 44px; height: 44px; object-fit: contain; flex: 0 0 auto; }
.na-brand__text { display: grid; line-height: 1.12; }
.na-brand__ar { font-size: clamp(16px, 2.4vw, 19px); font-weight: 800; color: var(--na-navy); letter-spacing: -0.2px; }
.na-brand__en { font-size: 10.5px; font-weight: 700; color: var(--na-primary); letter-spacing: 1.6px; }
.na-brand__tag { font-size: 9.5px; font-weight: 600; color: var(--na-muted); }

/* Desktop nav */
.na-nav { display: flex; align-items: center; gap: 4px; }
.na-nav ul, .na-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.na-nav a {
	display: inline-flex; align-items: center; padding: 9px 15px; border-radius: 999px;
	color: var(--na-ink-soft); font-weight: 700; font-size: 15px; position: relative;
	transition: color 0.2s ease, background 0.2s ease;
}
.na-nav a:hover,
.na-nav .current-menu-item > a,
.na-nav .current_page_item > a { color: var(--na-navy); background: var(--na-soft-2); }

.na-header__actions { display: flex; align-items: center; gap: 10px; }

/* Animated burger */
.na-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--na-line-strong); background: #fff; border-radius: 12px; cursor: pointer; position: relative; }
.na-burger i { position: absolute; inset-inline: 11px; height: 2px; background: var(--na-navy); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.na-burger i:nth-child(1) { top: 15px; }
.na-burger i:nth-child(2) { top: 21px; }
.na-burger i:nth-child(3) { top: 27px; }
body.na-menu-open .na-burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.na-menu-open .na-burger i:nth-child(2) { opacity: 0; }
body.na-menu-open .na-burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer + overlay */
.na-overlay { position: fixed; inset: 0; background: rgba(15, 44, 71, 0.5); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; z-index: 70; }
body.na-menu-open .na-overlay { opacity: 1; visibility: visible; }
.na-drawer {
	position: fixed; top: 0; right: 0; left: auto; height: 100%; width: min(82vw, 340px);
	background: #fff; z-index: 80; box-shadow: var(--na-shadow-lg);
	transform: translateX(100%); visibility: hidden; pointer-events: none;
	transition: transform 0.32s cubic-bezier(.4,0,.2,1), visibility 0s linear 0.32s;
	display: flex; flex-direction: column; padding: 22px;
}
body.na-menu-open .na-drawer { transform: translateX(0); visibility: visible; pointer-events: auto; transition: transform 0.32s cubic-bezier(.4,0,.2,1), visibility 0s; }
.na-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--na-line); }
.na-drawer__close { width: 44px; height: 44px; border: 1px solid var(--na-line-strong); background: #fff; border-radius: 10px; cursor: pointer; font-size: 22px; color: var(--na-navy); line-height: 1; }
.na-drawer nav ul, .na-drawer .na-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.na-drawer a { display: block; padding: 13px 14px; border-radius: 12px; color: var(--na-ink); font-weight: 700; font-size: 16px; transition: background 0.2s ease; }
.na-drawer a:hover, .na-drawer .current-menu-item > a { background: var(--na-soft-2); color: var(--na-navy); }
.na-drawer__cta { margin-top: auto; padding-top: 18px; }
.na-drawer__cta .na-btn { width: 100%; }

/* ============ Hero ============ */
.na-hero { position: relative; overflow: hidden; background: var(--na-gradient); color: #eaf7f7; padding: clamp(48px, 7vw, 84px) 0; }
.na-hero::before {
	content: ""; position: absolute; inset: 0;
	background-image: radial-gradient(circle at 88% 12%, rgba(255,255,255,0.14), transparent 42%), radial-gradient(circle at 8% 95%, rgba(255,107,53,0.3), transparent 42%);
	pointer-events: none;
}
.na-hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 48px); align-items: center; }
.na-hero__eyebrow {
	display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.14);
	border: 1px solid rgba(255,255,255,0.22); padding: 7px 15px; border-radius: 999px;
	font-weight: 700; font-size: 13.5px; color: #fff; margin-bottom: 18px;
}
.na-hero h1 { margin: 0 0 16px; font-size: var(--na-fs-h1); line-height: 1.22; color: #fff; font-weight: 800; letter-spacing: -0.5px; }
.na-hero h1 .na-hl { background: linear-gradient(120deg,#8ff5e4,#5eead4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.na-hero__lead { margin: 0 0 26px; font-size: var(--na-fs-lead); line-height: 1.9; color: #d7efef; max-width: 560px; }
.na-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.na-hero__stats { display: flex; gap: clamp(18px,4vw,32px); margin-top: 34px; flex-wrap: wrap; }
.na-hero__stat b { display: block; font-size: clamp(22px,3vw,28px); font-weight: 800; color: #fff; }
.na-hero__stat span { font-size: 13px; color: #cfeaea; }

.na-hero__art { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--na-shadow-lg); aspect-ratio: 4/3; background: rgba(0,0,0,0.2); }
.na-hero__art img { width: 100%; height: 100%; object-fit: cover; }
.na-hero__badge {
	position: absolute; inset-inline-end: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px;
	background: rgba(255,255,255,0.96); color: var(--na-navy); padding: 11px 15px; border-radius: 14px;
	font-weight: 700; font-size: 13.5px; box-shadow: var(--na-shadow); backdrop-filter: blur(6px);
}
.na-hero__badge img { width: 32px; height: 32px; }

/* Marquee of skills */
.na-marquee { background: var(--na-navy-900); color: #cfe6e6; overflow: hidden; padding: 14px 0; }
.na-marquee__track { display: inline-flex; gap: 40px; white-space: nowrap; animation: na-marquee 26s linear infinite; }
.na-marquee__track span { font-weight: 700; font-size: 15px; opacity: 0.9; display: inline-flex; align-items: center; gap: 10px; }
.na-marquee__track span::before { content: "✦"; color: var(--na-accent); }
@keyframes na-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.na-section { padding: clamp(46px, 7vw, 72px) 0; }
.na-section--soft { background: #fff; }
.na-section--tint { background: linear-gradient(180deg, #fff, var(--na-soft-2)); }
.na-section__head { text-align: center; max-width: 680px; margin: 0 auto clamp(30px,5vw,44px); }
.na-section__eyebrow { display: inline-block; color: var(--na-primary); font-weight: 800; font-size: 14px; letter-spacing: 0.5px; margin-bottom: 10px; }
.na-section__title { font-size: var(--na-fs-h2); margin: 0 0 12px; color: var(--na-navy); font-weight: 800; letter-spacing: -0.4px; }
.na-section__sub { margin: 0; color: var(--na-muted); font-size: 16px; }

/* Features */
.na-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.na-feature { background: #fff; border: 1px solid var(--na-line); border-radius: var(--na-radius); padding: 26px; box-shadow: var(--na-shadow-sm); transition: transform 0.22s ease, box-shadow 0.22s ease; }
.na-feature:hover { transform: translateY(-6px); box-shadow: var(--na-shadow); }
.na-feature__icon { width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; background: var(--na-soft); margin-bottom: 16px; }
.na-feature h3 { margin: 0 0 8px; font-size: 18px; color: var(--na-navy); }
.na-feature p { margin: 0; color: var(--na-muted); font-size: 14.5px; line-height: 1.8; }

/* Learning tracks */
.na-tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.na-track {
	position: relative; overflow: hidden; border-radius: var(--na-radius); padding: 26px;
	color: #fff; min-height: 168px; display: flex; flex-direction: column; justify-content: flex-end;
	box-shadow: var(--na-shadow-sm); transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.na-track:hover { transform: translateY(-6px); box-shadow: var(--na-shadow); }
.na-track::before { content: ""; position: absolute; inset: 0; background: var(--na-track-bg, var(--na-gradient)); }
.na-track::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.35)); }
.na-track > * { position: relative; }
.na-track__emoji { font-size: 30px; margin-bottom: auto; }
.na-track h3 { margin: 8px 0 4px; font-size: 19px; }
.na-track span { font-size: 13.5px; opacity: 0.92; }

/* Stats band */
.na-band { background: var(--na-navy); color: #fff; border-radius: 24px; padding: clamp(28px,5vw,44px); position: relative; overflow: hidden; }
.na-band::before { content:""; position:absolute; inset:0; background-image: radial-gradient(circle at 85% 15%, rgba(14,165,164,0.4), transparent 45%), radial-gradient(circle at 12% 100%, rgba(255,107,53,0.32), transparent 45%); }
.na-band__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.na-band__num { font-size: clamp(28px,4vw,40px); font-weight: 800; color: #fff; line-height: 1; }
.na-band__num .na-plus { color: var(--na-accent); }
.na-band__label { margin-top: 8px; color: #cfe0eb; font-size: 14px; font-weight: 600; }

/* Testimonials */
.na-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.na-testimonial { background: #fff; border: 1px solid var(--na-line); border-radius: var(--na-radius); padding: 26px; box-shadow: var(--na-shadow-sm); display: flex; flex-direction: column; gap: 14px; }
.na-testimonial__stars { color: #f59e0b; font-size: 15px; letter-spacing: 2px; }
.na-testimonial p { margin: 0; color: var(--na-ink-soft); line-height: 1.9; font-size: 15px; }
.na-testimonial__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.na-avatar { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: var(--na-gradient); flex: 0 0 auto; }
.na-testimonial__who b { display: block; color: var(--na-navy); font-size: 15px; }
.na-testimonial__who span { color: var(--na-muted); font-size: 13px; }

/* Instructors */
.na-instructors { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.na-instructor { background: #fff; border: 1px solid var(--na-line); border-radius: var(--na-radius); padding: 26px; text-align: center; box-shadow: var(--na-shadow-sm); transition: transform 0.22s ease, box-shadow 0.22s ease; }
.na-instructor:hover { transform: translateY(-6px); box-shadow: var(--na-shadow); }
.na-instructor .na-avatar { width: 84px; height: 84px; font-size: 30px; margin: 0 auto 14px; }
.na-instructor h3 { margin: 0 0 4px; font-size: 17px; color: var(--na-navy); }
.na-instructor span { color: var(--na-primary); font-weight: 700; font-size: 13.5px; }
.na-instructor p { margin: 10px 0 0; color: var(--na-muted); font-size: 13.5px; line-height: 1.7; }

/* FAQ */
.na-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.na-faq details { background: #fff; border: 1px solid var(--na-line); border-radius: var(--na-radius-sm); padding: 4px 20px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.na-faq details[open] { border-color: rgba(14,165,164,0.45); box-shadow: var(--na-shadow-sm); }
.na-faq summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--na-navy); padding: 15px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; }
.na-faq summary::-webkit-details-marker { display: none; }
.na-faq summary::after { content: "+"; width: 28px; height: 28px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--na-soft); color: var(--na-primary-600); font-weight: 800; transition: transform 0.2s ease; }
.na-faq details[open] summary::after { content: "\2013"; }
.na-faq p { margin: 0 0 16px; color: var(--na-muted); line-height: 1.9; }

/* Newsletter / CTA */
.na-cta { position: relative; overflow: hidden; background: var(--na-navy); color: #fff; border-radius: 24px; padding: clamp(34px,5vw,52px); text-align: center; box-shadow: var(--na-shadow); }
.na-cta::before { content:""; position:absolute; inset:0; background-image: radial-gradient(circle at 85% 20%, rgba(14,165,164,0.4), transparent 45%), radial-gradient(circle at 10% 100%, rgba(255,107,53,0.35), transparent 45%); }
.na-cta > * { position: relative; }
.na-cta h2 { margin: 0 0 12px; font-size: var(--na-fs-h2); font-weight: 800; }
.na-cta p { margin: 0 auto 26px; color: #d4e4ef; max-width: 560px; }
.na-newsletter { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.na-newsletter input { flex: 1 1 220px; min-height: 50px; border: 0; border-radius: 999px; padding: 12px 20px; font-family: inherit; font-size: 15px; }
.na-newsletter input:focus { outline: 3px solid rgba(14,165,164,0.5); }

.na-courses-wrap .avcs-wrapper { padding-top: 0; padding-bottom: 0; }

/* ============ Generic page/content ============ */
.na-page { padding: clamp(30px,5vw,48px) 0 clamp(44px,7vw,72px); }
.na-page__inner { background: #fff; border: 1px solid var(--na-line); border-radius: var(--na-radius); box-shadow: var(--na-shadow-sm); padding: clamp(22px,4vw,34px); }
.na-page h1.entry-title { margin: 0 0 20px; color: var(--na-navy); font-size: var(--na-fs-h2); }
.na-content { line-height: 1.95; color: var(--na-ink-soft); }
.na-content h2 { color: var(--na-navy); }
.na-content a { text-decoration: underline; }

/* ============ Footer ============ */
.na-footer { background: var(--na-navy-900); color: #cde0ea; padding: clamp(40px,6vw,54px) 0 26px; margin-top: 40px; }
.na-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.na-footer .na-brand__ar { color: #fff; }
.na-footer__about { margin: 16px 0 0; color: #9db4c2; font-size: 14.5px; line-height: 1.9; max-width: 340px; }
.na-footer h4 { color: #fff; font-size: 16px; margin: 0 0 16px; }
.na-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.na-footer ul a { color: #b9cdd8; font-size: 14.5px; }
.na-footer ul a:hover { color: #fff; }
.na-footer__social { display: flex; gap: 10px; margin-top: 14px; }
.na-footer__social a { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.08); display: inline-flex; align-items: center; justify-content: center; color: #cde0ea; transition: background 0.2s ease, color 0.2s ease; }
.na-footer__social a:hover { background: var(--na-primary); color: #fff; }
.na-footer__contact li { display: flex; align-items: center; gap: 10px; }
.na-footer__contact svg { color: var(--na-primary); flex: 0 0 auto; }

/* Inline icon coloring */
.na-ic { display: block; }
.na-feature__icon { color: var(--na-primary-600); }
.na-feature__icon svg { width: 28px; height: 28px; }
.na-track__emoji { color: #fff; display: inline-flex; }
.na-hero__eyebrow svg { width: 18px; height: 18px; }
.na-drawer__close { display: inline-flex; align-items: center; justify-content: center; }
.na-footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); text-align: center; color: #8ba6b6; font-size: 13.5px; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
	.na-band__grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
}
@media (max-width: 900px) {
	.na-hero__grid { grid-template-columns: 1fr; }
	.na-hero__art { order: -1; max-width: 520px; margin: 0 auto; }
	.na-footer__grid { grid-template-columns: 1fr 1fr; }
	.na-footer__about { max-width: none; }
}
/* Desktop: the drawer/overlay are mobile-only — never render them. */
@media (min-width: 761px) {
	.na-drawer, .na-overlay { display: none !important; }
}

@media (max-width: 760px) {
	.na-nav, .na-header__actions .na-btn { display: none; }
	.na-burger { display: block; }
	.na-brand__tag { display: none; }
	.na-footer__grid { grid-template-columns: 1fr; }
	.na-band__grid { grid-template-columns: 1fr 1fr; }
	.na-hero__cta .na-btn { flex: 1 1 100%; }
}
@media (max-width: 460px) {
	.na-brand__en { display: none; }
	.na-hero__stats { gap: 20px; }
	.na-band__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Aurora premium upgrade (v1.4)
   ============================================================ */

/* Film grain overlay for depth */
body::after {
	content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.045;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Aurora hero: serene teal/emerald mesh + floating blobs */
.na-hero { background: #0c322e; }
.na-hero::before {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background:
		radial-gradient(45% 58% at 12% 18%, rgba(35,213,192,0.6), transparent 62%),
		radial-gradient(48% 58% at 88% 12%, rgba(20,184,166,0.5), transparent 60%),
		radial-gradient(55% 66% at 78% 92%, rgba(94,234,212,0.42), transparent 60%),
		radial-gradient(42% 52% at 8% 92%, rgba(13,148,136,0.45), transparent 60%);
	filter: saturate(1.2);
}
.na-hero__fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.na-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; will-change: transform; }
.na-blob--1 { width: 460px; height: 460px; background: #19c2ad; top: -120px; inset-inline-end: -80px; animation: na-float1 20s ease-in-out infinite alternate; }
.na-blob--2 { width: 380px; height: 380px; background: #5eead4; bottom: -150px; inset-inline-start: 8%; animation: na-float2 24s ease-in-out infinite alternate; }
.na-blob--3 { width: 320px; height: 320px; background: #0d9488; top: 22%; inset-inline-start: -110px; animation: na-float3 26s ease-in-out infinite alternate; }
@keyframes na-float1 { to { transform: translate(-40px, 55px) scale(1.12); } }
@keyframes na-float2 { to { transform: translate(55px, -45px) scale(1.08); } }
@keyframes na-float3 { to { transform: translate(35px, 35px) scale(1.14); } }
.na-hero .na-container { position: relative; z-index: 1; }
.na-hero__art { border: 1px solid rgba(255,255,255,0.18); }
.na-hero__eyebrow { backdrop-filter: blur(6px); }

/* Section accent flourish under the heading */
.na-section__head::after {
	content: ""; display: block; width: 64px; height: 4px; margin: 18px auto 0; border-radius: 999px;
	background: var(--na-gradient-accent);
}

/* Premium gradient-border glow on cards */
.na-feature, .na-testimonial, .na-instructor, .na-dashboard-card { position: relative; isolation: isolate; }
.na-feature::after, .na-testimonial::after, .na-instructor::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
	background: linear-gradient(135deg, rgba(25,194,173,0.8), rgba(94,234,212,0.55) 55%, transparent);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
	opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.na-feature:hover::after, .na-testimonial:hover::after, .na-instructor:hover::after { opacity: 1; }

/* Icon tiles: gradient sheen + glow */
.na-feature__icon { background: linear-gradient(135deg, var(--na-soft), #ffffff); box-shadow: inset 0 0 0 1px rgba(14,165,164,0.18), 0 10px 22px rgba(14,165,164,0.16); }

/* Bento grid for features */
.na-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, 1fr); gap: 18px; }
.na-bento .na-feature { margin: 0; }
.na-bento .na-feature--hero {
	grid-column: span 2; grid-row: span 2; color: #fff; background: var(--na-gradient); border: 0;
	display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; position: relative;
}
.na-bento .na-feature--hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 85% 10%, rgba(255,255,255,0.2), transparent 55%), radial-gradient(50% 50% at 10% 100%, rgba(94,234,212,0.4), transparent 55%); }
.na-bento .na-feature--hero > * { position: relative; }
.na-bento .na-feature--hero h3 { color: #fff; font-size: 24px; }
.na-bento .na-feature--hero p { color: #d9f2f2; font-size: 15px; }
.na-bento .na-feature--hero .na-feature__icon { background: rgba(255,255,255,0.18); color: #fff; box-shadow: none; }
.na-bento .na-feature--hero::after { display: none; }
.na-bento .na-feature--hero .na-btn { align-self: flex-start; margin-top: 14px; }
@media (max-width: 900px) { .na-bento { grid-template-columns: repeat(2, 1fr); } .na-bento .na-feature--hero { grid-column: span 2; grid-row: span 1; } }
@media (max-width: 520px) { .na-bento { grid-template-columns: 1fr; } .na-bento .na-feature--hero { grid-column: span 1; } }

/* Button sheen sweep */
.na-btn { position: relative; overflow: hidden; }
.na-btn > * { position: relative; z-index: 1; }
.na-btn::after { content: ""; position: absolute; top: 0; inset-inline-start: -70%; width: 45%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent); transform: skewX(-20deg); transition: inset-inline-start 0.55s ease; z-index: 0; }
.na-btn:hover::after { inset-inline-start: 140%; }

/* ===== Elegant motion (to-top inspired) ===== */

/* Sequential hero intro — JS-triggered transition with hard safety net */
.na-js .na-hero__content > * { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--na-ease), transform 0.9s var(--na-ease); }
.na-js .na-hero__content > *:nth-child(1) { transition-delay: 0.05s; }
.na-js .na-hero__content > *:nth-child(2) { transition-delay: 0.18s; }
.na-js .na-hero__content > *:nth-child(3) { transition-delay: 0.32s; }
.na-js .na-hero__content > *:nth-child(4) { transition-delay: 0.46s; }
.na-js .na-hero__content > *:nth-child(5) { transition-delay: 0.60s; }
.na-js .na-hero__art { opacity: 0; transition: opacity 1s var(--na-ease) 0.2s; }
.na-hero.na-in .na-hero__content > *, .na-hero.na-in .na-hero__art { opacity: 1; transform: none; }
/* Hard fallback: guarantee visibility even if transitions never advance */
.na-hero.na-force-show .na-hero__content > *, .na-hero.na-force-show .na-hero__art { opacity: 1 !important; transform: none !important; transition: none !important; }

/* Underline-reveal on text links */
.na-footer ul a, .na-content a { position: relative; text-decoration: none; }
.na-footer ul a::after, .na-content a::after {
	content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; background: currentColor;
	transform: scaleX(0); transform-origin: inline-start; transition: transform 0.4s var(--na-ease); opacity: 0.7;
}
.na-footer ul a:hover::after, .na-content a:hover::after { transform: scaleX(1); }

/* Smooth magnetic-button easing (JS adds the translate) */
.na-btn { transition: transform 0.3s var(--na-ease), box-shadow 0.18s ease, filter 0.18s ease; }
.na-btn.is-magnetic { transition: transform 0.12s ease-out, box-shadow 0.18s ease, filter 0.18s ease; }

/* ===== National Day discount popup ===== */
.na-nd { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.na-nd__overlay { position: absolute; inset: 0; background: rgba(4, 30, 20, 0.6); backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.3s ease; }
.na-nd.is-open .na-nd__overlay { opacity: 1; }
.na-nd__card {
	position: relative; z-index: 1; width: min(92vw, 420px); background: #fff; border-radius: 24px; overflow: hidden;
	padding: 34px 28px 28px; text-align: center; box-shadow: 0 40px 90px rgba(4, 30, 20, 0.4);
	border-top: 6px solid #006C35;
	transform: translateY(24px) scale(0.96); opacity: 0; transition: transform 0.4s var(--na-ease), opacity 0.4s var(--na-ease);
}
.na-nd.is-open .na-nd__card { transform: none; opacity: 1; }
.na-nd__pattern { position: absolute; inset: 0 0 auto; height: 150px; pointer-events: none;
	background: radial-gradient(60% 100% at 50% 0, rgba(0,108,53,0.12), transparent 70%),
		repeating-linear-gradient(135deg, rgba(0,108,53,0.05) 0 12px, transparent 12px 24px); }
.na-nd__close { position: absolute; top: 12px; inset-inline-start: 14px; width: 36px; height: 36px; border: 0; background: #f1f5f4; border-radius: 50%; font-size: 22px; line-height: 1; color: #045c2c; cursor: pointer; z-index: 2; }
.na-nd__close:hover { background: #e2efe9; }
.na-nd__badge { position: relative; display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #006C35, #045c2c); color: #fff; font-weight: 800; font-size: 13.5px; padding: 8px 16px; border-radius: 999px; }
.na-nd__off { position: relative; display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 18px 0 6px; color: #006C35; }
.na-nd__num { font-size: 68px; font-weight: 800; line-height: 1; letter-spacing: -2px; }
.na-nd__label { font-size: 22px; font-weight: 800; }
.na-nd__title { position: relative; margin: 6px 0 8px; font-size: 22px; color: var(--na-navy); font-weight: 800; }
.na-nd__text { position: relative; margin: 0 0 18px; color: var(--na-muted); font-size: 15px; }
.na-nd__code { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; border: 2px dashed #C9A227; border-radius: 12px; background: #fffdf4; margin-bottom: 18px; cursor: pointer; }
.na-nd__code span { color: var(--na-muted); font-size: 12.5px; font-weight: 700; }
.na-nd__code strong { color: #045c2c; font-size: 20px; font-weight: 800; letter-spacing: 2px; }
.na-nd__code.is-copied strong::after { content: " ✓"; color: #006C35; }
.na-nd__btn { position: relative; display: block; width: 100%; padding: 15px; border-radius: 999px; background: linear-gradient(135deg, #006C35, #045c2c); color: #fff; font-weight: 800; font-size: 16px; text-decoration: none; box-shadow: 0 14px 30px rgba(0,108,53,0.3); transition: transform 0.18s ease, filter 0.18s ease; }
.na-nd__btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.na-nd__dismiss { position: relative; display: block; width: 100%; margin-top: 12px; border: 0; background: none; color: var(--na-muted); font-size: 13.5px; cursor: pointer; }
.na-nd__dismiss:hover { color: var(--na-ink); }

@media (prefers-reduced-motion: reduce) {
	*, .na-reveal { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.na-js .na-reveal { opacity: 1 !important; transform: none !important; }
	.na-js .na-hero__content > *, .na-js .na-hero__art { opacity: 1 !important; transform: none !important; }
	.na-blob { display: none; }
	.na-nd__card { transition: none !important; }
}
