/* SteadyExam theme — site chrome and base styles.
   Page content is styled in Elementor; these rules only set sensible defaults. */

:root {
	--se-ink: #1E1E24;
	--se-accent: #FACC15;
	--se-accent-hover: #FDE68A;
	--se-bg: #FAFAF5;
	--se-surface: #FFFFFF;
	--se-line: #E2E2DC;
	--se-muted: #5C5C66;
	--se-on-ink-muted: #B9B9C2;
	--se-font: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--se-font-display: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--se-max: 1140px;
	--se-gutter: 20px;
	--se-header-h: 72px;
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--se-header-h) + 16px); }
body.steadyexam-theme {
	background: var(--se-bg);
	color: var(--se-ink);
	font-family: var(--se-font);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
body.steadyexam-theme h1,
body.steadyexam-theme h2,
body.steadyexam-theme h3,
body.steadyexam-theme h4 {
	font-family: var(--se-font-display);
	color: var(--se-ink);
	letter-spacing: -0.02em;
	line-height: 1.12;
}
body.steadyexam-theme a { color: var(--se-ink); }
body.steadyexam-theme a:hover { color: #000; }
body.steadyexam-theme :focus-visible { outline: 3px solid var(--se-accent); outline-offset: 2px; border-radius: 4px; }
body.steadyexam-theme ::selection { background: var(--se-accent); color: var(--se-ink); }

/* Hello Elementor page title on non-Elementor pages */
body.steadyexam-theme:not(.elementor-page) .page-header { max-width: var(--se-max); margin: 0 auto; padding: 56px var(--se-gutter) 8px; }
.steadyexam-theme .page-header .entry-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin: 0; }
body.steadyexam-theme:not(.elementor-page) .page-content { max-width: var(--se-max); margin: 0 auto; padding: 16px var(--se-gutter) 72px; }

/* ---------- Buttons ---------- */
.se-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 22px; border-radius: 999px;
	border: 2px solid var(--se-ink); background: var(--se-ink); color: #fff !important;
	font: 700 15px/1 var(--se-font); text-decoration: none !important; white-space: nowrap;
	transition: background-color .15s, border-color .15s, transform .15s;
}
.se-btn:hover { transform: translateY(-1px); }
.se-btn--accent { background: var(--se-accent); border-color: var(--se-accent); color: var(--se-ink) !important; }
.se-btn--accent:hover { background: var(--se-accent-hover); border-color: var(--se-accent-hover); }

