/* ==========================================================================
   EasyJobs7 — 2026 design layer
   Loaded after style.css. Overrides only; the old template keeps working
   underneath. Remove the <link> in components/header.php to roll back.
   ========================================================================== */

:root {
  --ej-primary: #ff8a00;
  --ej-primary-600: #f07400;
  --ej-primary-50: #fff4e6;
  --ej-ink: #0f172a;
  --ej-ink-2: #334155;
  --ej-muted: #64748b;
  --ej-line: rgba(15, 23, 42, .08);
  --ej-surface: #ffffff;
  --ej-bg: #f7f8fb;
  --ej-radius: 18px;
  --ej-radius-sm: 12px;
  --ej-shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .04);
  --ej-shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --ej-shadow-lg: 0 24px 50px -20px rgba(15, 23, 42, .28);
  --ej-glass: rgba(255, 255, 255, .72);
  --ej-glass-dark: rgba(255, 255, 255, .12);
  --ej-ease: cubic-bezier(.2, .8, .2, 1);
  --ej-gradient: linear-gradient(135deg, #ff9a1f 0%, #ff6a00 100%);
}

/* ---------- Base ---------- */
body {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ej-ink-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { font-family: inherit; color: var(--ej-ink); letter-spacing: -.01em; }
::selection { background: var(--ej-primary); color: #fff; }
a, button { transition: color .2s var(--ej-ease), background-color .2s var(--ej-ease), border-color .2s var(--ej-ease), box-shadow .25s var(--ej-ease), transform .25s var(--ej-ease); }
:focus-visible { outline: 3px solid rgba(255, 138, 0, .45); outline-offset: 2px; border-radius: 8px; }

/* ---------- Header: glass, sticky ---------- */
#header {
  background: var(--ej-glass) !important;
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: none !important;
  border-bottom: 1px solid var(--ej-line);
}
#header .utf-right-side { background: transparent !important; }
#navigation ul li a {
  border-radius: 999px;
  padding: 8px 14px !important;
  font-weight: 600;
  font-size: 15px;
  color: var(--ej-ink-2);
}
#navigation ul li a:hover,
#navigation ul li a.current {
  background: var(--ej-primary-50) !important;
  color: var(--ej-primary-600) !important;
}
.utf-header-widget-item .log-in-button {
  border-radius: 999px !important;
  background: var(--ej-gradient) !important;
  border: 0 !important;
  box-shadow: 0 6px 16px -6px rgba(255, 106, 0, .6);
  font-weight: 600;
}
.utf-header-widget-item .log-in-button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(255, 106, 0, .7); }
/* Agent is a secondary action: outline style */
#header .utf-header-widget-item .log-in-button[href*="adm/"] {
  background: transparent !important;
  color: var(--ej-ink-2) !important;
  box-shadow: inset 0 0 0 1.5px var(--ej-line) !important;
}
#header .utf-header-widget-item .log-in-button[href*="adm/"] i { color: inherit !important; }
#header .utf-header-widget-item .log-in-button[href*="adm/"]:hover { box-shadow: inset 0 0 0 1.5px var(--ej-primary) !important; color: var(--ej-primary-600) !important; }
.ej-lang-btn { background: var(--ej-surface); }

/* Keep the header on one line on smaller laptops (was cutting off "Contact") */
@media (max-width: 1440px) and (min-width: 1025px) {
  #navigation ul li a { padding: 8px 10px !important; font-size: 14px; }
  .utf-header-widget-item { padding-left: 6px !important; margin-left: 0 !important; }
  .utf-header-widget-item .log-in-button { padding: 0 14px !important; }
  .utf-header-widget-item .log-in-button span:not(.phone_icon_login) { font-size: 13px; }
}

