/* ==========================================================================
   3 Angels Healthcare – Premium UI Layer
   Lightweight enhancements on top of existing theme (no rebuild)
   ========================================================================== */

:root {
  --premium-font: "Inter", "Poppins", "Roboto", sans-serif;
  --premium-heading: "Poppins", "Inter", sans-serif;
  --premium-dark: #0f172a;
  --premium-dark-2: #111827;
  --premium-card: rgba(255, 255, 255, 0.96);
  --premium-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --premium-shadow-hover: 0 24px 60px rgba(15, 23, 42, 0.18);
  --premium-radius: 18px;
  --premium-gradient: linear-gradient(135deg, rgba(59, 1, 165, 0.92), rgba(7, 204, 236, 0.85));
  --footer-brand: #380173;
  --footer-brand-dark: #2a0158;
}

body.premium-body,
.premium-body {
  font-family: var(--premium-font);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.breadcumb-title,
.section-title h2,
.widget_title {
  font-family: var(--premium-heading);
  letter-spacing: -0.02em;
}

/* Buttons */
.premium-btn,
.vs-btn.style2,
.vs-btn.style3 {
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.premium-btn:hover,
.vs-btn.style2:hover,
.vs-btn.style3:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(59, 1, 165, 0.22);
}

/* Cards – 3D tilt base */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

.tilt-card:hover {
  box-shadow: var(--premium-shadow-hover);
}

/* Scroll reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating icons */
.float-icon {
  animation: premiumFloat 6s ease-in-out infinite;
}

@keyframes premiumFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Navigation active state */
.main-menu a.active,
.vs-mobile-menu a.active {
  color: var(--theme-color) !important;
}

.main-menu li.current-menu-item > a,
.vs-mobile-menu li.current-menu-item > a {
  position: relative;
}

/* Footer brand color */
.footer-wrapper.footer-layout1 {
  background-color: var(--footer-brand) !important;
  background-image: none !important;
}

.footer-layout1 .footer-top {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.footer-layout1 .copyright.bg-theme {
  background-color: var(--footer-brand-dark) !important;
}

.footer-layout1 .copyright p,
.footer-layout1 .copyright a,
.footer-layout1 .footer-bottom-menu a {
  color: rgba(255, 255, 255, 0.92) !important;
}

.footer-layout1 .copyright a:hover,
.footer-layout1 .footer-bottom-menu a:hover {
  color: #fff !important;
}

.footer-layout1 .footer1-logo:before {
  background-color: var(--footer-brand-dark);
}

/* Footer menu — faint line under each item */
.footer-layout1 .footer-widget.widget_nav_menu .menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.4rem 0;
}

.footer-layout1 .footer-widget.widget_nav_menu .menu li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.footer-layout1 .footer-widget.widget_nav_menu .menu li:first-child {
  padding-top: 0;
}

/* Careers hero */
.careers-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  color: #fff;
}

.careers-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}

.careers-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--premium-gradient);
}

.careers-hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particle-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  animation: particleDrift linear infinite;
}

@keyframes particleDrift {
  0% { transform: translateY(0) scale(1); opacity: 0.2; }
  50% { opacity: 0.8; }
  100% { transform: translateY(-40px) scale(1.2); opacity: 0; }
}

.careers-hero .container {
  z-index: 2;
}

.careers-hero__eyebrow {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.careers-hero__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #fff;
}

.careers-hero__text {
  max-width: 720px;
  font-size: 1.05rem;
  color: #fff;
  opacity: 1;
  margin-bottom: 1.25rem;
}

.careers-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.careers-stats {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border-radius: var(--premium-radius);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.careers-stats__item {
  text-align: center;
}

.careers-stats__value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.careers-stats__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
}