/* ---------- Logo ---------- */
.se-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--se-ink) !important; flex-shrink: 0; }
.se-logo .se-mark { display: block; flex-shrink: 0; }
.se-wordmark { font-family: var(--se-font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.03em; line-height: 1; }
.se-wordmark span { font-weight: 400; color: var(--se-accent); }
.se-logo--dark { color: #fff !important; }
.se-logo--dark .se-wordmark { font-weight: 800; color: #fff; font-size: 26px; }
.se-logo--dark .se-wordmark span { font-weight: 500; color: var(--se-accent); }
.se-logo--image img { max-height: 44px; width: auto; display: block; }

/* ---------- Header ---------- */
.se-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .9);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.admin-bar .se-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .se-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .se-header { top: 0; } }
.se-header.is-scrolled { border-bottom-color: var(--se-line); box-shadow: 0 6px 24px rgba(30, 30, 36, .05); }
.se-header__inner {
	max-width: var(--se-max); margin: 0 auto; padding: 0 var(--se-gutter);
	min-height: var(--se-header-h); display: flex; align-items: center; gap: 24px;
}
.se-nav { display: flex; align-items: center; gap: 24px; flex: 1; }
.se-nav__menu { flex: 1; display: flex; justify-content: center; }
.se-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.se-menu li { margin: 0; position: relative; }
.se-menu a {
	display: block; padding: 10px 14px; border-radius: 999px;
	font-weight: 700; font-size: 15px; text-decoration: none; color: var(--se-ink);
	transition: background-color .15s;
}
.se-menu a:hover { background: rgba(30, 30, 36, .06); color: var(--se-ink); }
.se-menu .current-menu-item > a,
.se-menu .current_page_item > a { background: var(--se-ink); color: #fff; }
.se-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; list-style: none; margin: 6px 0 0; padding: 8px; background: #fff; border: 1px solid var(--se-line); border-radius: 14px; box-shadow: 0 12px 32px rgba(30,30,36,.08); }
.se-menu li:hover > .sub-menu, .se-menu li:focus-within > .sub-menu { display: block; }
.se-menu .sub-menu a { border-radius: 8px; }
.se-nav__actions { display: flex; align-items: center; gap: 16px; }
.se-link-login { font-weight: 700; font-size: 15px; text-decoration: none; }
.se-link-login:hover { text-decoration: underline; text-underline-offset: 3px; }

.se-burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 1.5px solid var(--se-ink); border-radius: 999px; background: transparent; cursor: pointer; padding: 0; align-items: center; justify-content: center; color: var(--se-ink); }
.se-burger:hover, .se-burger:focus { background: rgba(30,30,36,.06); }
.se-burger__lines { display: grid; gap: 4px; width: 18px; }
.se-burger__lines span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.se-burger[aria-expanded="true"] .se-burger__lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.se-burger[aria-expanded="true"] .se-burger__lines span:nth-child(2) { opacity: 0; }
.se-burger[aria-expanded="true"] .se-burger__lines span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
	:root { --se-header-h: 64px; }
	.se-wordmark { font-size: 23px; }
	.se-logo .se-mark { width: 34px; height: 34px; }
	.se-burger { display: inline-flex; }
	.se-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 12px var(--se-gutter) 24px; background: #fff;
		border-bottom: 1px solid var(--se-line); box-shadow: 0 16px 32px rgba(30,30,36,.08);
	}
	.se-header.is-open .se-nav { display: flex; }
	.se-nav__menu { justify-content: flex-start; }
	.se-menu { flex-direction: column; width: 100%; gap: 2px; }
	.se-menu a { padding: 14px 16px; font-size: 17px; border-radius: 12px; text-align: center; }
	.se-menu .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0; margin: 0; background: transparent; }
	.se-nav__actions { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
	.se-nav__actions .se-btn { min-height: 50px; font-size: 16px; }
	.se-link-login { text-align: center; padding: 8px; }
}

