/* =============================================================================
   HXC ACADEMY — public site components (from the Figma «HXC» file, page
   «UI Design - Landing Page», frame 166:876 @1440). Loaded AFTER redesign.css;
   colour tokens come from its :root (already remapped to the HXC palette).
   Values are px to match the Figma measurements exactly (QA pass 2026-09-07).
   ============================================================================= */

:root {
  --hx-font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --hx-ink: #00193d;
  --hx-blue: #157de5;
  --hx-deep: #004ce3;
  --hx-navy: #003e99;
  --hx-light: #29a9ff;
  --hx-tint: #f1f7fd;
  --hx-muted: #818997;
  --hx-body: #535965;
  --hx-line: #e0e2e6;
  --hx-green: #aff8aa;
  --hx-container: 1240px;
  --hx-radius: 12px;
  --hx-radius-lg: 12px;
  --hx-shadow: 0 13px 34px rgba(28, 39, 115, .02), 0 27px 62px rgba(28, 39, 115, .02), 0 80px 107px rgba(28, 39, 115, .02);
}

body { font-family: var(--hx-font); color: var(--hx-ink); }
.hx-container { width: min(var(--hx-container), 100% - 48px); margin-inline: auto; }
.hx-section { padding: 0 0 92px; }
.hx-section--100 { padding-bottom: 100px; }
.hx-section--faq { padding-bottom: 74px; }
.hx-h2 { font-size: 48px; font-weight: 700; line-height: 80px; color: var(--hx-ink); margin: 0 0 12px; }
.hx-sub { font-size: 18px; font-weight: 400; line-height: 24px; color: var(--hx-muted); margin: 0; }
.hx-head-center { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.hx-head-center--faq { margin-bottom: 80px; }
.hx-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.hx-head-row > .hx-btn { margin-top: 0; flex: 0 0 auto; min-width: 206px; height: 50px; border-color: var(--hx-line); box-shadow: var(--hx-shadow); }
.hx-head-row .hx-sub { margin-top: 12px; }

/* ---- Buttons ------------------------------------------------------------- */
.hx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 48px; padding: 0 32px; border-radius: 8px; font: 500 14px/24px var(--hx-font); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.hx-btn:has(> svg) { padding-inline-end: 20px; }
.hx-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hx-btn--primary { background: var(--hx-blue); color: #fff; }
.hx-btn--primary:hover { background: var(--hx-deep); color: #fff; }
.hx-btn--white { background: #fff; color: var(--hx-ink); }
.hx-btn--white:hover { color: var(--hx-blue); }
.hx-btn--glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: transparent; }
.hx-btn--glass:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.hx-btn--outline { background: #fff; color: var(--hx-ink); border-color: var(--hx-line); height: 50px; }
.hx-btn--outline:hover { border-color: var(--hx-blue); color: var(--hx-blue); }
.hx-btn--outline svg { width: 18px; height: 18px; }
.hx-btn--sm { height: 40px; padding: 0 18px; }

/* ---- Pills / chips ------------------------------------------------------- */
.hx-pill { display: inline-flex; align-items: center; height: 30px; padding: 0 16px; border-radius: 100px; font: 500 14px/24px var(--hx-font); background: var(--hx-tint); color: var(--hx-ink); white-space: nowrap; }
.hx-pill--blue { background: var(--hx-blue); color: #fff; }
.hx-pill--green { background: var(--hx-green); color: var(--hx-ink); }
.hx-pill--white { background: #fff; color: var(--hx-ink); }
.hx-pill--outline { background: #fff; border: 1px solid var(--hx-ink); color: var(--hx-ink); opacity: .4; }
.hx-pill--active { background: #fff; border: 2px solid var(--hx-blue); color: var(--hx-blue); font-weight: 700; }

/* =============================================================================
   HEADER — transparent over the hero on the home page, white elsewhere
   (Figma component set 171:5841: logo · nav+separator+search · lang/cart/CTA)
   ============================================================================= */
.hx-header { position: relative; z-index: 50; height: 110px; display: flex; align-items: center; background: #fff; border-bottom: 1px solid var(--hx-line); }
.hx-header--overlay { position: absolute; inset-inline: 0; top: 0; background: transparent; border-bottom: 0; color: #fff; }
.hx-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(var(--hx-container), 100% - 48px); margin-inline: auto; }
.hx-header__logo img { display: block; width: 70px; height: 70px; }
.hx-nav { display: flex; align-items: center; gap: 32px; }
.hx-nav a { font: 500 14px/1 var(--hx-font); color: var(--hx-ink); text-decoration: none; }
.hx-nav a:hover, .hx-nav a.active { color: var(--hx-blue); }
.hx-header--overlay .hx-nav a { color: #fff; }
.hx-header--overlay .hx-nav a:hover, .hx-header--overlay .hx-nav a.active { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.hx-nav .hx-header__sep { margin-inline-start: -8px; }
.hx-nav .hx-header__search { margin-inline-start: -12px; }
.hx-header__actions { display: flex; align-items: center; gap: 22px; }
.hx-header__sep { width: 1px; height: 26px; background: currentColor; opacity: .24; }
.hx-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 0; color: inherit; background: transparent; border: 0; padding: 0; text-decoration: none; }
.hx-icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hx-header__search svg { width: 22px; height: 22px; stroke-width: 1.83; }
.hx-lang { display: inline-flex; align-items: center; height: 32px; padding: 2px; border-radius: 100px; background: rgba(255, 255, 255, .2); text-decoration: none; color: inherit; font: 500 12px/1 var(--hx-font); }
.hx-header:not(.hx-header--overlay) .hx-lang { background: var(--hx-tint); }
.hx-lang span { padding: 0 12px; height: 28px; display: inline-flex; align-items: center; border-radius: 100px; }
.hx-lang span.on { background: #fff; color: var(--hx-ink); font-weight: 700; font-size: 14px; }
.hx-header__cta { background: var(--hx-blue); color: #fff; border-color: transparent; }
.hx-header__cta:hover { background: var(--hx-deep); color: #fff; }
.hx-burger { display: none; width: 40px; height: 40px; }
@media (max-width: 1100px) {
  .hx-nav { display: none; }
  .hx-burger { display: inline-flex; }
  .hx-header { height: 84px; }
  .hx-header__logo img { width: 52px; height: 52px; }
  .hx-header__cta { height: 40px; padding: 0 18px; }
}

/* =============================================================================
   HERO — 1411px photo frame (166:879: #004ce3 + white gradient + 65% photo) on
   the page's white ground, with the 29px chevron band (166:947) beside it on the
   right, overhanging 28px below the hero.
   ============================================================================= */
.hx-hero { position: relative; min-height: 886px; background: #fff; color: #fff; display: flex; align-items: center; }
/* fills of 166:879 in order: #004ce3 · gradient #004ce3@0 (top-right) → #fff (bottom-left) · photo @65% */
.hx-hero::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; right: 29px; background: linear-gradient(to bottom left, rgba(0, 76, 227, 0) 0%, #fff 100%) #004ce3; }
.hx-hero::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; right: 29px; background: url('../images/hxc/hero-bg-fill.png') no-repeat center / cover; opacity: .65; }
.hx-hero__visual { display: none; }
.hx-hero__pattern { position: absolute; right: 0; top: 0; height: 914px; width: 29px; background: #fff url('../images/hxc/hero-side-pattern.png') repeat-y right top / 29px auto; z-index: 2; }
.hx-hero__inner { position: relative; z-index: 1; width: min(var(--hx-container), 100% - 48px); margin-inline: auto; padding-top: 101px; display: grid; grid-template-columns: 1fr 1fr; }
.hx-hero__copy { grid-column: 1; max-width: 633px; }
.hx-hero__title { font-size: 80px; font-weight: 700; line-height: 90px; margin: 0 0 26px; }
.hx-hero__text { font-size: 16px; line-height: 24px; color: #fff; margin: 0 0 40px; max-width: 593px; }
.hx-hero__actions { display: flex; gap: 16px; margin-bottom: 40px; }
.hx-hero__chips { display: flex; gap: 32px; font-size: 16px; line-height: 24px; color: #fff; }
.hx-hero__chips span::before { content: ''; display: inline-block; width: 8.5px; height: 8.5px; background: rgba(255, 255, 255, .2); transform: rotate(45deg); margin-inline-end: 12px; vertical-align: 1px; }
@media (max-width: 1100px) {
  .hx-hero { min-height: 0; padding-bottom: 60px; }
  .hx-hero::before, .hx-hero::after { right: 0; }
  .hx-hero__pattern { display: none; }
  .hx-hero__inner { grid-template-columns: 1fr; padding-top: 110px; }
  .hx-hero__title { font-size: 44px; line-height: 1.2; }
  .hx-hero__chips { flex-wrap: wrap; gap: 14px 28px; }
}

/* =============================================================================
   TRUSTED PARTNERS (166:2168 — NELC 170×60 · emblem 60×83 · TVTC 250×64)
   ============================================================================= */
.hx-partners { padding: 64px 0 100px; text-align: center; }
.hx-partners h2 { font-size: 28px; font-weight: 500; margin: 0 0 48px; color: var(--hx-ink); }
.hx-partners__row { display: flex; align-items: center; justify-content: center; gap: 58px; }
.hx-partners__row img { height: auto; object-fit: contain; }
.hx-partners__row img:nth-of-type(1) { width: 170px; }
.hx-partners__row img:nth-of-type(2) { width: 60px; }
.hx-partners__row img:nth-of-type(3) { width: 250px; }
.hx-partners__row i { width: 1px; height: 94px; background: var(--hx-line); }
@media (max-width: 760px) { .hx-partners__row { flex-wrap: wrap; gap: 24px; } .hx-partners__row i { display: none; } .hx-partners { padding-bottom: 60px; } }

/* =============================================================================
   PLATFORM BENEFITS (166:2458 — 370×279 cards, 451×582 photo)
   ============================================================================= */
.hx-benefits__grid { display: grid; grid-template-columns: 1fr 451px 1fr; gap: 24px; align-items: stretch; }
.hx-benefits__col { display: grid; grid-template-rows: 1fr 1fr; gap: 24px; }
.hx-bcard { background: #fff; border: 1px solid #eeeff1; border-radius: var(--hx-radius); padding: 32px 32px 32px 54px; min-height: 279px; display: flex; flex-direction: column; box-shadow: 0 2px 40px rgba(28, 39, 115, .04); }
.hx-bcard__n { font-size: 18px; font-weight: 700; line-height: 21px; color: var(--hx-blue); margin-bottom: auto; }
.hx-bcard h3 { font-size: 18px; font-weight: 700; line-height: 22.5px; margin: 24px 0 16px; color: #101642; }
.hx-bcard p { font-size: 16px; line-height: 24px; color: #6e7686; letter-spacing: -.08px; margin: 0; }
/* the photo must not size the grid row — its box follows the two cards beside it */
.hx-benefits__photo { position: relative; min-height: 0; border-radius: var(--hx-radius); overflow: hidden; background: var(--hx-tint); }
.hx-benefits__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; display: block; }
@media (max-width: 1100px) { .hx-benefits__grid { grid-template-columns: 1fr; } .hx-benefits__photo { order: -1; max-height: 420px; } .hx-bcard { padding: 28px; } }

/* =============================================================================
   FEATURED PROGRAMS (166:2502 — 1280 panel, tabs, gradient carousel cards)
   ============================================================================= */
.hx-tabs { display: flex; justify-content: center; gap: 20px; margin: 40px 0 48px; }
.hx-tabs .hx-pill { height: 40px; padding: 0 16px; font-size: 18px; }
.hx-featured__panel { position: relative; background: var(--hx-tint); border-radius: var(--hx-radius-lg); padding: 80px 80px 48px 0; display: grid; grid-template-columns: 461px minmax(0, 1fr); gap: 99px; align-items: start; overflow: hidden; }
.hx-featured__panel > div { min-width: 0; }
.hx-featured__copy { padding-top: 82px; }
.hx-featured__copy h3 { font-size: 36px; font-weight: 700; line-height: 50px; margin: 0 0 19px; max-width: 321px; }
.hx-featured__copy p { font-size: 20px; line-height: 24px; color: rgba(83, 89, 101, .7); margin: 0 0 75px; max-width: 461px; }
.hx-featured__copy .hx-btn { min-width: 200px; box-shadow: var(--hx-shadow); }
.hx-featured__track { display: flex; gap: 32px; overflow: visible; }
.hx-gcard { position: relative; flex: 0 0 340px; height: 440px; border-radius: var(--hx-radius); padding: 21px 28px 24px; color: #fff; background: #0a3ed8; display: flex; flex-direction: column; text-decoration: none; overflow: hidden; box-shadow: var(--hx-shadow); }
.hx-gcard::before { content: ''; position: absolute; inset: 0; background: url('../images/hxc/featured-bg.jpg') center / cover no-repeat; opacity: .9; }
/* raw fill reads dark top-right; card 1 = dark top-left, card 2 = pale top-right / dark bottom-left */
.hx-gcard::before { transform: scaleX(-1); }
.hx-gcard:nth-child(2n)::before { transform: scaleY(-1); }
.hx-gcard > * { position: relative; }
.hx-gcard__pills { display: flex; gap: 14px; }
.hx-gcard__mark { width: 52px; height: 28px; margin: auto auto 20px; }
.hx-gcard__mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.hx-gcard h4 { font-size: 24px; font-weight: 900; line-height: 40px; text-align: center; margin: 0 auto auto; max-width: 213px; }
.hx-carousel__nav { position: absolute; left: 40px; bottom: 48px; display: flex; gap: 33px; margin: 0; }
.hx-carousel__nav button { width: 24px; height: 24px; border-radius: 0; border: 0; padding: 0; background: transparent; color: var(--hx-ink); cursor: pointer; }
.hx-carousel__nav [data-hx-prev] { opacity: .5; }
.hx-carousel__nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1101px) { .hx-featured__panel, .hx-banner, .hx-certs { margin-inline: -20px; } }
@media (max-width: 1100px) { .hx-featured__panel { grid-template-columns: 1fr; padding: 40px 24px 90px; gap: 32px; } .hx-featured__copy { padding-top: 0; } .hx-featured__track { overflow-x: auto; } .hx-carousel__nav { left: 24px; bottom: 32px; } }

/* =============================================================================
   PROGRAM CARDS (diplomas 166:2558 / courses 166:2820 — 400×492, radius 12)
   ============================================================================= */
.hx-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hx-card { background: #fff; border-radius: var(--hx-radius); overflow: hidden; box-shadow: var(--hx-shadow); display: flex; flex-direction: column; }
.hx-card__media { position: relative; height: 248px; background: var(--hx-tint); }
.hx-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-card--course .hx-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(0, 76, 227, .2), rgba(0, 76, 227, 0) 60%); pointer-events: none; }
.hx-card__badges { position: absolute; top: 20px; inset-inline-start: 21px; display: flex; gap: 8px; z-index: 1; }
.hx-card__badges .hx-pill { backdrop-filter: blur(20px); }
.hx-card__badges .hx-pill--blue { background: var(--hx-deep); }
.hx-card__body { padding: 24px 20px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.hx-card__meta { display: flex; gap: 12px; }
.hx-card__meta .hx-pill:nth-child(1) { background: rgba(0, 76, 227, .08); }
.hx-card__meta .hx-pill:nth-child(2) { background: rgba(21, 125, 229, .08); color: var(--hx-blue); }
.hx-card__meta .hx-pill:nth-child(3) { background: rgba(0, 62, 153, .08); color: var(--hx-navy); }
.hx-card h3 { font-size: 20px; font-weight: 700; line-height: 25px; margin: 0; color: var(--hx-ink); }
.hx-card h3 + p { margin-top: -4px; }
.hx-card p { font-size: 14px; line-height: 17.5px; color: var(--hx-body); margin: 0; }
.hx-card--diploma h3, .hx-card--diploma p { text-align: center; }
.hx-card--diploma p { color: var(--hx-muted); max-width: 313px; margin-inline: auto; }
.hx-card--diploma .hx-card__body { gap: 20px; }
.hx-card--diploma .hx-date { margin-top: -8px; }
.hx-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hx-spec { background: var(--hx-tint); border-radius: 12px; height: 61px; padding: 12px 8px 0; text-align: center; }
.hx-spec b { display: block; font-size: 14px; font-weight: 500; line-height: 17.5px; color: var(--hx-ink); margin-bottom: 4px; }
.hx-spec small { display: block; font-size: 11px; line-height: 13.8px; color: var(--hx-muted); }
.hx-date { background: var(--hx-tint); border-radius: 12px; height: 42px; line-height: 42px; padding: 0; text-align: center; font-size: 12px; font-weight: 500; color: var(--hx-ink); }
.hx-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 11px; }
.hx-card--diploma .hx-btn--outline { min-width: 194px; }
.hx-price { display: flex; flex-direction: column; line-height: 1.1; }
.hx-price__row { display: flex; align-items: baseline; gap: 2px; }
.hx-price b { font-size: 24px; font-weight: 700; color: var(--hx-blue); }
.hx-price s { font-size: 16px; font-weight: 500; color: var(--hx-muted); margin-inline-start: 4px; }
.hx-price small { font-size: 10px; line-height: 12.5px; color: var(--hx-muted); opacity: .8; margin-top: 4px; }
.hx-riyal { display: inline-block; width: .8em; height: .9em; vertical-align: -.08em; background: currentColor; -webkit-mask: url('../images/hxc/riyal.svg') center / contain no-repeat; mask: url('../images/hxc/riyal.svg') center / contain no-repeat; }
@media (max-width: 1100px) { .hx-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .hx-cards { grid-template-columns: 1fr; } .hx-head-row { flex-direction: column; align-items: flex-start; } }

.hx-filters { display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 48px; }
.hx-filters .hx-pill { height: 40px; padding: 0 16px; font-size: 15px; font-weight: 400; background: #fff; border: 1px solid var(--hx-ink); color: var(--hx-ink); opacity: .45; }
.hx-filters .hx-pill--active { border: 2px solid var(--hx-blue); color: var(--hx-blue); background: #fff; opacity: 1; font-weight: 700; }

/* =============================================================================
   SKILLS CTA BANNER (166:2667 — 1280×569, image fill + #003e99 overlay)
   ============================================================================= */
.hx-banner { position: relative; border-radius: var(--hx-radius-lg); min-height: 569px; overflow: hidden; color: #fff; background: #003e99 url('../images/hxc/banner-bg.jpg') center / cover no-repeat; display: grid; grid-template-columns: minmax(0, 1fr) 544px; align-items: start; padding: 64px 80px 69px 102px; }
.hx-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom left, #003e99 0%, rgba(0, 62, 153, 0) 60%); pointer-events: none; }
.hx-banner > * { position: relative; }
.hx-banner__copy { padding-top: 69px; }
.hx-banner__copy h2 { font-size: 60px; font-weight: 700; line-height: 80px; margin: 0 0 16px; }
.hx-banner__copy p { font-size: 16px; line-height: 24px; color: #fff; margin: 0 0 32px; max-width: 447px; }
.hx-banner .hx-btn--white { box-shadow: none; }
.hx-banner__art { position: relative; width: 544px; height: 436px; }
.hx-banner__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hx-banner__tag { position: absolute; padding: 10px 40px; border-radius: 100px; background: linear-gradient(90deg, #b2caf8 0%, #004ce3 100%); color: #fff; font: 600 14px/24px var(--hx-font); white-space: nowrap; }
.hx-banner__tag--a { top: -14px; right: -56px; transform: rotate(-11.5deg); box-shadow: 0 25px 4px rgba(9, 64, 195, .1); }
.hx-banner__tag--b { bottom: 53px; left: -23px; transform: rotate(11.5deg); }
@media (max-width: 1100px) { .hx-banner { grid-template-columns: 1fr; padding: 40px 24px; } .hx-banner__copy { padding-top: 0; } .hx-banner__copy h2 { font-size: 40px; line-height: 1.2; } .hx-banner__art { width: 100%; height: 320px; } .hx-banner__tag--a { right: 0; } .hx-banner__tag--b { left: 0; } }

/* =============================================================================
   PROFESSIONAL CERTIFICATIONS (166:2944 — 1280 panel, shields bottom-aligned)
   ============================================================================= */
.hx-certs { background: var(--hx-tint); border-radius: var(--hx-radius-lg); padding: 60px 40px; text-align: center; }
.hx-certs__row { display: flex; align-items: flex-end; justify-content: center; gap: 74px; margin: 40px 0 4px; }
.hx-shield { width: 150px; opacity: .3; cursor: pointer; transition: width .2s, opacity .2s; background: none; border: 0; padding: 0; }
.hx-shield img { width: 100%; display: block; }
.hx-shield.is-active { width: 200px; opacity: 1; }
.hx-certs__info h3 { font-size: 24px; font-weight: 700; line-height: 30px; margin: 0 0 4px; }
.hx-certs__info .hx-pill { background: rgba(0, 76, 227, .08); margin-bottom: 11px; }
.hx-certs__info p { font-size: 16px; line-height: 24px; color: var(--hx-ink); margin: 0 auto; max-width: 235px; }
@media (max-width: 900px) { .hx-certs__row { flex-wrap: wrap; gap: 24px; } .hx-shield { width: 110px; } .hx-shield.is-active { width: 150px; } }

/* =============================================================================
   FAQ (166:2960 — 832 wide, 92px pitch)
   ============================================================================= */
.hx-faq { max-width: 832px; margin: 0 auto; }
.hx-faq details { border-bottom: 1px solid var(--hx-line); padding: 0 0 32px; margin-bottom: 32px; }
.hx-faq details[open] { padding-bottom: 24px; }
.hx-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 18px; font-weight: 500; line-height: 27px; color: var(--hx-ink); }
.hx-faq summary::-webkit-details-marker { display: none; }
.hx-faq summary svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; transition: transform .2s; }
.hx-faq details[open] summary svg { transform: rotate(180deg); }
.hx-faq details p { font-size: 16px; line-height: 24px; color: var(--hx-muted); margin: 24px 0 0; }

/* =============================================================================
   FOOTER (173:821 — #002152, natural-scale chevron edges: Frame 10 slice on
   top at x=184, Frame 11 slice at the bottom at x=-646)
   ============================================================================= */
.hx-footer { position: relative; background: #002152; color: #fff; padding: 92px 0 24px; margin-top: 0; overflow: hidden; }
.hx-footer::before { content: ''; position: absolute; top: -98px; left: 184px; width: 1679px; height: 118px; background: url('../images/hxc/footer-edge-top.png') no-repeat left top / 1679px 118px; pointer-events: none; }
.hx-footer::after { content: ''; position: absolute; bottom: 0; left: -646px; width: 1679px; height: 18px; background: url('../images/hxc/footer-edge-bottom.png') no-repeat left top / 1679px 18px; pointer-events: none; }
.hx-footer__brand { text-align: center; padding-bottom: 71px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.hx-footer__brand img { width: 120px; height: 120px; display: block; margin: 0 auto 18px; }
.hx-footer__tagline { font-size: 48px; font-weight: 900; line-height: 80px; margin: 0; }
.hx-footer__grid { display: grid; grid-template-columns: 390px 115px 115px 120px; justify-content: space-between; gap: 0; padding: 61px 0 60px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.hx-footer__about p { font-size: 16px; line-height: 24px; margin: 0 0 34px; color: #fff; }
.hx-footer__about img { width: 160px; height: 61px; display: block; margin-inline-start: 0; margin-inline-end: auto; }  /* Figma: right-aligned under the about text */
.hx-footer__col h5 { font-size: 14px; font-weight: 400; line-height: 17.5px; color: var(--hx-light); margin: 0 0 20px; }
.hx-footer__col a { display: block; color: #fff; text-decoration: none; font-size: 16px; line-height: 20px; margin-bottom: 8px; white-space: nowrap; }
.hx-footer__col a:hover { text-decoration: underline; }
/* Figma puts the copyright on the left and the social row on the right (icons read in · f · ig · X left-to-right) */
.hx-footer__bottom { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; padding-top: 25px; }
.hx-footer__bottom p { margin: 0; font-size: 14px; color: #fff; }
.hx-social { display: flex; flex-direction: row-reverse; gap: 12px; }
.hx-social a { width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.hx-social svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 1100px) { .hx-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; justify-content: stretch; } .hx-footer__about { grid-column: 1 / -1; } }
@media (max-width: 900px) { .hx-footer__tagline { font-size: 30px; line-height: 1.4; } .hx-footer__bottom { flex-direction: column; gap: 20px; } .hx-footer::before, .hx-footer::after { left: 0; width: 100%; background-size: auto 100%; background-repeat: repeat-x; } }

/* =============================================================================
   RESPONSIVE (the Figma file is desktop-only; these keep every section usable
   at tablet/phone widths — measured with the 390px iframe harness)
   ============================================================================= */
@media (max-width: 1100px) {
  .hx-benefits__photo { height: 420px; }
  .hx-hero::after { opacity: .35; background-position: 25% top; }
  .hx-tabs { flex-wrap: wrap; gap: 12px; }
  .hx-tabs .hx-pill { height: 36px; font-size: 15px; }
  .hx-head-row > .hx-btn { min-width: 0; }
  .hx-block__head { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .hx-section { padding-bottom: 64px; }
  .hx-section--100 { padding-bottom: 64px; }
  .hx-h2 { font-size: 32px; line-height: 1.3; }
  .hx-sub { font-size: 16px; line-height: 1.5; }
  .hx-head-center { margin-bottom: 36px; }
  .hx-head-center--faq { margin-bottom: 40px; }
  .hx-hero::after { opacity: .28; background-position: 15% top; }
  .hx-hero__text { max-width: none; }
  .hx-hero__actions { flex-wrap: wrap; }
  .hx-featured__panel { padding: 32px 20px 80px; }
  .hx-featured__copy h3 { font-size: 26px; line-height: 1.3; max-width: none; }
  .hx-featured__copy p { font-size: 16px; margin-bottom: 24px; }
  .hx-featured__track { gap: 16px; padding-bottom: 8px; }
  .hx-gcard { flex-basis: 280px; height: 380px; }
  .hx-banner { min-height: 0; padding: 32px 20px; }
  .hx-banner__copy h2 { font-size: 32px; }
  .hx-banner__art { height: 260px; }
  .hx-banner__tag { padding: 8px 20px; font-size: 12px; }
  .hx-certs { padding: 40px 16px; }
  .hx-certs__row { gap: 16px; }
  .hx-shield { width: 90px; }
  .hx-shield.is-active { width: 130px; }
  .hx-faq details { padding-bottom: 20px; margin-bottom: 20px; }
  .hx-faq summary { font-size: 16px; }
  .hx-footer { padding-top: 64px; }
  .hx-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; padding: 40px 0; }
  .hx-footer__brand img { width: 90px; height: 90px; }
  .hx-social a { width: 40px; height: 40px; }
}
@media (max-width: 600px) {
  .hx-header__cta { display: none; }          /* «سجل الآن» lives in the drawer at phone widths */
  .hx-header__actions { gap: 14px; }
  .hx-header__bar { gap: 12px; }
  .hx-partners h2 { font-size: 22px; }
  .hx-bcard { min-height: 0; padding: 24px; }
  .hx-bcard h3 { margin-top: 16px; }
  .hx-card__foot { flex-wrap: wrap; gap: 12px; }
  .hx-card--diploma .hx-btn--outline, .hx-btn--cart { width: 100%; min-width: 0; }
  .hx-specs { gap: 8px; }
  .hx-spec { padding-inline: 4px; }
}