.careers-stats__updated {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.careers-benefit {
  background: #fff;
  border-radius: var(--premium-radius);
  padding: 1.75rem;
  box-shadow: var(--premium-shadow);
  border: 1px solid rgba(15, 23, 42, 0.06);
  height: 100%;
}

.careers-benefit i {
  font-size: 1.8rem;
  color: var(--theme-color);
  margin-bottom: 1rem;
}

.careers-benefit h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.careers-benefit p {
  margin: 0;
  color: #475569;
  line-height: 1.65;
}

.careers-toolbar {
  display: grid;
  gap: 0.75rem;
}

.careers-sort {
  border-radius: 999px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.careers-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.careers-filter {
  border: 1px solid rgba(59, 1, 165, 0.15);
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.careers-filter:hover,
.careers-filter.is-active {
  background: var(--theme-color);
  border-color: var(--theme-color);
  color: #fff;
}

/* Careers listing */
.premium-section-title .sub-title6 {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.careers-search-wrap {
  position: relative;
}

.careers-search {
  border-radius: 999px;
  padding: 0.95rem 1.2rem 0.95rem 3rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.careers-search:focus {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 4px rgba(59, 1, 165, 0.12);
}

.careers-search__icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
}

.careers-status__message {
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.careers-status__message--warn {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.careers-status__message--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.careers-status__message--info {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.careers-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #475569;
  margin-bottom: 1.5rem;
}

.careers-loading__spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(59, 1, 165, 0.15);
  border-top-color: var(--theme-color);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.job-card {
  background: var(--premium-card);
  border-radius: var(--premium-radius);
  padding: 1.5rem;
  box-shadow: var(--premium-shadow);
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.job-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #3b01a5, var(--theme-color));
}

.job-card__date {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.job-card__title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--premium-dark);
}

.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.job-card__meta span {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(59, 1, 165, 0.08);
  color: #3b01a5;
}

.job-card__meta i {
  margin-right: 0.35rem;
}

.job-card__desc {
  flex: 1;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.job-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.job-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.job-card__details {
  border: 0;
  background: transparent;
  color: #3b01a5;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0;
}

.job-card__details:hover {
  text-decoration: underline;
}

.job-card__location {
  font-size: 0.92rem;
  color: #334155;
  font-weight: 500;
}

.job-card__location i {
  color: var(--theme-color);
  margin-right: 0.35rem;
}

.job-card__apply {
  white-space: nowrap;
}

.careers-empty__card,
.careers-cta__box {
  background: #fff;
  border-radius: var(--premium-radius);
  padding: 2rem;
  box-shadow: var(--premium-shadow);
  border: 1px solid rgba(15, 23, 42, 0.06);
  text-align: center;
}

.careers-empty__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(59, 1, 165, 0.08);
  color: #3b01a5;
  font-size: 1.8rem;
}

.careers-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.job-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.job-modal[hidden] {
  display: none !important;
}

.job-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
}

.job-modal__dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--premium-shadow-hover);
}

.job-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: rgba(15, 23, 42, 0.06);
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.job-modal__badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(59, 1, 165, 0.08);
  color: #3b01a5;
  font-size: 0.82rem;
  font-weight: 700;
}

.job-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.75rem 0 1.25rem;
  color: #475569;
  font-size: 0.92rem;
}

.job-modal__description {
  color: #334155;
  line-height: 1.75;
  white-space: pre-wrap;
}

.job-modal__footer {
  margin-top: 1.5rem;
}

body.job-modal-open {
  overflow: hidden;
}

.job-modal__dialog--wide {
  width: min(860px, 100%);
}

.apply-modal__subtitle,
.portal-panel__header p {
  color: #64748b;
  margin-bottom: 1rem;
}

.apply-form label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.apply-form__message {
  margin-top: 0.75rem;
  font-size: 0.92rem;
}