/* ---------- Footer ---------- */
.se-footer { background: var(--se-ink); color: var(--se-on-ink-muted); margin-top: 0; }
.se-footer a, body.steadyexam-theme .se-footer a { color: #fff; }
.se-footer a:hover, body.steadyexam-theme .se-footer a:hover { color: var(--se-accent); }
body.steadyexam-theme .se-footer .se-btn--accent { color: var(--se-ink) !important; }
.se-footer__inner {
	max-width: var(--se-max); margin: 0 auto; padding: 72px var(--se-gutter) 40px;
	display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px;
}
.se-footer__tagline { margin: 18px 0 0; max-width: 34ch; font-size: 16px; }
.se-footer__heading { font-family: var(--se-font) !important; font-size: 13px !important; font-weight: 700; letter-spacing: .12em !important; text-transform: uppercase; color: var(--se-accent) !important; margin: 6px 0 16px; }
.se-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.se-footer__menu a { text-decoration: none; font-weight: 700; }
.se-footer__menu a:hover { text-decoration: underline; text-underline-offset: 3px; }
.se-footer__col p { margin: 0 0 16px; font-size: 16px; }
.se-footer__contact { margin-top: 18px !important; }
.se-social { list-style: none; margin: 22px 0 0; padding: 0; display: flex; gap: 10px; }
.se-social a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid rgba(255,255,255,.25); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; }
.se-social a:hover { border-color: var(--se-accent); }
.se-footer__bottom {
	max-width: var(--se-max); margin: 0 auto; padding: 22px var(--se-gutter) 32px;
	border-top: 1px solid rgba(255,255,255,.12);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: 14px;
}
.se-footer__bottom p { margin: 0; }
.se-footer__note { max-width: 70ch; }
@media (max-width: 860px) {
	.se-footer__inner { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
}

/* Shortcode menu (for custom Elementor headers/footers) */
.se-menu--inline { flex-wrap: wrap; }
.se-footer--custom .se-menu a, .se-footer--custom .se-menu--inline a { color: inherit; }
.se-header--custom { background: transparent; }

/* ---------- Elementor helpers ---------- */
/* Add the CSS class "se-card" to any Elementor column/container to get a card. */
.se-card > .elementor-widget-wrap,
.e-con.se-card,
.elementor-widget.se-card > .elementor-widget-container {
	background: var(--se-surface); border: 1px solid var(--se-line); border-radius: 18px; padding: 28px !important;
}
.se-card > .elementor-widget-wrap { margin: 8px; }
.e-con.se-card { margin: 8px; }
/* "se-card--ink": dark card */
.se-card--ink > .elementor-widget-wrap,
.e-con.se-card--ink { background: var(--se-ink) !important; border-color: var(--se-ink) !important; }
.se-card--ink table, .se-card--ink td, .se-card--ink th { border: 0; background: transparent !important; margin: 0; }
/* Class "se-eyebrow" on a text widget = small uppercase label */
.se-eyebrow p { margin: 0; }
/* Class "se-prose" on a text editor widget = comfy long-form text */
.se-prose h3 { font-size: 21px; margin: 28px 0 8px; }
.se-prose ul, .se-prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.se-prose li { margin: 0 0 .5em; }
.se-prose li::marker { color: var(--se-ink); font-weight: 700; }
.se-prose strong { color: var(--se-ink); }
/* Class "se-check" on a text editor = list with answer-bubble ticks */
.se-check ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.se-check li { position: relative; padding-left: 34px; margin: 0; }
.se-check li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--se-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23FACC15' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; transform: scale(var(--tick, 1)); }
/* Tip number badge */
.se-num p { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--se-ink); color: var(--se-accent); align-items: center; justify-content: center; font-weight: 800; margin: 0; font-family: var(--se-font-display); }
/* Keep Elementor sections from drawing outside on phones */
.steadyexam-theme .elementor-section { overflow-x: clip; }

/* ---------- Motion (GSAP) ---------- */
/* Plugin's floating-bubble background and plain scroll bar are switched off. */
#se-particles, .se-particles, #se-scrollbar, .se-scrollbar { display: none !important; }
html.se-has-particles body { background: inherit !important; }

/* Hero stays hidden for a moment until its intro starts (removed by JS or a 2.5s timer). */
.se-gsap-pending #content .elementor > .elementor-section:first-child .elementor-widget,
.se-gsap-pending #content .elementor > .e-con:first-child .elementor-widget { opacity: 0; }

/* Word-by-word headings */
.se-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.se-wi { display: inline-block; will-change: transform; }

/* Question-navigator strip under the header: 40 cells fill as you scroll */
.se-qbar { position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; display: grid; grid-template-columns: repeat(40, 1fr); gap: 2px; padding: 0 2px; pointer-events: none; }
.se-qbar i { display: block; height: 100%; background: rgba(30, 30, 36, .07); border-radius: 2px; transform-origin: 50% 100%; transition: background-color .2s; }
.se-qbar i.on { background: var(--se-accent); }
.se-qbar i.cur { background: var(--se-ink); }
.se-qbar__tag { position: absolute; right: 12px; top: 8px; padding: 3px 9px; border-radius: 999px; background: var(--se-ink); color: #fff; font: 700 11px/1.4 var(--se-font); letter-spacing: .04em; font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s; }
.se-qbar.has-tag .se-qbar__tag { opacity: 1; transform: none; }
.se-header:not(.is-scrolled) .se-qbar__tag { opacity: 0 !important; }
@media (max-width: 960px) { .se-qbar__tag { display: none; } .se-header.is-open .se-qbar { display: none; } }

@media (prefers-reduced-motion: reduce) {
	.se-btn, .se-burger__lines span, .se-header { transition: none; }
	.se-btn:hover { transform: none; }
}
