/* =========================================================
   Housekeeping Agenda – theme-ha.css
   Palette:
   - Burnt Rose:  #904E55 (page background)
   - Khaki Beige: #C6AC8F (text, buttons)
   - Dark Coffee: #241909 (header, footer, accents, left panel)
   ========================================================= */

/* ---------- Reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  background: #904e55; /* Burnt Rose */
  color: #c6ac8f; /* Khaki Beige */
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  padding-left: 1.2rem;
}

/* ---------- Tokens ---------- */

:root {
  --color-burnt-rose: #904e55;
  --color-khaki-beige: #c6ac8f;
  --color-dark-coffee: #241909;

  --color-bg: var(--color-burnt-rose);
  --color-text: var(--color-khaki-beige);
  --color-text-muted: #e7d9c8;

  --color-surface: var(--color-dark-coffee);
  --color-surface-soft: #362018;

  --color-border-soft: rgba(198, 172, 143, 0.45);
  --color-border-subtle: rgba(198, 172, 143, 0.25);

  --shadow-1: 0 14px 30px rgba(0, 0, 0, 0.55);

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;

  --container-width: 1080px;
}

/* ---------- Layout scaffold ---------- */

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

.site-header,
.site-footer {
  flex-shrink: 0;
}

.shell {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* ---------- Header & nav ---------- */

.site-header {
  border-bottom: 1px solid var(--color-border-subtle);
  background: rgba(36, 25, 9, 0.96); /* Dark Coffee */
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

/* vechi .header-inner – păstrat pentru paginile care-l folosesc încă */
.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 10px var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  height: 46px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav a {
  font-size: 0.95rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}

.nav a:hover {
  border-color: var(--color-border-subtle);
  text-decoration: none;
}

.nav a.nav-cta {
  border-color: transparent;
  background: var(--color-khaki-beige);
  color: var(--color-dark-coffee);
  font-weight: 600;
}

/* ---------- Typography helpers ---------- */

.brand-title {
  font-family: "Bad Script", cursive;
  font-size: 3rem;
  font-weight: 600;
}

.brand-tag {
  margin-top: 4px;
  font-size: 0.98rem;
  color: var(--color-text-muted);
}

.page-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.page-subtitle {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  max-width: 520px;
}

.muted {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ===== About Us intro paragraph ===== */

.about-us {
  max-width: 780px;
  margin: 10px auto 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  text-align: center;
}

.about-us:before {
  content: none;
}

.intro-header .brand-title {
  font-size: 2.4rem;
  margin-bottom: 6px;
  color: var(--color-khaki-beige);
}

/* ===== Founder statement carousel (Irina) ===== */

.founder-carousel {
  padding: 4px 0 8px;
  background: transparent;
}

.founder-carousel-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

.founder-slide {
  display: none;
  opacity: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--color-text-muted);
  transition: opacity 0.4s ease;
}

.founder-slide.active {
  display: block;
  opacity: 1;
}

.founder-signature {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--color-khaki-beige);
  font-family: "Bad Script", cursive;
}

.founder-dots {
  margin-top: 4px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.founder-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}

.founder-dot.active {
  background: var(--color-khaki-beige);
  transform: scale(1.1);
}

/* ---------- Intro hero ---------- */

.intro-hero {
  width: 100%;
  padding: 18px 0 24px;
}

.intro-inner {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.intro-header {
  text-align: center;
  margin-bottom: 10px;
}

/* ---------- Split card Hire | Video | Apply ---------- */

.intro-split {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}

/* ≥ 768px: trei coloane */
@media (min-width: 768px) {
  .intro-split {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .intro-panel-hire,
  .intro-panel-video {
    border-right: 1px solid var(--color-border-soft);
  }
}

/* < 768px: panouri una sub alta */
@media (max-width: 767.98px) {
  .intro-panel-hire {
    border-bottom: 1px solid var(--color-border-soft);
  }
}

/* panou generic */
.intro-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 24px 28px;
}

/* Hire – fundal mai închis */
.intro-panel-hire {
  background: var(--color-surface-soft);
  color: var(--color-text);
}

/* Apply – fundal bej, text coffee */
.intro-panel-apply {
  background: var(--color-khaki-beige);
  color: var(--color-dark-coffee);
}

/* Video – fără padding, video full-bleed */
.intro-panel-video {
  background: #000;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* VIDEO HEIGHT CONTROL */

.intro-video-wrapper {
  width: 100%;
  max-height: none;
  height: auto;
  overflow: visible;
  background: #000;
  border-radius: inherit;
}

.intro-video-wrapper video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Tablete verticale și mobile mari */
@media (max-width: 768px) {
  .intro-video-wrapper {
    max-height: 40vh;
  }
}

/* Mobile small (iPhone SE, Android small) */
@media (max-width: 480px) {
  .intro-video-wrapper {
    max-height: 35vh;
  }

  .intro-video-wrapper video {
    object-fit: contain;
  }
}

/* ============================
   Testimonial rotator
   ============================ */

.testimonial-rotator {
  padding: 28px 0 40px;
  background: var(--color-bg);
}

.testimonial-rotator-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px;
}

.testimonial-rotator-card {
  background: var(--color-dark-coffee);
  border-radius: 18px;
  border: 1px solid var(--color-border-soft);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  padding: 16px 20px;
  text-align: center;
}

.testimonial-rotator-label,
.testimonial-rotator-text {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.testimonial-rotator-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.testimonial-rotator-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 760px;
  margin: 0 auto;
}

.testimonial-fade-out {
  opacity: 0;
}

/* dots */

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--color-text-muted);
  background: transparent;
  opacity: 0.4;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.testimonial-dot--active {
  background: var(--color-khaki-beige);
  border-color: var(--color-khaki-beige);
  opacity: 1;
  transform: scale(1.05);
}

/* ------ Buttons in panels (inversate logic) ------ */

.intro-panel .btn.grad {
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
}

/* Hire: bej pe fundal închis */
.intro-panel-hire .btn.grad {
  background: var(--color-khaki-beige);
  color: var(--color-dark-coffee);
  border: none;
}

/* Apply: dark coffee pe fundal bej */
.intro-panel-apply .btn.grad {
  background: var(--color-dark-coffee);
  color: var(--color-khaki-beige);
  border: none;
}

/* ---------- Generic buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-khaki-beige);
  font-size: 0.95rem;
  cursor: pointer;
  background: transparent;
  color: var(--color-khaki-beige);
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.9rem;
}

.btn.ghost {
  background: transparent;
  border-color: var(--color-border-subtle);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn:hover:not(:disabled) {
  filter: brightness(1.05);
  text-decoration: none;
}

/* ---------- Cards (pentru paginile interne) ---------- */

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-1);
  color: var(--color-text);
}

