:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.82);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #D32F2F;
  --accent-hover: #b71c1c;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius: 16px;
  --space: 15px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  padding: 15px 15px 96px 15px;
}

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

.vl-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0;
}

/* Global spacing rule: padding & margin = 15px on core blocks */
.vl-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 15px;
  margin: 15px 0;
}

/* Breadcrumb Apple Pill */
.vl-breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 15px;
  margin: 15px 0;
  font-size: 13px;
  color: var(--muted);
}

.vl-breadcrumb a {
  color: var(--text);
  font-weight: 500;
}

.vl-breadcrumb a:hover {
  color: var(--accent);
}

.vl-breadcrumb .sep {
  opacity: 0.45;
}

.vl-breadcrumb .current {
  color: var(--accent);
  font-weight: 600;
}

/* Section Heading */
.vl-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px;
  margin: 15px 0;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.vl-section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vl-section-title::before {
  content: "";
  width: 6px;
  height: 22px;
  border-radius: 4px;
  background: var(--accent);
  display: inline-block;
}

/* Buttons */
.vl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  margin: 0;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vl-btn-primary {
  background: var(--accent);
  color: #fff;
}

.vl-btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.vl-btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.vl-btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Filter Pills */
.vl-filter-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 15px;
  margin: 15px 0;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  scrollbar-width: none;
}

.vl-filter-bar::-webkit-scrollbar {
  display: none;
}

.vl-pill {
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vl-pill.active, .vl-pill:hover {
  background: var(--accent);
  color: #fff;
}

/* Job Card Grid 4x6 */
.vl-job-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 15px 0;
  padding: 0;
}

@media (max-width: 1100px) {
  .vl-job-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .vl-job-grid {
    grid-template-columns: 1fr;
  }
}

.vl-job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px;
  margin: 0;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.vl-job-card:hover {
  transform: translateY(-3px);
  border-color: rgba(211, 47, 47, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.vl-job-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(211, 47, 47, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.vl-job-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vl-job-company {
  margin: 0 0 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.vl-job-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.vl-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.vl-meta-label {
  color: var(--muted);
}

.vl-meta-val {
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.vl-meta-val.salary {
  color: var(--accent);
}

/* Career Blog 4x1 Slider */
.vl-slider-wrap {
  position: relative;
  overflow: hidden;
  margin: 15px 0;
  padding: 0;
}

.vl-slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}

.vl-slide-page {
  flex: 0 0 100%;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  padding: 0;
}

@media (max-width: 1024px) {
  .vl-slide-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .vl-slide-page {
    grid-template-columns: 1fr;
  }
}

.vl-blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px;
  margin: 0;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
}

.vl-blog-card:hover {
  transform: translateY(-3px);
}

.vl-blog-card h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.vl-blog-card h3 a:hover {
  color: var(--accent);
}

.vl-blog-excerpt {
  margin: 0 0 12px 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.vl-slider-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vl-slider-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vl-slider-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Modal / Popup */
.vl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 20, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 15px;
}

.vl-modal-overlay.open {
  display: flex;
}

.vl-modal-box {
  background: var(--surface);
  border-radius: 20px;
  width: 100%;
  max-width: 780px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 15px;
  margin: 15px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  position: relative;
}

.vl-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 12px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.vl-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

.vl-modal-close:hover {
  background: var(--accent);
  color: #fff;
}

/* Job Detail Blocks */
.vl-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin: 15px 0;
}

@media (max-width: 640px) {
  .vl-detail-grid {
    grid-template-columns: 1fr;
  }
}

.vl-detail-item {
  background: var(--bg);
  border-radius: 12px;
  padding: 15px;
}

.vl-detail-section {
  padding: 15px;
  margin: 15px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.vl-detail-section h4 {
  margin: 0 0 8px 0;
  font-size: 15px;
  color: var(--accent);
}

.vl-contact-box {
  background: rgba(211, 47, 47, 0.06);
  border: 1px solid rgba(211, 47, 47, 0.25);
  border-radius: 14px;
  padding: 15px;
  margin: 15px 0;
}

.vl-apply-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 15px;
  margin-top: 15px;
  border-top: 1px dashed var(--border);
}

/* Forms */
.vl-form-group {
  margin: 15px 0;
}

.vl-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

.vl-input, .vl-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
}

.vl-input:focus, .vl-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.vl-alert {
  padding: 15px;
  margin: 15px 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
}

.vl-alert.success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.vl-alert.error {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}

/* Live Search Popup */
.vl-search-results {
  margin-top: 15px;
  max-height: 55vh;
  overflow-y: auto;
}

.vl-search-group-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin: 12px 0 8px 0;
}

.vl-search-hit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  margin: 8px 0;
  border-radius: 12px;
  background: var(--bg);
  transition: background 0.15s ease;
}

.vl-search-hit:hover {
  background: rgba(211, 47, 47, 0.09);
}

/* Floating Apple Dock */
.vl-dock-wrapper {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  max-width: calc(100vw - 30px);
}

.vl-dock {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.05);
  border-radius: 24px;
}

.vl-dock-item {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
}

.vl-dock-item:hover {
  transform: translateY(-8px) scale(1.22);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.vl-dock-item.active {
  border-color: var(--accent);
  color: var(--accent);
}

.vl-dock-item svg {
  width: 22px;
  height: 22px;
}

.vl-dock-tooltip {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(29, 29, 31, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.vl-dock-item:hover .vl-dock-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.vl-dock-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* Pagination */
.vl-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 15px 0;
  padding: 15px;
}

.vl-pagination .page-numbers {
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
}

.vl-pagination .page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
