/*
 Theme Name:   Hub for Education
 Theme URI:    https://hubforeducation.example
 Author:       Hub for Education
 Author URI:   https://hubforeducation.example
 Description:  Standalone classic theme for Hub for Education — commerce, mock tests & career updates. Navy / saffron / red palette, Libre Franklin + Public Sans. Ships page templates for Videos, Shorts, Mock Papers (WooCommerce), Jobs, About and Contact. Content types live in the companion "HFE Core" plugin.
 Version:      1.3.1
 Requires at least: 6.2
 Tested up to: 6.7
 Requires PHP: 7.4
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  hub-for-education
 Tags:         education, ecommerce, custom-colors, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
	--hfe-navy: #0b2e6b;
	--hfe-navy-2: #15409a;
	--hfe-saffron: #ffb347;
	--hfe-red: #e8202a;
	--hfe-green: #0a7d5a;
	--hfe-ink: #141821;
	--hfe-ink-2: #2b333f;
	--hfe-muted: #6b7280;
	--hfe-muted-2: #9aa2af;
	--hfe-line: #e7eaf0;
	--hfe-line-2: #e4e7ec;
	--hfe-bg: #eef1f5;
	--hfe-card: #ffffff;
	--hfe-radius: 16px;
	--hfe-radius-lg: 22px;
	--hfe-shadow: 0 10px 26px rgba(16, 32, 64, .1);
	--hfe-shadow-lg: 0 20px 60px rgba(20, 35, 70, .16);
	--hfe-head: 'Libre Franklin', system-ui, sans-serif;
	--hfe-body: 'Public Sans', system-ui, sans-serif;
	--hfe-max: 1240px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
body.hfe {
	margin: 0;
	background: var(--hfe-bg);
	font-family: var(--hfe-body);
	color: var(--hfe-ink);
	-webkit-font-smoothing: antialiased;
	line-height: 1.5;
}
.hfe a { color: var(--hfe-navy); text-decoration: none; }
.hfe a:hover { color: #163f8c; }
.hfe img { max-width: 100%; height: auto; display: block; }
.hfe h1, .hfe h2, .hfe h3, .hfe h4 { font-family: var(--hfe-head); margin: 0; }
.hfe p { margin: 0; }

.hfe-container { width: 100%; max-width: var(--hfe-max); margin: 0 auto; padding: 0 20px; }
.hfe-striped { background-image: repeating-linear-gradient(135deg, #dfe4ec 0 10px, #e9edf3 10px 20px); }
.hfe-dv { font-family: 'Noto Sans Devanagari', var(--hfe-body); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hfe-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--hfe-red); text-transform: uppercase; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.hfe-btn {
	display: inline-flex; align-items: center; gap: 8px; justify-content: center;
	font-weight: 700; font-size: 14px; padding: 11px 20px; border-radius: 10px;
	border: 1px solid transparent; cursor: pointer; font-family: inherit; text-align: center;
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.hfe-btn:hover { transform: translateY(-1px); }
.hfe-btn--red { background: var(--hfe-red); color: #fff; box-shadow: 0 4px 12px rgba(232,32,42,.25); }
.hfe-btn--red:hover { color: #fff; box-shadow: 0 6px 18px rgba(232,32,42,.35); }
.hfe-btn--saffron { background: var(--hfe-saffron); color: #3a2600; }
.hfe-btn--saffron:hover { color: #3a2600; }
.hfe-btn--navy { background: var(--hfe-navy); color: #fff; }
.hfe-btn--navy:hover { color: #fff; }
.hfe-btn--ghost { background: #fff; border-color: #cfd5df; color: var(--hfe-ink-2); }
.hfe-btn--ghost:hover { color: var(--hfe-ink-2); }
.hfe-btn--outline-navy { background: transparent; border-color: var(--hfe-navy); color: var(--hfe-navy); }
.hfe-btn--block { display: flex; width: 100%; }

/* ==========================================================================
   Header / top bar / nav  (header.php — mirrors PageChrome + Home header)
   ========================================================================== */
