/* =====================================================================
   Professional CV Maker - Main Stylesheet
   Theme: "Modern Artistic Studio" — premium SaaS-style redesign of the
   FORM/ADMIN UI ONLY. The generated CV document itself (search for
   "CV PREVIEW / PRINT / PDF STYLE" below) is intentionally left
   untouched so exported/printed CVs keep their original professional
   navy+gold look.
   ===================================================================== */

:root {
  /* ---- Design tokens (spec section 12) ---- */
  --primary: #5b4fe0;
  --primary-dark: #4638c2;
  --primary-light: #efedfc;
  --secondary: #e0a527;      /* warm gold accent, ties back to the CV brand */
  --secondary-light: #fbf1dc;
  --background: #f6f5f2;     /* soft off-white page background */
  --surface: #ffffff;
  --text: #211f2e;           /* deep charcoal, not pure black */
  --muted: #837e93;
  --border: #e9e6f2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(33, 31, 46, .05);
  --shadow-md: 0 10px 28px rgba(33, 31, 46, .09);
  --shadow-lg: 0 18px 44px rgba(33, 31, 46, .14);
  --font-heading: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Kept for backward-compatibility with the CV document styles below —
     do not remove, the print/PDF section still references these names. */
  --primary-blue: #0d3b66;
  --accent-blue: #1a5fb4;
  --light-blue: #eaf2fb;
  --gold-accent: #c9a227;
  --text-dark: #1e293b;
  --border-soft: #dbe4ee;
}

body {
  background-color: var(--background);
  background-image:
    radial-gradient(circle, rgba(33, 31, 46, .05) 1px, transparent 1px),
    radial-gradient(ellipse 640px 520px at 4% -6%, rgba(91, 79, 224, .12), transparent 60%),
    radial-gradient(ellipse 560px 480px at 98% 8%, rgba(224, 165, 39, .13), transparent 62%),
    radial-gradient(ellipse 520px 460px at 12% 96%, rgba(91, 79, 224, .09), transparent 60%),
    radial-gradient(ellipse 480px 420px at 100% 100%, rgba(224, 165, 39, .08), transparent 60%);
  background-size: 22px 22px, auto, auto, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;

    overflow-x: hidden;
}

/* Default (Mobile First): Small screens par full width rahega */
.blog-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px; /* Mobile layout ke liye spacing */
}

/* Tablets (Medium screens - 768px and up) */
@media (min-width: 768px) {
    .blog-container {
        max-width: 720px;
    }
}

/* Laptops / Desktops (Large screens - 992px and up) */
@media (min-width: 992px) {
    .blog-container {
        max-width: 960px; /* Reduced width for desktop */
    }
}

/* Extra Large screens (1200px and up) */
@media (min-width: 1200px) {
    .blog-container {
        max-width: 1000px; /* Max width constraint */
    }
}

/* Android App Only Menu */
.app-only-menu {
    display: none;
}

.app-menu-divider {
    margin: 12px 0;
    border-top: 1px dashed #d1d5db;
}

/* Show only inside Android App */
body.android-app .app-only-menu {
    display: block;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .card-header, .section-title, .stat-card h2 {
  font-family: var(--font-heading);
}

/* Cap the compact/centered content width on large screens (spec section 1) */
@media (min-width: 1200px) {
  .container { max-width: 1120px; }
}
@media (min-width: 1400px) {
  .container { max-width: 1120px; }
}

/* ---------------- Navbar ---------------- */
.main-navbar {
  background: var(--surface);
  box-shadow: 0 1px 0 var(--border), 0 6px 24px rgba(33, 31, 46, .04);
}
.main-navbar .navbar-brand {
  color: var(--text) !important;
  font-weight: 800;
  letter-spacing: -.2px;
}
.main-navbar .navbar-brand i { color: var(--primary); }
.main-navbar .nav-link {
  font-weight: 600;
  font-size: .92rem;
  color: var(--muted) !important;
  transition: color .2s ease;
}
.main-navbar .nav-link:hover { color: var(--primary) !important; }
/* Custom dark toggler icon so it stays visible on the new light navbar
   (the HTML still carries Bootstrap's "navbar-dark" class, so we override
   the icon image directly rather than touch any markup) */
.main-navbar .navbar-toggler { border-color: var(--border); }
.main-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(33,31,46,0.85)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------------- Cards ---------------- */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0 !important;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  padding: 1.1rem 1.4rem 1.1rem 1.6rem;
  position: relative;
}
/* Slim accent indicator instead of a solid color banner — quieter, more premium */
.card-header::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--primary);
}
.card-header i { color: var(--primary); margin-right: .3rem; }
.card-body { padding: 1.6rem; }
.section-title {
  font-weight: 800;
  color: var(--text);
  border-bottom: none;
  position: relative;
  padding-bottom: 10px;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 46px; height: 3px;
  border-radius: 3px;
  background: var(--primary);
}

/* ---------------- Buttons ---------------- */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: .6rem 1.2rem;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { border-radius: 8px; }
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(91, 79, 224, .25);
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 10px 22px rgba(91, 79, 224, .32);
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-secondary { color: var(--muted); border-color: var(--border); }
.btn-outline-secondary:hover { background: var(--text); border-color: var(--text); }

/* ---------------- Form Fields ---------------- */
.form-label {
  font-weight: 600;
  font-size: .85rem;
  color: var(--text);
  letter-spacing: .1px;
  margin-bottom: .35rem;
}
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .62rem .9rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control:hover, .form-select:hover { border-color: #cfc7ea; }
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}
textarea.form-control { min-height: 80px; }
.form-text { color: var(--muted); }

/* ---------------- Dynamic Rows ---------------- */
.dynamic-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.1rem 1rem;
  margin-bottom: 1rem;
  background: #fbfaff;
  position: relative;
  transition: border-color .2s ease, box-shadow .2s ease;
  animation: cvFadeSlideIn .35s ease;
}
.dynamic-row:hover { border-color: #d9d2f3; box-shadow: 0 6px 16px rgba(91, 79, 224, .07); }
.remove-row-btn { position: absolute; top: 8px; right: 8px; border-radius: 8px; }

@keyframes cvFadeSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------------- Dashboard Stat Cards ---------------- */
.stat-card {
  border-radius: var(--radius);
  color: #fff;
  padding: 1.6rem;
  box-shadow: var(--shadow-md);
}
.stat-card.bg-total { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.stat-card.bg-today { background: linear-gradient(135deg, var(--secondary), #b9860f); }
.stat-card h2 { font-weight: 800; }

/* ---------------- Modern Table ---------------- */
.table-modern thead {
  background: var(--primary);
  color: #fff;
}
.table-modern tbody tr { transition: background-color .15s ease; }
.table-modern tbody tr:hover { background: var(--primary-light); }
.table-modern td, .table-modern th { vertical-align: middle; border-color: var(--border); }

/* ---------------- Profile Image ---------------- */
.profile-pic-preview {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 3px var(--primary), var(--shadow-md);
  background: #fff;
}

/* ---------------- Alerts ---------------- */
.alert {
  border-radius: var(--radius-sm);
  border: none;
  box-shadow: var(--shadow-sm);
}

/* ---------------- Footer ---------------- */
.main-footer { color: var(--muted); border-top: 1px solid var(--border); }
.footer-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text);
  font-size: 1rem;
}
.footer-brand i { color: var(--primary); }
.footer-credit { color: var(--muted); }
.footer-credit-link {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-credit-link:hover { color: var(--secondary); text-decoration: underline; }
/* ---------------- Fixed floating "Buy me a coffee" button ---------------- */
.coffee-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  transition: transform .2s ease, background .2s ease;
  animation: coffeeWiggle 4.5s ease-in-out infinite;
}
/* Expanding pulse ring behind the button, drawing the eye without being loud */
.coffee-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--secondary);
  z-index: -1;
  animation: coffeePulse 2.2s ease-out infinite;
}
.coffee-fab:hover {
  transform: scale(1.15);
  background: #b9860f;
  color: #fff;
  animation-play-state: paused;
}
@keyframes coffeePulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}
@keyframes coffeeWiggle {
  0%, 82%, 100% { transform: rotate(0deg); }
  85%  { transform: rotate(-12deg); }
  88%  { transform: rotate(10deg); }
  91%  { transform: rotate(-8deg); }
  94%  { transform: rotate(4deg); }
  97%  { transform: rotate(0deg); }
}
@media screen and (max-width: 576px) {
  .coffee-fab { width: 46px; height: 46px; font-size: 1.2rem; bottom: 14px; right: 14px; }
}

/* ---------------- Coffee support modal ---------------- */
.coffee-modal-emoji { font-size: 2.6rem; }

/* =====================================================================
   LANDING PAGE — Basic vs Advanced choice
   ===================================================================== */
.landing-hero {
  padding: 4rem 1rem 2.5rem;
}
.landing-title {
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--text);
  opacity: 0;
  animation: landingFadeUp .7s ease forwards;
}
.landing-title-accent {
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: landingShine 4s linear infinite;
}
.landing-sub {
  color: var(--muted);
  font-size: 1.1rem;
  opacity: 0;
  animation: landingFadeUp .7s ease .15s forwards;
}

@keyframes landingFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes landingShine {
  to { background-position: -200% center; }
}

