/* =========================================================
   SmartBee — global styles: reset, typography, header, footer, buttons
   ========================================================= */

:root {
	/* Colours sampled from the PDF and cross-checked against the Figma file's
	   variable defs (Color/Main/*) — both sources agree on these values. */
	--sbe-purple-900: #2e1244;   /* headings — Figma Color/Main/colorSeven */
	--sbe-purple-800: #391753;   /* nav rules */
	--sbe-purple-700: #652d89;   /* primary purple / buttons — Figma Color/Main/primary */
	--sbe-purple-600: #7b39a5;
	--sbe-purple-500: #8a3fe0;
	--sbe-violet-400: #8c5bb0;   /* Figma token Color/Main/colorFive */
	--sbe-gold-600: #e8ad21;     /* Figma token Color/Main/secondary — confirmed */
	--sbe-gold-500: #eab24b;
	--sbe-orange-600: #f5821f;
	--sbe-lavender-100: #f6f3f9;  /* Figma token Color/Main/colorThree */
	--sbe-lavender-200: #efe3fb;
	--sbe-lavender-300: #e4d1f7;
	--sbe-rule: #cccacf;         /* light divider rule */
	--sbe-text: #2c2536;
	--sbe-text-light: #6a6274;
	--sbe-ink: #000000;          /* nav labels */
	--sbe-topbar-text: #1a1026;
	--sbe-white: #ffffff;
	--sbe-radius: 10px;      /* card/box corners — restrained, not bubble-rounded */
	--sbe-radius-sm: 6px;
	--sbe-shadow: 0 4px 18px rgba(46, 18, 68, 0.06);  /* tighter, quieter shadow */
	--sbe-shadow-lg: 0 10px 24px rgba(46, 18, 68, 0.11);  /* lifted shadow for hover states — soft, not a hard box */
	--sbe-font-heading: 'Instrument Sans', 'Inter', sans-serif;
	--sbe-font-body: 'Inter', 'Instrument Sans', sans-serif;
	/* Layout: design is 1920 wide with a 1536px content column (192px gutters).
	   1536 + 2*24px padding = 1584 outer, so content lands exactly at x=192. */
	--sbe-container: 1440px;
	--sbe-nav-gap: 67px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }

body {
	margin: 0;
	font-family: var(--sbe-font-body);
	color: var(--sbe-text);
	font-size: 16px;
	line-height: 1.6;
	background: var(--sbe-white);
	overflow-x: hidden; /* safety net: no section should ever be able to widen the page past the viewport */
	max-width: 100%;
}

/* ---------- Scroll-reveal ----------
   main.js tags cards/rows/boxes with .sbe-reveal (JS-applied only — if JS
   fails to run, the class is never added and nothing is ever hidden) and
   adds .is-visible via an IntersectionObserver the first time each one
   scrolls into view, staggered per row via the --sbe-reveal-delay custom
   property it sets inline. */
