/* ═══════════════════════════════════════════════════════════════
   Busiup Job Portal – style.css
   Black & White Minimal Modern Theme
════════════════════════════════════════════════════════════════ */

/* ─── Variables ──────────────────────────────────────────────── */
:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --grey-50: #f9f9f9;
  --grey-100: #f3f3f3;
  --grey-200: #e8e8e8;
  --grey-400: #9e9e9e;
  --grey-600: #616161;
  --accent: #111111;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,.07);
  --shadow-md: 0 6px 28px rgba(0,0,0,.10);
  --transition: all .22s ease;
}

/* ─── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--grey-50);
  color: var(--black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.min-vh-80 { min-height: 80vh; }

/* ─── Navbar ─────────────────────────────────────────────────── */
.navbar { border-bottom: 1px solid rgba(255,255,255,.08); }

.brand-dot { color: #ffffff; font-size: .75em; margin-right: 2px; }

.nav-hover { transition: var(--transition); }
.nav-hover:hover { color: #ffffff !important; }

.btn-white {
  background: #ffffff;
  color: #000000;
  border: none;
  font-weight: 600;
  border-radius: 6px;
  transition: var(--transition);
}
.btn-white:hover {
  background: #e0e0e0;
  color: #000000;
}

/* ─── Hero / Banner ─────────────────────────────────────────── */
.hero-section {
  min-height: 520px;
  background:
    /* linear-gradient(135deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.60) 100%), */
    url('https://images.unsplash.com/flagged/photo-1559717201-fbb671ff56b7?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTB8fGR1YmFpfGVufDB8fDB8fHww') center/cover no-repeat;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.78), rgba(30,30,30,.65));
}

.hero-heading {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -1px;
}

.hero-subheading {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 600px;
  opacity: .82;
}

.text-white-75 { color: rgba(255,255,255,.75) !important; }

/* ─── Search Bar ────────────────────────────────────────────── */
.search-form {
  max-width: 820px;
  background: rgba(255,255,255,.97);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
}

.search-form .input-group {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.search-form .input-group-text {
  border-radius: 10px 0 0 10px !important;
}

.search-form .form-control {
  font-size: .97rem;
}

/* ─── Stats Strip ────────────────────────────────────────────── */
.stats-strip { border-top: 1px solid rgba(255,255,255,.08); }
.stats-strip span { font-size: 1.3rem; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn-black {
  background-color: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-black:hover {
  background-color: #2a2a2a;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
}
.btn-black:active { transform: translateY(0); }

.btn-outline-dark {
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-outline-dark:hover { transform: translateY(-1px); }

/* ─── Job Cards ──────────────────────────────────────────────── */
.bg-light-custom { background: var(--grey-100); }

.job-card {
  border-radius: var(--radius-lg) !important;
  transition: var(--transition);
  background: var(--white);
}
.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md) !important;
}

.company-avatar {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--black);
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.25);
  color: var(--white);
  font-weight: 800;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.job-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;   
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.3;
    min-height: 2.6em;              /* Uniform box-sizing fallback alignment */
    clear: both;                    /* Structural break line protection override */
}
.company-name { font-size: .85rem; }
.location-text { color: var(--grey-600); }

/* Trending badge */
.trending-badge {
    background-color: #000000;      /* Keeps your sharp black look */
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;             /* Ensures it doesn't take 100% width line */
}

