:root {
  --primary-color: #2f89b0;
  --primary-light-color: #135776;
  --secondary-color: #17977e;
  --secondary-light-color: #046955;
  --lime-color: #17977e1a;
  --text-primary-color: #8a8a8a;
  --text-secondary-color: #828282;
  --white-color: #ffffff;
  --input-bg-color: #f6f6f6;
  --input-dark-bg-color: #e5e5e5;
}

/* Container and Row */
.container {
  padding: 20px;
}

.navbar,
.bottom-navbar-container {
  background-color: rgba(218, 255, 248, 0.58);
}

.bottom-navbar-container {
  position: relative;
  background-image: url("../img/joblist-bg.svg");
  background-repeat: no-repeat;
  background-position: 80% center;
  background-size: contain;
}

.bottom-navbar-text {
  font-size: 40px;
  font-weight: 500;
  color: #2f89b0;
  text-align: center;
}

.search_bar_container {
  background: white;
  border-radius: 100px;
  padding: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 800px;
  margin: 20px auto;
}

.search_bar_input_group {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 20px;
}

.search_bar_icon {
  width: 24px;
  height: 24px;
  opacity: 0.5;
  margin-left: 12px;
}

.search_bar_input {
  border: none;
  outline: none;
  font-size: 16px;
  width: 100%;
  padding: 8px 0;
}

.search_bar_divider {
  width: 1px;
  height: 32px;
  background-color: #e0e0e0;
  margin: 0 8px;
}

.search_bar_select {
  border: none;
  outline: none;
  font-size: 16px;
  color: #666;
  padding: 8px 32px 8px 16px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23666666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/></svg>")
    no-repeat right 8px center/16px 16px;
  min-width: 160px;
}

.search_bar_button {
  background-color: #17977e;
  color: white;
  border: none;
  border-radius: 100px;
  padding: 12px 32px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search_bar_button:hover {
  background-color: #138069;
}

@media (max-width: 768px) {
  .search_bar_container {
    flex-direction: column;
    border-radius: 20px;
    gap: 16px;
    padding: 16px;
    margin: 20px;
  }

  .search_bar_input_group {
    width: 100%;
  }

  .search_bar_divider {
    display: none;
  }

  .search_bar_select {
    width: 100%;
    padding: 8px 32px 8px 0;
  }

  .search_bar_button {
    width: 100%;
  }
}

/* Form Groups */
.form-group {
  margin-bottom: 20px; /* Spacing between form groups */
  position: relative;
}

/* Icons in Search Fields */
.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-light-color); /* Icon color */
}

.social-icons {
  display: flex;
  justify-content: center;
}

.social-icon {
  margin: 20px 10px 5px 0 !important;
  text-decoration: none;
}

/* Additional Styles */
.filter-section form .form-check {
  margin-bottom: 10px; /* Spacing between check options */
}

.filter-section form .form-group input::placeholder {
  color: var(--text-primary-color); /* Placeholder text color */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .filter-section {
    padding: 20px; /* Increased padding on smaller screens */
  }

  .filter-section h5 {
    font-size: 18px; /* Smaller font size for headings on smaller screens */
  }

  .btn-primary {
    font-size: 16px; /* Smaller font size for button on smaller screens */
  }
}

/* Filter Section */
.filter-section {
  background-color: #f1f1f1; /* Light grey background */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  padding: 20px;
  margin-bottom: 20px; /* Space below filter section */
}

/* Filter Select */
.filter-select {
  display: inline-block;
  width: auto;
  margin-right: 10px; /* Space between select boxes */
}

.filter-select:last-child {
  margin-right: 0; /* Remove margin for the last select box */
}

/* Headings */
.filter-section h5 {
  color: var(--primary-light-color); /* Heading color */
  font-size: 20px; /* Font size */
  margin-bottom: 15px; /* Spacing below headings */
}

/* Form Groups */
.form-group {
  margin-bottom: 15px; /* Spacing between form groups */
  position: relative;
}

.form-group input[type="text"],
.form-group input[type="range"] {
  color: var(--text-primary-color); /* Text color for input fields */
  background-color: #f6f6f6; /* Light background for input fields */
  border: 1px solid var(--input-dark-bg-color); /* Light border */
  border-radius: 4px; /* Rounded corners */
  padding: 10px; /* Padding inside input fields */
  width: 100%; /* Full width */
  box-sizing: border-box; /* Ensure padding is included in width */
}

/* Icons in Search Fields */
.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-light-color); /* Icon color */
}

/* Form Checks (Radio and Checkbox) */
.form-check-input {
  margin-top: 3px; /* Adjust position */
  margin-right: 10px; /* Spacing from label */
}

.form-check-label {
  color: var(--primary-light-color); /* Text color for labels */
  font-size: 16px; /* Font size */
}