.sbe-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .6s ease, transform .6s ease;
	transition-delay: var(--sbe-reveal-delay, 0s);
}
.sbe-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
	.sbe-reveal { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
	font-family: var(--sbe-font-heading);
	color: var(--sbe-purple-800);
	font-weight: 600;
	margin: 0 0 14px;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

/* Restrained weight scale — Semibold(600) is the ceiling, full Bold(700+)
   is never used. Headlines lean lighter still for a calmer, premium feel. */
h1 { font-size: 44px; font-weight: 600; }
h2 { font-size: 30px; font-weight: 600; }
h3 { font-size: 20px; font-weight: 500; }

p { margin: 0 0 14px; color: var(--sbe-text); }

/* Global weight cap: browsers render <strong>/<b> at 700 (bold) by default.
   House rule is Semibold(600) is the ceiling everywhere, Medium(500) and
   Regular(400) preferred — so pin strong/b down to Semibold site-wide. */
strong, b { font-weight: 600; }

ul { margin: 0; padding: 0; list-style: none; }

.sbe-container {
	max-width: var(--sbe-container);
	margin: 0 auto;
	padding: 0 24px;
}

.sbe-lead-text { color: var(--sbe-text-light); }

/* ---------- Icons ---------- */
.sbe-icon { display: inline-flex; width: 18px; height: 18px; vertical-align: middle; }
.sbe-icon svg { width: 100%; height: 100%; }

/* ---------- Buttons ----------
   Narrow (short) pills, regular-weight label — never bold. The circle is
   sized down to match and holds the real arrow-asset image, not a drawn icon. */
.sbe-btn {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	height: 42px;
	padding: 0 5px 0 22px;
	border-radius: 999px;
	font-family: var(--sbe-font-heading);
	font-weight: 400;
	font-size: 15px;
	border: none;
	cursor: pointer;
	white-space: nowrap;
	transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.sbe-btn:hover { transform: translateY(-1px); opacity: .95; box-shadow: 0 8px 20px rgba(46, 18, 68, .18); }
.sbe-btn:active { transform: translateY(0); box-shadow: none; }

/* White pill holding the arrow — matches the source design */
.sbe-btn-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #fff;
	color: var(--sbe-purple-700);
	flex-shrink: 0;
}
.sbe-btn-circle .sbe-icon { width: 15px; height: 15px; }
.sbe-btn-arrow-img { width: 14px; height: auto; display: block; }
.sbe-btn-circle-purple { background: var(--sbe-purple-700); color: #fff; }

.sbe-btn-purple {
	background: var(--sbe-purple-700);
	color: #fff;
}

.sbe-btn-white {
	background: #fff;
	color: var(--sbe-purple-700);
	padding: 0 5px 0 22px;
}

.sbe-btn-gold {
	background: var(--sbe-gold-600);
	color: #fff;
}
.sbe-btn-gold .sbe-btn-circle { background: #fff; color: var(--sbe-gold-600); }

.sbe-btn-block { display: flex; justify-content: space-between; width: 100%; }

/* Small pill-only "Learn More" style buttons without circle bg */
.sbe-scholarship-card .sbe-btn,
.sbe-intake-card .sbe-btn { padding: 10px 22px; gap: 8px; justify-content: center; }
.sbe-scholarship-card .sbe-btn .sbe-icon,
.sbe-intake-card .sbe-btn .sbe-icon { width: 16px; height: 16px; }

/* ---------- Top notice bar ---------- */
.sbe-topbar {
	background: var(--sbe-gold-600);
	text-align: center;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
}
.sbe-topbar p {
	margin: 0;
	color: var(--sbe-topbar-text);
	font-family: var(--sbe-font-heading);
	font-size: 15px;
	font-weight: 500;
}

/* ---------- Header ---------- */
.sbe-header {
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 200;
	padding-bottom: 16px;
}

/* Row 1 — logo left, CTA + flag right */
.sbe-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 20px 0 29px;
}

.sbe-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; transition: transform .2s ease; }
.sbe-logo:hover { transform: scale(1.04); }
.sbe-logo-img { height: 64px; width: auto; object-fit: contain; }
.sbe-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.sbe-logo-word { font-family: var(--sbe-font-heading); font-weight: 600; font-size: 30px; letter-spacing: .5px; }
.sbe-logo-word-1 { color: var(--sbe-purple-700); }
.sbe-logo-word-2 { color: var(--sbe-gold-600); }
.sbe-logo-tagline { font-size: 10px; letter-spacing: 2px; color: var(--sbe-purple-700); text-transform: uppercase; margin-top: 3px; }

.sbe-header-actions { display: flex; align-items: center; gap: 80px; flex-shrink: 0; }
.sbe-flag {
	width: 50px; height: 50px; border-radius: 50%;
	background: linear-gradient(90deg, #d80621 0 27%, #fff 27% 73%, #d80621 73% 100%);
	flex-shrink: 0;
	background-position: center;
	transition: transform .2s ease, box-shadow .2s ease;
}
.sbe-flag:hover { transform: scale(1.08); box-shadow: 0 4px 14px rgba(46, 18, 68, .2); }

/* Row 2 — nav in equal columns, each with a rule above */
.sbe-nav-list {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr); /* minmax(0,..) stops 1fr tracks blowing out past their content's min width */
	gap: var(--sbe-nav-gap);
	align-items: start;
	min-width: 0;
}
.sbe-nav-list > li { position: relative; min-width: 0; }
.sbe-nav-list > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
	border-top: 1.5px solid var(--sbe-rule);
	padding-top: 16px;
	font-family: var(--sbe-font-heading);
	font-weight: 500;
	font-size: 15.5px;
	line-height: 1.2;
	color: var(--sbe-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color .18s ease, border-top-color .18s ease;
}
.sbe-nav-list > li > a span:first-child {
	overflow: hidden;
	text-overflow: ellipsis;
}
.sbe-nav-list > li > a .sbe-icon { width: 16px; height: 16px; color: var(--sbe-ink); flex-shrink: 0; transition: color .18s ease, transform .18s ease; }
.sbe-nav-list > li:hover > a { color: var(--sbe-purple-700); border-top-color: var(--sbe-purple-700); }
.sbe-nav-list > li:hover > a .sbe-icon { color: var(--sbe-purple-700); transform: translateY(2px); }

.sbe-submenu {
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	box-shadow: var(--sbe-shadow);
	border-radius: 10px;
	padding: 10px;
	min-width: 260px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all .18s ease;
	z-index: 50;
}
.sbe-nav-list li:hover > .sbe-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.sbe-submenu li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 6px; font-size: 14px; transition: background .15s ease, color .15s ease, padding-left .15s ease; }
.sbe-submenu li a .sbe-icon { width: 13px; height: 13px; color: var(--sbe-purple-500); flex-shrink: 0; transition: transform .15s ease, color .15s ease; }
.sbe-submenu li a:hover { background: var(--sbe-lavender-100); color: var(--sbe-purple-700); padding-left: 16px; }
.sbe-submenu li a:hover .sbe-icon { color: var(--sbe-purple-700); transform: translateX(3px); }
.sbe-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.sbe-burger span { width: 24px; height: 2px; background: var(--sbe-purple-700); border-radius: 2px; }