.apply-form__message--error { color: #b91c1c; }
.apply-form__message--success { color: #15803d; }
.apply-form__message--info { color: #1d4ed8; }

.apply-form__job-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.portal-switch-auth {
  margin-top: 1rem;
  text-align: center;
  color: #64748b;
}

.portal-switch-auth button {
  border: 0;
  background: none;
  color: #3b01a5;
  font-weight: 700;
  text-decoration: underline;
}

.employee-portal-bar {
  --bar-control-h: 2.125rem;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.employee-portal-bar__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 1rem;
  padding: 0.65rem 0;
}

.employee-portal-bar__welcome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: #475569;
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.3;
}

.employee-portal-bar__welcome span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-portal-bar__welcome i {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.95rem;
  color: #3b01a5;
  background: rgba(59, 1, 165, 0.08);
}

.employee-portal-bar__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.careers-search-wrap--bar {
  position: relative;
  width: 16.5rem;
  flex: 0 0 16.5rem;
}

.careers-search-wrap--bar .careers-search__icon {
  left: 0.75rem;
  font-size: 0.75rem;
  color: #94a3b8;
  pointer-events: none;
}

.careers-search--bar {
  width: 100%;
  height: 1.875rem;
  min-height: 1.875rem;
  padding: 0 0.75rem 0 1.9rem;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.875rem;
  border-radius: 0.65rem;
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  box-shadow: none;
  color: #0f172a;
}

.careers-search--bar::placeholder {
  color: #94a3b8;
}

.careers-search--bar:focus {
  border-color: #3b01a5;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 1, 165, 0.12);
  outline: none;
}

.employee-portal-bar .careers-sort--bar,
.careers-sort--bar {
  width: auto;
  min-width: 8.25rem;
  height: var(--bar-control-h);
  padding: 0 2rem 0 0.75rem;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 0.65rem;
  border: 1px solid #dbe3ef;
  background-color: #f8fafc;
  color: #334155;
  box-shadow: none;
  cursor: pointer;
  flex: 0 0 auto;
  overflow: visible;
  text-overflow: clip;
}

.careers-sort--bar:focus {
  border-color: #3b01a5;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 1, 165, 0.12);
  outline: none;
}

.employee-portal-bar__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.employee-portal-bar__name {
  font-weight: 600;
  color: #3b01a5;
  font-size: 0.8125rem;
  white-space: nowrap;
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-btn--sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.portal-btn {
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.portal-btn.portal-btn--sm {
  min-height: var(--bar-control-h, 2.125rem);
  height: var(--bar-control-h, 2.125rem);
  padding: 0 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
}

.portal-btn--primary {
  background: linear-gradient(135deg, #3b01a5, #667eea);
  color: #fff;
}

.portal-btn--ghost {
  background: #fff;
  border-color: rgba(59, 1, 165, 0.2);
  color: #3b01a5;
}

.portal-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.35rem;
}

.portal-tab {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  font-weight: 600;
  color: #64748b;
}

.portal-tab.is-active {
  background: #fff;
  color: #3b01a5;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.portal-panel[hidden] {
  display: none !important;
}

.portal-panel__header {
  margin-bottom: 1.5rem;
}

.portal-auth-required {
  text-align: center;
  background: #fff;
  border-radius: var(--premium-radius);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--premium-shadow);
}

.portal-auth-required i {
  font-size: 2rem;
  color: #3b01a5;
  margin-bottom: 1rem;
}

.application-card {
  background: #fff;
  border-radius: var(--premium-radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--premium-shadow);
  border: 1px solid rgba(15, 23, 42, 0.06);
  margin-bottom: 1rem;
}

.application-card__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.application-card__status {
  background: rgba(59, 1, 165, 0.08);
  color: #3b01a5;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.application-card__meta {
  color: #64748b;
  font-size: 0.88rem;
}

.chat-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1rem;
  min-height: 520px;
  background: #fff;
  border-radius: var(--premium-radius);
  box-shadow: var(--premium-shadow);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.chat-layout__sidebar {
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 1rem;
}

.chat-threads {
  display: grid;
  gap: 0.5rem;
}

.chat-thread {
  text-align: left;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem;
}

.chat-thread.is-active {
  border-color: #3b01a5;
  background: rgba(59, 1, 165, 0.05);
}

.chat-layout__main {
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 700;
}

.chat-messages {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.25rem;
  background: #fcfcfd;
}

.chat-message {
  margin-bottom: 0.85rem;
  max-width: 80%;
}

.chat-message--mine {
  margin-left: auto;
  text-align: right;
}

.chat-message--system {
  margin-left: auto;
  margin-right: auto;
  max-width: 92%;
  text-align: center;
}

.chat-message--system .chat-message__bubble {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0c4a6e;
  font-size: 0.9rem;
}

.chat-message__bubble {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.chat-message--mine .chat-message__bubble {
  background: linear-gradient(135deg, #3b01a5, #667eea);
  color: #fff;
  border: 0;
}

.chat-message__time {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.chat-form {
  display: flex;
  gap: 0.65rem;
  padding: 1rem;
  border-top: 1px solid #e2e8f0;
}

.chat-empty {
  color: #64748b;
  font-size: 0.92rem;
}

.careers-hero--compact {
  padding: 1.35rem 0 1rem;
  min-height: auto;
}

.careers-hero--compact .careers-hero__eyebrow {
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
}

.careers-hero--compact .careers-hero__title {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  margin-bottom: 0.35rem;
}

.careers-hero--compact .careers-hero__text {
  font-size: 0.92rem;
  max-width: none;
  color: #fff;
  white-space: nowrap;
}

.careers-stats--compact {
  padding: 0.75rem 0.9rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.5rem;
}

.careers-stats--compact .careers-stats__updated {
  margin-top: 0.35rem;
  font-size: 0.75rem;
}

.careers-page.careers-portal {
  background: #f4f7fb;
}

.careers-listings {
  padding: 0.85rem 0 2rem;
}

.careers-listings > .container {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 1rem;
  padding: 1rem 1.15rem 1.25rem;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
}

.careers-featured-block {
  margin-bottom: 0.65rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed rgba(59, 1, 165, 0.15);
}

.careers-featured-block + .careers-section-head--all {
  margin-top: 0;
}

.careers-section-head {
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid rgba(59, 1, 165, 0.1);
}

.careers-section-head--all {
  margin-top: 0;
}

.careers-section-head__line {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.75rem;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.25;
}

.careers-section-head__label {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3b01a5;
  background: linear-gradient(135deg, rgba(59, 1, 165, 0.1), rgba(7, 204, 236, 0.12));
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 1, 165, 0.14);
}

.careers-section-head__divider {
  flex-shrink: 0;
  color: rgba(59, 1, 165, 0.32);
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1;
}

.careers-section-head__sub {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.careers-featured-wrap {
  margin-bottom: 0;
}

.careers-featured-grid {
  margin-bottom: 0;
}

.careers-filters {
  margin-bottom: 0.65rem;
}

.careers-status {
  margin-bottom: 0.65rem;
}

.careers-grid {
  margin-top: 0;
}

.featured-job-card {
  background: linear-gradient(135deg, rgba(59, 1, 165, 0.03), rgba(7, 204, 236, 0.05));
  border: 1px solid rgba(59, 1, 165, 0.1);
  border-radius: 0.85rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 1, 165, 0.1);
}

.careers-jobs-section {
  padding-top: 0;
}

.careers-featured-section {
  display: none;
}

.featured-job-card__date {
  font-size: 0.75rem;
  color: #64748b;
}

.featured-job-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}

.featured-job-card__loc {
  margin: 0;
  color: #475569;
  font-size: 0.88rem;
}

.featured-job-card__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.portal-member-zone {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 1rem 0 1.5rem;
  margin-top: 0;
}

.portal-tabs--member {
  margin-bottom: 0;
}

.careers-profile-hero {
  padding: 3rem 0 2rem;
  background: linear-gradient(135deg, rgba(59, 1, 165, 0.08), rgba(7, 204, 236, 0.08));
}

.profile-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.profile-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3b01a5, #07ccec);
  margin-bottom: 1rem;
}

.profile-card__meta {
  color: #64748b;
  margin-bottom: 0.35rem;
}

.profile-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.profile-details {
  display: grid;
  gap: 0.85rem;
}

.profile-details dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.profile-details dd {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
}

.session-lock-modal__icon {
  font-size: 2.5rem;
  color: #3b01a5;
  margin-bottom: 0.75rem;
}

.session-lock-modal .job-modal__dialog {
  max-width: 420px;
}

.careers-cta__box {
  background: linear-gradient(135deg, rgba(59, 1, 165, 0.06), rgba(7, 204, 236, 0.08));
}

.space-top,
.space-md-bottom,
.py-40,
.py-60 {
  scroll-margin-top: 100px;
}

/* Blog / service cards hover elevation */
.blog-card,
.choose-block,
.vs-blog,
.about-content6,
.service-style1 {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover,
.vs-blog:hover {
  transform: translateY(-6px);
  box-shadow: var(--premium-shadow);
}

/* Responsive */
@media (min-width: 1200px) {
  .careers-search-wrap--bar {
    width: 18.5rem;
    flex-basis: 18.5rem;
  }

  .employee-portal-bar__welcome {
    font-size: 0.875rem;
  }
}

@media (max-width: 991px) {
  .careers-hero {
    padding-top: 110px;
    min-height: 360px;
  }

  .careers-hero--compact .careers-hero__text {
    white-space: normal;
  }

  .employee-portal-bar__layout {
    grid-template-columns: 1fr;
    row-gap: 0.65rem;
  }

  .employee-portal-bar__welcome span {
    white-space: normal;
  }

  .employee-portal-bar__controls {
    width: 100%;
  }

  .careers-search-wrap--bar {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .employee-portal-bar__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .careers-featured-head__line,
  .careers-section-head__line {
    flex-wrap: wrap;
  }

  .careers-featured-head__sub,
  .careers-section-head__sub {
    white-space: normal;
  }

  .careers-stats {
    grid-template-columns: 1fr;
  }

  .job-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-layout {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tilt-card,
  .reveal-on-scroll,
  .float-icon,
  .particle-dot,
  .premium-btn,
  .blog-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Portal bar sort — keep full label visible after Bootstrap/style.css */
.employee-portal-bar .form-control.careers-search--bar {
  height: 1.875rem;
  min-height: 1.875rem;
  padding-top: 0;
  padding-bottom: 0;
}

.employee-portal-bar .form-select.careers-sort--bar {
  width: auto;
  min-width: 8.25rem;
  max-width: none;
  padding-right: 2rem;
}

/* Footer messenger dock */
.careers-messenger {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  pointer-events: none;
}

.careers-messenger__fab,
.careers-messenger__panel,
.careers-toast-stack {
  pointer-events: auto;
}

.careers-messenger__fab {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.35);
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.careers-messenger__fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(13, 148, 136, 0.4);
}

.careers-messenger__badge,
.careers-tab-badge {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
}

.careers-tab-badge {
  position: static;
  display: inline-block;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.careers-messenger__panel {
  width: min(420px, calc(100vw - 2rem));
  max-height: min(70vh, 560px);
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: careersMessengerSlide 0.28s ease;
}

@keyframes careersMessengerSlide {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.careers-messenger__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.careers-messenger__header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.careers-messenger__header p {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.careers-messenger__close {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
}

.chat-layout--dock {
  flex: 1;
  min-height: 0;
  grid-template-columns: 1fr;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
  border: 0;
}

.chat-layout--dock .chat-layout__sidebar {
  max-height: 110px;
  flex-shrink: 0;
  border-bottom: 1px solid #e2e8f0;
  border-right: 0;
}

.chat-layout--dock .chat-layout__main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chat-layout--dock .chat-messages {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
}

.chat-layout--dock .chat-form {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  background: #fff;
}

.careers-messenger__panel .chat-layout,
.careers-messenger__panel .chat-form,
.careers-messenger__panel .chat-form input,
.careers-messenger__panel .chat-form button {
  pointer-events: auto;
}

.careers-toast-stack {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 9989;
  max-width: min(320px, calc(100vw - 2rem));
}

.careers-toast {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #0f172a;
  color: #fff;
  font-size: 0.875rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.careers-toast--show {
  opacity: 1;
  transform: translateY(0);
}

/* About section — 3 Angels branding (replaces Medixi template defaults) */
.about-img-6--3ahc {
  position: relative;
}

.about-img-6--3ahc .image-box img {
  border-radius: 12px;
  object-fit: cover;
  width: 100%;
}

.about-img-6--3ahc .exp-box {
  left: auto;
  right: 12px;
  top: auto;
  bottom: 18px;
  width: auto;
  min-width: 220px;
  max-width: calc(100% - 24px);
  height: auto;
  min-height: 72px;
  line-height: 1.2;
  padding: 14px 20px;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(135deg, #380173, #5b21b6);
  box-shadow: 0 14px 28px rgba(56, 1, 115, 0.28);
}

.about-img-6--3ahc .exp-box h6 {
  font-size: 2rem;
  line-height: 1;
  margin-right: 0;
  margin-bottom: 4px;
}

.about-img-6--3ahc .exp-box span {
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 600;
  white-space: normal;
}

@media (max-width: 991px) {
  .about-img-6--3ahc .exp-box {
    display: flex;
    right: 8px;
    bottom: 12px;
    min-width: 180px;
  }
}