/* Switch Buttons */
.form-check.form-switch .form-check-input {
  width: 50px;
  height: 24px;
  background-color: var(--white-color);
  border: none;
  border-radius: 12px;
  transition: background-color 0.3s;
}

.form-check.form-switch .form-check-input:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgb(23, 151, 126)'/%3e%3c/svg%3e");
}

.form-check-input:checked {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.form-check.form-switch .form-check-input:before {
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
  transform: translateX(2px);
}

.form-check.form-switch .form-check-input:checked:before {
  transform: translateX(26px);
}

/* Range Input */
.form-control-range {
  width: 100%; /* Full width */
  margin-top: 10px; /* Spacing above range input */
}

/* Submit Button */
.btn-primary {
  background-color: var(--primary-color); /* Button background color */
  border: none; /* Remove border */
  border-radius: 4px; /* Rounded corners */
  font-size: 18px; /* Font size */
  padding: 10px 0; /* Padding inside button */
  width: 100%; /* Full width */
  text-align: center; /* Center text */
}

.btn-primary:hover {
  background-color: #1e6a8d; /* Darker shade on hover */
}

/* Additional Styles */
.filter-section form .form-check {
  margin-bottom: 10px; /* Spacing between check options */
}

.filter-section form .form-group input::placeholder {
  color: var(--text-primary-color); /* Placeholder text color */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .filter-section {
    padding: 20px; /* Increased padding on smaller screens */
  }

  .filter-section h5 {
    font-size: 18px; /* Smaller font size for headings on smaller screens */
  }

  .btn-primary {
    font-size: 16px; /* Smaller font size for button on smaller screens */
  }
}

/* Job Cards Grid Layout */
.job-search-results {
  background-color: #f1f1f1;
}

.job-search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Job Card Styling */
.job-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Job Header */
.job-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.job-icon {
  width: 48px;
  height: 48px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.job-icon img {
  width: 24px;
  height: 24px;
}

.job-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* Job Tags */
.job-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.tag-featured {
  background: var(--lime-color);
  color: var(--secondary-color);
}

.tag-type {
  background: var(--primary-light-color);
  color: white;
}

/* Job Details */
.job-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-item img {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.detail-item span {
  font-size: 14px;
  color: var(--text-primary-color);
}

/* Job Actions */
.job-actions {
  position: absolute;
  top: 20px;
  right: 20px;
}

.bookmark-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.bookmark-btn img {
  width: 24px;
  height: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .job-search-results {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .job-card {
    padding: 16px;
  }

  .job-details {
    flex-direction: column;
    gap: 12px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .job-search-results {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .job-search-results {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* custom range slider */
/* Double-range slider demo */
.range-slider.overlay {
  --primary-color: #d6e9ff;
  --track-height: 50px;
  --thumb-size: var(--track-height);
  --thumb-color: var(--primary-color);
  --thumb-shadow: none;
  --progress-flll-shadow: none;
  --progress-shadow: none;
  --progress-background: none;
  --progress-radius: 0px;
  --ticks-color: var(--primary-color);
  --ticks-height: 0;
  --ticks-thickness: 0;
  --ticks-gap: 0px; /* must specify units */
  --min-max-font: 700 18px Arial;
  --min-max-opacity: 1;
  --show-min-max: none;

  color: #0366d6;
}

.range-slider.overlay input:hover {
  /* cannot use "--thumb-shadow-hover" because the "--is-left-most" variable is needed (which is declared per-input) */
  /* "--is-left-most" is either "0" or "1" */
  --thumb-shadow: calc(25px - (50px * var(--is-left-most))) 0 0 -15px #0366d6 inset;
}

.range-slider.overlay input:active {
  --thumb-color: inherit;
}

.range-slider.overlay .range-slider__values {
  width: calc(100% - 50% / (var(--max) - var(--min)));
}

/* The main styles */
.range-slider {
  --primary-color: var(--secondary-color);

  --value-offset-y: var(--ticks-gap);
  --value-active-color: white;
  --value-background: transparent;
  --value-background-hover: var(--primary-color);
  --value-font: 700 12px/1 Arial;

  --fill-color: var(--primary-color);
  --progress-background: #ffffff;
  --progress-radius: 20px;
  --track-height: calc(var(--thumb-size) / 2);

  --min-max-font: 12px Arial;
  --min-max-opacity: 0.5;
  --min-max-x-offset: 10%; /* 50% to center */

  --thumb-size: 22px;
  --thumb-color: white;
  --thumb-shadow: 0 0 3px rgba(0, 0, 0, 0.4), 0 0 1px rgba(0, 0, 0, 0.5) inset,
    0 0 0 99px var(--thumb-color) inset;

  --thumb-shadow-active: 0 0 0 calc(var(--thumb-size) / 4) inset
      var(--thumb-color),
    0 0 0 99px var(--primary-color) inset, 0 0 3px rgba(0, 0, 0, 0.4);

  --thumb-shadow-hover: var(--thumb-shadow);

  --ticks-thickness: 1px;
  --ticks-height: 5px;
  --ticks-gap: var(
    --ticks-height,
    0
  ); /* vertical space between the ticks and the progress bar */
  --ticks-color: silver;

  /* ⚠️ BELOW VARIABLES SHOULD NOT BE CHANGED */
  --step: 1;
  --ticks-count: Calc(var(--max) - var(--min)) / var(--step);
  --maxTicksAllowed: 30;
  --too-many-ticks: Min(1, Max(var(--ticks-count) - var(--maxTicksAllowed), 0));
  --x-step: Max(
    var(--step),
    var(--too-many-ticks) * (var(--max) - var(--min))
  ); /* manipulate the number of steps if too many ticks exist, so there would only be 2 */
  --tickInterval: 100 / ((var(--max) - var(--min)) / var(--step)) *
    var(--tickEvery, 1);
  --tickIntervalPerc: calc(
    (100% - var(--thumb-size)) / ((var(--max) - var(--min)) / var(--x-step)) *
      var(--tickEvery, 1)
  );

  --value-a: Clamp(
    var(--min),
    var(--value, 0),
    var(--max)
  ); /* default value ("--value" is used in single-range markup) */
  --value-b: var(--value, 0); /* default value */
  --text-value-a: var(--text-value, "");

  --completed-a: calc(
    (var(--value-a) - var(--min)) / (var(--max) - var(--min)) * 100
  );
  --completed-b: calc(
    (var(--value-b) - var(--min)) / (var(--max) - var(--min)) * 100
  );
  --ca: Min(var(--completed-a), var(--completed-b));
  --cb: Max(var(--completed-a), var(--completed-b));

  /* breakdown of the below super-complex brain-breaking CSS math: */
  /* "clamp" is used to ensure either "-1" or "1" */
  /* "calc" is used to inflat the outcome into a huge number, to get rid of any value between -1 & 1 */
  /* if absolute diff of both completed % is above "5" (%) */
  /* ".001" bumps the value just a bit, to avoid a scenario where calc resulted in "0" (then clamp will also be "0") */
  --thumbs-too-close: Clamp(
    -1,
    1000 * (Min(1, Max(var(--cb) - var(--ca) - 5, -1)) + 0.001),
    1
  );
  --thumb-close-to-min: Min(1, Max(var(--ca) - 2, 0)); /* 2% threshold */
  --thumb-close-to-max: Min(1, Max(98 - var(--cb), 0)); /* 2% threshold */
  height: Max(var(--track-height), var(--thumb-size));
  background: linear-gradient(
      to right,
      var(--ticks-color) var(--ticks-thickness),
      transparent 1px
    )
    repeat-x;
  background-size: var(--tickIntervalPerc) var(--ticks-height);
  background-position-x: calc(
    var(--thumb-size) / 2 - var(--ticks-thickness) / 2
  );
  background-position-y: var(--flip-y, bottom);

  padding-bottom: var(--flip-y, var(--ticks-gap));
  padding-top: calc(var(--flip-y) * var(--ticks-gap));

  position: relative;
  z-index: 1;
}

.range-slider[data-ticks-position="top"] {
  --flip-y: 1;
}

.range-slider::before,
.range-slider::after {
  --offset: calc(var(--thumb-size) / 2);
  content: counter(x);
  display: var(--show-min-max, block);
  font: var(--min-max-font);
  position: absolute;
  bottom: var(--flip-y, -2.5ch);
  top: calc(-2.5ch * var(--flip-y));
  opacity: Clamp(0, var(--at-edge), var(--min-max-opacity));
  transform: translateX(calc(var(--min-max-x-offset) * var(--before, -1) * -1))
    scale(var(--at-edge));
  pointer-events: none;
}

.range-slider::before {
  --before: 1;
  --at-edge: var(--thumb-close-to-min);
  counter-reset: x var(--min);
  left: var(--offset);
}

.range-slider::after {
  --at-edge: var(--thumb-close-to-max);
  counter-reset: x var(--max);
  right: var(--offset);
}

.range-slider__values {
  position: relative;
  top: 50%;
  line-height: 0;
  text-align: justify;
  width: 100%;
  pointer-events: none;
  margin: 0 auto;
  z-index: 5;
}

.range-slider__values::after {
  content: "";
  width: 100%;
  display: inline-block;
  height: 0;
  background: red;
}

.range-slider__progress {
  --start-end: calc(var(--thumb-size) / 2);
  --clip-end: calc(100% - (var(--cb)) * 1%);
  --clip-start: calc(var(--ca) * 1%);
  --clip: inset(-20px var(--clip-end) -20px var(--clip-start));
  position: absolute;
  left: var(--start-end);
  right: var(--start-end);
  top: calc(
    var(--ticks-gap) * var(--flip-y, 0) + var(--thumb-size) / 2 -
      var(--track-height) / 2
  );
  height: calc(var(--track-height));
  background: var(--progress-background, #ffffff);
  pointer-events: none;
  z-index: -1;
  border-radius: var(--progress-radius);
}

.range-slider__progress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  clip-path: var(--clip);
  top: 0;
  bottom: 0;
  background: var(--fill-color, black);
  box-shadow: var(--progress-flll-shadow);
  z-index: 1;
  border-radius: inherit;
}

.range-slider__progress::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  box-shadow: var(--progress-shadow);
  pointer-events: none;
  border-radius: inherit;
}

.range-slider > input {
  -webkit-appearance: none;
  width: 100%;
  height: var(--thumb-size);
  margin: 0;
  position: absolute;
  left: 0;
  top: calc(
    50% - Max(var(--track-height), var(--thumb-size)) / 2 +
      calc(var(--ticks-gap) / 2 * var(--flip-y, -1))
  );
  cursor: -webkit-grab;
  cursor: grab;
  outline: none;
  background: none;
}

.range-slider > input:not(:only-of-type) {
  pointer-events: none;
}

.range-slider > input::-webkit-slider-thumb {
  appearance: none;
  height: var(--thumb-size);
  width: var(--thumb-size);
  transform: var(--thumb-transform);
  border-radius: var(--thumb-radius, 50%);
  background: var(--thumb-color);
  box-shadow: var(--thumb-shadow);
  border: none;
  pointer-events: auto;
  transition: 0.1s;
}

.range-slider > input::-moz-range-thumb {
  appearance: none;
  height: var(--thumb-size);
  width: var(--thumb-size);
  transform: var(--thumb-transform);
  border-radius: var(--thumb-radius, 50%);
  background: var(--thumb-color);
  box-shadow: var(--thumb-shadow);
  border: none;
  pointer-events: auto;
  transition: 0.1s;
}

.range-slider > input::-ms-thumb {
  appearance: none;
  height: var(--thumb-size);
  width: var(--thumb-size);
  transform: var(--thumb-transform);
  border-radius: var(--thumb-radius, 50%);
  background: var(--thumb-color);
  box-shadow: var(--thumb-shadow);
  border: none;
  pointer-events: auto;
  transition: 0.1s;
}

.range-slider > input:hover {
  --thumb-shadow: var(--thumb-shadow-hover);
}

.range-slider > input:hover + output {
  --value-background: var(--value-background-hover);
  --y-offset: -5px;
  color: var(--value-active-color);
  box-shadow: 0 0 0 3px var(--value-background);
}

.range-slider > input:active {
  --thumb-shadow: var(--thumb-shadow-active);
  cursor: grabbing;
  z-index: 2; /* when sliding left thumb over the right or vice-versa, make sure the moved thumb is on top */
}

.range-slider > input:active + output {
  transition: 0s;
}

.range-slider > input:nth-of-type(1) {
  --is-left-most: Clamp(0, (var(--value-a) - var(--value-b)) * 99999, 1);
}

.range-slider > input:nth-of-type(1) + output {
  &:not(:only-of-type) {
    --flip: calc(var(--thumbs-too-close) * -1);
  }
  --value: var(--value-a);
  --x-offset: calc(var(--completed-a) * -1%);
}

.range-slider > input:nth-of-type(1) + output::after {
  content: var(--prefix, "") var(--text-value-a) var(--suffix, "");
}

.range-slider > input:nth-of-type(2) {
  --is-left-most: Clamp(0, (var(--value-b) - var(--value-a)) * 99999, 1);
}

.range-slider > input:nth-of-type(2) + output {
  --value: var(--value-b);
}

.range-slider > input:only-of-type ~ .range-slider__progress {
  --clip-start: 0;
}

.range-slider > input + output {
  --flip: -1;
  --x-offset: calc(var(--completed-b) * -1%);
  --pos: calc(((var(--value) - var(--min)) / (var(--max) - var(--min))) * 100%);

  pointer-events: none;
  position: absolute;
  z-index: 5;
  background: var(--value-background);
  border-radius: 10px;
  padding: 2px 4px;
  left: var(--pos);
  transform: translate(
    var(--x-offset),
    calc(
      150% * var(--flip) - (var(--y-offset, 0px) + var(--value-offset-y)) *
        var(--flip)
    )
  );
  transition: all 0.12s ease-out, left 0s;
}

.range-slider > input + output::after {
  content: var(--prefix, "") var(--text-value-b) var(--suffix, "");
  font: var(--value-font);
}

body > .range-slider,
label[dir="rtl"] .range-slider {
  width: Clamp(300px, 50vw, 800px);
  min-width: 200px;
}

/* custom range slider */
