/* ==========================================================================
   Flekni - Custom Styles
   Brand Colors:
     Primary:   #4fde5c  (green)
     Secondary: #1a1a1a  (near black)
     Light:     #f9f9f9  (off-white background)
     White:     #ffffff  (cards, surfaces)
   ========================================================================== */

/* ---------- Bootstrap variable overrides ---------- */
:root {
  --bs-primary: #4fde5c;
  --bs-primary-rgb: 79, 222, 92;
  --bs-secondary: #1a1a1a;
  --bs-secondary-rgb: 26, 26, 26;
  --bs-light: #f9f9f9;
  --bs-body-bg: #f9f9f9;
  --bs-body-font-family: 'Inter', sans-serif;
}

/* ---------- Global ---------- */
body {
  font-family: 'Inter', sans-serif;
  background-color: #f9f9f9;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

a {
  color: #3cc94a;
}

a:hover {
  color: #32b840;
}

/* ---------- Buttons ---------- */
.btn-primary {
  --bs-btn-bg: #4fde5c;
  --bs-btn-border-color: #4fde5c;
  --bs-btn-hover-bg: #3cc94a;
  --bs-btn-hover-border-color: #3cc94a;
  --bs-btn-color: #1a1a1a;
  --bs-btn-hover-color: #1a1a1a;
  --bs-btn-active-bg: #32b840;
  --bs-btn-active-border-color: #32b840;
  font-weight: 600;
}

.btn-outline-primary {
  --bs-btn-color: #4fde5c;
  --bs-btn-border-color: #4fde5c;
  --bs-btn-hover-bg: #4fde5c;
  --bs-btn-hover-border-color: #4fde5c;
  --bs-btn-hover-color: #1a1a1a;
  --bs-btn-active-bg: #3cc94a;
}

/* ---------- Typography helpers ---------- */
.text-primary {
  color: #4fde5c !important;
}

.bg-primary {
  background-color: #4fde5c !important;
}

/* ---------- Navbar ---------- */
.navbar {
  background-color: #fff;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
  color: #4fde5c !important;
}

.navbar-brand:hover {
  color: #3cc94a !important;
}

.nav-link {
  color: #1a1a1a !important;
  font-weight: 500;
}

.nav-link:hover {
  color: #4fde5c !important;
}

/* ---------- Cards ---------- */
.card {
  border: 1px solid #e9e9e9;
  border-radius: 0.75rem;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

/* ---------- Footer ---------- */
footer {
  background-color: #1a1a1a !important;
  position: relative;
}

.footer-accent {
  height: 3px;
  background: linear-gradient(90deg, #4fde5c 0%, #38b544 40%, #2da83a 60%, #4fde5c 100%);
  background-size: 200% 100%;
  animation: footerGradient 6s linear infinite;
}

@keyframes footerGradient {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.footer-logo:hover img {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(79, 222, 92, 0.5)) !important;
  transition: filter 0.3s ease;
}

.footer-logo img {
  transition: filter 0.3s ease;
}

/* Footer headings */
.footer-heading {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: #4fde5c;
  border-radius: 1px;
}

/* Footer links */
.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.footer-links a i {
  font-size: 0.625rem;
  margin-right: 0.25rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  color: #4fde5c;
  padding-left: 4px;
}

.footer-links a:hover i {
  opacity: 1;
}

/* Footer social icons */
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-social:hover {
  background-color: #4fde5c;
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 222, 92, 0.3);
}

/* Footer contact */
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.footer-contact li > i {
  color: #4fde5c;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: #4fde5c;
}

/* Footer newsletter */
.footer-newsletter .form-control {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.8125rem;
}

.footer-newsletter .form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.footer-newsletter .form-control:focus {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #4fde5c;
  box-shadow: 0 0 0 0.15rem rgba(79, 222, 92, 0.15);
  color: #fff;
}

/* Footer bottom bar */
.footer-bottom {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom-link {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.2s ease;
}

/* ==========================================================================
   Utility Classes — replacing inline styles (V2.0)
   ========================================================================== */

/* ---------- Avatar / Logo sizing ---------- */
.avatar-xs  { width: 40px; height: 40px; max-width: 40px; max-height: 40px; }
.avatar-sm  { width: 48px; height: 48px; max-width: 48px; max-height: 48px; }
.avatar-md  { width: 56px; height: 56px; max-width: 56px; max-height: 56px; }
.avatar-lg  { width: 64px; height: 64px; max-width: 64px; max-height: 64px; }
.avatar-xl  { width: 72px; height: 72px; max-width: 72px; max-height: 72px; }
.avatar-xxl { width: 80px; height: 80px; max-width: 80px; max-height: 80px; }
.avatar-100 { width: 100px; height: 100px; max-width: 100px; max-height: 100px; }
.avatar-contain { object-fit: contain; }
.avatar-cover   { object-fit: cover; }

/* Circular placeholder with initials / icon */
.logo-placeholder {
  background-color: #e8f9e9;
  color: #2e7d32;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 0.5rem;
}

/* ---------- Text max-width constraints ---------- */
.text-constrain-sm  { max-width: 440px; }
.text-constrain-md  { max-width: 560px; }
.text-constrain-lg  { max-width: 600px; }
.text-constrain-xl  { max-width: 800px; }
.text-constrain-xxl { max-width: 820px; }
.text-constrain-xs  { max-width: 300px; }
.text-constrain-520 { max-width: 520px; }
.text-constrain-380 { max-width: 380px; }

/* ---------- Link dark (brand secondary) ---------- */
.link-dark {
  color: #1a1a1a;
  text-decoration: none;
}
.link-dark:hover {
  color: #4fde5c;
}

/* ---------- Badge font sizes ---------- */
.badge-xs { font-size: 0.6rem; }
.badge-sm { font-size: 0.7rem; }
.badge-md { font-size: 0.75rem; }
.badge-lg { font-size: 0.8rem; }
.badge-xl { font-size: 0.85rem; }

/* ---------- Floating Action Button ---------- */
.fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Typography utilities ---------- */
.pre-wrap         { white-space: pre-wrap; }
.lh-relaxed       { line-height: 1.7; }
.lh-tight         { line-height: 1.1; }
.lh-snug          { line-height: 1.15; }
.lh-loose         { line-height: 1.8; }

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Hero / Landing page ---------- */
.hero-z       { position: relative; z-index: 2; }
.hero-overlay { color: rgba(255, 255, 255, 0.7); }
.hero-overlay-dim { color: rgba(255, 255, 255, 0.8); }
.hero-overlay-faint { color: rgba(255, 255, 255, 0.5); }

.hero-gradient-text {
  background: linear-gradient(135deg, #4fde5c, #66bb6a);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faded-emoji {
  font-size: 6rem;
  opacity: 0.15;
}
.faded-emoji-lg {
  font-size: 8rem;
  opacity: 0.15;
}

.accent-green { color: #66bb6a; }

.hero-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #66bb6a;
}

/* ---------- Autocomplete / Dropdown ---------- */
.autocomplete-dropdown {
  z-index: 1050;
  display: none;
  max-height: 200px;
  overflow-y: auto;
}

/* ---------- Quill editor ---------- */
.quill-container { min-height: 200px; }
.quill-container-lg { min-height: 250px; }

/* ---------- Blog cards ---------- */
.blog-img {
  height: 200px;
  object-fit: cover;
}

.blog-placeholder {
  height: 200px;
  background-color: #e8f9e9;
}

/* ---------- Employer detail hero ---------- */
.hero-banner {
  max-height: 320px;
  overflow: hidden;
}
.hero-banner img {
  object-fit: cover;
  max-height: 320px;
}

/* ---------- Misc repeated patterns ---------- */
.featured-border { border-left: 3px solid #ffc107; }
.min-vh-70 { min-height: 70vh; }
.offscreen { position: absolute; left: -9999px; }

.scroll-box-sm {
  max-height: 100px;
  overflow: hidden;
}
.scroll-box-md {
  max-height: 200px;
  overflow-y: auto;
}
.scroll-box-lg {
  max-height: 300px;
  overflow-y: auto;
}

.input-narrow { max-width: 120px; }

.font-xs  { font-size: 0.65rem; }
.font-sm  { font-size: 0.7rem; }
.font-md  { font-size: 0.75rem; }
.font-lg  { font-size: 0.9rem; }
.font-xl  { font-size: 1.05rem; }
.font-2xl { font-size: 1.15rem; }
.font-icon-lg  { font-size: 1.1rem; }
.font-icon-xl  { font-size: 1.2rem; }
.font-icon-2xl { font-size: 1.5rem; }
.font-icon-3xl { font-size: 2rem; }
.font-icon-4xl { font-size: 2.5rem; }

/* Star rating icons */
.star-sm { font-size: 0.8rem; }

/* Hero search form controls */
.hero-select {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 12px;
  padding: 0.85rem 0.6rem;
  font-size: 0.9rem;
}

/* Featured badge (gold gradient) */
.badge-featured {
  background: linear-gradient(135deg, #ffca28, #ffa000);
  color: #5d4037;
  font-size: 0.75rem;
  padding: 0.35em 0.85em;
  box-shadow: 0 2px 6px rgba(255, 193, 7, 0.3);
}

/* img logo with small border radius */
.logo-icon-sm {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 3px;
}

.footer-bottom-link:hover {
  color: #4fde5c;
}

/* ---------- Additional avatar sizes ---------- */
.avatar-28  { width: 28px; height: 28px; }
.avatar-32  { width: 32px; height: 32px; }
.avatar-36  { width: 36px; height: 36px; }
.avatar-40  { width: 40px; height: 40px; min-width: 40px; }

/* ---------- Footer / filter ---------- */
.invert-white { filter: brightness(0) invert(1); }
.min-w-auto   { min-width: auto; }
.text-constrain-500 { max-width: 500px; }
.pt-section   { padding-top: 4rem; }

/* ---------- Blog detail hero ---------- */
.blog-hero-img  { max-height: 400px; object-fit: cover; }

/* ---------- Window-dot (mockup illustrations) ---------- */
.window-dot { width: 12px; height: 12px; }

/* ---------- Landing page icon boxes ---------- */
.icon-box-green {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  color: #2e7d32;
}
.icon-box-blue {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1565c0;
}
.icon-box-orange {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  color: #e65100;
}
.icon-box-pink {
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
  color: #c62828;
}
.icon-box-green-bg {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
}

/* Landing page step circles */
.step-circle {
  width: 80px;
  height: 80px;
  font-size: 2rem;
  font-weight: 800;
}

/* Landing page CTA card icons */
.cta-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Badge with font-weight: 500 */
.badge-fw-500 { font-weight: 500; }

/* Landing page hero overlay combined */
.hero-lead {
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  font-size: 1.15rem;
}
.hero-lead-dim {
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
}

/* Accent link (green) */
.link-green {
  color: #2e7d32;
  text-decoration: none;
}
.link-green:hover {
  color: #4fde5c;
}

/* Dashboard mockup text colors */
.text-blue-600  { color: #1565c0; }
.text-orange-800 { color: #e65100; }

/* Salary badge (green) */
.badge-salary-light {
  background-color: #e8f5e9;
  color: #2e7d32;
}

/* ---------- Pagination ---------- */
.page-link {
  color: #1a1a1a;
}

.page-link:hover {
  color: #4fde5c;
  border-color: #4fde5c;
}

.active > .page-link {
  background-color: #4fde5c;
  border-color: #4fde5c;
  color: #1a1a1a;
}

/* ---------- Custom badges ---------- */
.badge-salary {
  background-color: #e8f9e9;
  color: #217a29;
  font-weight: 600;
}

/* ---------- Hero section ---------- */
.hero-primary {
  background: linear-gradient(135deg, #4fde5c 0%, #38b544 100%);
}

/* ---------- Line-clamp utility ---------- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   Guide page (recruiters)
   ======================================== */
.guide-hero {
    background: linear-gradient(135deg, #1a3a2a 0%, #0d1f17 50%, #162e22 100%);
    color: #fff;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}
.guide-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 222, 92, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.guide-section         { padding: 3rem 0; }
.guide-section.alt-bg  { background: #f8faf9; }

.guide-step-number, .step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.guide-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8f0ec;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.guide-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.guide-tip {
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border-left: 4px solid #2e7d32;
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
}
.guide-warning {
    background: linear-gradient(135deg, #fff3e0, #fff8e1);
    border-left: 4px solid #e65100;
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
}
.toc-link {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}
.toc-link:hover {
    background: #e8f5e9;
    color: #2e7d32;
}
.screenshot-placeholder {
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    border-radius: 12px;
    border: 2px dashed #ccc;
    padding: 2rem;
    text-align: center;
    color: #999;
}

/* Gradient variants (guide step-numbers & icons) */
.gradient-green  { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); color: #2e7d32; }
.gradient-blue   { background: linear-gradient(135deg, #e3f2fd, #bbdefb); color: #1565c0; }
.gradient-orange { background: linear-gradient(135deg, #fff3e0, #ffe0b2); color: #e65100; }
.gradient-pink   { background: linear-gradient(135deg, #fce4ec, #f8bbd0); color: #c62828; }
.gradient-indigo { background: linear-gradient(135deg, #e8eaf6, #c5cae9); color: #283593; }
.gradient-purple { background: linear-gradient(135deg, #f3e5f5, #e1bee7); color: #6a1b9a; }

/* Solid background tints */
.bg-green-50  { background: #e8f5e9; }
.bg-orange-50 { background: #fff3e0; }
.bg-blue-50   { background: #e3f2fd; }
.bg-purple-50 { background: #f3e5f5; }
.bg-yellow-50 { background: #fff8e1; }
.bg-indigo-50 { background: #e8eaf6; }
.bg-red-50    { background: #ffebee; }

.guide-hero-icon { font-size: 6rem; opacity: 0.15; }
.guide-cta-bg    { background: linear-gradient(135deg, #1a3a2a, #0d1f17); }
.sticky-toc      { top: 100px; }
