/* HR Tech & Workplace Expo Qatar: inner-page components.
   Built on the homepage tokens (brand guideline): navy #0E243A, burgundy #831B3D, turquoise #039A93, mist #E1E8E4, Poppins. */

/* ---------- Page hero (shorter than the homepage hero) ---------- */
.hr-page-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: 210px 0 72px; min-height: 560px; display: flex; align-items: flex-end; }
.hr-page-hero-bg { position: absolute; inset: 0; z-index: -1; background-position: center; background-size: cover; background-repeat: no-repeat; transform: scale(1.03); animation: hrHeroZoom 14s ease-out both; }
.hr-page-hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,36,58,.94) 0%, rgba(14,36,58,.78) 42%, rgba(14,36,58,.35) 80%, rgba(14,36,58,.25) 100%),
              linear-gradient(0deg, rgba(14,36,58,.9) 0%, rgba(14,36,58,0) 45%); }
@keyframes hrHeroZoom { from { transform: scale(1.1); } to { transform: scale(1.03); } }
.hr-page-hero .container { position: relative; z-index: 1; width: 100%; }
.hr-page-hero-inner { max-width: 820px; }
.hr-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 18px; }
.hr-crumbs a { color: #fff; font-weight: 500; }
.hr-crumbs a:hover { color: var(--hr-accent); }
.hr-crumbs span[aria-current] { color: rgba(255,255,255,.75); }
.hr-page-title { font-family: "Poppins", sans-serif; font-weight: 800; font-size: clamp(38px, 5.2vw, 64px); line-height: 1.08; letter-spacing: -0.02em; color: #fff; margin: 20px 0 0; text-wrap: balance; }
.hr-page-lead { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.88); max-width: 640px; margin: 18px 0 0; }
@media (max-width: 767.98px) { .hr-page-hero { padding: 150px 0 48px; min-height: 440px; } .hr-page-lead { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .hr-page-hero-bg { animation: none; } }

/* ---------- Blocks and type ---------- */
.hr-block { padding: var(--hr-section-y, 88px) 0; background: var(--hr-navy, #0E243A); color: rgba(255,255,255,.82); }
.hr-block.hr-light { background: var(--hr-mist, #E1E8E4); color: #3e5566; }
.sub-title-plain { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--hr-accent); margin-bottom: 14px; }
.hr-light .sub-title-plain { color: var(--theme-color1); }
.hr-h2 { font-family: "Poppins", sans-serif; font-weight: 700; font-size: var(--hr-h2, 44px); line-height: 1.15; letter-spacing: -0.01em; color: #fff; margin-bottom: 20px; text-wrap: balance; }
.hr-h3 { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 24px; line-height: 1.25; color: #fff; margin-bottom: 18px; }
.hr-light .hr-h2, .hr-light .hr-h3 { color: var(--hr-navy, #0E243A); }
.hr-accent { color: var(--hr-accent); }
.hr-light .hr-accent { color: var(--theme-color1); }
.hr-block p { font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
.hr-lead-lg { font-size: 18px !important; line-height: 1.65 !important; }
.hr-block .hr-btn-row { margin-top: 26px; }

/* ---------- Split (text + image) ---------- */
.hr-split-img { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 24px 60px rgba(14,36,58,.18); }
.hr-split-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms ease; }
.hr-split-img:hover img { transform: scale(1.03); }
.hr-split-text { max-width: 560px; }
.hr-split--rev .hr-split-text { margin-left: auto; }

/* ---------- Checklist ---------- */
.hr-checklist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.hr-checklist li { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border-radius: 14px; background: var(--hr-ink, #15304A); border: 1px solid rgba(255,255,255,.08); color: #fff; font-size: 15px; line-height: 1.5; font-weight: 500; }
.hr-checklist li i { color: var(--hr-accent); font-size: 18px; margin-top: 2px; flex-shrink: 0; }
.hr-light .hr-checklist li, .hr-panel .hr-checklist li { background: #fff; border-color: var(--hr-line-light, #cfdad5); color: var(--hr-navy, #0E243A); }
.hr-panel .hr-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 991.98px) { .hr-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .hr-checklist, .hr-panel .hr-checklist { grid-template-columns: 1fr; } }

/* ---------- Cards and panels ---------- */
.hr-meet, .hr-cta-card, .hr-empty, .hr-organizer-card { border-radius: 24px; padding: 44px 48px; background: var(--hr-navy, #0E243A); color: rgba(255,255,255,.85); }
.hr-meet .hr-h2, .hr-cta-card .hr-h2, .hr-empty .hr-h2 { color: #fff; }
.hr-meet .sub-title-plain, .hr-cta-card .sub-title-plain, .hr-empty .sub-title-plain { color: var(--hr-accent); }
.hr-meet p { max-width: 860px; margin: 0; }
.hr-cta-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; background: var(--theme-color1); }
.hr-cta-card .hr-h2 { margin-bottom: 10px; }
.hr-cta-card p { margin: 0; max-width: 640px; color: rgba(255,255,255,.9); }
.hr-panel { height: 100%; border-radius: 20px; padding: 30px; background: #fff; border: 1px solid var(--hr-line-light, #cfdad5); }
.hr-panel--note { display: flex; gap: 14px; background: rgba(131,27,61,.06); border-color: rgba(131,27,61,.25); }
.hr-panel--note i { color: var(--theme-color1); font-size: 22px; margin-top: 3px; }
.hr-panel--note p { color: var(--hr-navy, #0E243A); margin: 0; }
.hr-organizer-card { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 32px; }
.hr-organizer-card p { margin: 0; color: #fff; }
.hr-organizer-logo img { height: 64px; width: auto; background: #fff; border-radius: 12px; padding: 10px 16px; }
@media (max-width: 767.98px) {
  .hr-meet, .hr-cta-card, .hr-empty, .hr-organizer-card { padding: 30px 24px; }
  .hr-organizer-card { grid-template-columns: 1fr; }
}

/* ---------- Benefits (exhibit) ---------- */
.hr-benefit { position: relative; height: 100%; padding: 28px; border-radius: 20px; background: var(--hr-ink, #15304A); border: 1px solid rgba(255,255,255,.08); transition: transform 300ms ease, border-color 300ms ease; }
.hr-benefit:hover { transform: translateY(-4px); border-color: rgba(3,154,147,.5); }
.hr-benefit .hr-brand-ico { background: #fff; border-radius: 16px; padding: 8px; width: 72px !important; height: 72px !important; margin-bottom: 20px; }
.hr-benefit p { color: #fff; font-size: 17px; line-height: 1.5; font-weight: 500; margin: 0; }
.hr-benefit-num { position: absolute; right: 24px; top: 22px; font-weight: 700; font-size: 14px; color: var(--hr-accent); }

/* ---------- Participation formats table ---------- */
.hr-format-table { border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.hr-format-row { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 24px; align-items: center; padding: 20px 28px; border-top: 1px solid rgba(255,255,255,.08); background: var(--hr-ink, #15304A); transition: background 250ms ease; }
.hr-format-row:not(.hr-format-head):hover { background: #1b3a57; }
.hr-format-head { border-top: 0; background: rgba(255,255,255,.04); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); padding-top: 14px; padding-bottom: 14px; }
.hr-format-row strong { color: #fff; font-weight: 600; font-size: 17px; }
.hr-format-row > div:nth-child(2) { color: rgba(255,255,255,.82); font-size: 15px; }
.hr-format-num { display: inline-block; width: 34px; font-weight: 700; font-size: 14px; color: var(--hr-accent); }
.hr-format-tag { display: inline-block; padding: 6px 12px; border-radius: 100px; font-size: 13px; background: rgba(3,154,147,.14); color: #6fded8; border: 1px solid rgba(3,154,147,.3); }
@media (max-width: 767.98px) {
  .hr-format-head { display: none; }
  .hr-format-row { grid-template-columns: 1fr; gap: 8px; padding: 18px 20px; }
}

/* ---------- Programme features ---------- */
.hr-feature { height: 100%; padding: 28px; border-radius: 20px; background: var(--hr-ink, #15304A); border: 1px solid rgba(255,255,255,.08); transition: transform 300ms ease, border-color 300ms ease; scroll-margin-top: 130px; }
.hr-feature:hover { transform: translateY(-4px); border-color: rgba(3,154,147,.5); }
.hr-feature-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.hr-feature-num { font-weight: 700; color: var(--hr-accent); font-size: 14px; }
.hr-feature-tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.18); padding: 4px 10px; border-radius: 100px; }
.hr-feature .hr-brand-ico { background: #fff; border-radius: 16px; padding: 8px; width: 72px !important; height: 72px !important; margin-bottom: 18px; }
.hr-feature h3 { color: #fff; font-size: 21px; line-height: 1.3; margin-bottom: 10px; }
.hr-feature p { color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.6; margin: 0; }
[id] > .hr-feature:target, .col-lg-4:target .hr-feature { border-color: var(--hr-accent); box-shadow: 0 0 0 3px rgba(3,154,147,.25); }

/* ---------- Tabs (enquiry types) ---------- */
.hr-tabs { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.hr-tab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--hr-line-light, #cfdad5); color: var(--hr-navy, #0E243A); font-weight: 600; font-size: 15px; transition: all 220ms ease; }
.hr-tab i { color: var(--theme-color1); transition: transform 220ms ease; }
.hr-tab:hover { border-color: var(--theme-color1); }
.hr-tab:hover i { transform: translate(2px, -2px); }
.hr-tab.is-active { background: var(--theme-color1); border-color: var(--theme-color1); color: #fff; }
.hr-tab.is-active i { color: #fff; }

/* ---------- Forms ---------- */
.hr-form-card { background: #fff; border-radius: 24px; padding: 40px; border: 1px solid var(--hr-line-light, #cfdad5); box-shadow: 0 24px 60px rgba(14,36,58,.08); }
.hr-form[hidden] { display: none; }
.hr-form-head p { color: #3e5566; margin-bottom: 18px; }
.hr-notice { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: rgba(3,154,147,.1); color: var(--hr-teal-deep, #07524B); font-size: 14px; font-weight: 500; margin-bottom: 24px; }
.hr-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.hr-field { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.hr-field--full { grid-column: 1 / -1; }
.hr-field > span { font-size: 14px; font-weight: 600; color: var(--hr-navy, #0E243A); }
.hr-field input, .hr-field select, .hr-field textarea { width: 100%; padding: 13px 15px; border: 1px solid #c4d1cb; border-radius: 12px; background: #f7faf8; color: var(--hr-navy, #0E243A); font: 15px/1.4 "Poppins", sans-serif; transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease; }
.hr-field select { appearance: auto; }
.hr-field textarea { resize: vertical; min-height: 130px; }
.hr-field input:focus, .hr-field select:focus, .hr-field textarea:focus { outline: none; border-color: var(--hr-accent); background: #fff; box-shadow: 0 0 0 3px rgba(3,154,147,.18); }
.hr-form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.hr-form-foot .theme-btn-one { border: 0; cursor: pointer; }
.hr-form-msg { font-size: 14px; font-weight: 500; color: var(--theme-color1); }
.hr-form-note { font-size: 14px !important; color: #3e5566; margin: 18px 0 0 !important; }
.hr-form-note a { color: var(--theme-color1); font-weight: 600; }
@media (max-width: 767.98px) { .hr-form-card { padding: 26px 20px; } .hr-fields { grid-template-columns: 1fr; } }

/* ---------- Contact facts ---------- */
.hr-facts { list-style: none; padding: 0; margin: 24px 0 8px; display: grid; gap: 12px; }
.hr-facts li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--hr-line-light, #cfdad5); }
.hr-facts i { color: var(--theme-color1); font-size: 20px; width: 24px; text-align: center; }
.hr-facts span { display: flex; flex-direction: column; color: var(--hr-navy, #0E243A); font-weight: 500; }
.hr-facts strong { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #5f7484; }

/* ---------- News empty state ---------- */
.hr-empty { text-align: left; max-width: 980px; }
.hr-empty p { color: rgba(255,255,255,.85); max-width: 720px; }
.hr-empty-note { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.08); margin: 10px 0 26px !important; }
.hr-empty-note i { color: var(--hr-accent); }

/* ---------- Prose (privacy / terms) ---------- */
.hr-prose { max-width: 820px; background: #fff; border-radius: 24px; padding: 48px; border: 1px solid var(--hr-line-light, #cfdad5); }
.hr-prose p { color: #3e5566; font-size: 17px; }
@media (max-width: 767.98px) { .hr-prose { padding: 28px 22px; } }

/* zone cards inside a two-up row on detail pages */
.hr-block .hr-zone { min-height: 420px; }

/* Photo cards keep white text even inside light sections */
.hr-light .hr-zone h3, .hr-light .hr-route h3 { color: #fff !important; }

/* Paragraph colour: dark on light sections, light on dark; dark cards keep light text */
.hr-block p { color: rgba(255,255,255,.82); }
.hr-block.hr-light p { color: #3e5566; }
.hr-block .hr-meet p, .hr-block .hr-cta-card p, .hr-block .hr-empty p, .hr-block .hr-organizer-card p,
.hr-block .hr-zone p, .hr-block .hr-route p, .hr-block .hr-feature p { color: rgba(255,255,255,.86); }
.hr-block .hr-benefit p { color: #fff; }
.hr-block .hr-panel--note p, .hr-block .hr-form-head p, .hr-block .hr-prose p, .hr-block .hr-form-note { color: #3e5566; }

/* Header contrast over the photo: soft navy fade at the top */
.hr-page-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 240px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,36,58,.7) 0%, rgba(14,36,58,.35) 45%, rgba(14,36,58,0) 100%); }
.hr-page-hero > .container, .hr-page-hero > .auto-container { position: relative; z-index: 1; }
/* Brand icons in the contact details */
.hr-facts-ico { width: 40px; height: 40px; flex: 0 0 40px; object-fit: contain; }

/* Enquiry tabs are buttons that switch the form in place */
button.hr-tab { width: 100%; text-align: left; font-family: inherit; line-height: 1.4; cursor: pointer; }
button.hr-tab:hover i { transform: translateX(3px); }
button.hr-tab:focus-visible { outline: 2px solid var(--hr-accent, #039A93); outline-offset: 2px; }

/* Enquiry form switch: crossfade + smooth card resize */
.hr-form-card { overflow: hidden; transition: height 400ms cubic-bezier(.4, 0, .2, 1); }
.hr-form { transition: opacity 260ms ease, transform 320ms cubic-bezier(.2, .7, .2, 1); }
.hr-form-card.is-switching .hr-form { opacity: 0; transform: translateY(-6px); transition-duration: 170ms; }
.hr-form.is-entering { opacity: 0; transform: translateY(12px); transition: none; }
@media (prefers-reduced-motion: reduce) { .hr-form-card, .hr-form { transition: none; } }