.landing-choice-row { margin-bottom: 3rem; }
.landing-choice-card {
  display: block;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.75rem;
  text-align: center;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  opacity: 0;
  animation: landingFadeUp .7s ease .3s forwards;
  height: 100%;
}
.landing-choice-card:hover {
  transform: translateY(-8px) scale(1.02)
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  color: var(--text);
}
.landing-choice-card.landing-choice-advanced { animation-delay: .45s; }
.landing-choice-icon {
  width: 72px; height: 72px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  transition: transform .25s ease;
}
.landing-choice-card:hover .landing-choice-icon { transform: scale(1.1) rotate(-4deg); }
.landing-choice-card h3 { font-weight: 800; margin-bottom: .5rem; }
.landing-choice-card p { color: var(--muted); font-size: .92rem; margin-bottom: 1.25rem; }
.landing-choice-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; color: var(--primary);
}

@media screen and (max-width: 576px) {
  .landing-hero { padding: 2.5rem 1rem 1.5rem; }
  .landing-title { font-size: 1.7rem; }
  .landing-sub { font-size: .95rem; }
  .landing-choice-card { padding: 1.6rem 1.2rem; }
}

/* =====================================================================
   CV BUILDER PAGE EXTRAS — hero banner, stepper, photo upload box
   (used only on add_cv.php / edit_cv.php)
   ===================================================================== */

/* Narrower centered container just for the builder pages (spec: "width kam karo") */
.cv-builder-narrow {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Marketing hero (cream band above the purple stepper hero) ---- */
.cv-marketing-hero {
  /*background-color: #f3efe6; */
  background-image: radial-gradient(circle, rgba(33, 31, 46, .06) 1px, transparent 1px);
  background-size: 20px 20px;
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  overflow: hidden;
}
.cv-marketing-hero h1 {
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--text);
  margin-bottom: 1rem;
}
.cv-marketing-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---- Diagonal green hero banner ---- */
.cv-hero {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 2.75rem 1rem 6rem;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
  margin-bottom: -4.5rem;
}
.cv-hero h1 {
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 1.9rem;
}
.cv-content-wrap { position: relative; z-index: 2; }

/* ---- Decorative stepper (visual only — the form stays one scrollable page) ---- */
.cv-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: .25rem;
  max-width: 520px;
  margin: 0 auto;
}
.cv-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  width: 110px;
}
.cv-step-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .22);
  font-size: 1.25rem;
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}
.cv-step.active .cv-step-icon {
  background: #fff;
  color: var(--primary);
  transform: scale(1.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}
.cv-step-label {
  font-size: .82rem;
  font-weight: 600;
  opacity: .8;
  transition: opacity .3s ease;
}
.cv-step.active .cv-step-label { opacity: 1; }
.cv-step-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, .35);
  margin-top: 26px;
  max-width: 70px;
}

/* ---- Photo upload box (dashed square with camera icon) ---- */
.pi-photo-row {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}
.photo-upload-wrap { flex-shrink: 0; width: 150px; }
.photo-upload-box {
  position: relative;
  display: flex;
  width: 150px;
  height: 150px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--muted);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.photo-upload-box:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.photo-upload-placeholder {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  text-align: center;
  padding: 0 .6rem;
}
.photo-upload-placeholder i { font-size: 1.7rem; }
.photo-upload-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pi-photo-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