.card.soft {
  background: var(--color-surface-soft);
}

/* ---------- Tables ---------- */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table thead {
  background: rgba(36, 25, 9, 0.85);
}

.table th,
.table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(198, 172, 143, 0.22);
  text-align: left;
}

.table th {
  font-weight: 500;
  color: var(--color-text-muted);
}

.table tr:nth-child(even) td {
  background: rgba(36, 25, 9, 0.4);
}

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  gap: 10px;
}

@media (min-width: 768px) {
  .form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

label {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 4px;
}

input,
select,
textarea {
  width: 100%;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--color-border-subtle);
  background: rgba(36, 25, 9, 0.7);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(198, 172, 143, 0.8);
  outline-offset: 1px;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.input-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-border-subtle);
  background: rgba(36, 25, 9, 0.96);
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
}

/* ---------- Utilities ---------- */

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

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

.text-right {
  text-align: right;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ========== Clients page ========== */

.clients-hero {
  padding: 32px 0 40px;
}

.clients-layout {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

@media (min-width: 900px) {
  .clients-layout {
    grid-template-columns: 1.3fr 1fr;
  }
}

.clients-card {
  border-radius: var(--radius-lg);
}

.clients-card-dark {
  background: var(--color-dark-coffee);
  color: var(--color-khaki-beige);
}

.clients-card-light {
  background: var(--color-khaki-beige);
  color: var(--color-dark-coffee);
}

.clients-card-light .muted {
  color: #4c3b2c;
}

.clients-list {
  list-style: disc;
  margin-left: 1.2rem;
  font-size: 0.95rem;
}

.clients-list li + li {
  margin-top: 4px;
}

.clients-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.btn-on-dark {
  background: var(--color-khaki-beige);
  color: var(--color-dark-coffee);
  border: none;
}

.btn-on-light {
  background: var(--color-dark-coffee);
  color: var(--color-khaki-beige);
  border: none;
}

/* ==========================================================
   Unified single-card layout for WORK / CLIENTS / TRAINING
   ========================================================== */

.single-section {
  padding: 40px 0 60px;
}

.single-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 32px;
  border-radius: 22px;
  background: var(--color-dark-coffee);
  color: var(--color-khaki-beige);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
  border: 1px solid var(--color-border-soft);
}

.single-card h1,
.single-card h2,
.single-card h3 {
  margin-top: 0;
  color: var(--color-khaki-beige);
}

.single-card p {
  margin-bottom: 16px;
  line-height: 1.55;
}

.single-card ul {
  margin: 12px 0 20px 0;
  padding-left: 20px;
  line-height: 1.55;
}

.single-card li {
  margin-bottom: 8px;
}

.single-card .btn {
  display: inline-block;
  background: var(--color-khaki-beige);
  color: var(--color-dark-coffee);
  padding: 10px 22px;
  border-radius: 16px;
  font-weight: 600;
  text-align: center;
  margin-top: 10px;
}

.single-card .btn:hover {
  opacity: 0.9;
}

/* ========== Terms page ========== */

.terms-hero {
  padding: 32px 0 40px;
}

.terms-card {
  margin-top: 18px;
}

.terms-card-light {
  background: var(--color-khaki-beige);
  color: var(--color-dark-coffee);
}

.terms-body {
  font-size: 0.95rem;
  line-height: 1.6;
}

.terms-body h2 {
  font-size: 1rem;
  margin-top: 16px;
  margin-bottom: 4px;
}

.terms-body p {
  margin-bottom: 8px;
}

.terms-updated {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* ========== Hire intake page ========== */

.hire-hero {
  padding: 32px 0 40px;
}

.hire-card {
  margin-top: 18px;
}

.hire-card-dark {
  background: var(--color-dark-coffee);
  color: var(--color-khaki-beige);
}

.hire-card .btn-on-dark {
  width: 100%;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 1rem;
}

/* ========== Candidates page ========== */

.candidates-hero {
  padding: 32px 0 40px;
}

.candidates-card {
  margin-top: 0;
}

.candidates-card-dark {
  background: var(--color-dark-coffee);
  color: var(--color-khaki-beige);
}

.candidates-card h1 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.candidates-card .muted {
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.candidates-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.candidates-card thead {
  background: rgba(36, 25, 9, 0.85);
}

.candidates-card th,
.candidates-card td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(198, 172, 143, 0.22);
  text-align: left;
}

.candidates-card tr:nth-child(even) td {
  background: rgba(36, 25, 9, 0.4);
}

/* ========== Training payment pages ========== */

.payment-summary {
  display: grid;
  gap: 16px;
  margin: 18px 0 10px;
}

@media (min-width: 768px) {
  .payment-summary {
    grid-template-columns: 2fr 1fr;
    align-items: flex-start;
  }
}

.payment-summary h2 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.payment-amount-box {
  border-radius: 16px;
  border: 1px solid var(--color-border-soft);
  background: rgba(0, 0, 0, 0.4);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.payment-amount-box .label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.payment-amount-box .amount {
  font-size: 1.4rem;
  font-weight: 700;
}

.payment-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

/* ============================
   Admin layout & utilities
   ============================ */

body.admin-page {
  background: var(--color-burnt-rose);
  color: var(--color-text);
}

body.admin-page .site-main {
  padding: 0;
}

body.admin-page .container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

body.admin-page .panel {
  background: var(--color-dark-coffee);
  color: var(--color-khaki-beige);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-1);
}

body.admin-page .panel + .panel {
  margin-top: 18px;
}

body.admin-page .panel > header {
  margin-bottom: 10px;
}

body.admin-page .panel > header h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

body.admin-page .panel > header .muted {
  margin: 0;
}

body.admin-page .stack > * + * {
  margin-top: 16px;
}

body.admin-page .grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 18px;
}

@media (min-width: 768px) {
  body.admin-page .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.admin-page .admin-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(36, 25, 9, 0.9);
  border: 1px solid var(--color-border-soft);
}

body.admin-page .admin-tab {
  border: none;
  background: transparent;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--color-text-muted);
}