/* ---------- Hero: photo + animated gradient ---------- */
.intro-banner { position: relative; isolation: isolate; overflow: hidden; }
.intro-banner::after {
  content: "";
  position: absolute; inset: 0; z-index: 16; /* template: bg image 10, its overlay 15 */
  background: linear-gradient(120deg, rgba(15, 23, 42, .88) 0%, rgba(15, 23, 42, .55) 45%, rgba(255, 122, 0, .55) 100%);
  background-size: 200% 200%;
  animation: ej-gradient 16s ease-in-out infinite alternate;
  pointer-events: none;
}
.intro-banner > .container { position: relative; z-index: 20; }
@keyframes ej-gradient { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.utf-banner-headline-text-part h3 {
  font-size: clamp(30px, 5vw, 56px) !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
  letter-spacing: -.025em;
  color: #fff !important;
}
.utf-banner-headline-text-part h3 .typed-words { color: var(--ej-primary) !important; }
.utf-banner-headline-text-part > span {
  display: block;
  max-width: 640px;
  margin: 14px auto 0;
  font-size: clamp(15px, 1.6vw, 19px) !important;
  color: rgba(255, 255, 255, .86) !important;
  font-weight: 500;
}

/* Glass search panel */
.utf-intro-banner-search-form-block {
  background: var(--ej-glass-dark) !important;
  border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-radius: 22px !important;
  padding: 10px !important;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .55) !important;
  gap: 8px;
}
.utf-intro-search-field-item {
  background: #fff !important;
  border-radius: 14px !important;
  border: 0 !important;
  overflow: visible;
}
.utf-intro-search-field-item input,
.utf-intro-search-field-item .bootstrap-select .dropdown-toggle { font-weight: 500; color: var(--ej-ink) !important; }
.utf-intro-search-button .button,
.utf-intro-search-button button {
  background: var(--ej-gradient) !important;
  border-radius: 14px !important;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 10px 24px -10px rgba(255, 106, 0, .8);
}
.utf-intro-search-button .button:hover,
.utf-intro-search-button button:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* ---------- Buttons ---------- */
.button, a.button, button.button {
  border-radius: 999px !important;
  background: var(--ej-gradient) !important;
  font-weight: 600;
  box-shadow: 0 8px 20px -10px rgba(255, 106, 0, .7);
}
.button:hover, a.button:hover, button.button:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(255, 106, 0, .75); }
.button.save-job-btn { background: #fff !important; color: var(--ej-ink) !important; box-shadow: inset 0 0 0 1.5px var(--ej-line) !important; }
.apply-now-button { border-radius: 999px !important; background: var(--ej-gradient) !important; font-weight: 700; box-shadow: 0 10px 24px -10px rgba(255, 106, 0, .8); }
.apply-now-button:hover { transform: translateY(-2px); }

/* ---------- Section headings ---------- */
.utf-section-headline-item h3 { font-weight: 800 !important; letter-spacing: -.02em; }
.utf-section-headline-item .headline-title,
.utf-section-headline-item span:first-child {
  border-radius: 999px !important;
}

/* ---------- Category cards ---------- */
.utf-category-box {
  border-radius: var(--ej-radius) !important;
  border: 1px solid var(--ej-line) !important;
  background: var(--ej-surface) !important;
  box-shadow: var(--ej-shadow-sm) !important;
  overflow: hidden;
  transition: transform .35s var(--ej-ease), box-shadow .35s var(--ej-ease), border-color .35s var(--ej-ease);
}
.utf-category-box:hover { transform: translateY(-6px); box-shadow: var(--ej-shadow-lg) !important; border-color: rgba(255, 138, 0, .35) !important; }
.utf-category-box-icon-item img { transition: transform .6s var(--ej-ease); border-radius: var(--ej-radius-sm); }
.utf-category-box:hover .utf-category-box-icon-item img { transform: scale(1.06); }
.utf-category-box-content h3 { font-weight: 700 !important; font-size: 16px !important; }

/* ---------- Job cards ---------- */
.utf-listings-container-part { box-shadow: none !important; background: transparent !important; }
.utf-job-listing {
  position: relative;
  margin-bottom: 14px !important;
  border-radius: var(--ej-radius) !important;
  border: 1px solid var(--ej-line) !important;
  background: var(--ej-surface) !important;
  box-shadow: var(--ej-shadow-sm) !important;
  overflow: hidden;
  transition: transform .3s var(--ej-ease), box-shadow .3s var(--ej-ease), border-color .3s var(--ej-ease);
}
.utf-job-listing::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--ej-gradient);
  transform: scaleY(0); transform-origin: top;
  transition: transform .35s var(--ej-ease);
}
.utf-job-listing:hover { transform: translateY(-3px); box-shadow: var(--ej-shadow) !important; border-color: rgba(255, 138, 0, .3) !important; }
.utf-job-listing:hover::before { transform: scaleY(1); }
.utf-job-listing-company-logo img { border-radius: 14px !important; box-shadow: var(--ej-shadow-sm); background: #fff; }
.utf-job-listing-title { font-weight: 700 !important; color: var(--ej-ink) !important; letter-spacing: -.01em; }
.utf-job-listing:hover .utf-job-listing-title { color: var(--ej-primary-600) !important; }
.utf-job-listing-footer ul li {
  background: var(--ej-bg);
  border-radius: 999px;
  padding: 4px 12px !important;
  margin: 4px 6px 0 0 !important;
  font-size: 13px !important;
  color: var(--ej-ink-2) !important;
}
.utf-job-status-item,
.dashboard-status-button.green {
  border-radius: 999px !important;
  background: #e8f8ef !important;
  color: #0f7a3c !important;
  font-weight: 600;
  padding: 3px 10px !important;
}

/* ---------- Job details page ---------- */
.single-page-header { position: relative; }
.single-page-header::after {
  content: "";
  position: absolute; inset: 0; z-index: 16; /* above template bg (10) + overlay (15), below content (100) */
  pointer-events: none;
  background: linear-gradient(120deg, rgba(15, 23, 42, .92), rgba(15, 23, 42, .7) 55%, rgba(255, 122, 0, .5));
}
.utf-header-image img { border-radius: 20px !important; box-shadow: var(--ej-shadow); }
.utf-boxed-list-headline-item { border-radius: var(--ej-radius-sm) !important; }
.utf-sidebar-widget-item .salary-box,
.utf-job-overview,
.utf-quote-box,
.utf-sidebar-widget-item form {
  border-radius: var(--ej-radius) !important;
  border: 1px solid var(--ej-line);
  box-shadow: var(--ej-shadow-sm) !important;
  overflow: hidden;
}
.salary-amount { font-weight: 800 !important; color: var(--ej-ink) !important; }
.utf-job-overview-headline { background: var(--ej-gradient) !important; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="number"], input[type="password"], textarea, select {
  border-radius: var(--ej-radius-sm);
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select:focus {
  border-color: var(--ej-primary) !important;
  box-shadow: 0 0 0 4px rgba(255, 138, 0, .15) !important;
}

/* ---------- Footer ---------- */
#footer .utf-footer-section-item-block,
#footer .utf-footer-copyright-item { letter-spacing: .01em; }

/* ---------- Homepage: CTAs, Why EasyJobs7, steps ---------- */
.ej-hero-ctas { display:flex; flex-wrap:wrap; justify-content:center; gap:10px 16px; margin-top:22px; }
.ej-hero-ctas a { display:inline-flex; align-items:center; gap:8px; padding:10px 18px; border-radius:999px; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.3); color:#fff; font-size:14px; backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); }
.ej-hero-ctas a strong { color:#fff; }
.ej-hero-ctas a:hover { background:rgba(255,255,255,.24); color:#fff; }
.ej-hero-ctas .ej-cta-employer { background:var(--ej-gradient); border-color:transparent; }
.ej-why { background: var(--ej-surface); }
.ej-why-card { height:100%; padding:26px 22px; border-radius:var(--ej-radius); border:1px solid var(--ej-line); background:#fff; box-shadow:var(--ej-shadow-sm); transition:transform .3s var(--ej-ease), box-shadow .3s var(--ej-ease); }
.ej-why-card:hover { transform:translateY(-4px); box-shadow:var(--ej-shadow); }
.ej-why-card i { display:inline-flex; width:48px; height:48px; align-items:center; justify-content:center; border-radius:14px; background:var(--ej-primary-50); color:var(--ej-primary-600); font-size:22px; margin-bottom:14px; }
.ej-why-card h4 { font-size:18px; font-weight:800; margin-bottom:8px; }
.ej-why-card p { margin:0; color:var(--ej-muted); font-size:15px; line-height:1.55; }
.ej-steps { margin-top:20px; padding:30px; border-radius:var(--ej-radius); background:linear-gradient(135deg,#0f172a,#1e293b); color:#fff; text-align:center; }
.ej-steps h3 { color:#fff; font-weight:800; margin-bottom:18px; }
.ej-steps ol { list-style:none; margin:0 0 22px; padding:0; display:flex; flex-wrap:wrap; justify-content:center; gap:12px 28px; }
.ej-steps li { display:flex; align-items:center; gap:10px; font-weight:600; }
.ej-steps li span { width:32px; height:32px; border-radius:50%; background:var(--ej-gradient); display:inline-flex; align-items:center; justify-content:center; font-weight:800; }
@media (max-width: 767px) { .ej-hero-ctas a { width:100%; justify-content:center; flex-wrap:wrap; text-align:center; gap:4px 8px; } }
@media (max-width: 767px) { .ej-steps ol { flex-direction:column; align-items:flex-start; width:fit-content; margin:0 auto 22px; } }

/* ---------- About / How it works / FAQ ---------- */
.ej-content { font-size:16px; line-height:1.75; color:var(--ej-ink-2); }
.ej-content h3 { font-size:21px; margin:28px 0 10px; }
.ej-lead { font-size:clamp(24px,3vw,32px); font-weight:800; letter-spacing:-.02em; margin-bottom:16px; }
.ej-list { list-style:none; padding:0; margin:0 0 16px; }
.ej-list li { position:relative; padding-left:26px; margin-bottom:8px; color:var(--ej-ink-2); }
.ej-list li::before { content:"✓"; position:absolute; left:0; top:0; color:var(--ej-primary-600); font-weight:800; }
.ej-how { height:100%; padding:28px; border-radius:var(--ej-radius); border:1px solid var(--ej-line); background:#fff; box-shadow:var(--ej-shadow-sm); }
.ej-how h3 { font-weight:800; margin-bottom:18px; }
.ej-how h3 i { color:var(--ej-primary-600); }
.ej-how-steps { list-style:none; counter-reset:step; padding:0; margin:0 0 20px; }
.ej-how-steps li { counter-increment:step; position:relative; padding:0 0 18px 48px; }
.ej-how-steps li::before { content:counter(step); position:absolute; left:0; top:0; width:32px; height:32px; border-radius:50%; background:var(--ej-gradient); color:#fff; font-weight:800; display:flex; align-items:center; justify-content:center; }
.ej-how-steps li strong { display:block; color:var(--ej-ink); }
.ej-how-steps li span { color:var(--ej-muted); font-size:15px; }
.ej-faq-group { font-size:20px; font-weight:800; margin:30px 0 12px; }
.ej-faq { border:1px solid var(--ej-line); border-radius:14px; margin-bottom:10px; background:#fff; }
.ej-faq summary { cursor:pointer; list-style:none; padding:16px 48px 16px 18px; font-weight:600; color:var(--ej-ink); position:relative; }
.ej-faq summary::-webkit-details-marker { display:none; }
.ej-faq summary::after { content:"+"; position:absolute; right:18px; top:50%; transform:translateY(-50%); font-size:22px; color:var(--ej-primary-600); }
.ej-faq[open] summary::after { content:"–"; }
.ej-faq p { padding:0 18px 16px; margin:0; color:var(--ej-ink-2); line-height:1.65; }

.ej-spinner { display:inline-block; width:42px; height:42px; border:4px solid rgba(255,138,0,.25); border-top-color:#ff8a00; border-radius:50%; animation:ej-spin .8s linear infinite; }
@keyframes ej-spin { to { transform:rotate(360deg); } }

/* ---------- Legal pages ---------- */
.ej-legal { max-width: 820px; font-size: 16px; line-height: 1.7; color: var(--ej-ink-2); }
.ej-legal h3 { font-size: 20px; margin: 30px 0 10px; }
.ej-legal ul { padding-left: 20px; margin-bottom: 16px; }
.ej-legal li { margin-bottom: 6px; }
.ej-todo { background: #fff4e6; color: #c2410c; border: 1px dashed #fb923c; border-radius: 6px; padding: 1px 6px; font-weight: 600; font-size: .92em; }

/* ---------- Footer legal line ---------- */
.ej-footer-legal { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 20px; align-items:center; }
.ej-footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ej-footer-secure { opacity: .85; }

/* ---------- Scroll reveal (added by js/ej-2026.js) ---------- */
.ej-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ej-ease), transform .6s var(--ej-ease); transition-delay: var(--ej-delay, 0s); }
.ej-reveal.ej-in { opacity: 1; transform: none; }

/* ---------- Mobile first touches ---------- */
@media (max-width: 767px) {
  .intro-banner { padding-top: 70px !important; padding-bottom: 60px !important; }
  .utf-intro-banner-search-form-block { flex-direction: column; padding: 8px !important; border-radius: 18px !important; }
  .utf-intro-search-field-item { width: 100% !important; min-height: 52px; }
  .utf-intro-search-button, .utf-intro-search-button .button, .utf-intro-search-button button { width: 100% !important; min-height: 52px; }
  .utf-job-listing { border-radius: 16px !important; }
  .utf-job-listing-footer ul li { font-size: 12px !important; }
  .button, .apply-now-button { min-height: 44px; }
  /* Language: flag only on phones so it doesn't cover the logo */
  .ej-lang-btn { height: 34px; padding: 0 8px; margin-top: 14px; }
  .ej-lang-btn span { display: none !important; }
  .ej-lang-menu { top: 52px; }
  /* Agent is secondary (also in the footer): hide on phones to make room for logo + labels */
  #header .utf-header-widget-item:has(.log-in-button[href*="adm/"]) { display: none !important; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ej-reveal { opacity: 1; transform: none; }
}

/* ---- 2026-09-25: footer categories, help boxes, justified text ---- */

/* Footer links stay on one line; long names end with "…" (full name on hover) */
.utf-footer-item-links ul li a { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.utf-footer-item-links ul li a i { flex: none; top: 0; }
.utf-footer-item-links ul li a span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.utf-footer-item-links ul li a:hover { letter-spacing: 0; }

/* "Need Any Help?": the three boxes have the same height, buttons line up at the bottom */
.need-help-area > [class*="col-"] { display: flex; margin-bottom: 25px; }
.need-help-area .info-box-1 { display: flex; flex-direction: column; align-items: center; width: 100%; height: 100%; margin-bottom: 0; }
.need-help-area .info-box-1 p { flex: 1 0 auto; }
.need-help-area .info-box-1 .button { margin-top: auto; }

/* Running text is justified; hyphenation keeps the word spacing even */
.container p, .container li, .ej-legal p, .ej-legal li {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}
/* ...except where the design is centred, in navigation, and in short labels */
.centered p, .text-center p, .utf-section-headline-item p, .info-box-1 p, #titlebar li, #breadcrumbs li,
.utf-footer-item-links li, #navigation li, .utf-header-widget li, ul.utf-job-listing-footer li, .utf-job-listing-footer li,
.utf-job-listing li, .ej-why-card p, .ej-steps li, .pagination li, .utf-pagination-container li, .utf-intro-banner-search-form-block p,
.utf-banner-headline-text-part p, .notification p, .dropdown-menu li, .nav li, form li, .ej-footer-legal, .utf-footer-copyright-item p, .utf-footer-copyright-item li {
  text-align: inherit;
  -webkit-hyphens: manual;
  hyphens: manual;
}
.ej-footer-credit { font-size: 12px; opacity: .6; }
.ej-footer-credit a { text-decoration: none; }
