/* ==========================================================================
   StudentJob: Search, Categories & Job Listings Styling
   ========================================================================== */

/* ---------------- Hero Section & Search Bar ---------------- */
.home-hero-section {
  padding: 4.5rem 0 3.25rem;
  background: radial-gradient(circle at 50% -20%, rgba(28, 123, 255, 0.12) 0%, rgba(245, 240, 255, 0.4) 35%, rgba(255, 255, 255, 0) 70%);
  position: relative;
  z-index: 20;
  overflow: visible;
}

.hero-titles {
  text-align: center;
  margin-bottom: 2.75rem;
  position: relative;
  z-index: 2;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--color-primary-light, #1c7bff17);
  border: 1px solid var(--color-primary-border, rgba(28, 123, 255, 0.22));
  color: var(--color-primary, #1562cc);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px var(--color-primary-glow, rgba(28, 123, 255, 0.08));
  transition: all 0.2s ease;
}

.hero-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(28, 123, 255, 0.14);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  }

  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.1);
  }
}

.hero-title {
  font-family: var(--font-main, 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif);
  font-size: clamp(2.35rem, 4.4vw, 56px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.16;
  margin: 0 auto 1.25rem;
  max-width: 980px;
  letter-spacing: -0.03em;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--color-primary, #1c7bff) 0%, var(--color-primary-hover, #6320e8) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #475569;
  margin: 0 auto;
  max-width: 720px;
  line-height: 1.6;
  font-weight: 400;
}

/* Modern Unified Search Container */
.search-container {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 25;
}

/* Unified Elevated Search Bar Form */
.search-box-form {
  display: flex;
  background: #ffffff;
  border: 1.5px solid rgba(28, 123, 255, 0.18);
  border-radius: 20px;
  box-shadow: 0 20px 45px -8px rgba(28, 123, 255, 0.12), 0 4px 14px rgba(15, 23, 42, 0.04);
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 0.6rem 0.5rem 1rem;
  min-height: 72px;
  position: relative;
  z-index: 30;
  overflow: visible;
}

.search-box-form:hover,
.search-box-form:focus-within {
  border-color: #1c7bff;
  box-shadow: 0 24px 55px -6px rgba(28, 123, 255, 0.18), 0 6px 20px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

/* Search Columns */
.search-col {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  height: 100%;
}

.search-col-query {
  flex: 1.5;
  padding: 0.25rem 0.75rem 0.25rem 0;
}

.search-col-location {
  flex: 1.1;
  padding: 0.25rem 0.75rem;
  position: relative;
}

.search-col-category {
  flex: 1.1;
  padding: 0.25rem 0.75rem;
  position: relative;
}

.search-col-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Search Field Icon */
.search-field-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #1c7bff17;
  color: #1c7bff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.search-col:hover .search-field-icon,
.search-col:focus-within .search-field-icon {
  background: #1c7bff;
  color: #ffffff;
  transform: scale(1.05);
}

/* Search Field Body (Label + Input) */
.search-field-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.search-field-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 2px 0;
  cursor: pointer;
}

.search-field-body input,
.search-field-body select {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.95rem;
  font-weight: 500;
  color: #0f172a;
  background: transparent;
  font-family: inherit;
  padding: 0;
  margin: 0;
  line-height: 1.3;
}

.search-field-body input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* Custom Category Dropdown Styling */
.search-col-category {
  position: relative;
  z-index: 40;
}

.search-col-location {
  position: relative;
  z-index: 41;
}

.search-col-location .search-custom-select-menu {
  left: -20px;
}

.search-custom-select-wrap {
  position: relative;
  width: 100%;
}

.search-custom-select-wrap.is-open {
  z-index: 9999;
}

.search-custom-select-trigger {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  outline: none;
  font-family: inherit;
  color: #0f172a;
  gap: 0.5rem;
}

.search-selected-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.search-custom-select-wrap .search-select-chevron {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
  flex-shrink: 0;
}

.search-custom-select-wrap.is-open .search-select-chevron {
  transform: rotate(180deg);
  color: var(--color-primary, #1c7bff);
}

/* Floating Dropdown Menu */
.search-custom-select-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: -40px;
  min-width: 310px;
  max-width: 380px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
  z-index: 9999;
  padding: 0.5rem 0.35rem 0.4rem 0.35rem;
}

.search-custom-select-wrap.is-open .search-custom-select-menu {
  display: block;
  animation: dropdownFadeSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeSlide {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Quick Filter Search inside Dropdown */
.search-dropdown-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  margin: 0.25rem 0.4rem 0.5rem 0.4rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-dropdown-search-wrap:focus-within {
  border-color: var(--color-primary, #1c7bff);
  box-shadow: 0 0 0 2px rgba(28, 123, 255, 0.15);
  background: #ffffff;
}

.search-dropdown-search-input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.825rem;
  color: #1e293b;
  font-family: inherit;
}

.search-dropdown-search-input::placeholder {
  color: #94a3b8;
}

/* Options List Container */
.search-custom-select-menu {
  min-width: 310px;
}

.search-custom-select-options {
  max-height: 440px;
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 0 0.2rem;
}

.search-opt-parent {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  background: #f8fafc;
  margin-top: 6px !important;
  padding: 0.55rem 0.85rem !important;
}

.search-opt-parent:hover {
  background: #eff6ff !important;
  color: #1c7bff !important;
}

.search-opt-child {
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  color: #475569 !important;
  padding: 0.44rem 0.85rem 0.44rem 1.65rem !important;
  position: relative;
}

.search-opt-child::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cbd5e1;
  transform: translateY(-50%);
  transition: background 0.15s ease;
}

.search-opt-child:hover::before,
.search-opt-child.is-selected::before {
  background: #1c7bff;
}

.search-opt-parent-tag {
  display: none;
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-custom-select-options.is-filtering .search-opt-parent-tag {
  display: inline-block;
}

.search-opt-child:hover .search-opt-parent-tag {
  background: #dbeafe;
  color: #1d4ed8;
}

.search-custom-select-options::-webkit-scrollbar {
  width: 5px;
}

.search-custom-select-options::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

/* Option Row */
.search-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  margin: 2px 0;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.search-select-option:hover {
  background: #1c7bff17;
  color: var(--color-primary, #1c7bff);
}

.search-select-option.is-selected {
  background: #1b79fb1c;
  color: var(--color-primary, #1c7bff);
  font-weight: 700;
}

.search-select-option .option-check-icon {
  display: none;
  color: var(--color-primary, #1c7bff);
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.search-select-option.is-selected .option-check-icon {
  display: inline-block;
}

/* Divider Lines */
.search-field-divider {
  width: 1px;
  height: 38px;
  background-color: #e8eef5;
  flex-shrink: 0;
}

/* Search Submit Button */
.search-submit-btn {
  background: linear-gradient(135deg, var(--color-primary, #1c7bff) 0%, var(--color-primary-hover, #1562cc) 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  height: 54px;
  padding: 0 1.65rem;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 4px 14px rgba(28, 123, 255, 0.35);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.search-submit-btn:hover {
  background: linear-gradient(135deg, #783be8 0%, #5d1be0 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28, 123, 255, 0.45);
}

.search-submit-btn svg {
  transition: transform 0.2s ease;
}

.search-submit-btn:hover svg {
  transform: scale(1.1);
}

/* Popular Quick Search Tags & Advanced Search Bar */
.search-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding: 0 0.5rem;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.search-quick-tags {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.quick-tags-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  margin-right: 0.25rem;
}

.quick-tag-pill {
  font-size: 0.825rem;
  font-weight: 500;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.3rem 0.85rem;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}

.quick-tag-pill:hover {
  background: #1c7bff17;
  color: #1c7bff;
  border-color: rgba(28, 123, 255, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(28, 123, 255, 0.12);
}

@media (max-width: 768px) {
  .search-quick-tags .mobile-hidden-tag,
  .search-quick-tags a.quick-tag-pill:nth-of-type(n+6) {
    display: none !important;
  }
}

.search-adv-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary, #1c7bff);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.search-adv-link:hover {
  background: var(--color-primary-light, #1c7bff17);
  color: var(--color-primary-hover, #1562cc);
}

/* Responsive Rules for Hero & Search */
@media (max-width: 960px) {
  .search-box-form {
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
    height: auto;
    border-radius: 16px;
  }

  .search-col {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
  }

  .search-field-divider {
    display: none;
  }

  .search-col-btn {
    width: 100%;
    padding: 0;
  }

  .search-submit-btn {
    width: 100%;
    height: 50px;
    justify-content: center;
  }

  .search-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------------- Categories Grid ---------------- */
.home-categories-section {
  margin: 2.25rem 0 3.75rem;
  position: relative;
  z-index: 1;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.15rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #f0f7ff;
  border: 1px solid #cce4ff;
  border-radius: 12px;
  padding: 20px 14px;
  min-height: 140px;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.category-card::before {
  display: none !important;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(28, 123, 255, 0.15);
  border-color: #1c7bff;
  background: #ffffff;
}

.cat-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: auto;
  height: auto;
  transition: transform 0.25s ease;
}

.category-card:hover .cat-icon-box {
  transform: scale(1.15);
}

.cat-icon {
  font-size: 1.85rem;
  line-height: 1;
  display: inline-block;
}

.cat-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0b264b;
  margin: 0;
  line-height: 1.3;
  text-transform: capitalize;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.category-card:hover .cat-title {
  color: #1c7bff;
}

.cat-count-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  transition: all 0.2s ease;
}

.category-card:hover .cat-count-badge {
  background: transparent !important;
  color: #1c7bff;
  border: none !important;
}

/* Category Color Variations Reset */
.category-card.theme-purple .cat-icon-box,
.category-card.theme-amber .cat-icon-box,
.category-card.theme-rose .cat-icon-box,
.category-card.theme-sky .cat-icon-box,
.category-card.theme-emerald .cat-icon-box,
.category-card.theme-indigo .cat-icon-box,
.category-card.theme-teal .cat-icon-box {
  background: transparent !important;
  border: none !important;
}

/* ---------------- Section Header ---------------- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  letter-spacing: -0.01em;
}

.section-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 1.2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.section-title-icon.icon-briefcase {
  background: #1c7bff17;
  border: 1px solid #ebd9fc;
}

.section-title-icon.icon-fire {
  background: #fff7ed;
  border: 1px solid #ffedd5;
}

.section-view-all {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary, #1c7bff);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  background: var(--color-primary-light, #faf8ff);
  border: 1px solid var(--color-primary-border, rgba(28, 123, 255, 0.15));
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-view-all:hover {
  background: var(--color-primary, #1c7bff);
  color: #ffffff;
  border-color: var(--color-primary, #1c7bff);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--color-primary-glow, rgba(28, 123, 255, 0.25));
}

.section-view-all svg {
  transition: transform 0.2s ease;
}

.section-view-all:hover svg {
  transform: translateX(3px);
}

.view-all-mobile {
  display: none !important;
}

.view-all-desktop {
  display: inline !important;
}

@media (max-width: 768px) {
  .view-all-mobile {
    display: inline !important;
  }
  .view-all-desktop {
    display: none !important;
  }
  .section-view-all,
  .premium-view-all {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
}

/* ---------------- Job Row List View ---------------- */
.jobs-list-wrapper {
  background: #ffffff;
  border: 1px solid #e8eef5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
  width: 100%;
}

.job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 0.85rem 1.45rem;
  min-height: 78px;
  width: 100%;
  border-bottom: 1px solid #f1f5f9;
  border-left: 4px solid transparent;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-decoration: none;
  color: inherit;
}

.job-row:last-child {
  border-bottom: none;
}

.job-row:nth-child(even) {
  background-color: #fafbfc;
}

.job-row:hover {
  background-color: #fcfaff;
  border-left-color: #1c7bff;
  box-shadow: 0 6px 20px rgba(28, 123, 255, 0.07);
  z-index: 2;
  transform: translateX(2px);
}

.job-row-left {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-width: 0;
  flex: 1;
}

/* Company Logo Squircle */
.job-logo-square {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  border: 1px solid #e9eef5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.job-row:hover .job-logo-square {
  transform: scale(1.05);
  border-color: rgba(28, 123, 255, 0.25);
}

.job-logo-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-logo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1c7bff17 0%, #1b79fb1c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1c7bff;
}

.job-main-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.job-company-name {
  font-size: 0.825rem;
  font-weight: 600;
  color: #64748b;
  margin: 0 0 1px 0;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.job-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.job-row:hover .job-title {
  color: #1c7bff;
}

.job-meta-row {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  flex-wrap: wrap;
  margin-top: 4px;
}

.job-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.825rem;
  color: #64748b;
  font-weight: 450;
  line-height: 1.25;
}

.job-meta-item svg {
  color: #94a3b8;
  flex-shrink: 0;
}

/* Right Section */
.job-row-right {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-shrink: 0;
  margin-left: 1.35rem;
}

.job-row-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

/* Salary Badge */
.job-salary-badge {
  font-weight: 600;
  color: #15803d;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  line-height: 1.2;
}

.job-salary-badge svg {
  color: #16a34a;
}

/* Format Tags Group */
.job-format-group {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.job-format-badge {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  line-height: 1.2;
}

.job-format-badge.format-remote,
.job-format-badge.format-ne-distance {
  background: #1b79fb1c;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.job-format-badge.format-hybrid,
.job-format-badge.format-hibrid {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.job-format-badge.format-office,
.job-format-badge.format-onsite,
.job-format-badge.format-zyre,
.job-format-badge.format-zyra {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.job-type-pill {
  font-size: 0.725rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background-color: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
  line-height: 1.2;
}

/* Action Circle Arrow */
.job-row-arrow {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.job-row:hover .job-row-arrow {
  background: #1c7bff;
  border-color: #1c7bff;
  color: #ffffff;
  transform: translateX(3px);
  box-shadow: 0 4px 10px rgba(28, 123, 255, 0.35);
}

/* ---------------- CTA Banner ---------------- */
.home-cta-banner {
  margin: 4rem 0 2rem;
  background: linear-gradient(135deg, var(--color-primary, #1c7bff) 0%, var(--color-primary-hover, #6320e8) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px var(--color-primary-glow, rgba(28, 123, 255, 0.25));
}

.home-cta-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.home-cta-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
  max-width: 600px;
}

.home-cta-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.home-cta-actions .btn-white {
  background: #ffffff;
  color: var(--color-primary);
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s;
}

.home-cta-actions .btn-white:hover {
  background: #f0f7ff;
  transform: translateY(-2px);
}

/* ---------------- Responsive Rules ---------------- */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-cta-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
  }
}

/* ---------------- Recent News Articles Section ---------------- */
.home-news-section {
  padding: 3rem 0 5rem;
  background-color: #f8fafc;
}

.home-news-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}

.home-news-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.home-news-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.home-news-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.home-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.home-news-thumb-link {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
}

.home-news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.home-news-card:hover .home-news-thumb {
  transform: scale(1.03);
}

.home-news-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding-top: 1.15rem;
}

.home-news-date {
  font-size: 0.825rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 0.65rem;
  display: block;
}

.home-news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  color: #0f172a;
  margin: 0 0 1.25rem;
}

.home-news-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-news-card-title a:hover {
  color: var(--color-primary, #1c7bff);
}

.home-news-read-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.home-news-read-more:hover {
  color: var(--color-primary, #1c7bff);
  gap: 7px;
}

.home-news-footer {
  text-align: center;
  margin-top: 1.75rem;
}

.home-news-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.home-news-all-btn:hover {
  color: var(--color-primary, #1c7bff);
  transform: translateX(3px);
}

@media (max-width: 1024px) {
  .home-news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .home-news-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .home-news-title {
    font-size: 1.65rem;
  }

  .home-news-section {
    padding: 2.5rem 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .search-box-form {
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .search-input-col,
  .search-select-col,
  .search-btn-col {
    width: 100%;
    padding: 0.5rem 0.25rem;
  }

  .search-divider {
    display: none;
  }

  .search-submit-btn {
    width: 100%;
    height: 46px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .job-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.15rem 1rem;
    gap: 1rem;
  }

  .job-row-right {
    align-items: center;
    margin-left: 0;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
  }

  .job-row-badges {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .job-title {
    white-space: normal;
  }

  .job-meta-date {
    display: none !important;
  }

  .job-type-pill {
    display: none !important;
  }
}

/* ==========================================================================
   Vacancies Archive Page (archive-job.php)
   ========================================================================== */
.archive-main {
  width: 100%;
}

.archive-main .container {
  max-width: 1320px;
  width: 100%;
}

.archive-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2.5rem 0 4.5rem;
  width: 100%;
}

/* Archive Main Vacancies Content Area */
.archive-content {
  flex: 1;
  min-width: 0;
  width: 100%;
}

/* Elevated Sidebar Card */
.archive-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #e8eef5;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  position: static;
  max-height: none;
  overflow: visible;
}

.archive-sidebar::-webkit-scrollbar {
  width: 5px;
}

.archive-sidebar::-webkit-scrollbar-thumb {
  background-color: #e2e8f0;
  border-radius: 4px;
}

/* Sidebar Top Header */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.15rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sidebar-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #1c7bff17;
  color: #1c7bff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}

.sidebar-reset-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary, #1c7bff);
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.sidebar-reset-link:hover {
  background: var(--color-primary-light, #1c7bff17);
  color: var(--color-primary-hover, #1562cc);
}

/* Filter Group Accordion (Closed by default, click to expand) */
.filter-group {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
}

.filter-group:last-of-type {
  border-bottom: none;
  margin-bottom: 0.25rem;
  padding-bottom: 0;
}

.filter-group-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  padding: 0.45rem 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -0.01em;
  cursor: pointer;
  user-select: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.filter-group-title:hover {
  background: #f8fafc;
  color: var(--color-primary, #1c7bff);
}

.filter-group-title-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
}

.filter-title-icon {
  font-size: 1rem;
  line-height: 1;
}

.filter-group-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #94a3b8;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.filter-group-title:hover .filter-group-chevron {
  color: var(--color-primary, #1c7bff);
  background: #1c7bff17;
}

.filter-group.is-open .filter-group-chevron {
  transform: rotate(180deg);
  color: var(--color-primary, #1c7bff);
}

/* Collapsed by default: options list is closed */
.filter-group .filter-options-list {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 240px;
  overflow-y: auto;
  padding: 0.5rem 0.25rem 0.25rem 0;
  scrollbar-width: thin;
}

/* Expanded state: show all options when clicked */
.filter-group.is-open .filter-options-list {
  display: flex;
  animation: filterGroupSlideDown 0.2s ease-out;
}

@keyframes filterGroupSlideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-active-pill {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-primary, #1c7bff);
  background: #1c7bff17;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  margin-left: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

/* Filter Option Row */
.filter-group .filter-option,
label.filter-option {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.65rem !important;
  padding: 0.45rem 0.65rem !important;
  margin: 0 !important;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  position: relative;
  width: 100%;
}

.filter-group .filter-option:hover,
label.filter-option:hover {
  background-color: #f8fafc;
}

.filter-group .filter-option.is-active,
label.filter-option.is-active {
  background-color: #1c7bff17;
}

.filter-radio-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Custom Styled Radio */
.filter-custom-radio {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  border-radius: 50% !important;
  border: 1.5px solid #cbd5e1;
  background-color: #ffffff;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0 !important;
  transition: all 0.2s ease;
}

.filter-option:hover .filter-custom-radio {
  border-color: #1c7bff;
}

.filter-option.is-active .filter-custom-radio {
  border-color: #1c7bff;
  background-color: #1c7bff;
}

.filter-option.is-active .filter-custom-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ffffff;
}

.filter-option.is-active .filter-custom-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ffffff;
}

/* Label & Count */
.filter-option-name {
  font-size: 0.865rem;
  font-weight: 500;
  color: #334155;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: capitalize;
  transition: color 0.18s ease;
}

.filter-option.is-active .filter-option-name {
  color: var(--color-primary, #1562cc);
  font-weight: 600;
}

.filter-option-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  background-color: #f1f5f9;
  padding: 2px 7px;
  border-radius: 9999px;
  min-width: 20px;
  text-align: center;
  line-height: 1.3;
  transition: all 0.18s ease;
}

.filter-option.is-active .filter-option-count {
  background-color: var(--color-primary-border, #ebd9fc);
  color: var(--color-primary, #1562cc);
}

/* Reset All Filters Button */
.sidebar-clear-action {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid #f1f5f9;
}

.sidebar-clear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-clear-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: translateY(-1px);
}

.archive-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  width: 100%;
}

.archive-count {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.archive-active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex: 1;
  justify-content: flex-end;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.55rem 0.3rem 0.7rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 9999px;
  font-size: 0.8rem;
  line-height: 1.2;
  color: #1e40af;
}

.active-filter-chip-label {
  color: #64748b;
  font-weight: 500;
}

.active-filter-chip-value {
  font-weight: 600;
  color: #1d4ed8;
}

.active-filter-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 0.1rem;
  border-radius: 50%;
  color: #3b82f6;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.active-filter-chip-remove:hover {
  background: #dbeafe;
  color: #1e3a8a;
}

.active-filter-clear-all {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.32rem 0.75rem;
  border-radius: 9999px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.active-filter-clear-all:hover {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #be123c;
}

@media (max-width: 768px) {
  .archive-active-filters {
    justify-content: flex-start;
  }
}

.archive-sort-select {
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--color-text-main);
  outline: none;
}

/* ==========================================================================
   Single Job Page (single-job.php)
   ========================================================================== */
.single-job-container {
  padding: 2rem 0 4rem;
  background-color: var(--color-background);
}

/* Single Job Top Bar (Breadcrumbs & Admin Actions) */
.single-job-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.single-job-top-bar .studentjob-breadcrumbs,
.single-job-top-bar .breadcrumb-list {
  margin-bottom: 10px !important;
  font-size: 12px;
}

.admin-vacancy-actions {
  display: inline-flex;
  align-items: center;
}

.admin-edit-vacancy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.admin-edit-vacancy-btn:hover {
  color: var(--color-primary, #1c7bff);
  background: #fdfcff;
  border-color: var(--color-primary, #1c7bff);
  box-shadow: 0 4px 12px rgba(28, 123, 255, 0.14);
  transform: translateY(-1px);
}

.admin-edit-vacancy-btn svg {
  color: #64748b;
  transition: color 0.2s ease;
}

.admin-edit-vacancy-btn:hover svg {
  color: var(--color-primary, #1c7bff);
}

.single-job-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.single-job-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.single-job-sidebar {
  width: 380px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Job Hero / Header Block */
.job-header-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.job-header-top {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
}

/* Save Vacancy Bookmark Button */
.job-save-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.job-save-btn:hover {
  background: #1c7bff17;
  color: #1c7bff;
  border-color: #b9d8ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(28, 123, 255, 0.18);
}

.job-save-btn:active {
  transform: scale(0.95);
}

.job-save-btn.saved {
  background: #1c7bff17;
  color: #1c7bff;
  border-color: #1c7bff;
  box-shadow: 0 2px 8px rgba(28, 123, 255, 0.22);
}

.job-save-btn.saved svg {
  fill: currentColor;
}

.job-header-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.job-header-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.job-header-info {
  flex: 1;
}

.job-header-info .company-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.job-header-info .job-title-large {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.job-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.job-header-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Job Content Card */
.job-detail-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.job-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.job-body-content {
  font-size: 0.8rem;
  line-height: 1.8;
  color: #334155;
}

.job-body-content p {
  margin-bottom: 1.25rem;
}

.job-body-content ul,
.job-body-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.job-body-content li {
  margin-bottom: 0.5rem;
}

/* Job Video Detail Card */
.job-video-detail-card {
  margin-top: 0;
}

.job-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #000000;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.job-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Sidebar Info Blocks */
.sidebar-card {
  background: #ffffff;
  border-radius: var(--radius-md);

  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-apply-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.sidebar-apply-btn:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(28, 123, 255, 0.25);
}

/* Single Vacancy Salary Header (Matching myjobs.al) */
.job-salary-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.job-salary-amount {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.job-salary-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 400;
}

.job-summary-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.job-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

.job-summary-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.job-summary-label {
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 500;
}

.job-summary-value {
  font-weight: 600;
  color: var(--color-text-main);
}

/* Minimalist Monochrome Icon Box (matches screenshot) */
.sj-icon-box {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.job-summary-item:hover .sj-icon-box,
.job-stat-card:hover .sj-icon-box {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

/* Key Attributes Stat Cards */
.job-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .job-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.job-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.job-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.06);
  border-color: #cbd5e1;
}

.job-stat-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0.15rem;
}

.job-stat-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.job-stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}

/* Modal Popup */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-content-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
}

@media (max-width: 991px) {

  .archive-layout,
  .single-job-layout {
    flex-direction: column;
  }

  .single-job-sidebar {
    width: 100%;
    position: static;
    max-height: none;
  }
}

/* --------------------------------------------------------------------------
   Mobile Filters Trigger & Slide-in Drawer Styles (matching myauto.al)
   -------------------------------------------------------------------------- */
.btn-archive-mobile-filter {
  display: none;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 150ms ease;
  white-space: nowrap;
}

.btn-archive-mobile-filter:hover,
.btn-archive-mobile-filter:active {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-archive-mobile-filter svg {
  color: #475569;
  flex-shrink: 0;
}

.mobile-filter-count-badge {
  background: #e81111;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  line-height: 19px;
  padding: 0 5px;
  border-radius: 9999px;
  text-align: center;
  display: inline-block;
  box-sizing: border-box;
}

.archive-sidebar-backdrop {
  display: none;
}

.archive-sidebar-mobile-header {
  display: none;
}

.sidebar-mobile-apply-bar {
  display: none;
}

.archive-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.archive-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 1024px) {
  .btn-archive-mobile-filter {
    display: inline-flex;
  }

  .archive-layout {
    display: block !important;
  }

  .archive-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .archive-sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  .archive-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 360px !important;
    max-width: 88vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #ffffff !important;
    z-index: 999999 !important;
    box-shadow: 6px 0 28px rgba(0, 0, 0, 0.22) !important;
    transform: translateX(-100%) !important;
    visibility: hidden !important;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: none !important;
  }

  .archive-sidebar.active {
    transform: translateX(0) !important;
    visibility: visible !important;
  }

  .archive-sidebar-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .sidebar-mobile-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
  }

  .archive-sidebar-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 150ms ease;
  }

  .archive-sidebar-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
  }

  .archive-sidebar form#jobFilterForm {
    padding: 18px 20px 80px;
  }

  .sidebar-header.desktop-only {
    display: none !important;
  }

  .sidebar-clear-action.desktop-only {
    display: none !important;
  }

  .sidebar-mobile-apply-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
  }

  .sidebar-apply-btn {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: 10px;
    background: var(--color-primary, #1c7bff);
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(28, 123, 255, 0.25);
  }

  .sidebar-mobile-reset-btn {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    padding: 6px;
  }

  .sidebar-mobile-reset-btn:hover {
    color: #ef4444;
  }
}

@media (max-width: 640px) {
  .archive-header {
    gap: 0.6rem;
  }

  .archive-meta-row {
    flex-wrap: nowrap;
  }

  .archive-count {
    font-size: 0.88rem;
  }

  .btn-archive-mobile-filter {
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }
}

/* ==========================================================================
   About Company Sidebar Card (Matching Reference Design)
   ========================================================================== */
.about-company-sidebar-card {
  position: relative;
}

.about-company-top-actions {
  display: flex !important;
  justify-content: right !important;
  align-items: center !important;
  width: 100% !important;
  margin-bottom: 0.75rem !important;
}

.company-follow-pill-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: auto !important;
  height: 32px !important;
  padding: 4px 15px !important;
  background-color: #ffffff !important;
  border: 1.5px solid var(--color-primary, #1c7bff) !important;
  color: var(--color-primary, #1c7bff) !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.8125rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(28, 123, 255, 0.08) !important;
  box-sizing: border-box !important;
  outline: none !important;
}

.company-follow-pill-btn:hover {
  background-color: #eff6ff !important;
  border-color: var(--color-primary, #1c7bff) !important;
  color: var(--color-primary, #1c7bff) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 8px rgba(28, 123, 255, 0.15) !important;
}

.company-follow-pill-btn.following {
  background-color: #f0fdf4 !important;
  border-color: #16a34a !important;
  color: #16a34a !important;
}

.company-follow-pill-btn.following:hover {
  background-color: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

.company-follow-pill-btn svg {
  width: 14px !important;
  height: 14px !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  fill: none !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.company-follow-pill-btn.following svg {
  stroke: currentColor !important;
  fill: none !important;
}

.about-company-header-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.25rem;
}

.about-company-logo-box {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 16px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto 0.85rem auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06), inset 0 0 0 2px #ffffff;
  padding: 0;
  box-sizing: border-box;
}

.about-company-logo-box::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2.5px solid #ffffff;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  box-sizing: border-box;
}

.about-company-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 15px;
  display: block;
  padding: 0;
  margin: 0;
}

.about-company-logo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
  color: #6366f1;
  font-size: 1.5rem;
  font-weight: 700;
}

.about-company-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.about-company-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.about-company-name a:hover {
  color: #2563eb;
}

.about-company-meta-item {
  font-size: 0.88rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.about-company-followers-line {
  margin-bottom: 0.25rem;
}

.about-company-divider {
  width: 100%;
  height: 1px;
  background-color: #f1f5f9;
  margin: 1.25rem 0;
}

.about-company-body-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.about-company-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 1.25rem;
}

.about-company-website-btn {
  width: 100%;
  font-size: 0.85rem;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-weight: 500;
  background: #ffffff;
  transition: all 0.2s ease;
}

.about-company-website-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
  background-color: #eff6ff;
}

/* ==========================================================================
   Full-Width Single Vacancy Hero Header Card (Matching Reference Design)
   ========================================================================== */
.single-job-hero-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px 32px 32px;
  margin-top: 32px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 2rem;
  position: relative;
}

.job-hero-logo-box {
  position: absolute;
  top: -34px;
  left: 32px;
  width: 88px;
  height: 88px;
  border-radius: 16px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06), inset 0 0 0 2px #ffffff;
  z-index: 10;
  text-decoration: none;
  box-sizing: border-box;
}

.job-hero-logo-box::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2.5px solid #ffffff;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  box-sizing: border-box;
}

.job-hero-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 15px;
  display: block;
  padding: 0;
  margin: 0;
}

.job-hero-logo-fallback {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary, #1c7bff);
  line-height: 1;
}

.job-hero-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-top: 48px;
}

.job-hero-title {
  font-family: var(--font-main, 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.01em;
}

.job-hero-company {
  font-size: 1.05rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.65rem;
}

.job-hero-company a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.job-hero-company a:hover {
  color: var(--color-primary, #1c7bff);
}

.job-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: auto;
}

.job-hero-meta-item {
  display: inline-flex;
  align-items: center;
  color: inherit;
}

.job-hero-meta-sep {
  color: #9ca3af;
  font-size: 0.85rem;
  user-select: none;
}

.job-hero-meta-views {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #6b7280;
}

.job-hero-meta-views svg {
  color: #9ca3af;
}

/* Right Column of Hero Card */
.job-hero-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  flex-shrink: 0;
  align-self: stretch;
}

.job-hero-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.job-hero-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #ffffff;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.38rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
}

.job-hero-edit-btn:hover {
  background: #f9fafb;
  color: #111827;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.job-hero-bottom-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: auto;
}

.job-hero-action-btn.job-save-btn {
  width: auto !important;
  height: auto !important;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #ffffff;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.55rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
}

.job-hero-action-btn.job-save-btn:hover {
  background: #f9fafb;
  color: #111827;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.job-hero-action-btn.job-save-btn.saved {
  background: #eff6ff !important;
  color: var(--color-primary, #1c7bff) !important;
  border-color: var(--color-primary, #1c7bff) !important;
}

.job-hero-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #ffffff;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
}

.job-hero-icon-btn:hover {
  background: #f9fafb;
  color: #111827;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.job-hero-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.22);
  transition: all 0.15s ease;
  border: none;
}

.job-hero-btn-whatsapp:hover {
  background: #20bd5a;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.job-hero-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--color-primary, #1c7bff);
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(28, 123, 255, 0.25);
  transition: all 0.15s ease;
}

.job-hero-btn-primary:hover {
  background: var(--color-primary-hover, #1768d6);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(28, 123, 255, 0.35);
}

.job-hero-btn-primary.job-hero-btn-applied,
.job-hero-btn-applied {
  background: #16a34a !important;
  background-color: #16a34a !important;
  color: #ffffff !important;
  border: 1px solid #15803d !important;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25) !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.job-hero-btn-primary.job-hero-btn-applied:hover,
.job-hero-btn-applied:hover {
  background: #15803d !important;
  background-color: #15803d !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35) !important;
}

@media (max-width: 860px) {
  .single-job-hero-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px 20px;
    margin-top: 2rem;
    gap: 1.25rem;
  }

  .job-hero-logo-box {
    top: -24px;
    left: 20px;
    width: 72px;
    height: 72px;
    border-radius: 14px;
  }

  .job-hero-left {
    margin-top: 36px;
    width: 100%;
  }

  .job-hero-right {
    width: 100%;
    align-items: stretch;
    gap: 1rem;
  }

  .job-hero-top-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .job-hero-bottom-actions {
    width: 100%;
    justify-content: stretch;
  }

  .job-hero-action-btn,
  .job-hero-btn-whatsapp,
  .job-hero-btn-primary {
    flex: 1;
    justify-content: center;
    text-align: center;
  }
}

/* ==========================================================================
   CV / Resume Upload Box in Apply Modal (Matches Profile Photo Upload Design)
   ========================================================================== */
.modal-cv-upload-box {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.modal-cv-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  margin: 0;
  padding: 0;
}

.modal-cv-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 46px;
  padding: 0 1rem;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 8px;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.modal-cv-upload-box:hover .modal-cv-upload-label,
.modal-cv-upload-box.is-dragover .modal-cv-upload-label,
.modal-cv-file-input:focus + .modal-cv-upload-label {
  background: rgba(28, 123, 255, 0.08);
  border-color: #1c7bff;
  color: #1c7bff;
}

.modal-cv-upload-box.has-file .modal-cv-upload-label {
  background: #f0fdf4;
  border-color: #86efac;
  border-style: solid;
  color: #16a34a;
  padding-right: 2.75rem;
}

.modal-cv-upload-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 85%;
}

.modal-cv-remove-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fee2e2;
  color: #ef4444;
  border: none;
  font-size: 16px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.modal-cv-remove-btn:hover {
  background: #fca5a5;
  color: #b91c1c;
}

/* ==========================================================================
   Home Premium Section (Trending Jobs & Top Hiring Companies)
   ========================================================================== */

.home-premium-section {
  background: linear-gradient(180deg, #fdf4d8 0%, rgba(253, 244, 216, 0) 100%);
  padding: 3.5rem 0 4rem 0;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

.premium-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
}

.premium-section-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-main, #111827);
  margin: 0;
}

.premium-badge-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1;
  color: #ffffff;
  flex-shrink: 0;
}

.premium-badge-fire {
  background: #f5a623;
}

.premium-badge-bank {
  background: #1c7bff;
}

.premium-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted, #6b7280);
  text-decoration: none;
  transition: color 0.15s ease;
}

.premium-view-all:hover {
  color: var(--color-primary, #1c7bff);
}

.premium-arrow {
  font-size: 1.15rem;
  line-height: 1;
  margin-left: 2px;
}

/* Trending Jobs Grid */
.trending-jobs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trending-job-card {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #eeeeee;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  height: 100%;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.trending-job-card:hover {
  box-shadow: 0 10px 25px rgba(28, 123, 255, 0.12);
  border-color: transparent;
  background-color: #f0f7ff;
  transform: translateY(-2px);
}

.trending-job-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.trending-job-logo {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.trending-job-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trending-job-logo-placeholder {
  width: 100%;
  height: 100%;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trending-job-company-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.trending-job-company-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-main, #1f2937);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-job-location {
  font-size: 0.75rem;
  color: var(--color-text-muted, #9ca3af);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.trending-job-location svg {
  opacity: 0.6;
  flex-shrink: 0;
}

.trending-job-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-main, #111827);
  margin: 0 0 1.25rem 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.05rem * 1.4 * 2);
}

.trending-job-details {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
}

.trending-job-detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-main, #374151);
}

.trending-job-detail-item svg {
  opacity: 0.7;
  flex-shrink: 0;
}

/* Top Hiring Companies Grid */
.top-companies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.top-company-card {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #eeeeee;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
  box-sizing: border-box;
}

.top-company-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: transparent;
  transform: translateY(-2px);
}

.top-company-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.top-company-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #eeeeee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
}

.top-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  background: #ffffff;
}

.top-company-badge-letter {
  width: 100%;
  height: 100%;
  background-color: var(--color-primary, #1c7bff);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-company-bell {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted, #6b7280);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  padding: 0;
}

.top-company-bell:hover {
  background: #e5e7eb;
  color: var(--color-primary, #1c7bff);
}

.top-company-bell.following {
  background: #dbeafe;
  color: var(--color-primary, #1c7bff);
}

.top-company-name-link {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-main, #111827);
  text-decoration: none;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.1rem * 1.3 * 2);
  line-height: 1.3;
  transition: color 0.15s ease;
}

.top-company-name-link:hover {
  color: var(--color-primary, #1c7bff);
}

.top-company-location {
  font-size: 0.8rem;
  color: var(--color-text-muted, #9ca3af);
  margin-bottom: 1.5rem;
  min-height: 1.2rem;
}

.top-company-details {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
}

.top-company-detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-main, #374151);
}

.top-company-detail-item svg {
  opacity: 0.7;
  flex-shrink: 0;
}

/* Responsive */
@media (min-width: 1025px) {
  .trending-job-card:nth-child(n+5),
  .top-company-card:nth-child(n+5) {
    display: none !important;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .trending-jobs-grid,
  .top-companies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .home-premium-section {
    padding: 2rem 0 2.5rem 0;
    overflow-x: clip;
  }

  .home-premium-section .premium-section-header:not(:first-child) {
    margin-top: 2.25rem !important;
  }

  .trending-jobs-grid,
  .top-companies-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-left: 1.5rem !important;
    gap: 0.85rem !important;
    margin-left: -1.5rem !important;
    margin-right: -1.5rem !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    padding-top: 0.35rem !important;
    padding-bottom: 0.85rem !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .trending-jobs-grid::-webkit-scrollbar,
  .top-companies-grid::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .trending-job-card,
  .top-company-card {
    flex: 0 0 74% !important;
    width: 74% !important;
    max-width: 310px !important;
    min-width: 240px !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: normal !important;
    padding: 1.15rem 1.1rem !important;
    border-radius: 1rem !important;
    height: auto !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
  }

  .trending-job-title {
    font-size: 0.98rem !important;
    margin-bottom: 0.85rem !important;
    line-height: 1.35 !important;
    min-height: calc(0.98rem * 1.35 * 2) !important;
  }

  .trending-job-header {
    margin-bottom: 0.65rem !important;
  }

  .trending-job-details,
  .top-company-details {
    gap: 0.5rem !important;
  }

  .trending-job-detail-item,
  .top-company-detail-item {
    font-size: 0.82rem !important;
  }

  .trending-job-detail-item span,
  .top-company-detail-item span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .top-company-name-link {
    font-size: 1.02rem !important;
    min-height: calc(1.02rem * 1.3 * 2) !important;
    margin-bottom: 0.2rem !important;
  }

  .top-company-location {
    font-size: 0.78rem !important;
    margin-bottom: 0.85rem !important;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .trending-job-card,
  .top-company-card {
    flex: 0 0 45% !important;
    width: 45% !important;
    max-width: 320px !important;
  }
}