@media screen and (max-width: 576px) {
  .cv-marketing-hero { padding: 2.5rem 1rem 2rem; }
  .cv-marketing-hero h1 { font-size: 1.6rem; }
  .cv-marketing-hero p { font-size: .95rem; }

  .cv-hero { padding: 2rem 1rem 5rem; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
  .cv-hero h1 { font-size: 1.5rem; }
  .cv-step { width: 78px; }
  .cv-step-label { font-size: .72rem; }
  .cv-step-icon { width: 42px; height: 42px; font-size: 1.05rem; }
  .cv-step-line { margin-top: 21px; }

  .pi-photo-row { flex-direction: column; align-items: center; text-align: center; }
  .photo-upload-wrap { margin: 0 auto; }
}

/* =====================================================================
   CV PREVIEW / PRINT / PDF STYLE (A4 Layout)
   ===================================================================== */
.cv-page {
  width: 100%;
  max-width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  background: #fff;
  padding: 20mm 14mm 15mm;
  box-shadow: 0 0 20px rgba(0,0,0,.1);
  color: #1e293b;
  box-sizing: border-box;
  /* Formatting tab controls (Advanced Builder) — fall back to the
     original fixed values so standard/legacy CVs render identically. */
  line-height: var(--cv-line-height, 1.5);
  letter-spacing: var(--cv-letter-spacing, normal);
  font-size: var(--cv-font-size, 13px);
  font-family: var(--cv-font-family, inherit);
}
.cv-header {
  border-bottom: 4px solid var(--cv-accent, #0d3b66);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
/* Clearfix so the header container wraps its floated photo + text */
.cv-header:after {
  content: "";
  display: table;
  clear: both;
}
.cv-header img {
  float: left;
  width: 110px;
  height: 110px;
  border-radius: 8px;
  border: 3px solid var(--cv-accent, #0d3b66);
  margin-right: 20px;
}
.cv-header .cv-header-text {
  overflow: hidden; /* keeps this block from wrapping under the floated photo */
}
.cv-header h1 {
  font-size: calc(var(--cv-font-size, 13px) * 2.0);
  color: var(--cv-accent, #0d3b66);
  font-weight: 700;
  margin: 0;
}
.cv-header .cv-subtitle {
  color: var(--cv-accent-gold, #c9a227);
  font-weight: 600;
  font-size: calc(var(--cv-font-size, 13px) * 1.0769);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.cv-contact-line {
  font-size: calc(var(--cv-font-size, 13px) * 0.9615);
  color: #475569;
}
.cv-section {
  margin-bottom: var(--cv-section-gap, 16px);
}
.cv-section:after {
  content: "";
  display: table;
  clear: both;
}
.cv-section-title {
  background: var(--cv-accent, #0d3b66);
  color: #ffffff;
  font-size: calc(var(--cv-font-size, 13px) * 1.0);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.cv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: calc(var(--cv-font-size, 13px) * 0.9615);
}
.cv-table th, .cv-table td {
  border: 1px solid #dbe4ee;
  padding: 6px 8px;
  text-align: left;
}
.cv-table th {
  background: var(--cv-accent-soft, #eaf2fb);
  color: var(--cv-accent, #0d3b66);
}
.cv-entry-title { font-weight: 700; color: var(--cv-accent, #0d3b66); font-size: calc(var(--cv-font-size, 13px) * 1.0385); }
.cv-entry-sub { font-size: calc(var(--cv-font-size, 13px) * 0.9231); color: #475569; font-style: italic; }
.cv-entry-date { font-size: calc(var(--cv-font-size, 13px) * 0.8846); color: var(--cv-accent-gold, #c9a227); font-weight: 600; float: right; }
.cv-experience-entry:after { content: ""; display: table; clear: both; }
.cv-skill-badge {
  display: inline-block;
  background: var(--cv-accent-soft, #eaf2fb);
  color: var(--cv-accent, #0d3b66);
  border: 1px solid var(--cv-accent, #1a5fb4);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: calc(var(--cv-font-size, 13px) * 0.8846);
  margin: 2px 4px 2px 0;
}
/* Two-column layout using CSS table display (Dompdf renders this reliably,
   unlike flexbox which it does NOT support) */
.cv-two-col {
  display: table;
  width: 100%;
  table-layout: fixed;
}
.cv-two-col .cv-col {
  display: table-cell;
  width: 50%;
  vertical-align: top;
  padding-right: 14px;
}
.cv-two-col .cv-col:last-child { padding-right: 0; padding-left: 14px; }
.cv-reference-item {
  display: inline-block;
  width: 48%;
  font-size: calc(var(--cv-font-size, 13px) * 0.9615);
  margin-bottom: 6px;
  vertical-align: top;
}

/* =====================================================================
   TEMPLATE 2 — "Modern Minimal" (single column, generous whitespace)
   Same Dompdf-safe rules as Template 1: no flexbox, literal hex colors,
   float/table-display only, plain text labels (no emoji/unicode icons).
   ===================================================================== */
.t2-header:after { content: ""; display: table; clear: both; }
.t2-header { margin-bottom: 22px; }
.t2-header img {
  float: left;
  width: 92px; height: 92px;
  border-radius: 50%;
  margin-right: 20px;
}
.t2-header-text { overflow: hidden; padding-top: 4px; }
.t2-header h1 { font-size: calc(var(--cv-font-size, 13px) * 2.0769); font-weight: 700; color: #16181d; margin: 0 0 3px; letter-spacing: -.3px; }
.t2-subtitle { color: var(--cv-accent, #0f9d78); font-weight: 600; font-size: calc(var(--cv-font-size, 13px) * 0.9615); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }
.t2-contact { font-size: calc(var(--cv-font-size, 13px) * 0.9231); color: #6b7280; line-height: 1.7; }

.t2-section { margin-bottom: var(--cv-section-gap, 18px); }
.t2-section:after { content: ""; display: table; clear: both; }
.t2-section-title {
  font-size: calc(var(--cv-font-size, 13px) * 1.0); font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
  color: #16181d; padding-bottom: 6px; margin-bottom: 10px;
  border-bottom: 2px solid var(--cv-accent, #0f9d78);
}
.t2-table { width: 100%; border-collapse: collapse; font-size: calc(var(--cv-font-size, 13px) * 0.9615); }
.t2-table th, .t2-table td { padding: 5px 8px 5px 0; text-align: left; vertical-align: top; }
.t2-table th { color: #6b7280; font-weight: 600; width: 24%; }

.t2-entry { margin-bottom: 10px; }
.t2-entry:after { content: ""; display: table; clear: both; }
.t2-entry-date { float: right; font-size: calc(var(--cv-font-size, 13px) * 0.8462); color: var(--cv-accent, #0f9d78); font-weight: 600; }
.t2-entry-title { font-weight: 700; font-size: calc(var(--cv-font-size, 13px) * 1.0385); color: #16181d; }
.t2-entry-sub { font-size: calc(var(--cv-font-size, 13px) * 0.9231); color: #6b7280; }
.t2-entry-desc { font-size: calc(var(--cv-font-size, 13px) * 0.9231); color: #374151; margin-top: 3px; }

.t2-badge {
  display: inline-block;
  border: 1px solid #d7d3ea;
  color: #16181d;
  border-radius: 3px;
  padding: 3px 10px;
  font-size: calc(var(--cv-font-size, 13px) * 0.8462);
  margin: 2px 5px 2px 0;
}
.t2-two-col { display: table; width: 100%; table-layout: fixed; }
.t2-two-col .t2-col { display: table-cell; width: 50%; vertical-align: top; padding-right: 16px; }
.t2-two-col .t2-col:last-child { padding-right: 0; padding-left: 16px; }
.t2-ref-item { display: inline-block; width: 48%; font-size: calc(var(--cv-font-size, 13px) * 0.9231); margin-bottom: 6px; vertical-align: top; }

/* =====================================================================
   TEMPLATE 3 — "Two-Tone Sidebar" (dark left column + white main area)
   ===================================================================== */
.t3-wrap { display: table; width: 100%; table-layout: fixed; }
.t3-sidebar {
  display: table-cell;
  width: 34%;
  background: var(--cv-accent-dark, #2b2d42);
  color: #fff;
  padding: 40px 18px 26px;
  vertical-align: top;
}
.t3-main { display: table-cell; width: 66%; padding: 40px 24px 26px; vertical-align: top; background: #fff; }

.t3-photo-wrap { text-align: center; margin-bottom: 16px; }
.t3-photo-wrap img { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--cv-accent, #ef8354); }
.t3-name { text-align: center; font-size: calc(var(--cv-font-size, 13px) * 1.4615); font-weight: 700; color: #fff; margin-bottom: 2px; }
.t3-title { text-align: center; font-size: calc(var(--cv-font-size, 13px) * 0.8462); color: var(--cv-accent, #ef8354); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 18px; }

.t3-sb-section { margin-bottom: var(--cv-section-gap, 16px); }
.t3-sb-section:after { content: ""; display: table; clear: both; }
.t3-sb-title {
  font-size: calc(var(--cv-font-size, 13px) * 0.8846); font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--cv-accent, #ef8354); margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid #454864;
}
.t3-sb-line { font-size: calc(var(--cv-font-size, 13px) * 0.8462); color: #d7d8e4; margin-bottom: 5px; line-height: 1.5; }
.t3-sb-badge {
  display: inline-block; background: #454864; color: #fff;
  border-radius: 3px; padding: 2px 8px; font-size: calc(var(--cv-font-size, 13px) * 0.8077); margin: 2px 4px 2px 0;
}

.t3-main h2.t3-main-title { font-size: calc(var(--cv-font-size, 13px) * 1.6923); font-weight: 700; color: var(--cv-accent-dark, #2b2d42); margin: 0 0 18px; }
.t3-main-section { margin-bottom: var(--cv-section-gap, 16px); }
.t3-main-section:after { content: ""; display: table; clear: both; }
.t3-main-section-title {
  font-size: calc(var(--cv-font-size, 13px) * 1.0); font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--cv-accent-dark, #2b2d42); margin-bottom: 8px;
}
.t3-entry { margin-bottom: 10px; }
.t3-entry:after { content: ""; display: table; clear: both; }
.t3-entry-date { float: right; font-size: calc(var(--cv-font-size, 13px) * 0.8077); color: var(--cv-accent, #ef8354); font-weight: 600; }
.t3-entry-title { font-weight: 700; font-size: calc(var(--cv-font-size, 13px) * 1.0); color: var(--cv-accent-dark, #2b2d42); }
.t3-entry-sub { font-size: calc(var(--cv-font-size, 13px) * 0.8846); color: #6b7280; }
.t3-entry-desc { font-size: calc(var(--cv-font-size, 13px) * 0.8846); color: #374151; margin-top: 3px; }
.t3-table { width: 100%; border-collapse: collapse; font-size: calc(var(--cv-font-size, 13px) * 0.8846); }
.t3-table th, .t3-table td { padding: 4px 6px 4px 0; text-align: left; }
.t3-table th { color: #6b7280; font-weight: 600; width: 30%; }

/* Wider container just for the Advanced Builder page (needs 3 columns) */
.builder-page .container { max-width: 1480px; }

/* =====================================================================
   ADVANCED BUILDER — 3-column layout (templates / live preview / form)
   ===================================================================== */
.builder-shell {
  display: table;
  width: 100%;
  table-layout: fixed;
  border-spacing: 18px 0;
}
.builder-col { display: table-cell; vertical-align: top; }
.builder-col-templates { width: 230px; }
.builder-col-preview { width: auto; }
.builder-col-form { width: 400px; }

.builder-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .8rem 1.1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.builder-toolbar .builder-title { font-weight: 800; font-family: var(--font-heading); }

/* ---- Templates / Formatting tabs (left column) ---- */
.builder-tabs { border-bottom: 1px solid var(--border); }
.builder-tabs .nav-link {
  color: var(--muted);
  font-weight: 600;
  font-size: .85rem;
  border: none;
  border-bottom: 2px solid transparent;
  padding: .5rem .25rem;
  margin-right: 1rem;
}
.builder-tabs .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: transparent;
}
.formatting-control .form-range { accent-color: var(--primary); }
.formatting-control label span:last-child { font-weight: 700; color: var(--primary); }
.theme-swatch-row { display: flex; gap: .5rem; }
.theme-swatch {
  width: 32px; height: 32px; border-radius: 50%; display: inline-block;
  cursor: pointer; border: 3px solid transparent; transition: transform .15s ease, border-color .15s ease;
}
.theme-swatch:hover { transform: scale(1.1); }
.theme-swatch.active { border-color: var(--text); transform: scale(1.1); }

.template-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .6rem;
  cursor: pointer;
  background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
  text-align: center;
}
.template-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.template-card.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

/* Templates tab: 2-per-row grid with its own internal scrollbar, so a
   growing template collection never makes the whole builder page taller.
   IMPORTANT: display:grid is scoped to .active — Bootstrap's tab-pane
   visibility is controlled by adding/removing that class, and an
   unscoped #tabTemplates{display:grid} rule (higher specificity than
   Bootstrap's .tab-pane{display:none}) was forcing this pane to stay
   visible even when the Formatting tab was selected, so both ended up
   stacked on top of each other instead of properly toggling. */
#tabTemplates.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
#tabTemplates {
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  padding-right: 4px;
}
#tabFormatting { max-height: calc(100vh - 260px); overflow-y: auto; padding-right: 4px; }
.template-card .template-thumb {
  width: 100%;
  height: 90px;
  border-radius: 6px;
  margin-bottom: .5rem;
  position: relative;
  overflow: hidden;
}
.template-card .template-name { font-size: .78rem; font-weight: 700; color: var(--text); }
/* Mini illustrative thumbnails for each design (pure CSS, no image files needed) */
.thumb-t1 { background: linear-gradient(#0d3b66 0 22%, #eaf2fb 22% 100%); }
.thumb-t1:after { content:""; position:absolute; left:10%; top:32%; width:80%; height:6px; background:#c9c2e8; }
.thumb-t2 { background: #fff; border: 1px solid var(--border); }
.thumb-t2:after { content:""; position:absolute; left:12%; top:15%; width:76%; height:8px; border-bottom:2px solid #0f9d78; }
.thumb-t3 { background: linear-gradient(90deg, #2b2d42 0 36%, #fff 36% 100%); }
.thumb-t4 { background: #fdfcf8; border: 1px solid var(--border); }
.thumb-t4:after { content:""; position:absolute; left:20%; top:14%; width:60%; height:6px; background:#0d3b66; }
.thumb-t5 { background: linear-gradient(#0d3b66 0 30%, #fff 30% 100%); }
.thumb-t6 { background: #fff; border: 1px solid var(--border); }
.thumb-t6:after { content:""; position:absolute; left:14%; top:15%; bottom:15%; width:2px; background:#eaf2fb; box-shadow: 6px 0 0 #0d3b66, 6px 20px 0 #0d3b66, 6px 40px 0 #0d3b66; }

.builder-preview-frame {
  background: #e7e5f0;
  border-radius: var(--radius);
  padding: 1.25rem;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}
.builder-preview-frame .cv-page { box-shadow: var(--shadow-lg); }

.builder-form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}
.builder-accordion .accordion-button { font-weight: 700; font-size: .92rem; }
.builder-accordion .accordion-button:not(.collapsed) { color: var(--primary); background: var(--primary-light); }
.builder-accordion .accordion-button:focus { box-shadow: none; }

.builder-drag-handle {
  cursor: grab;
  color: var(--muted);
  padding: 0 .4rem;
}
.dynamic-row.dragging { opacity: .4; }
.dynamic-row.drag-over { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }

/* Mobile tab switcher — hidden on desktop, shown only when the 3-column
   layout collapses to stacked panels below. */
.builder-mobile-switch { display: none; }

@media screen and (max-width: 1200px) {
  .builder-mobile-switch {
    display: flex;
    gap: .4rem;
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--background);
    padding: .5rem 0;
  }
  .builder-mobile-switch button {
    flex: 1;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    border-radius: var(--radius-sm);
    padding: .55rem .5rem;
    font-size: .82rem;
    font-weight: 600;
    transition: all .2s ease;
  }
  .builder-mobile-switch button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
  }

  .builder-shell { display: block; }
  .builder-col { display: block; width: 100% !important; margin-bottom: 1.25rem; }
  .builder-col-templates { width: 100% !important; }
  #tabTemplates { grid-template-columns: 1fr 1fr 1fr; max-height: none; overflow: visible; }

  /* The fixed-height internal-scroll panels only make sense in the desktop
     3-column layout. Stacked on mobile/tablet, they must flow naturally in
     the page's own scroll — otherwise sections get squeezed into a tiny
     scrollable box and effectively "disappear" from view. */
  .builder-preview-frame, .builder-form-panel {
    max-height: none;
    overflow: visible;
  }

  /* Only one panel visible at a time on mobile — controlled by the
     switcher buttons above via a class toggled in builder.js. */
  .builder-shell.mobile-show-form .builder-col-preview,
  .builder-shell.mobile-show-form .builder-col-templates { display: none; }

  .builder-shell.mobile-show-preview .builder-col-form,
  .builder-shell.mobile-show-preview .builder-col-templates { display: none; }

  .builder-shell.mobile-show-templates .builder-col-form,
  .builder-shell.mobile-show-templates .builder-col-preview { display: none; }
}

/* =====================================================================
   TEMPLATE 4 — "Elegant Serif"
   ===================================================================== */
.t4-page { font-family: var(--cv-font-family, Georgia, 'Times New Roman', serif); color: #2b2b2b; }
.t4-header { text-align: center; margin-bottom: 14px; }
.t4-photo { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; margin-bottom: 10px; }
.t4-name { font-size: calc(var(--cv-font-size, 13px) * 1.8462); letter-spacing: 3px; font-weight: 700; margin: 0 0 8px; color: var(--cv-accent-dark, #1e293b); }
.t4-rule { height: 2px; background: var(--cv-accent, #0d3b66); width: 60px; margin: 0 auto 8px; }
.t4-contact { font-size: calc(var(--cv-font-size, 13px) * 0.8846); color: #555; }
.t4-section { margin-bottom: var(--cv-section-gap, 16px); }
.t4-section-title {
  font-size: calc(var(--cv-font-size, 13px) * 0.9615); font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  color: var(--cv-accent, #0d3b66); border-bottom: 1px solid #ccc; padding-bottom: 4px; margin-bottom: 8px;
}
.t4-entry { margin-bottom: 10px; }
.t4-entry-row { display: table; width: 100%; }
.t4-entry-title { font-weight: 700; font-size: calc(var(--cv-font-size, 13px) * 1.0); }
.t4-entry-date { float: right; font-size: calc(var(--cv-font-size, 13px) * 0.8462); font-style: italic; color: #666; }
.t4-text { font-size: calc(var(--cv-font-size, 13px) * 0.9231); line-height: 1.6; color: #3a3a3a; margin-top: 3px; }

/* =====================================================================
   TEMPLATE 5 — "Bold Header Band"
   ===================================================================== */
.t5-page { font-family: var(--cv-font-family, 'Segoe UI', Arial, sans-serif); color: #22232b; }
.t5-band {
  background: var(--cv-accent, #0d3b66);
  color: #fff;
  padding: 24px 26px;
  display: table; width: 100%; box-sizing: border-box;
}
.t5-photo { width: 76px; height: 76px; object-fit: cover; border-radius: 50%; border: 3px solid rgba(255,255,255,.6); display: table-cell; vertical-align: middle; }
.t5-band-text { display: table-cell; vertical-align: middle; padding-left: 18px; }
.t5-band-text h1 { font-size: calc(var(--cv-font-size, 13px) * 1.8462); font-weight: 800; margin: 0 0 6px; }
.t5-contact { font-size: calc(var(--cv-font-size, 13px) * 0.8846); opacity: .95; }
.t5-body { padding: 22px 26px; }
.t5-section { margin-bottom: var(--cv-section-gap, 16px); }
.t5-section-title {
  font-size: calc(var(--cv-font-size, 13px) * 0.9615); font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--cv-accent, #0d3b66); margin-bottom: 8px;
}
.t5-entry { margin-bottom: 10px; }
.t5-entry:after { content: ""; display: table; clear: both; }
.t5-entry-date { float: right; font-size: calc(var(--cv-font-size, 13px) * 0.8462); color: var(--cv-accent, #0d3b66); font-weight: 600; }
.t5-entry-title { font-weight: 700; font-size: calc(var(--cv-font-size, 13px) * 1.0); }
.t5-entry-sub { font-size: calc(var(--cv-font-size, 13px) * 0.8846); color: #666; }
.t5-text { font-size: calc(var(--cv-font-size, 13px) * 0.9231); color: #3a3a3a; margin-top: 3px; }
.t5-two-col { display: table; width: 100%; table-layout: fixed; }
.t5-col { display: table-cell; width: 50%; vertical-align: top; padding-right: 14px; }
.t5-col:last-child { padding-right: 0; padding-left: 14px; }
.t5-badge {
  display: inline-block; background: var(--cv-accent-soft, #eaf2fb); color: var(--cv-accent, #0d3b66);
  border-radius: 20px; padding: 3px 12px; font-size: calc(var(--cv-font-size, 13px) * 0.8462); margin: 2px 4px 2px 0;
}

/* =====================================================================
   TEMPLATE 6 — "Compact Timeline"
   ===================================================================== */
.t6-page { font-family: var(--cv-font-family, 'Segoe UI', Arial, sans-serif); color: #22232b; }
.t6-header { display: table; width: 100%; margin-bottom: 16px; }
.t6-photo { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; display: table-cell; vertical-align: middle; }
.t6-header > div:last-child { display: table-cell; vertical-align: middle; padding-left: 16px; }
.t6-name { font-size: calc(var(--cv-font-size, 13px) * 1.6923); font-weight: 800; margin: 0 0 4px; color: var(--cv-accent-dark, #1e293b); }
.t6-contact { font-size: calc(var(--cv-font-size, 13px) * 0.8846); color: #666; }
.t6-section { margin-bottom: var(--cv-section-gap, 16px); }
.t6-section-title {
  font-size: calc(var(--cv-font-size, 13px) * 0.9615); font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--cv-accent, #0d3b66); margin-bottom: 10px;
}
.t6-text { font-size: calc(var(--cv-font-size, 13px) * 0.9231); color: #3a3a3a; margin-top: 3px; }
.t6-timeline { position: relative; padding-left: 16px; border-left: 2px solid var(--cv-accent-soft, #eaf2fb); }
.t6-tl-item { position: relative; margin-bottom: 12px; }
.t6-tl-dot {
  position: absolute; left: -21px; top: 3px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--cv-accent, #0d3b66);
}
.t6-tl-date { font-size: calc(var(--cv-font-size, 13px) * 0.8077); color: var(--cv-accent, #0d3b66); font-weight: 600; text-transform: uppercase; }
.t6-tl-title { font-weight: 700; font-size: calc(var(--cv-font-size, 13px) * 1.0); }
.t6-tl-sub { font-size: calc(var(--cv-font-size, 13px) * 0.8846); color: #666; }
.t6-badge {
  display: inline-block; background: var(--cv-accent-soft, #eaf2fb); color: var(--cv-accent, #0d3b66);
  border: 1px solid var(--cv-accent, #0d3b66); border-radius: 4px; padding: 3px 10px; font-size: calc(var(--cv-font-size, 13px) * 0.8462); margin: 2px 4px 2px 0;
}

/* ---- Template 7: Two-Column Grid ---- */
.t7-page { font-family: var(--cv-font-family, 'Segoe UI', Arial, sans-serif); color: #22232b; }
.t7-table { display: table; width: 100%; table-layout: fixed; }
.t7-sidebar {
  display: table-cell; width: 32%; vertical-align: top;
  background: var(--cv-accent-soft, #eaf2fb); padding: 20mm 10mm 10mm 14mm;
  box-sizing: border-box;
}
.t7-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 12px; border: 3px solid #fff; }
.t7-name { font-size: calc(var(--cv-font-size, 13px) * 1.4615); font-weight: 800; color: var(--cv-accent-dark, #0d3b66); margin: 0 0 16px; }
.t7-sb-section { margin-bottom: var(--cv-section-gap, 16px); }
.t7-sb-title { font-size: calc(var(--cv-font-size, 13px) * 0.8462); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--cv-accent, #0d3b66); margin-bottom: 6px; border-bottom: 1px solid rgba(0,0,0,.1); padding-bottom: 3px; }
.t7-sb-line { font-size: calc(var(--cv-font-size, 13px) * 0.8846); color: #333; margin-bottom: 3px; word-break: break-word; }
.t7-main { display: table-cell; width: 68%; vertical-align: top; padding: 20mm 14mm 10mm 10mm; box-sizing: border-box; }
.t7-main-section { margin-bottom: var(--cv-section-gap, 16px); }
.t7-main-title {
  font-size: calc(var(--cv-font-size, 13px) * 1.0); font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--cv-accent-dark, #0d3b66); border-bottom: 2px solid var(--cv-accent, #0d3b66);
  padding-bottom: 4px; margin-bottom: 10px;
}
.t7-entry { margin-bottom: 10px; }
.t7-entry-date { float: right; font-size: calc(var(--cv-font-size, 13px) * 0.8077); color: var(--cv-accent, #0d3b66); font-weight: 600; }
.t7-entry-title { font-weight: 700; font-size: calc(var(--cv-font-size, 13px) * 1.0); }
.t7-entry-sub { font-size: calc(var(--cv-font-size, 13px) * 0.8846); color: #666; font-style: italic; }
.t7-entry-desc { font-size: calc(var(--cv-font-size, 13px) * 0.8846); margin-top: 3px; }
.thumb-t7 { background: linear-gradient(90deg, #eaf2fb 0 32%, #fff 32% 100%); border: 1px solid var(--border); }

/* ---- Template 8: Monochrome Corporate ---- */
.t8-page { font-family: var(--cv-font-family, Georgia, 'Times New Roman', serif); color: #1a1a1a; }
.t8-header { display: table; width: 100%; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 3px solid #1a1a1a; }
.t8-photo { display: table-cell; width: 70px; height: 70px; object-fit: cover; border-radius: 4px; vertical-align: middle; }
.t8-header > div:last-child { display: table-cell; vertical-align: middle; padding-left: 14px; }
.t8-name { font-size: calc(var(--cv-font-size, 13px) * 1.8462); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 4px; }
.t8-contact { font-size: calc(var(--cv-font-size, 13px) * 0.8462); color: #444; }
.t8-section { margin-bottom: var(--cv-section-gap, 16px); }
.t8-section-title {
  font-size: calc(var(--cv-font-size, 13px) * 0.9231); font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  border-bottom: 1px solid var(--cv-accent, #1a1a1a); padding-bottom: 3px; margin-bottom: 8px;
}
.t8-entry { margin-bottom: 10px; }
.t8-entry-date { float: right; font-size: calc(var(--cv-font-size, 13px) * 0.8462); font-style: italic; color: #444; }
.t8-entry-title { font-weight: 700; font-size: calc(var(--cv-font-size, 13px) * 1.0); }
.t8-entry-desc { font-size: calc(var(--cv-font-size, 13px) * 0.8846); margin-top: 3px; }
.thumb-t8 { background: #fff; border: 2px solid #1a1a1a; }
.thumb-t8:after { content:""; position:absolute; left:15%; top:18%; right:15%; height:2px; background:#1a1a1a; }

/* ---- Template 9: Tech Developer ---- */
.t9-page { font-family: var(--cv-font-family, 'Consolas', 'Courier New', monospace); color: #1e2124; background: #fff; }
.t9-header { display: table; width: 100%; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--cv-accent, #0d3b66); }
.t9-photo { display: table-cell; width: 64px; height: 64px; border-radius: 8px; object-fit: cover; vertical-align: middle; }
.t9-header > div:last-child { display: table-cell; vertical-align: middle; padding-left: 14px; }
.t9-tag { font-size: calc(var(--cv-font-size, 13px) * 0.8462); color: var(--cv-accent, #0d3b66); font-weight: 700; }
.t9-name { font-size: calc(var(--cv-font-size, 13px) * 1.6923); font-weight: 700; margin: 2px 0 4px; font-family: var(--cv-font-family, 'Segoe UI', Arial, sans-serif); }
.t9-contact { font-size: calc(var(--cv-font-size, 13px) * 0.8462); color: #555; }
.t9-section { margin-bottom: var(--cv-section-gap, 16px); }
.t9-section-title { font-size: calc(var(--cv-font-size, 13px) * 0.9615); font-weight: 700; color: var(--cv-accent, #0d3b66); margin-bottom: 8px; }
.t9-badge {
  display: inline-block; background: var(--cv-accent-soft, #eaf2fb); color: var(--cv-accent-dark, #0d3b66);
  border-radius: 4px; padding: 3px 9px; font-size: calc(var(--cv-font-size, 13px) * 0.8462); margin: 2px 4px 2px 0;
}
.t9-badge-alt { background: #f1f1f1; color: #444; }
.t9-entry { margin-bottom: 10px; font-family: var(--cv-font-family, 'Segoe UI', Arial, sans-serif); }
.t9-entry-row { margin-bottom: 4px; }
.t9-entry-date { float: right; font-size: calc(var(--cv-font-size, 13px) * 0.8077); color: #777; font-family: var(--cv-font-family, 'Consolas', monospace); }
.t9-entry-title { font-weight: 700; font-size: calc(var(--cv-font-size, 13px) * 1.0); }
.t9-at { color: var(--cv-accent, #0d3b66); }
.t9-entry-desc { font-size: calc(var(--cv-font-size, 13px) * 0.8846); margin-top: 3px; font-family: var(--cv-font-family, 'Segoe UI', Arial, sans-serif); }
.thumb-t9 { background: #1e2124; }
.thumb-t9:after { content:""; position:absolute; left:12%; top:20%; width:76%; height:8px; background:#0d3b66; border-radius:4px; box-shadow: 0 16px 0 -3px #333, 0 28px 0 -3px #333; }

/* ---- Template 10: Timeline Resume ---- */
.t10-page { font-family: var(--cv-font-family, 'Segoe UI', Arial, sans-serif); color: #22232b; }
.t10-table { display: table; width: 100%; table-layout: fixed; }
.t10-sidebar { display: table-cell; width: 32%; vertical-align: top; background: var(--cv-accent-soft, #eaf2fb); padding: 20mm 8mm 10mm 12mm; box-sizing: border-box; text-align: center; }
.t10-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; margin-bottom: 10px; }
.t10-name { font-size: calc(var(--cv-font-size, 13px) * 1.3077); font-weight: 800; color: var(--cv-accent-dark, #0d3b66); margin: 0 0 14px; }
.t10-sb-section { margin-bottom: var(--cv-section-gap, 16px); text-align: left; }
.t10-sb-title { font-size: calc(var(--cv-font-size, 13px) * 0.8077); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--cv-accent, #0d3b66); margin-bottom: 6px; }
.t10-sb-line { font-size: calc(var(--cv-font-size, 13px) * 0.8462); color: #333; margin-bottom: 3px; word-break: break-word; }
.t10-main { display: table-cell; width: 68%; vertical-align: top; padding: 20mm 12mm 10mm 14mm; box-sizing: border-box; }
.t10-main-section { margin-bottom: var(--cv-section-gap, 16px); }
.t10-main-title { font-size: calc(var(--cv-font-size, 13px) * 1.0); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--cv-accent-dark, #0d3b66); margin-bottom: 12px; }
.t10-timeline { position: relative; padding-left: 18px; border-left: 2px solid var(--cv-accent-soft, #eaf2fb); }
.t10-tl-item { position: relative; margin-bottom: 14px; }
.t10-tl-dot { position: absolute; left: -23px; top: 3px; width: 9px; height: 9px; border-radius: 50%; background: var(--cv-accent, #0d3b66); }
.t10-tl-date { font-size: calc(var(--cv-font-size, 13px) * 0.8077); color: var(--cv-accent, #0d3b66); font-weight: 600; margin-bottom: 2px; }
.t10-tl-title { font-weight: 700; font-size: calc(var(--cv-font-size, 13px) * 1.0); }
.t10-tl-sub { font-size: calc(var(--cv-font-size, 13px) * 0.8846); color: #666; font-style: italic; margin-bottom: 2px; }
.t10-tl-desc { font-size: calc(var(--cv-font-size, 13px) * 0.8846); margin-top: 3px; }
.thumb-t10 { background: linear-gradient(90deg, #eaf2fb 0 30%, #fff 30% 100%); border: 1px solid var(--border); }
.thumb-t10:after { content:""; position:absolute; left:38%; top:15%; bottom:15%; width:2px; background:#dbe4ee; box-shadow: 8px 6px 0 -3px #0d3b66, 8px 26px 0 -3px #0d3b66, 8px 46px 0 -3px #0d3b66; }

/* ---------------- Print Styles ---------------- */
@media print {
  .no-print { display: none !important; }
  body { background: #fff !important; }
  .cv-page {
    box-shadow: none;
    margin: 0;
    padding: 10mm;
    width: 100%;
    min-height: auto;
  }
  @page { size: A4; margin: 8mm; }

  /* Advanced Builder: print only the live preview CV, not the sidebars/toolbar */
  .builder-shell { display: block !important; }
  .builder-col-templates, .builder-col-form { display: none !important; }
  .builder-preview-frame {
    background: none !important;
    padding: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
}


/* ---- Template 13: Creative Portrait Sidebar ---- */
.t12-page { font-family: 'Segoe UI', Arial, sans-serif; color: #2b2b2b; }
.t12-table { display: table; width: 100%; table-layout: fixed; }

.t12-sidebar {
  display: table-cell;
  width: 36%;
  vertical-align: top;
  background: var(--cv-accent-dark, #2b2d3a);
  color: #e8e8ec;
  padding: 16mm 8mm 14mm;
  box-sizing: border-box;
  border-radius: 150px 150px 0 0;
}
.t12-photo-wrap { text-align: center; margin-bottom: 20px; }
.t12-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--cv-accent, #4a4d63);
}
.t12-sb-section { margin-bottom: var(--cv-section-gap, 18px); }
.t12-sb-title {
  font-size:calc(var(--cv-font-size, 13px) * 1.6923);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,.35);
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.t12-sb-text { font-size: calc(var(--cv-font-size, 11px) * 1.6923); color: #d5d5db; margin-bottom: 4px; word-break: break-word; line-height: 1.5; }
.t12-sb-text-muted { font-size: 10.5px; color: #b7b7c2; }
.t12-sb-text-strong { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.t12-edu-item { margin-bottom: 10px; }

.t12-main {
  display: table-cell;
  width: 64%;
  vertical-align: top;
  padding: 16mm 12mm 14mm 12mm;
  box-sizing: border-box;
  background: #fff;
}
.t12-signature {
  font-family: 'Brush Script MT', 'Segoe Script', cursive;
  font-size: 34px;
  color: #2b2b2b;
  margin-bottom: 26px;
}
.t12-main-section { margin-bottom: var(--cv-section-gap, 18px); }
.t12-main-title {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #2b2b2b;
  border-bottom: 2px solid var(--cv-accent, #4a4d63);
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.t12-exp-item { margin-bottom: 14px; }
.t12-exp-meta { font-size: 11px; color: #777; margin-bottom: 2px; }
.t12-exp-title { font-size: 14px; font-weight: 700; color: #2b2b2b; margin-bottom: 4px; }
.t12-exp-desc { font-size: 11.5px; color: #444; margin: 0; }

.t12-skill-row { margin-bottom: 10px; }
.t12-skill-name { font-size: 12px; color: #2b2b2b; margin-bottom: 4px; }
.t12-skill-bar { background: #e4e4e8; border-radius: 3px; height: 6px; overflow: hidden; }
.t12-skill-fill { background: var(--cv-accent, #4a4d63); height: 6px; border-radius: 3px; }

.thumb-t12 { background: linear-gradient(90deg, #2b2d3a 0 36%, #fff 36% 100%); border: 1px solid var(--border); }
.thumb-t12:after {
  content: "";
  position: absolute;
  left: 10%; top: 18%;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #808094;
}


/* ============================================================
 * TEMPLATE 13 - CREATIVE PORTRAIT SIDEBAR STYLES
 * ============================================================ */

/* Page Setup */
.t13-page {
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    color: var(--cv-dark, #2c2c2c);
    line-height: var(--cv-line-height, 1.50);
    letter-spacing: var(--cv-letter-spacing, 0.5px);
    font-size: var(--cv-font-size, 13px);
    background-color: #ffffff;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Outer Table Layout (Replaces Flexbox for Dompdf compatibility) */
.t13-table {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

/* ================= LEFT SIDEBAR ================= */
.t13-sidebar {
    display: table-cell;
    width: 35%;
    vertical-align: top;
    background-color: var(--cv-accent-soft, #f3e3e2);
    padding: 30px 20px;
    box-sizing: border-box;
}

/* Photo Frames (Double Border Effect) */
.t13-photo-outer-frame {
    border: 1px solid var(--cv-accent, #dcaeaf);
    padding: 6px;
    background-color: transparent;
    margin: 0 auto 25px auto;
    width: 160px;
    box-sizing: border-box;
}

.t13-photo-inner-frame {
    border: 1px solid var(--cv-accent, #dcaeaf);
    padding: 6px;
    background-color: #ffffff;
}

.t13-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Sidebar Sections */
.t13-sb-section {
    margin-bottom: 22px;
}

.t13-sb-title {
    background-color: #ffffff;
    color: var(--cv-dark, #2c2c2c);
    font-weight: 700;
    font-size: calc(var(--cv-font-size, 13px) * 1.6923);
    letter-spacing: 2px;
    text-align: center;
    padding: 6px 10px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.t13-sb-text {
   font-size: calc(var(--cv-font-size, 13px) * 0.9462);
    color: #4a4a4a;
    margin: 0;
    line-height: 1.5;
}

/* Sidebar Contacts */
.t13-contact-item {
    font-size: calc(var(--cv-font-size, 11px) * 0.9923);
    color: #4a4a4a;
    margin-bottom: 8px;
    line-height: 1.4;
    word-break: break-word;
}

.t13-icon {
    color: var(--cv-accent, #dcaeaf);
    font-size: 12px;
    margin-right: 5px;
    display: inline-block;
}

.t13-contact-val {
    display: inline;
}
.t13-details-list{
   font-size: calc(var(--cv-font-size, 11px) * 0.9923);
}

/* Sidebar Bullet Lists (Skills & Languages) */
.t13-bullet-list {
    margin: 0;
    padding-left: 18px;
    list-style-type: disc;
}

.t13-bullet-list li {
    font-size: 11px;
    color: #4a4a4a;
    margin-bottom: 5px;
}

.t13-details-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.t13-details-list li {
    font-size: 11px;
    color: #4a4a4a;
    margin-bottom: 5px;
}

/* ================= RIGHT MAIN COLUMN ================= */
.t13-main {
    display: table-cell;
    width: 65%;
    vertical-align: top;
    background-color: #ffffff;
    padding: 30px 30px;
    box-sizing: border-box;
}

/* Header / Signature Styling */
.t13-header-wrap {
    text-align: center;
    margin-bottom: 25px;
}

.t13-first-name {
    font-family: 'Alex Brush', 'Brush Script MT', cursive;
    font-size: calc(var(--cv-font-size, 23px) * 3.0923);
    color: #2c2c2c;
    line-height: 1;
    margin-bottom: -5px;
}

.t13-last-name {
    font-family: 'Montserrat', sans-serif;
    font-size: calc(var(--cv-font-size, 23px) * 2.8923);
    font-weight: 700;
    letter-spacing: 6px;
    color: #2c2c2c;
    text-transform: uppercase;
    margin-bottom: 12px;
    margin-left: 173px;
}

/* Job Title Accent Box */
.t13-job-badge-wrap {
    text-align: center;
    margin-top: 10px;
    border-top: 1px solid var(--cv-accent-soft, #f3e3e2);
    border-bottom: 1px solid var(--cv-accent-soft, #f3e3e2);
    padding: 6px 0;
}

.t13-job-badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #4a4a4a;
    display: inline-block;
}

/* Main Content Sections */
.t13-main-section {
    margin-bottom: 22px;
}

.t13-main-title {
    background-color: var(--cv-accent-soft, #f3e3e2);
    color: var(--cv-dark, #2c2c2c);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    padding: 6px 12px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

/* Experience Items */
.t13-exp-item, .t13-edu-item {
    margin-bottom: 15px;
}

.t13-exp-role, .t13-edu-degree {
    font-weight: 700;
    font-size: 12px;
    color: #2c2c2c;
    letter-spacing: 0.5px;
}

.t13-exp-company, .t13-edu-inst {
    font-weight: 500;
    font-size: 11px;
    color: #555555;
}

.t13-exp-date, .t13-edu-date {
    font-size: 10px;
    color: #888888;
    margin-bottom: 4px;
}

.t13-exp-desc {
    font-size: 11px;
    color: #4a4a4a;
    margin: 4px 0 0 0;
    line-height: 1.45;
}

/* Certifications & Additional Info */
.t13-cert-item, .t13-add-item {
    font-size: 11px;
    color: #4a4a4a;
    margin-bottom: 6px;
}

.t13-cert-name {
    font-weight: 600;
}

.t13-cert-meta {
    color: #666666;
    font-size: 10px;
}

/* References Table Layout */
.t13-ref-table {
    width: 100%;
    border-collapse: collapse;
}

.t13-ref-cell {
    width: 50%;
    vertical-align: top;
    padding-right: 10px;
}

.t13-ref-name {
    font-weight: 700;
    font-size: 11px;
    color: #2c2c2c;
}

.t13-ref-sub {
    font-size: 10px;
    color: #666666;
}


/* =====================================================================
   RESPONSIVE — Mobile & Tablet (screen only; print/PDF stays fixed A4)
   ===================================================================== */

/* Tablets and small laptops */
@media screen and (max-width: 900px) {
  .cv-page {
    padding: 8mm 6mm;
    box-shadow: 0 0 10px rgba(0,0,0,.08);
  }
  .cv-header img { width: 90px; height: 90px; margin-right: 14px; }
  .cv-header h1 { font-size: 22px; }
  .cv-table { font-size: 12px; }
}

/* Phones */
@media screen and (max-width: 576px) {
  body { font-size: 14px; }

  /* Shrink navbar brand text so it doesn't wrap/overflow on small phones */
  .main-navbar .navbar-brand { font-size: 1rem; }

  /* Cards/forms: tighten padding a bit for small screens */
  .card-body { padding: 1rem; }
  .card-header { padding: .9rem 1rem .9rem 1.2rem; font-size: .95rem; }
  .dynamic-row { padding: .9rem .9rem .8rem; }
  .btn { padding: .55rem 1rem; }

  /* Dashboard stat cards: stack icon above number instead of side-by-side */
  .stat-card { flex-direction: column; text-align: center; gap: 8px; }
  .stat-card i { font-size: 2rem !important; }

  /* ---- CV Page: fully fluid, single-column, touch-friendly ---- */
  .cv-page {
    padding: 5mm 4mm;
    min-height: auto;
  }
  .cv-header img {
    float: none;
    display: block;
    margin: 0 auto 10px auto;
    width: 100px;
    height: 100px;
  }
  .cv-header-text {
    overflow: visible;
    text-align: center;
  }
  .cv-header h1 { font-size: 20px; }
  .cv-contact-line { font-size: 11.5px; word-break: break-word; }

  .cv-table { font-size: 11px; }
  .cv-table th, .cv-table td { padding: 4px 6px; }

  .cv-entry-date { float: none; display: block; margin-bottom: 2px; }
  .cv-experience-entry { text-align: left; }

  /* Stack the two-column Skills/Certifications + Additional Info side by side
     into a single column so nothing gets squeezed unreadably narrow */
  .cv-two-col {
    display: block;
  }
  .cv-two-col .cv-col {
    display: block;
    width: 100%;
    padding: 0 !important;
  }

  .cv-reference-item {
    display: block;
    width: 100%;
  }

  /* Admin tables: allow horizontal scroll instead of squeezing columns */
  .table-modern { font-size: 13px; }
  
    .builder-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: .8rem;
  }
  .builder-toolbar .builder-title { text-align: center; margin-bottom: .3rem; font-size: .95rem; }
  .builder-toolbar > .d-flex {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    width: 100%;
  }
  .builder-toolbar > .d-flex .btn {
    width: 100%;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
}




/* =====================================================================
   HERO FEATURE PILLS
   ===================================================================== */

.cv-hero-features {
  display: flex;

  justify-content: center;

  align-items: center;

  flex-wrap: wrap;

  gap: .65rem;

  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.cv-hero-pill {
  display: inline-flex;
    margin-top:20px;
  align-items: center;

  gap: .45rem;

  /* padding: .52rem .9rem; */
    padding: 0.2rem 3rem;
  border-radius: 50px;

  background: rgba(255,255,255,.82);

  border: 1px solid rgba(91,79,224,.1);

  box-shadow:
    0 5px 18px rgba(33,31,46,.06);

  color: var(--text);

  font-size: .8rem;

  font-weight: 600;

  backdrop-filter: blur(8px);

  animation:
    pillFloat 3s ease-in-out infinite;
}

.cv-hero-pill:nth-child(2) {
  animation-delay: .8s;
}

.cv-hero-pill:nth-child(3) {
  animation-delay: 1.6s;
}

.cv-hero-pill i {
  color: var(--primary);

 /* font-size: .9rem;*/
  font-size: 42px;
}


/* =====================================================================
   MINI CV SLIDER
   ===================================================================== */

.cv-hero-showcase {
  position: relative;

  width: min(700px, 94%);

  height: 135px;

  margin: 2.3rem auto 0;

  perspective: 1000px;
}

.cv-showcase-card {
  position: absolute;

  left: 50%;
  top: 50%;

  width: 205px;
  height: 122px;

  padding: 13px;

  background: #fff;

  border: 1px solid rgba(33,31,46,.08);

  border-radius: 12px;

  box-shadow:
    0 18px 40px rgba(33,31,46,.13);

  text-align: left;

  overflow: hidden;

  animation:
    cvSlide 9s ease-in-out infinite;
}

/* Mini profile photo */

.cv-showcase-card .mini-photo {
  width: 29px;
  height: 29px;

  float: left;

  margin-right: 8px;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      #5b4fe0,
      #9188f4
    );
}


/* Mini name */

.cv-showcase-card .mini-name {
  width: 85px;
  height: 7px;

  margin-top: 4px;

  border-radius: 5px;

  background: #211f2e;
}


/* Mini role */

.cv-showcase-card .mini-role {
  width: 60px;
  height: 4px;

  margin-top: 5px;

  border-radius: 5px;

  background: #b7b3c4;
}


/* Mini section */

.cv-showcase-card .mini-section {
  width: 50%;

  height: 6px;

  margin-top: 15px;

  border-radius: 5px;

  background: #5b4fe0;
}


/* Mini text lines */

.cv-showcase-card .mini-line {
  width: 92%;

  height: 4px;

  margin-top: 7px;

  border-radius: 5px;

  background: #e9e6f2;
}

.cv-showcase-card .mini-line.short {
  width: 68%;
}


/* =====================================================================
   CV CARD COLORS
   ===================================================================== */

.cv-showcase-card.card-1 {
  animation-delay: 0s;
}

.cv-showcase-card.card-2 {
  animation-delay: -3s;
}

.cv-showcase-card.card-3 {
  animation-delay: -6s;
}


/* Gold */

.cv-showcase-card.card-2 .mini-section {
  background: #e0a527;
}

.cv-showcase-card.card-2 .mini-photo {
  background:
    linear-gradient(
      135deg,
      #e0a527,
      #f4ce70
    );
}


/* Green */

.cv-showcase-card.card-3 .mini-section {
  background: #10a37f;
}

.cv-showcase-card.card-3 .mini-photo {
  background:
    linear-gradient(
      135deg,
      #10a37f,
      #58d2b0
    );
}


/* =====================================================================
   HERO ANIMATIONS
   ===================================================================== */

@keyframes cvHeadingGradient {

  0% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }

  100% {
    background-position: 0% center;
  }
}


@keyframes cvSlide {

  0% {
    opacity: 0;

    transform:
      translate(-125%, -50%)
      rotate(-8deg)
      scale(.78);
  }

  10% {
    opacity: .45;
  }

  22% {
    opacity: 1;

    transform:
      translate(-50%, -50%)
      rotate(0deg)
      scale(1);
  }

  42% {
    opacity: 1;

    transform:
      translate(45%, -50%)
      rotate(4deg)
      scale(.92);
  }

  55% {
    opacity: .2;

    transform:
      translate(125%, -50%)
      rotate(8deg)
      scale(.78);
  }

  100% {
    opacity: 0;

    transform:
      translate(125%, -50%)
      rotate(8deg)
      scale(.78);
  }
}


@keyframes pillFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}


@keyframes heroBlob {

  0%,
  100% {
    transform:
      translate(0, 0)
      scale(1);
  }

  50% {
    transform:
      translate(15px, -18px)
      scale(1.06);
  }
}


/* =====================================================================
   CV HERO BANNER / STEPPER
   ===================================================================== */

.cv-hero {
  background: var(--primary);

  color: #fff;

  text-align: center;

  padding: 2.75rem 1rem 6rem;

  clip-path:
    polygon(
      0 0,
      100% 0,
      100% 80%,
      0 100%
    );

  margin-bottom: -4.5rem;
}

.cv-hero h1 {
  font-weight: 800;

  font-size: 2rem;

  margin-bottom: 1.9rem;
}

.cv-content-wrap {
  position: relative;

  z-index: 2;
}


/* =====================================================================
   STEPPER
   ===================================================================== */

.cv-stepper {
  display: flex;

  align-items: flex-start;

  justify-content: center;

  gap: .25rem;

  max-width: 520px;

  margin: 0 auto;
}

.cv-step {
  display: flex;

  flex-direction: column;

  align-items: center;

  gap: .45rem;

  width: 110px;
}

.cv-step-icon {
  width: 52px;
  height: 52px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  background:
    rgba(255, 255, 255, .22);

  font-size: 1.25rem;

  transition:
    background .3s ease,
    transform .3s ease,
    box-shadow .3s ease;
}

.cv-step.active .cv-step-icon {
  background: #fff;

  color: var(--primary);

  transform: scale(1.08);

  box-shadow:
    0 8px 18px rgba(0, 0, 0, .18);
}

.cv-step-label {
  font-size: .82rem;

  font-weight: 600;

  opacity: .8;

  transition: opacity .3s ease;
}

.cv-step.active .cv-step-label {
  opacity: 1;
}

.cv-step-line {
  flex: 1;

  height: 2px;

  background:
    rgba(255, 255, 255, .35);

  margin-top: 26px;

  max-width: 70px;
}


/* Decorative background blobs */

.cv-marketing-hero::before,
.cv-marketing-hero::after {
  content: "";

  position: absolute;

  border-radius: 50%;

  pointer-events: none;

  z-index: -1;
}

.cv-marketing-hero::before {
  width: 260px;
  height: 260px;

  left: -130px;
  top: -80px;

  background: rgba(91, 79, 224, .07);

  filter: blur(4px);

  animation:
    heroBlob 8s ease-in-out infinite;
}

.cv-marketing-hero::after {
  width: 300px;
  height: 300px;

  right: 3px;
  bottom: -150px;

  background: rgba(224, 165, 39, .08);

  filter: blur(4px);

  animation:
    heroBlob 10s ease-in-out infinite reverse;
}


/* Hero content */

.cv-hero-content {
  position: relative;
  z-index: 2;
}


/* Hero heading */

.cv-marketing-hero h1 {
  margin: 0 0 .8rem;

  font-family: var(--font-heading);

  font-weight: 800;

  font-size: clamp(2.1rem, 4vw, 3rem);

  letter-spacing: -1.5px;

  line-height: 1.15;
}


/*
   IMPORTANT:
   This also styles your CURRENT HTML:

   <h1>
      Easy CV Maker – Create Your CV Without Login
   </h1>

   so you don't have to change your PHP/HTML.
*/

 .cv-marketing-hero h1 {
  background:
    linear-gradient(
      90deg,
      #211f2e 0%,
      #5b4fe0 25%,
      #8b5cf6 45%,
      #e0a527 65%,
      #211f2e 90%
    );

  background-size: 250% auto;

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;

  animation:
    cvHeadingGradient 7s ease-in-out infinite;
}

.cv-hero-pill i{
  background:
    linear-gradient(
      90deg,
      #211f2e 0%,
      #5b4fe0 25%,
      #8b5cf6 45%,
      #e0a527 65%,
      #211f2e 90%
    );

  background-size: 250% auto;

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;

  animation:
    cvHeadingGradient 7s ease-in-out infinite;
}


/* Hero paragraph */

.cv-marketing-hero p {
  max-width: 680px;

  margin: 0 auto;

  color: var(--muted);

  font-size: 1.04rem;

  line-height: 1.7;
}


/* Highlight */

.hero-highlight {
  color: var(--primary);

  font-weight: 700;
}

.mb-4 {
    margin-top: 1.5rem;
}


/* =====================================================================
   BLOG SYSTEM
   ===================================================================== */
.blog-hero-title { font-weight: 800; color: var(--text); }
.blog-hero-sub { color: var(--muted); }

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  color: var(--text);
  height: 100%;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--text); }
.blog-card-img { width: 100%; height: 170px; object-fit: cover; display: block; background: var(--primary-light); }
.blog-card-img-placeholder { display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--primary); }
.blog-card-body { padding: 1.2rem; }
.blog-card-date { font-size: .78rem; color: var(--muted); margin-bottom: .3rem; display: flex; justify-content: space-between;}
.blog-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.blog-card-excerpt { font-size: .88rem; color: var(--muted); margin-bottom: .6rem; }
.blog-card-cta { font-size: .85rem; font-weight: 700; color: var(--primary); }

.blog-article { max-width: 75%; margin: 0 auto; background-color: var(--background);   border: 1px solid #e4d9d9;  border-radius: 12px; box-shadow: 0 2px 10px rgba(33, 31, 46, .05);}
.blog-back-link { color: var(--muted); font-size: .88rem; text-decoration: none; }
.blog-back-link:hover { color: var(--primary); }
.blog-article-date { color: var(--muted); font-size: .85rem; }
.blog-article-title { font-weight: 800; font-size: 2.1rem; margin: .75rem 0 1.5rem; }
.blog-article-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.75rem; }
.blog-article-content { font-size: 1.05rem; line-height: 1.75; color: var(--text); }
.blog-article-content h2 { font-size: 1.5rem; font-weight: 800; margin: 1.75rem 0 .9rem; }
.blog-article-content h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 .75rem; }
.blog-article-content p { margin-bottom: 1.1rem; }
.blog-article-content ul, .blog-article-content ol { margin-bottom: 1.1rem; padding-left: 1.4rem; }
.blog-article-content img { max-width: 100%; border-radius: var(--radius-sm); margin: 1rem 0; }
.blog-article-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  padding: .8rem 1.2rem;
  margin: 1.2rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}
.blog-article-content a { color: var(--primary); font-weight: 600; }

.blog-related { max-width: 900px; margin: 3rem auto 2rem; }
.blog-related-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  color: var(--text);
  transition: transform .2s ease;
  display: block;
}
.blog-related-card:hover { transform: translateY(-3px); color: var(--text); }
.blog-related-card img { width: 100%; height: 100px; object-fit: cover; }
.blog-related-card div { font-size: .85rem; font-weight: 600; }

@media screen and (max-width: 576px) {
  .blog-article-title { font-size: 1.5rem; }
  .blog-article-content { font-size: .98rem; }
  .blog-article { max-width: 95% }
}

/* ==================================================
   BREADCRUMBS
================================================== */
.blog-breadcrumb-wrapper {
    background: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.blog-breadcrumb-wrapper .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 0.9rem;
}

.blog-breadcrumb-wrapper .breadcrumb-item a {
    color: #227f3e;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-breadcrumb-wrapper .breadcrumb-item a:hover {
    color: #1a5f2e;
    text-decoration: underline;
}

.blog-breadcrumb-wrapper .breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

.blog-breadcrumb-wrapper .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #adb5bd;
    font-size: 1.2rem;
    font-weight: 300;
}

/* ==================================================
   BACK LINK
================================================== */
.blog-article-meta-top {
    margin-bottom: 20px;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #227f3e;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.blog-back-link:hover {
    color: #1a5f2e;
    text-decoration: underline;
}

/* ==================================================
   POST META (Author, Date, Views, Read Time)
================================================== */
.blog-post-meta {
    margin: 20px 0 30px 0;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 16px;
    font-size: 0.92rem;
    color: #495057;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: #227f3e;
    font-size: 1rem;
}

.meta-divider {
    color: #dee2e6;
    font-weight: 300;
}

/* Mobile: Hide dividers, stack nicely */
@media (max-width: 576px) {
    .blog-post-meta {
        border-radius: 20px;
        padding: 12px 16px;
        gap: 6px 12px;
        font-size: 0.82rem;
    }
    .meta-item i {
        font-size: 0.85rem;
    }
}

/* ==================================================
   ARTICLE TITLE
================================================== */
.blog-article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .blog-article-title {
        font-size: 1.8rem;
    }
}

/* ==================================================
   HERO IMAGE
================================================== */
.blog-article-hero-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin: 25px 0 30px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* ==================================================
   CONTENT
================================================== */
.blog-article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #212529;
}

.blog-article-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.blog-article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #1a1a2e;
}

.blog-article-content p {
    margin-bottom: 1.2rem;
}

.blog-article-content ul,
.blog-article-content ol {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

.blog-article-content li {
    margin-bottom: 0.4rem;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.blog-article-content blockquote {
    border-left: 4px solid #227f3e;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f8f9fa;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #495057;
}

/* ==================================================
   RELATED POSTS
================================================== */
.blog-related {
    background: #f8f9fa;
    padding: 50px 0 40px 0;
    margin-top: 50px;
    border-top: 1px solid #e9ecef;
}

.blog-related-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-related-title i {
    color: #227f3e;
}

.blog-related-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.blog-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.10);
}

.blog-related-img-wrapper {
    height: 180px;
    overflow: hidden;
    background: #f1f3f5;
}

.blog-related-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-related-card:hover .blog-related-img-wrapper img {
    transform: scale(1.03);
}

.blog-related-title-text {
    padding: 14px 18px;
    font-weight: 500;
    color: #1a1a2e;
    font-size: 1rem;
    line-height: 1.3;
    transition: color 0.2s;
}

.blog-related-card:hover .blog-related-title-text {
    color: #227f3e;
}

/* ==================================================
   CTA BUTTON
================================================== */

.btn-primary i {
    margin-right: 8px;
}



/* =====================================================================
    BLOG TAGS + CONTENT TABLES (Word-style tables pasted from the
   TinyMCE editor also get styled here so they look neat when published)
   ===================================================================== */

.blog-tags-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin: 1.1rem 0 1.6rem;
}
.blog-tags-row-bottom {
  justify-content: flex-start;
  margin: 2.2rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border, #e9e6f2);
}
.blog-tags-label {
  font-weight: 700;
  font-size: .85rem;
  color: var(--muted, #837e93);
  margin-right: .2rem;
}
.blog-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .95rem;
  border-radius: 50px;
  background: var(--primary-light, #efedfc);
  color: var(--primary, #5b4fe0);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, transform .15s ease, border-color .2s ease;
}
.blog-tag-pill i { font-size: .75rem; }
.blog-tag-pill:hover {
  background: var(--primary, #5b4fe0);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

@media screen and (max-width: 576px) {
  .blog-tags-row { justify-content: center; }
  .blog-tag-pill { font-size: .76rem; padding: .35rem .8rem; }
}

/* ---- Tables pasted into blog content (via the TinyMCE editor) ---- */
.blog-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: .96rem;
  overflow-x: auto;
  display: table;
}
.blog-article-content table th,
.blog-article-content table td {
  border: 1px solid var(--border, #e9e6f2);
  padding: 10px 14px;
  text-align: left;
}
.blog-article-content table th {
  background: var(--primary-light, #efedfc);
  color: var(--text, #211f2e);
  font-weight: 700;
}
.blog-article-content table tr:nth-child(even) td {
  background: #fbfaff;
}
/* Let wide tables scroll horizontally on small screens instead of
   squeezing/breaking the layout */
@media screen and (max-width: 576px) {
  .blog-article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}