.trending-badge-lg {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Inline badges */
.badge-custom {
  display: inline-flex;
  align-items: center;
  font-size: .76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.badge-salary { background: #f0f0f0; color: #1a1a1a; }
.badge-exp { background: #f5f5f5; color: #1a1a1a; }

/* Like btn */
.btn-like { cursor: pointer; padding: 4px 6px; border-radius: 6px; transition: var(--transition); }
.btn-like:hover { background: rgba(0,0,0,.06) !important; }

/* ─── How It Works ───────────────────────────────────────────── */
.how-card {
  border-radius: var(--radius-lg);
  background: var(--grey-50);
  transition: var(--transition);
}
.how-card:hover { background: var(--white); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.how-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--black);
  color: var(--white);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* ─── Job Detail ─────────────────────────────────────────────── */
.detail-card { border-radius: var(--radius-lg) !important; overflow: hidden; }

.card-header-dark {
  background: var(--black);
  background: linear-gradient(135deg, #0a0a0a, #2a2a2a);
}

.info-pill {
  display: inline-flex;
  align-items: center;
  font-size: .82rem;
  font-weight: 600;
  background: var(--grey-100);
  color: var(--grey-600);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--grey-200);
}
.info-pill-green { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.info-pill-grey  { background: #fafafa; color: #555; }

.job-description { line-height: 1.8; font-size: .97rem; }
.company-description { line-height: 1.8; font-size: .97rem; }

/* ─── Apply Steps ────────────────────────────────────────────── */
.apply-steps { flex-wrap: wrap; }
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grey-200);
  color: var(--grey-600);
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--grey-200);
  transition: var(--transition);
}
.step-label { font-size: .75rem; font-weight: 600; color: var(--grey-400); }
.step-active .step-circle { background: var(--black); color: var(--white); border-color: var(--black); }
.step-active .step-label { color: var(--black); }
.step-done .step-circle { background: #16a34a; color: #fff; border-color: #16a34a; }
.step-line { flex: 1; height: 2px; background: var(--grey-200); min-width: 40px; max-width: 80px; margin-bottom: 22px; }

.applying-for-box {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
}

/* ─── Auth Forms ─────────────────────────────────────────────── */
.auth-card { border-radius: var(--radius-lg) !important; }

.brand-dot-lg { color: var(--black); }

.auth-input {
  border: 1.5px solid var(--grey-200);
  border-radius: 8px !important;
  padding: 10px 14px;
  font-size: .95rem;
  transition: var(--transition);
}
.auth-input:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}

/* OTP input */
.letter-spacing-otp { letter-spacing: 12px; }

/* ─── Profile ────────────────────────────────────────────────── */
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--black);
  color: var(--white);
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer-dark { background: var(--black); margin-top: auto; }

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeInUp .38s ease both;
}

/* ─── Responsive tweaks ──────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-section { min-height: 440px; background-attachment: scroll; }
  .search-form .row > div { padding: 4px; }
  .apply-steps { gap: 2px; }
  .step-line { min-width: 20px; }
}


/* ─── Signup Page Premium Upgrades ─────────────────────────── */

/* 1. Enhanced Background Depth */
.auth-section {
  background: radial-gradient(circle at 50% -20%, #ffffff, #f3f3f3) !important;
}

/* 2. Deeper, softer shadow for the card */
.auth-card {
  border: 1px solid var(--grey-200) !important;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.08) !important;
}

/* 3. The Icon-Inside-Input Logic */
/* ─── Horizontal Icon & Input Alignment ────────────────────── */

.input-group-auth {
  display: flex !important;
  align-items: center !important;
  background-color: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: 10px;
  padding: 0 14px; /* Space on the sides of the group */
  transition: all 0.2s ease;
}

/* Icon style - now naturally in the flex flow */
.input-group-auth i {
  position: static !important; /* Disables the previous absolute positioning */
  color: var(--grey-400);
  font-size: 1rem;
  margin-right: 12px; /* Gap between icon and text */
  display: flex;
  align-items: center;
}

/* Input style - borders removed so it blends into the wrapper */
.input-group-auth .auth-input {
  flex: 1;
  border: none !important;
  padding: 12px 0 !important; /* Vertical padding only */
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 0 !important; /* No longer need the 42px offset */
}

/* Border glow moves to the wrapper when the input is focused */
.input-group-auth:focus-within {
  border-color: var(--black);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

/* Change icon color when focusing on the field */
.input-group-auth:focus-within i {
  color: var(--black);
}

/* 4. Overriding your auth-input padding to make room for the icon */
.auth-input {
  padding-left: 42px !important; 
  transition: var(--transition);
}

.auth-input:focus {
  border-color: var(--black) !important;
  box-shadow: 0 0 0 4px rgba(0,0,0,.05) !important;
}

/* 5. The Square Logo Branding */
.brand-logo-sq {
  width: 48px;
  height: 48px;
  background: var(--black);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin: 0 auto 1.5rem;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 6. Smooth Button "Press" Interaction */
.btn-black:active {
  transform: translateY(0) scale(0.98) !important;
}

/* 7. SaaS-style labels (Tiny, Bold, Spaced) */
.form-label.text-uppercase {
  font-size: 0.65rem !important;
  letter-spacing: 0.08em;
  color: var(--grey-600);
  margin-bottom: 0.5rem;
}

/* 8. Page Entrance Animation */
.animate-fade-in {
  animation: fadeInUpSaaS 0.5s ease forwards;
}

@keyframes fadeInUpSaaS {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}



#buttonotp

/* ─── OTP Digit Boxing ─────────────────────────────────────── */

/* ─── OTP UI Correction ────────────────────────────────────── */

.otp-container {
  display: flex;
  gap: 12px; /* Increased gap */
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 30px; /* Separates the boxes from the button */
}

.otp-digit {
  width: 50px;
  height: 62px;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  /* Use a slightly darker grey for visibility */
  border: 2px solid #d1d5db !important; 
  border-radius: 12px;
  background: #ffffff;
  transition: all 0.2s ease-in-out;
}

.otp-digit:focus {
  border-color: var(--black) !important;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08) !important;
  outline: none;
}

/* Ensure the button has proper spacing and weight */
#verifyBtn {
  margin-top: 10px;
  padding: 14px !important;
  font-size: 1rem;
}

/* Add a bit more padding to the card for a cleaner look */
.auth-card .card-body {
  padding: 3rem 2.5rem !important;
}







/* ─── Variables ──────────────────────────────────────────────── */
:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --grey-50: #f8f9fa;
  --grey-100: #f3f4f6;
  --grey-200: #e5e7eb;
  --grey-400: #9ca3af;
  --grey-600: #4b5563;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05);
  --transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Base ───────────────────────────────────────────────────── */
body {
  font-family: 'Inter', sans-serif;
  background: var(--grey-50);
  color: var(--black);
}

.fw-800 { font-weight: 800; letter-spacing: -0.02em; }
.fw-700 { font-weight: 700; }

/* ─── Navbar ─────────────────────────────────────────────────── */
.glass-nav {
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0.8rem 0;
}

.brand-square {
  background: var(--white);
  color: var(--black);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.8rem;
}

.nav-hover {
  color: rgba(255,255,255,0.7) !important;
  transition: var(--transition);
}

.nav-hover:hover {
  color: var(--white) !important;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn-white {
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-white:hover {
  background: var(--grey-100);
  transform: translateY(-1px);
}

.btn-black {
  background: var(--black);
  color: var(--white);
  border-radius: 10px;
  border: none;
  font-weight: 600;
  padding: 12px 24px;
  transition: var(--transition);
}

.btn-black:hover {
  background: #222;
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.btn-black:active { transform: scale(0.98); }

/* ─── Auth Cards ─────────────────────────────────────────────── */
.auth-section {
  background: radial-gradient(circle at top, #ffffff, #f3f4f6);
}

.auth-card {
  border: 1px solid var(--grey-200) !important;
  box-shadow: var(--shadow-md) !important;
  border-radius: 20px !important;
}

/* ─── Premium Form Inputs ────────────────────────────────────── */
.input-group-auth {
  display: flex !important;
  align-items: center !important;
  background-color: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: 10px;
  padding: 0 16px;
  transition: var(--transition);
}

.input-group-auth:focus-within {
  border-color: var(--black);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.input-group-auth i {
  color: var(--grey-400);
  margin-right: 12px;
}

.auth-input {
  flex: 1;
  border: none !important;
  padding: 12px 0 !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.form-label.text-uppercase {
  font-size: 0.65rem !important;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--grey-600);
  margin-bottom: 0.5rem;
}

/* ─── OTP UI ─────────────────────────────────────────────────── */
.otp-container {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 2rem 0;
}

.otp-digit {
  width: 52px;
  height: 64px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid #d1d5db !important;
  border-radius: 12px;
  background: #fff;
  transition: var(--transition);
}

.otp-digit:focus {
  border-color: var(--black) !important;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08) !important;
  outline: none;
}

/* ─── Alerts & Utilities ───────────────────────────────────────── */
.alert-custom {
  border-radius: 12px;
  font-weight: 500;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

footer {
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,0.05);
  
  
 /* ─── Ultra Mobile 3-Column Display Layout Updates ───────────── */
@media (max-width: 576px) {
  /* Tighten card spacing gaps globally */
  #job-listings-container .row {
    --bs-gutter-x: 0.5rem !important;
    --bs-gutter-y: 0.5rem !important;
  }

  /* Compress listing body card padding shapes */
  #job-listings-container .job-card {
    padding: 10px !important;
    border-radius: 10px !important;
  }

  /* Scale down heading titles from global settings to prevent layout breakages */
  #job-listings-container .job-title {
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
  }

  /* Compact text sizes */
  #job-listings-container .company-name, 
  #job-listings-container .location-text,
  #job-listings-container .post-time {
    font-size: 0.68rem !important;
  }

  /* Downscale secondary target badges safely */
  #job-listings-container .badge-custom {
    font-size: 0.62rem !important;
    padding: 2px 5px !important;
  }

  /* Compact details view button adjustments */
  #job-listings-container .btn-black.btn-sm {
    font-size: 0.72rem !important;
    padding: 4px 6px !important;
    border-radius: 6px !important;
  }

  /* Small screen like-button bounds */
  #job-listings-container .btn-like {
    margin: 6px !important;
  }
  #job-listings-container .btn-like i {
    font-size: 0.95rem !important;
  }

  /* Compact trending badge real estate */
  #job-listings-container .trending-badge {
    top: 6px;
    left: 6px;
    padding: 1px 5px;
    font-size: 0.6rem;
  }
  #job-listings-container .trending-badge .trending-text {
    display: none; /* Keeps just the icon on mobile to avoid overcrowding */
  }
}
}