body.admin-page .admin-tab--active {
  background: var(--color-khaki-beige);
  color: var(--color-dark-coffee);
}

body.admin-page .toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

body.admin-page .toolbar input,
body.admin-page .toolbar select {
  max-width: 260px;
}

body.admin-page .btn {
  background: var(--color-khaki-beige);
  color: var(--color-dark-coffee);
  border-color: transparent;
  font-weight: 600;
}

body.admin-page .btn:hover:not(:disabled) {
  filter: brightness(0.97);
}

body.admin-page .btn-secondary,
body.admin-page .btn-small {
  background: transparent;
  border-color: var(--color-border-soft);
  color: var(--color-khaki-beige);
}

body.admin-page .btn-small {
  padding: 4px 10px;
  font-size: 0.8rem;
}

body.admin-page .btn-secondary:hover,
body.admin-page .btn-small:hover {
  background: rgba(198, 172, 143, 0.12);
}

body.admin-page .table-wrapper {
  margin-top: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-soft);
  overflow: hidden;
}

body.admin-page details {
  background: rgba(36, 25, 9, 0.75);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
}

body.admin-page details > summary {
  cursor: pointer;
  font-weight: 500;
}

body.admin-page details[open] {
  background: rgba(36, 25, 9, 0.95);
}

body.admin-page #cand_history_container div + div {
  margin-top: 4px;
}