.hfe-topbar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 12px; padding: 8px 0; font-size: 13px; color: #5b6472;
	border-bottom: 1px solid var(--hfe-line-2);
}
.hfe-topbar__left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hfe-topbar__sep { color: #c5cbd4; }
.hfe-topbar__right { display: flex; align-items: center; gap: 10px; }
.hfe-topbar__right a { font-weight: 600; font-size: 12px; color: #5b6472; }
.hfe-topbar__sub { display: inline-flex; align-items: center; gap: 6px; background: var(--hfe-red); color: #fff !important; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; }

.hfe-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.hfe-brand { display: flex; align-items: center; gap: 12px; }
.hfe-brand__mark {
	width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
	background: linear-gradient(145deg, var(--hfe-navy), var(--hfe-navy-2));
	display: flex; align-items: center; justify-content: center;
	color: var(--hfe-saffron); font-family: var(--hfe-head); font-weight: 900; font-size: 18px;
	box-shadow: 0 4px 14px rgba(11,46,107,.28); line-height: .9; text-align: center; overflow: hidden;
}
.hfe-brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.hfe-brand__name { font-family: var(--hfe-head); font-weight: 800; font-size: 19px; letter-spacing: -.3px; color: var(--hfe-navy); line-height: 1; }
.hfe-brand__tag { font-size: 11px; color: var(--hfe-muted); font-weight: 600; letter-spacing: .02em; }

.hfe-nav { display: flex; align-items: center; gap: 24px; }
.hfe-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 24px; }
.hfe-nav a { font-weight: 600; font-size: 15px; color: var(--hfe-ink-2); }
.hfe-nav .current-menu-item > a,
.hfe-nav .current_page_item > a { color: var(--hfe-navy); font-weight: 800; }

.hfe-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.hfe-burger span { display: block; width: 24px; height: 2px; background: var(--hfe-navy); margin: 5px 0; transition: .2s; }

/* ==========================================================================
   Hero (front page)
   ========================================================================== */
.hfe-hero {
	display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; align-items: center;
	background: linear-gradient(135deg, var(--hfe-navy) 0%, #143a86 60%, #1b4aa6 100%);
	border-radius: var(--hfe-radius-lg); padding: 40px; color: #fff; margin-top: 4px; overflow: hidden;
}
.hfe-hero h1 { font-weight: 900; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -.8px; margin: 18px 0 0; }
.hfe-hero h1 span { color: var(--hfe-saffron); }
.hfe-hero p { margin: 16px 0 0; font-size: 16.5px; line-height: 1.55; color: #d6ddea; max-width: 44ch; }
.hfe-pill { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .03em; }
.hfe-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hfe-hero__stats { display: flex; gap: 28px; margin-top: 30px; }
.hfe-hero__stats .n { font-family: var(--hfe-head); font-weight: 800; font-size: 24px; color: var(--hfe-saffron); }
.hfe-hero__stats .l { font-size: 12.5px; color: #c3cde0; font-weight: 600; letter-spacing: .02em; }
.hfe-embed { aspect-ratio: 16/9; border-radius: var(--hfe-radius); overflow: hidden; border: 3px solid rgba(255,255,255,.3); box-shadow: 0 20px 50px rgba(0,0,0,.35); background: #000; }
.hfe-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.hfe-hero__note { display: flex; align-items: center; gap: 10px; margin-top: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 12px 14px; }
.hfe-hero__note .ic { width: 34px; height: 34px; border-radius: 8px; background: var(--hfe-saffron); color: #3a2600; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.hfe-hero__note .t { font-size: 13.5px; line-height: 1.35; }
.hfe-hero__note .t span { color: #c9d3e6; }

/* ==========================================================================
   Updates ticker
   ========================================================================== */
.hfe-ticker { display: flex; align-items: stretch; margin-top: 26px; border: 1px solid var(--hfe-line-2); border-radius: 12px; overflow: hidden; background: #fff; }
.hfe-ticker__label { background: var(--hfe-red); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .06em; padding: 0 16px; display: flex; align-items: center; white-space: nowrap; }
.hfe-ticker__viewport { overflow: hidden; flex: 1; }
.hfe-ticker__track { display: inline-flex; gap: 38px; white-space: nowrap; padding: 12px 20px; animation: hfe-tick 28s linear infinite; font-size: 14px; font-weight: 600; color: var(--hfe-ink-2); }
.hfe-ticker__track .d { color: #c5cbd4; }
@keyframes hfe-tick { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ==========================================================================
   Section headers
   ========================================================================== */
.hfe-section { margin-top: 50px; }
.hfe-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.hfe-section__head h2 { font-weight: 800; font-size: 28px; letter-spacing: -.4px; margin-top: 4px; }
.hfe-section__more { font-weight: 700; font-size: 14px; color: var(--hfe-navy); white-space: nowrap; }

/* Inner page hero band (Pages mockups) */
.hfe-page { padding: 60px 0; }
.hfe-page__band { background: linear-gradient(135deg, var(--hfe-navy), #1b4aa6); color: #fff; border-radius: var(--hfe-radius-lg); padding: 44px 40px; text-align: center; }
.hfe-page__band h1 { font-weight: 900; font-size: 36px; letter-spacing: -.7px; }
.hfe-page__band p { font-size: 17px; color: #d6ddea; margin: 12px auto 0; max-width: 620px; line-height: 1.55; }
.hfe-page__title { font-weight: 900; font-size: 34px; letter-spacing: -.6px; margin-top: 4px; }
.hfe-crumb { font-size: 13px; color: var(--hfe-muted); font-weight: 600; }
.hfe-crumb a, .hfe-crumb b { color: var(--hfe-navy); font-weight: 700; }

/* Filter chips */
.hfe-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hfe-chip { font-size: 13px; font-weight: 700; padding: 8px 15px; border-radius: 999px; border: 1px solid #d4d9e0; color: var(--hfe-ink-2); background: #fff; transition: .12s; }
.hfe-chip:hover, .hfe-chip.is-active { background: var(--hfe-navy); color: #fff; border-color: var(--hfe-navy); }

/* ==========================================================================
   Video grid + cards
   ========================================================================== */
.hfe-video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hfe-video-card { border: 1px solid var(--hfe-line); border-radius: 14px; overflow: hidden; background: #fff; transition: .15s; display: block; }
.hfe-video-card:hover { transform: translateY(-3px); box-shadow: var(--hfe-shadow); }
.hfe-video-card__thumb { aspect-ratio: 16/9; position: relative; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.hfe-video-card__play { width: 46px; height: 46px; border-radius: 50%; background: rgba(232,32,42,.92); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.hfe-badge-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.78); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.hfe-badge-cat { position: absolute; left: 8px; top: 8px; background: var(--hfe-navy); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.hfe-video-card__body { padding: 13px 14px 16px; }
.hfe-video-card__title { font-weight: 700; font-size: 14.5px; line-height: 1.35; color: var(--hfe-ink); }
.hfe-video-card__meta { font-size: 12.5px; color: var(--hfe-muted); margin-top: 7px; font-weight: 600; }

/* Home "live" video feature block */
.hfe-video-feature { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: stretch; }
.hfe-video-feature__aside { background: var(--hfe-navy); border-radius: var(--hfe-radius); padding: 26px; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.hfe-video-feature__aside h3 { font-weight: 800; font-size: 21px; margin-top: 10px; line-height: 1.15; }
.hfe-video-feature__aside p { font-size: 14px; color: #c6d1e6; margin-top: 8px; line-height: 1.5; }
.hfe-video-feature__aside .hfe-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* ==========================================================================
   Shorts grid
   ========================================================================== */
.hfe-shorts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.hfe-shorts-grid--6 { grid-template-columns: repeat(6, 1fr); }
/* Bigger shorts cards (auto-fetched YouTube Shorts). */
.hfe-shorts-grid--lg { grid-template-columns: repeat(var(--sc, 6), 1fr); gap: 22px; }
.hfe-shorts-grid--lg .hfe-short__thumb { border-radius: 18px; }
.hfe-shorts-grid--lg .hfe-short__play { width: 56px; height: 56px; font-size: 20px; }
.hfe-shorts-grid--lg .hfe-short__title { font-size: 15.5px; margin-top: 8px; }
.hfe-shorts-grid--lg .hfe-short__watch { font-size: 14px; }
.hfe-short { display: flex; flex-direction: column; }
.hfe-short__thumb { display: block; position: relative; border-radius: 14px; overflow: hidden; background: #0f1216; transition: .15s; }
.hfe-short__thumb:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(16,32,64,.18); }
.hfe-short__inner { aspect-ratio: 9/16; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.hfe-short__play { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.9); color: #0f1216; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.hfe-short__plat { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 4px 10px 4px 5px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.hfe-short__plat .ic { width: 20px; height: 20px; border-radius: 6px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.hfe-short__plat .name { font-size: 11.5px; font-weight: 700; color: #1b222e; }
.hfe-short__watch { margin-top: 11px; font-size: 13px; font-weight: 700; color: var(--hfe-green); }
.hfe-short__title { margin-top: 6px; font-size: 14px; font-weight: 600; color: #1b222e; line-height: 1.35; }
.hfe-plat--youtube { background: var(--hfe-red); }
.hfe-plat--instagram { background: #d6249f; }
.hfe-plat--facebook { background: #1877f2; }

/* ==========================================================================
   Subjects
   ========================================================================== */
.hfe-subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.hfe-subject { display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--hfe-line); border-radius: 14px; padding: 16px; transition: .15s; }
.hfe-subject:hover { box-shadow: 0 8px 20px rgba(16,32,64,.1); transform: translateY(-2px); }
.hfe-subject__ic { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; background: #eaf0fb; color: var(--hfe-navy); }
.hfe-subject__t { font-weight: 700; font-size: 14.5px; color: #1b222e; }
.hfe-subject__n { font-size: 12px; color: var(--hfe-muted); font-weight: 600; margin-top: 2px; }

/* ==========================================================================
   Papers / products
   ========================================================================== */
.hfe-papers-section { margin-top: 52px; background: var(--hfe-navy); border-radius: var(--hfe-radius-lg); padding: 40px; color: #fff; overflow: hidden; }
.hfe-papers-section .hfe-section__head h2 { font-weight: 900; font-size: 30px; }
.hfe-papers-section .hfe-eyebrow { color: var(--hfe-saffron); }
.hfe-papers-section p.lede { color: #c6d1e6; font-size: 15px; margin-top: 6px; max-width: 50ch; }
.hfe-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.hfe-product-grid--3 { grid-template-columns: repeat(3, 1fr); }
.hfe-product {
	background: #fff; border-radius: var(--hfe-radius); overflow: hidden; color: var(--hfe-ink);
	display: flex; flex-direction: column; border: 1px solid var(--hfe-line);
}
.hfe-product__media { height: 120px; position: relative; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.hfe-product__tag { position: absolute; top: 10px; left: 10px; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--hfe-red); }
.hfe-product__ph { font-family: ui-monospace, monospace; font-size: 11px; color: #55607a; background: #fff; padding: 3px 9px; border-radius: 6px; }
.hfe-product__body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.hfe-product__title { font-weight: 800; font-size: 16px; font-family: var(--hfe-head); }
.hfe-product__sub { font-size: 12.5px; color: var(--hfe-muted); margin-top: 5px; font-weight: 600; }
.hfe-price { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.hfe-price__now { font-family: var(--hfe-head); font-weight: 900; font-size: 21px; color: var(--hfe-navy); }
.hfe-price__was { font-size: 13px; color: var(--hfe-muted-2); text-decoration: line-through; font-weight: 600; }
.hfe-product .hfe-btn { margin-top: 13px; }

/* ==========================================================================
   Shop layout (archive) + single product
   ========================================================================== */
.hfe-shop { display: grid; grid-template-columns: 230px 1fr; gap: 28px; }
.hfe-shop__filter h3 { font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.hfe-filter-group { margin-bottom: 18px; }
.hfe-filter-group__h { font-size: 12px; font-weight: 700; color: var(--hfe-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.hfe-filter-opt { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--hfe-ink-2); margin-bottom: 7px; }
.hfe-filter-opt a { color: var(--hfe-ink-2); }
.hfe-filter-opt .box { width: 16px; height: 16px; border: 1.5px solid #cfd5df; border-radius: 4px; display: inline-block; flex-shrink: 0; }

.hfe-single-product { display: grid; grid-template-columns: 360px 1fr; gap: 34px; align-items: start; margin-top: 18px; }
.hfe-single-product__gallery .main { aspect-ratio: 3/4; border-radius: var(--hfe-radius); display: flex; align-items: center; justify-content: center; font-family: ui-monospace, monospace; font-size: 12px; color: #55607a; overflow: hidden; background-size: cover; background-position: center; }
.hfe-single-product__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.hfe-single-product__thumbs > * { aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.hfe-rating { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.hfe-rating .stars { color: var(--hfe-saffron); font-size: 16px; }
.hfe-rating .count { font-size: 13.5px; color: var(--hfe-muted); font-weight: 600; }
.hfe-price-lg { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; }
.hfe-price-lg .now { font-family: var(--hfe-head); font-weight: 900; font-size: 34px; color: var(--hfe-navy); }
.hfe-price-lg .was { font-size: 16px; color: var(--hfe-muted-2); text-decoration: line-through; font-weight: 600; }
.hfe-price-lg .off { font-size: 12.5px; font-weight: 700; color: var(--hfe-green); background: #e9f6ef; padding: 3px 10px; border-radius: 999px; }
.hfe-buy-row { display: flex; gap: 12px; margin-top: 18px; }
.hfe-block-title { font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.hfe-included { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.hfe-included li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--hfe-ink-2); list-style: none; }
.hfe-included .tick { color: var(--hfe-green); font-weight: 800; }
.hfe-pack { border: 1px solid var(--hfe-line); border-radius: 12px; overflow: hidden; }
.hfe-pack__row { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border-bottom: 1px solid var(--hfe-bg); font-size: 13.5px; }
.hfe-pack__row:last-child { border-bottom: 0; }
.hfe-pack__row .q { color: var(--hfe-muted); font-weight: 600; }

/* ==========================================================================
   Jobs
   ========================================================================== */
.hfe-jobs-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; margin-top: 22px; }
.hfe-jobs-table { border: 1px solid var(--hfe-line); border-radius: 14px; overflow: hidden; background: #fff; }
.hfe-jobs-table__head { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 12px 18px; background: #f5f7fb; font-size: 11.5px; font-weight: 700; color: var(--hfe-muted); text-transform: uppercase; letter-spacing: .05em; }
.hfe-jobs-table__row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 15px 18px; border-top: 1px solid var(--hfe-bg); }
.hfe-jobs-table__row:hover { background: #f7f9fc; }
.hfe-jobs-table__row .t { font-weight: 700; font-size: 14.5px; color: var(--hfe-ink); }
.hfe-jobs-table__row .org { font-size: 12.5px; color: var(--hfe-muted); margin-top: 3px; font-weight: 600; }
.hfe-jobs-table__row .posts { font-size: 13px; font-weight: 700; color: var(--hfe-ink-2); align-self: center; }
.hfe-badge-date { font-size: 11.5px; font-weight: 700; color: var(--hfe-navy); background: #eaf0fb; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.hfe-aside-card { border: 1px solid var(--hfe-line); border-radius: 14px; padding: 18px; }
.hfe-aside-card h3 { font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.hfe-aside-list { display: flex; flex-direction: column; }
.hfe-aside-list a { display: flex; justify-content: space-between; font-size: 13.5px; padding: 7px 0; border-bottom: 1px solid #f1f3f7; color: var(--hfe-ink-2); font-weight: 600; }
.hfe-aside-list a .c { color: var(--hfe-muted-2); font-weight: 700; }
.hfe-telegram { background: linear-gradient(135deg, #229ed9, #1c86ba); border-radius: 14px; padding: 20px; color: #fff; }
.hfe-telegram h3 { font-weight: 800; font-size: 17px; margin-top: 6px; }
.hfe-telegram p { font-size: 13px; color: #e4f3fb; margin-top: 5px; line-height: 1.45; }
.hfe-telegram .hfe-btn { margin-top: 12px; background: #fff; color: #1c86ba; }

/* Single job */
.hfe-job-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.hfe-job-tag { font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.hfe-job-tag--navy { color: var(--hfe-navy); background: #eaf0fb; }
.hfe-job-tag--green { color: var(--hfe-green); background: #e9f6ef; }
.hfe-job-tag--red { color: #b01e2e; background: #fdeaec; }
.hfe-job-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; margin-top: 24px; align-items: start; }
.hfe-data-table { border: 1px solid var(--hfe-line); border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
.hfe-data-table__row { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--hfe-bg); font-size: 13.5px; }
.hfe-data-table__row:last-child { border-bottom: 0; }
.hfe-data-table__row .l { color: var(--hfe-ink-2); font-weight: 600; }
.hfe-data-table__row .v { font-weight: 700; color: var(--hfe-navy); }
.hfe-check-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 9px; }
.hfe-check-list li { display: flex; gap: 10px; font-size: 14px; color: var(--hfe-ink-2); line-height: 1.5; }
.hfe-check-list .tick { color: var(--hfe-green); font-weight: 800; }
.hfe-steps { display: flex; flex-direction: column; gap: 10px; }
.hfe-step { display: flex; gap: 12px; align-items: flex-start; }
.hfe-step__n { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: var(--hfe-navy); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.hfe-step__t { font-size: 14px; color: var(--hfe-ink-2); line-height: 1.5; padding-top: 2px; }
.hfe-apply-box { position: sticky; top: 20px; border: 1px solid var(--hfe-line); border-radius: 14px; padding: 20px; }
.hfe-apply-box h3 { font-weight: 800; font-size: 15px; }
.hfe-apply-box p { font-size: 13px; color: var(--hfe-muted); margin-top: 6px; line-height: 1.45; }
.hfe-apply-box .hfe-btn { margin-top: 10px; }
.hfe-apply-box__note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hfe-bg); font-size: 12.5px; color: var(--hfe-muted); line-height: 1.5; }

/* ==========================================================================
   Promo / newsletter
   ========================================================================== */
.hfe-promo { margin-top: 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hfe-promo__telegram { background: linear-gradient(135deg, #229ed9, #1c86ba); border-radius: 18px; padding: 30px; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.hfe-promo__telegram h3 { font-weight: 800; font-size: 22px; margin-top: 10px; }
.hfe-promo__telegram p { font-size: 14.5px; color: #e4f3fb; margin-top: 6px; line-height: 1.5; }
.hfe-promo__telegram .hfe-btn { margin-top: 16px; align-self: flex-start; background: #fff; color: #1c86ba; }
.hfe-newsletter { background: #fff; border: 1px solid var(--hfe-line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.hfe-newsletter h3 { font-weight: 800; font-size: 22px; color: var(--hfe-navy); }
.hfe-newsletter p { font-size: 14.5px; color: #5b6472; margin-top: 6px; line-height: 1.5; }
.hfe-newsletter__form { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.hfe-input { flex: 1; min-width: 180px; border: 1px solid #d4d9e0; border-radius: 10px; padding: 12px 14px; font-size: 14px; font-family: inherit; }

/* ==========================================================================
   About
   ========================================================================== */
.hfe-about { margin-top: 52px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: center; background: #fff; border: 1px solid var(--hfe-line); border-radius: 20px; padding: 36px; }
.hfe-about__media { aspect-ratio: 4/3; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: ui-monospace, monospace; font-size: 12px; color: #55607a; overflow: hidden; background-size: cover; background-position: center; }
.hfe-about h2 { font-weight: 800; font-size: 28px; letter-spacing: -.4px; margin-top: 6px; }
.hfe-about p { font-size: 15.5px; color: #49505c; margin-top: 12px; line-height: 1.6; }
.hfe-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hfe-tag { font-size: 12.5px; font-weight: 600; color: var(--hfe-navy); background: #eaf0fb; padding: 6px 12px; border-radius: 999px; }
.hfe-offerings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hfe-offering { border: 1px solid var(--hfe-line); border-radius: 14px; padding: 20px; }
.hfe-offering__ic { width: 44px; height: 44px; border-radius: 11px; background: #eaf0fb; color: var(--hfe-navy); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.hfe-offering__t { font-weight: 700; font-size: 15px; margin-top: 12px; }
.hfe-offering__d { font-size: 13px; color: var(--hfe-muted); margin-top: 5px; line-height: 1.45; }
.hfe-statbar { display: flex; gap: 30px; margin-top: 30px; padding: 24px 28px; background: #f5f7fb; border-radius: var(--hfe-radius); flex-wrap: wrap; align-items: center; }
.hfe-statbar .n { font-family: var(--hfe-head); font-weight: 900; font-size: 26px; color: var(--hfe-navy); }
.hfe-statbar .l { font-size: 13px; color: var(--hfe-muted); font-weight: 600; }

/* ==========================================================================
   Contact
   ========================================================================== */
.hfe-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.hfe-contact__rows { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.hfe-contact__row { display: flex; align-items: center; gap: 13px; }
.hfe-contact__row .ic { width: 40px; height: 40px; border-radius: 10px; background: #eaf0fb; color: var(--hfe-navy); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.hfe-contact__row .l { font-size: 12px; color: var(--hfe-muted); font-weight: 600; }
.hfe-contact__row .v { font-size: 14.5px; font-weight: 700; color: #1b222e; }
.hfe-form { border: 1px solid var(--hfe-line); border-radius: var(--hfe-radius); padding: 26px; }
.hfe-form .field { margin-bottom: 14px; }
.hfe-form label { display: block; font-size: 12.5px; font-weight: 700; color: var(--hfe-ink-2); margin-bottom: 6px; }
.hfe-form input, .hfe-form textarea { width: 100%; border: 1px solid #d4d9e0; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; font-family: inherit; }
.hfe-form textarea { min-height: 110px; resize: vertical; }

/* ==========================================================================
   Footer (footer.php — PageFoot + Home footer merged)
   ========================================================================== */
.hfe-footer { margin-top: 56px; }
.hfe-footer__main { border-top: 1px solid var(--hfe-line-2); padding-top: 30px; }
.hfe-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
.hfe-footer__about p { font-size: 13.5px; color: var(--hfe-muted); margin-top: 12px; line-height: 1.6; max-width: 36ch; }
.hfe-footer__brand { display: flex; align-items: center; gap: 10px; }
.hfe-footer__logo { width: auto; max-width: 210px; height: auto; background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: 0 10px 26px rgba(0,0,0,.28); }
.hfe-footer__social { display: flex; gap: 12px; margin-top: 14px; }
.hfe-footer__social a { font-size: 13px; font-weight: 600; color: #5b6472; }
.hfe-footer__social a:first-child { color: var(--hfe-red); }
.hfe-footer__col h4 { font-weight: 700; font-size: 13.5px; color: #1b222e; margin-bottom: 12px; }
.hfe-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.hfe-footer__col a { font-size: 13.5px; color: var(--hfe-muted); font-weight: 500; }
.hfe-footer__bar { margin-top: 28px; padding: 18px 0 40px; border-top: 1px solid var(--hfe-bg); font-size: 12.5px; color: var(--hfe-muted-2); }

/* ==========================================================================
   Card frame (generic white panel used across inner pages)
   ========================================================================== */
.hfe-frame { background: #fff; border-radius: var(--hfe-radius); overflow: hidden; box-shadow: var(--hfe-shadow-lg); }
.hfe-frame__body { padding: 30px 40px 44px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
	.hfe-hero,
	.hfe-video-feature,
	.hfe-jobs-layout,
	.hfe-job-layout,
	.hfe-single-product,
	.hfe-shop,
	.hfe-promo,
	.hfe-about,
	.hfe-contact { grid-template-columns: 1fr; }
	.hfe-video-grid { grid-template-columns: repeat(2, 1fr); }
	.hfe-offerings { grid-template-columns: repeat(2, 1fr); }
	.hfe-product-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.hfe-shorts-grid--6 { grid-template-columns: repeat(3, 1fr); }
	.hfe-shorts-grid--lg { grid-template-columns: repeat(3, 1fr); }
	.hfe-apply-box { position: static; }
}
@media (max-width: 760px) {
	.hfe-nav { position: fixed; inset: 0 0 0 auto; width: min(80vw, 300px); background: #fff; flex-direction: column; align-items: flex-start; padding: 80px 28px; box-shadow: -10px 0 40px rgba(0,0,0,.15); transform: translateX(100%); transition: transform .25s ease; z-index: 60; }
	.hfe-nav ul { flex-direction: column; align-items: flex-start; gap: 18px; }
	.hfe-nav.is-open { transform: translateX(0); }
	.hfe-burger { display: block; z-index: 61; }
	.hfe-header { flex-wrap: wrap; }
	.hfe-header > .hfe-btn { display: none; }
	.hfe-frame__body { padding: 24px 20px 32px; }
	.hfe-page__band { padding: 32px 22px; }
	.hfe-page__band h1 { font-size: 28px; }
}
@media (max-width: 560px) {
	.hfe-video-grid,
	.hfe-product-grid--3,
	.hfe-offerings,
	.hfe-shorts-grid--6,
	.hfe-shorts-grid--lg { grid-template-columns: repeat(2, 1fr); }
	.hfe-hero { padding: 28px 22px; }
	.hfe-buy-row { flex-direction: column; }
	.hfe-included { grid-template-columns: 1fr; }
}

/* ==========================================================================
   v2 — FULL-WIDTH + IMPRESSIVE  (overrides above; cascade order wins)
   ========================================================================== */
:root {
	--hfe-max: 1560px;         /* wide content rail */
	--hfe-gut: clamp(20px, 4vw, 56px);
	--hfe-shadow: 0 14px 40px -12px rgba(16, 32, 64, .18);
	--hfe-shadow-lg: 0 40px 90px -30px rgba(11, 30, 70, .45);
	--hfe-ring: 0 0 0 1px rgba(16, 32, 64, .06);
	--hfe-grad-red: linear-gradient(135deg, #ff3b45, var(--hfe-red) 60%, #c40f18);
	--hfe-grad-navy: linear-gradient(135deg, var(--hfe-navy) 0%, #143a86 55%, #1f57c0 100%);
}

/* Container becomes the wide rail; full-bleed utility breaks sections out */
.hfe-container { max-width: var(--hfe-max); padding: 0 var(--hfe-gut); }
.hfe-bleed { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.hfe-wrap { max-width: var(--hfe-max); margin: 0 auto; padding: 0 var(--hfe-gut); }

body.hfe { background: #f4f6fa; }

/* ---------- Sticky, glassy header ---------- */
.hfe-site > .hfe-container:first-of-type { position: relative; }
.hfe-chrome {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .82);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid rgba(16, 32, 64, .07);
	transition: box-shadow .25s ease, background .25s ease;
}
.hfe-chrome.is-stuck { box-shadow: 0 10px 30px -16px rgba(16, 32, 64, .35); background: rgba(255, 255, 255, .95); }
.hfe-chrome .hfe-topbar { border-bottom: 1px solid rgba(16, 32, 64, .06); }
.hfe-chrome .hfe-header { padding: 14px 0; }
.hfe-brand__mark { box-shadow: 0 8px 20px -6px rgba(11, 46, 107, .5); }
.hfe-nav a { position: relative; }
.hfe-nav a::after {
	content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
	background: var(--hfe-red); border-radius: 2px; transition: right .22s ease;
}
.hfe-nav a:hover::after,
.hfe-nav .current-menu-item > a::after { right: 0; }

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--hfe-navy); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons: richer ---------- */
.hfe-btn { border-radius: 12px; padding: 12px 22px; font-size: 14.5px; letter-spacing: .01em; }
.hfe-btn--red { background: var(--hfe-grad-red); box-shadow: 0 10px 24px -8px rgba(232, 32, 42, .6); }
.hfe-btn--red:hover { box-shadow: 0 16px 34px -8px rgba(232, 32, 42, .7); }
.hfe-btn--saffron { background: linear-gradient(135deg, #ffd27a, var(--hfe-saffron)); box-shadow: 0 10px 24px -10px rgba(255, 150, 40, .7); }
.hfe-btn--navy { background: var(--hfe-grad-navy); }

/* ---------- HERO: full-bleed, taller, luminous ---------- */
.hfe-hero.hfe-bleed { display: block; border-radius: 0; margin-top: 0; padding: 0; }
.hfe-hero.hfe-bleed { background: var(--hfe-grad-navy); position: relative; overflow: clip; }
.hfe-hero.hfe-bleed::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(60% 55% at 85% 12%, rgba(255, 179, 71, .35), transparent 60%),
		radial-gradient(45% 45% at 8% 95%, rgba(37, 120, 255, .45), transparent 60%),
		radial-gradient(30% 30% at 55% 50%, rgba(255, 255, 255, .06), transparent 70%);
}
.hfe-hero__inner {
	display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
	padding: clamp(44px, 6vw, 92px) var(--hfe-gut); position: relative; z-index: 2;
}
.hfe-hero h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.02; }
.hfe-hero h1 span { background: linear-gradient(90deg, #ffd27a, var(--hfe-saffron)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hfe-hero p { font-size: clamp(15px, 1.4vw, 18px); max-width: 46ch; }
.hfe-pill { background: rgba(255, 255, 255, .12); backdrop-filter: blur(6px); }
.hfe-hero__stats { gap: 36px; margin-top: 34px; }
.hfe-hero__stats .n { font-size: clamp(22px, 2.4vw, 30px); }
.hfe-embed { border-radius: 18px; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .6); }

/* ---------- Ticker full-bleed ---------- */
.hfe-ticker.hfe-bleed { border-radius: 0; margin-top: 0; border-left: 0; border-right: 0; }
.hfe-ticker__label { letter-spacing: .1em; }

/* ---------- Section rhythm ---------- */
.hfe-section { margin-top: clamp(56px, 7vw, 88px); }
.hfe-section__head h2 { font-size: clamp(24px, 3vw, 34px); }
.hfe-eyebrow { letter-spacing: .14em; font-size: 12.5px; }

/* ---------- Cards: deeper, glassier ---------- */
.hfe-video-card, .hfe-product, .hfe-subject, .hfe-offering { border-radius: 18px; }
.hfe-video-card { box-shadow: var(--hfe-ring); }
.hfe-video-card:hover { box-shadow: var(--hfe-shadow); transform: translateY(-4px); }
.hfe-subject:hover { box-shadow: var(--hfe-shadow); }
.hfe-product { box-shadow: var(--hfe-ring); transition: transform .15s ease, box-shadow .15s ease; }
.hfe-product:hover { transform: translateY(-4px); box-shadow: var(--hfe-shadow); }

/* ---------- Papers section full-bleed ---------- */
.hfe-papers-section.hfe-bleed { border-radius: 0; margin-top: clamp(56px, 7vw, 88px); padding: clamp(44px, 6vw, 80px) 0; position: relative; overflow: clip; }
.hfe-papers-section.hfe-bleed::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(50% 60% at 90% 0%, rgba(255, 179, 71, .22), transparent 60%);
}
.hfe-papers-section.hfe-bleed > * { position: relative; z-index: 2; }

/* ---------- Promo cards bigger radius ---------- */
.hfe-promo__telegram, .hfe-newsletter, .hfe-about { border-radius: 22px; }
.hfe-about { box-shadow: var(--hfe-ring); }

/* ---------- FOOTER: full-bleed deep navy (restores the PageFoot band) ---------- */
.hfe-footer { margin-top: clamp(64px, 8vw, 100px); }
.hfe-footer.hfe-bleed { background: #081f4a; color: #fff; }
.hfe-footer.hfe-bleed .hfe-footer__main { border-top: 0; padding: clamp(40px, 5vw, 64px) 0 28px; }
.hfe-footer.hfe-bleed .hfe-footer__brand .name,
.hfe-footer.hfe-bleed .hfe-footer__col h4 { color: #fff; }
.hfe-footer.hfe-bleed .hfe-footer__about p { color: #aebbd6; }
.hfe-footer.hfe-bleed .hfe-footer__col a { color: #aebbd6; }
.hfe-footer.hfe-bleed .hfe-footer__col a:hover { color: #fff; }
.hfe-footer.hfe-bleed .hfe-footer__brand .mark { background: #fff; padding: 5px; }
.hfe-footer.hfe-bleed .hfe-footer__social a { color: #c6d1e6; }
.hfe-footer.hfe-bleed .hfe-footer__social a:first-child { color: var(--hfe-saffron); }
.hfe-footer.hfe-bleed .hfe-footer__bar { border-top: 1px solid rgba(255, 255, 255, .12); color: #8aa0c8; }

/* ---------- Page bands wider / inner pages full-bleed hero ---------- */
.hfe-page { padding: clamp(36px, 5vw, 60px) 0; }
.hfe-page__band { border-radius: 20px; }

@media (max-width: 1000px) {
	.hfe-hero__inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== Job alert cards ===== */
.hfe-jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hfe-job-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--hfe-line); border-left: 4px solid var(--hfe-navy); border-radius: 14px; padding: 15px 18px; box-shadow: 0 1px 2px rgba(16,32,64,.04); transition: transform .15s, box-shadow .15s; }
.hfe-job-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16,32,64,.14); }
.hfe-job-card__ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: var(--hfe-bg); }
.hfe-job-card__body { flex: 1; min-width: 0; }
.hfe-job-card__title { font-weight: 700; font-size: 15px; color: #1b222e; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hfe-job-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 7px; }
.hfe-job-card__src { font-size: 11.5px; color: var(--hfe-muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.hfe-job-card__date { font-size: 11px; font-weight: 700; background: var(--hfe-bg); color: var(--hfe-navy); padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.hfe-job-card__cta { font-size: 12px; font-weight: 800; color: var(--hfe-navy); flex-shrink: 0; white-space: nowrap; }
.hfe-job-card--navy    { border-left-color: var(--hfe-navy); } .hfe-job-card--navy .hfe-job-card__ic    { color: var(--hfe-navy); } .hfe-job-card--navy .hfe-job-card__cta    { color: var(--hfe-navy); }
.hfe-job-card--green   { border-left-color: var(--hfe-green); } .hfe-job-card--green .hfe-job-card__ic   { color: var(--hfe-green); } .hfe-job-card--green .hfe-job-card__cta   { color: var(--hfe-green); }
.hfe-job-card--saffron { border-left-color: #c76b12; } .hfe-job-card--saffron .hfe-job-card__ic { color: #c76b12; } .hfe-job-card--saffron .hfe-job-card__cta { color: #c76b12; }
.hfe-job-card--red     { border-left-color: #b01e2e; } .hfe-job-card--red .hfe-job-card__ic     { color: #b01e2e; } .hfe-job-card--red .hfe-job-card__cta     { color: #b01e2e; }

/* ===== About brand card ===== */
.hfe-about__brandcard { position: relative; overflow: hidden; border-radius: 20px; min-height: 340px; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, var(--hfe-navy) 0%, #081f4a 100%); box-shadow: 0 24px 60px rgba(8,31,74,.3); }
.hfe-about__glow { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255,179,71,.4), transparent 70%); top: -90px; right: -70px; pointer-events: none; }
.hfe-about__glow--2 { background: radial-gradient(circle, rgba(10,125,90,.35), transparent 70%); top: auto; right: auto; bottom: -100px; left: -80px; width: 260px; height: 260px; }
.hfe-about__brandinner { position: relative; z-index: 2; text-align: center; padding: 34px 26px; }
.hfe-about__mono { display: inline-flex; align-items: center; justify-content: center; width: 94px; height: 94px; border-radius: 24px; background: linear-gradient(135deg, var(--hfe-saffron), #ff9d1c); color: var(--hfe-navy); font-family: 'Libre Franklin', system-ui, sans-serif; font-weight: 900; font-size: 36px; letter-spacing: -1px; box-shadow: 0 12px 34px rgba(255,179,71,.45); }
.hfe-about__logoimg { width: auto; max-width: min(280px, 100%); height: auto; object-fit: contain; background: #fff; border-radius: 18px; padding: 16px 20px; box-shadow: 0 14px 34px rgba(0,0,0,.3); }
.hfe-about__bname { display: none; }
.hfe-about__btag { color: #c6d1e6; font-size: 14px; margin-top: 7px; }
.hfe-about__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.hfe-about__chips span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #eaf0fb; font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; }

@media (max-width: 760px) {
	.hfe-jobs { grid-template-columns: 1fr; }
	.hfe-about__brandcard { min-height: 240px; }
}

/* ==========================================================================
   Courses (from YouTube playlists)
   ========================================================================== */
.hfe-courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hfe-course-card {
	display: flex; flex-direction: column; background: var(--hfe-card);
	border: 1px solid var(--hfe-line); border-radius: var(--hfe-radius);
	overflow: hidden; box-shadow: var(--hfe-shadow);
	transition: transform .12s ease, box-shadow .12s ease;
}
.hfe-course-card:hover { transform: translateY(-2px); box-shadow: var(--hfe-shadow-lg); }
.hfe-course-card__thumb {
	position: relative; aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, var(--hfe-navy), var(--hfe-navy-2));
	background-size: cover; background-position: center;
	display: flex; align-items: center; justify-content: center;
}
.hfe-course-card__play { color: #fff; font-size: 26px; opacity: .9; }
.hfe-course-card__badge {
	position: absolute; left: 10px; bottom: 10px;
	background: rgba(11, 46, 107, .85); color: #fff;
	font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
}
.hfe-course-card__body { padding: 14px 16px; }
.hfe-course-card__title { font-weight: 700; color: var(--hfe-ink); line-height: 1.3; }
@media (max-width: 860px) { .hfe-courses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hfe-courses { grid-template-columns: 1fr; } }

/* ==========================================================================
   Mobile fixes (v1.1.2)
   - backdrop-filter on the sticky .hfe-chrome makes it the containing block
     for the position:fixed .hfe-nav drawer, so the "fixed" drawer was laid out
     relative to the ~250px header: it overflowed the page sideways (648px on a
     360px phone) and opened only header-tall. Drop the blur on small screens.
   ========================================================================== */
@media (max-width: 760px) {
	.hfe-chrome,
	.hfe-chrome.is-stuck {
		background: #fff;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
	.hfe-nav { height: 100vh; height: 100dvh; overflow-y: auto; box-shadow: none; visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
	.hfe-nav.is-open { box-shadow: -10px 0 40px rgba(0, 0, 0, .15); visibility: visible; transition: transform .25s ease, visibility 0s; }
	.hfe-nav ul { gap: 4px; width: 100%; }
	.hfe-nav a { display: block; padding: 12px 0; font-size: 16px; }
	.hfe-nav a::after { bottom: 6px; }
	.hfe-topbar__right a { display: inline-flex; align-items: center; min-height: 36px; }
	.hfe-section__more { display: inline-flex; align-items: center; min-height: 36px; }
	.hfe-burger { min-width: 44px; min-height: 44px; }
}
@media (max-width: 560px) {
	.hfe-hero__stats { flex-wrap: wrap; gap: 16px 28px; }
	.hfe-brand__tag { font-size: 12px; }
}
/* Safety net: never let a stray element create sideways scroll. */
html, body { overflow-x: clip; }

/* ==========================================================================
   Mobile bottom tab bar (v1.1.3) — template-parts/bottom-nav.php
   App-style nav on <=760px: Home · Videos · Mock Papers (raised) · Jobs · Menu.
   Header slims to brand + Subscribe; the burger moves to the "Menu" tab.
   ========================================================================== */
.hfe-tabbar { display: none; }

@media (max-width: 760px) {
	:root { --hfe-tabbar-h: 64px; }

	.hfe-tabbar {
		display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
		height: calc(var(--hfe-tabbar-h) + env(safe-area-inset-bottom, 0px));
		padding: 0 4px env(safe-area-inset-bottom, 0px);
		background: #fff;
		border-top: 1px solid rgba(16, 32, 64, .08);
		box-shadow: 0 -8px 24px -12px rgba(16, 32, 64, .25);
	}
	.hfe-tabbar__item {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
		height: var(--hfe-tabbar-h); min-width: 0; padding: 0 2px;
		background: none; border: 0; cursor: pointer; font: inherit;
		color: #6b7483; text-decoration: none; position: relative;
		-webkit-tap-highlight-color: transparent;
	}
	.hfe-tabbar__icwrap { display: flex; align-items: center; justify-content: center; }
	.hfe-tabbar__ic { width: 24px; height: 24px; }
	.hfe-tabbar__label { font-size: 11px; font-weight: 700; letter-spacing: .01em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

	.hfe-tabbar__item.is-active { color: var(--hfe-navy); }
	.hfe-tabbar__item.is-active::after {
		content: ""; position: absolute; bottom: 6px; left: 50%; width: 18px; height: 3px;
		margin-left: -9px; border-radius: 2px; background: var(--hfe-red);
	}
	.hfe-tabbar__item:focus-visible { outline: 2px solid var(--hfe-navy); outline-offset: -4px; border-radius: 10px; }

	/* Raised centre tab (Mock Papers) */
	.hfe-tabbar__item.is-featured { justify-content: flex-end; padding-bottom: 8px; color: var(--hfe-navy); }
	.hfe-tabbar__item.is-featured .hfe-tabbar__icwrap {
		width: 54px; height: 54px; margin-top: -26px; border-radius: 50%;
		background: var(--hfe-saffron); color: var(--hfe-navy);
		border: 4px solid #fff; box-shadow: 0 6px 16px -4px rgba(16, 32, 64, .35);
	}
	.hfe-tabbar__item.is-featured.is-active::after { bottom: 2px; }
	/* Centre label may be wider than its column ("Mock Papers"); neighbours' labels are short. */
	.hfe-tabbar__item.is-featured { padding: 0 0 8px; overflow: visible; }
	.hfe-tabbar__item.is-featured .hfe-tabbar__label { overflow: visible; max-width: none; letter-spacing: 0; }

	/* Lift third-party floating buttons (e.g. Hostinger Kodee) above the bar */
	.kodee-fab { bottom: calc(var(--hfe-tabbar-h) + 16px + env(safe-area-inset-bottom, 0px)) !important; }

	/* Room so content and the footer are never hidden behind the bar */
	body.hfe { padding-bottom: calc(var(--hfe-tabbar-h) + env(safe-area-inset-bottom, 0px)); }

	/* Slim header: brand + Subscribe; burger lives in the tab bar now */
	.hfe-chrome .hfe-topbar { display: none; }
	.hfe-burger { display: none; }
	.hfe-chrome .hfe-header { flex-wrap: nowrap; padding: 10px 0; gap: 12px; }
	.hfe-header > .hfe-btn { display: inline-flex; flex-shrink: 0; padding: 8px 14px; font-size: 13px; }
	.hfe-brand { min-width: 0; }
	.hfe-brand__mark { width: 40px; height: 40px; font-size: 15px; }

	/* Drawer sits above content but below the tab bar; clear the bar at the bottom */
	.hfe-nav { padding-bottom: calc(var(--hfe-tabbar-h) + 24px); }
	body.hfe-nav-open { overflow: hidden; }
}
@media (max-width: 560px) {
	.hfe-brand__tag { display: none; }
	.hfe-brand__name { font-size: 17px; }
}