/* ---------- Footer ---------- */
/* Single background layer — the footerBG.png watermark — no separate wave
   divider image stacked on top of it. */
.sbe-footer {
	background: var(--sbe-lavender-100);
	background-image: url('../images/footer-bg.png');
	background-size: cover;
	background-position: top center;
	background-repeat: no-repeat;
	position: relative;
	overflow: hidden;
	padding: 60px 0 30px;
	margin-top: 0;
}
.sbe-footer .sbe-container { position: relative; }

.sbe-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.sbe-footer-divider { border: none; border-top: 1px solid var(--sbe-lavender-300); margin: 28px 0; }

.sbe-footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
	gap: 30px;
	align-items: start;
}
.sbe-footer-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--sbe-purple-600);
	text-transform: uppercase;
	letter-spacing: .5px;
	margin-bottom: 12px;
}
.sbe-footer-item p { margin: 0 0 4px; color: var(--sbe-text); font-weight: 400; font-size: 15px; }
.sbe-footer-contact-row { display: flex; gap: 30px; margin-top: 18px; }
.sbe-footer-list li { margin-bottom: 12px; }
/* All footer menu links share one color — no purple-highlighted first item. */
.sbe-footer-list a { font-weight: 400; font-size: 14.5px; color: var(--sbe-text); transition: color .15s ease, padding-left .15s ease; display: inline-block; }
.sbe-footer-list a:hover { color: var(--sbe-purple-700); padding-left: 4px; }

.sbe-footer-social { display: flex; flex-direction: column; gap: 12px; }
.sbe-footer-social a {
	width: 38px; height: 38px;
	display: flex; align-items: center; justify-content: center;
	transition: transform .15s ease, opacity .15s ease;
}
.sbe-footer-social a img { width: 100%; height: 100%; object-fit: contain; }
.sbe-footer-social a:hover { transform: translateY(-2px); opacity: .85; }

.sbe-footer-bottom { display: flex; gap: 40px; justify-content: space-between; flex-wrap: wrap; }
.sbe-footer-copy { font-weight: 600; color: var(--sbe-purple-700); }
.sbe-footer-desc { max-width: 560px; font-size: 14px; color: var(--sbe-text-light); }

/* ---------- Basic page fallback (page.php / index.php) ---------- */
.sbe-basic-content { padding: 60px 24px; max-width: 900px; }

/* ---------- Responsive ---------- */
/* Tighten the nav gap before it gets cramped */
@media (max-width: 1400px) { :root { --sbe-nav-gap: 40px; } }
@media (max-width: 1200px) {
	:root { --sbe-nav-gap: 24px; }
	.sbe-nav-list > li > a { font-size: 15px; }
	.sbe-logo-img { height: 56px; }
}

@media (max-width: 1000px) {
	.sbe-header { padding-bottom: 0; }
	.sbe-header-row { padding: 14px 0; }
	.sbe-nav { position: fixed; inset: 0 0 0 auto; width: 82%; max-width: 340px; background: #fff; transform: translateX(100%); transition: transform .25s ease; padding: 90px 24px 24px; overflow-y: auto; box-shadow: -10px 0 30px rgba(0,0,0,.15); z-index: 300; }
	.sbe-nav.is-open { transform: translateX(0); }
	.sbe-nav-list { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
	.sbe-nav-list > li { width: 100%; }
	.sbe-nav-list > li > a { padding: 14px 0; width: 100%; border-top: none; border-bottom: 1px solid var(--sbe-rule); }
	.sbe-submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; margin-left: 10px; min-width: 0; }
	.sbe-nav-list li.is-open > .sbe-submenu { display: block; }
	.sbe-burger { display: flex; }
	.sbe-header-actions { gap: 14px; }
	.sbe-header-actions .sbe-btn { height: 38px; padding: 0 4px 0 16px; font-size: 13.5px; }
	.sbe-header-actions .sbe-btn-circle { width: 28px; height: 28px; }
	.sbe-flag { width: 38px; height: 38px; }
	.sbe-logo-img { height: 48px; }

	.sbe-footer-grid { grid-template-columns: 1fr 1fr; }
	.sbe-footer-social { flex-direction: row; grid-column: 1 / -1; }
}

@media (max-width: 600px) {
	h1 { font-size: 32px; }
	h2 { font-size: 24px; }
	.sbe-topbar { height: auto; padding: 8px 16px; }
	.sbe-topbar p { font-size: 12px; }
	.sbe-header-actions .sbe-btn span:first-child { display: none; }
	.sbe-header-actions .sbe-btn { padding: 0 5px; }
	.sbe-footer-grid { grid-template-columns: 1fr; }
	.sbe-footer-contact-row { flex-direction: column; gap: 10px; }
}