/* --- Candidate History Side Panel --- */

.history-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 430px;
  height: 100vh;
  background: rgba(20, 15, 10, 0.97);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 9999;
}

.history-panel.visible {
  transform: translateX(0);
}

.history-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 9998;
}

.history-backdrop.visible {
  opacity: 1;
  pointer-events: all;
}

.hidden {
  display: none;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
}

.history-entry {
  padding: 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  margin-bottom: 0.75rem;
}

.history-entry h4 {
  margin: 0 0 0.25rem;
}

.history-entry small {
  color: #ccc;
  display: block;
  margin-bottom: 0.5rem;
}

/* =========================================================
   CANDIDATE CARDS – Employers View
   ========================================================= */

.candidate-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.candidate-card-header {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.candidate-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 0.75rem;
}

.candidate-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.candidate-avatar-wrap {
  flex-shrink: 0;
}

.candidate-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.candidate-photo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.candidate-header-text h3 {
  margin: 0 0 0.1rem 0;
}

.candidate-bio {
  margin-top: 0.4rem;
}

/* ============================
   Training Packages – page
   ============================ */

.packages-page {
  padding: 32px 0 48px;
  background: var(--color-bg);
  color: var(--color-text);
}

.packages-page__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.packages-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.packages-breadcrumb {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.packages-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
}

.packages-subtitle {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 520px;
  font-size: 0.95rem;
}

/* Toolbar: filtre + search */

.packages-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.packages-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-soft);
  padding: 6px 12px;
  font-size: 0.8rem;
  background: var(--color-surface-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
}

.pill--active {
  background: var(--color-khaki-beige);
  color: var(--color-dark-coffee);
  border-color: transparent;
  font-weight: 600;
}

.packages-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(36, 25, 9, 0.9);
  border: 1px solid var(--color-border-soft);
  font-size: 0.85rem;
}

.packages-search__icon {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.packages-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  min-width: 160px;
  color: var(--color-text);
}

/* Grid + carduri */

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.package-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 16px 18px 14px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--color-border-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  color: var(--color-text);
}

.package-card__header,
.package-card__body,
.package-card__footer {
  position: relative;
  z-index: 1;
}

.package-card__badge-featured {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(198, 172, 143, 0.16);
  color: var(--color-khaki-beige);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 500;
  margin-bottom: 4px;
  border: 1px solid rgba(198, 172, 143, 0.4);
}

.package-card__title-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.package-card__title-row h2 {
  margin: 0;
  font-size: 1rem;
}

.package-card__price {
  font-weight: 600;
  font-size: 0.95rem;
}

.package-card__price small {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.package-card__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.package-card__meta-pill {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-pill);
  padding: 3px 8px;
}

.package-card__body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.package-card__bullets {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.package-card__bullets li {
  margin-bottom: 3px;
}

.package-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.package-card__tagline {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.packages-page .btn-primary {
  background: var(--color-khaki-beige);
  color: var(--color-dark-coffee);
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.packages-page .btn-primary:hover {
  opacity: 0.9;
}

.packages-page .btn-ghost {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .packages-title {
    font-size: 1.3rem;
  }

  .packages-page {
    padding: 24px 0 32px;
  }
}
