/* Footer */
.footer {
  border-radius: 32px 32px 0 0;
  padding: 64px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 64px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 20%;
}

.footer-heading {
  font-size: 20px;
  font-weight: 700;
  line-height: 25px;
  margin-bottom: 16px;
}

.footer-link {
  font-size: 14px;
  font-weight: 400;
  line-height: 19px;
  color: #4e5252;
  text-decoration: none;
}

/* Job Listings Section */
.job-section {
  padding: 32px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
}

.view-all {
  font-weight: 700;
  font-size: 16px;
  line-height: 21px;
  color: #041709;
  cursor: pointer;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.job-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 24px;
  position: relative;
}

.job-card-title {
  font-weight: 700;
  line-height: 25px;
  margin-bottom: 6px;
}

.job-card-company-name {
  font-size: 16px;
  line-height: 21px;
  margin-bottom: 4px;
}

.job-card-time {
  font-size: 12px;
  line-height: 16px;
  color: #041709;
  margin-bottom: 4px;
}

.job-card-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.job-card-tag {
  display: flex;
  align-items: center;
  background-color: #f9f9f9;
  border-radius: 4px;
  padding: 5px 6px;
  font-size: 12px;
  line-height: 16px;
}

.job-card-tag img {
  margin-right: 8px;
}

.job-card-company-logo {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: auto;
  border-radius: 8px;
}

.owl-carousel .owl-item img {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: auto;
  border-radius: 8px;
}

.job-card-salary {
  font-size: 20px;
  font-weight: 700;
  line-height: 25px;
}

.job-card-salary-period {
  font-size: 12px;
  line-height: 16px;
  color: #4e5252;
  margin-bottom: 16px;
}

.job-card-actions {
  display: flex;
  gap: 8px;
}

.apply-btn {
  background-color: #041709;
  color: #f9f9f9;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-weight: 700;
  padding: 8px 48px;
  cursor: pointer;
  height: 40px;
}

.details-btn {
  background-color: #f9f9f9;
  color: #041709;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
  height: 40px;
}

.favorite-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
}

.job-card-tag i {
  margin-right: 5px;
}

.footer-copyright {
  background-color: #a7d3b3;
  padding: 16px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 21px;
}

.legal-links {
  display: flex;
  gap: 32px;
}

.legal-link {
  font-size: 14px;
  font-weight: 400;
  line-height: 19px;
  text-decoration: none;
  color: #041709;
}

/* CAROUSEL */
.carousel-wrapper {
  position: relative;
  width: 100%;
}

.owl-carousel {
  position: relative;
}

.owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.owl-nav button.owl-prev,
.owl-nav button.owl-next {
  background: #fff;
  border: none;
  border-radius: 50%;
  padding: 10px;
  font-size: 18px;
  cursor: pointer;
  pointer-events: all;
}

.owl-nav button.owl-prev:hover,
.owl-nav button.owl-next:hover {
  background: none !important;
}

.owl-theme .owl-nav [class*="owl-"]:hover {
  background: #869791;
  color: #000;
  text-decoration: none;
}

.owl-nav button.owl-prev {
  position: absolute;
  left: -50px;
}

.owl-nav button.owl-next {
  position: absolute;
  right: -50px;
}

/* MAIN */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "DM Sans", "Montserrat", sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #041709;
}

/* Content Sections */
.content-container {
  display: flex;
  gap: 40px;
}

/* Header */
.header {
  position: relative;
  height: 88px;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0px 4px 32px #0017140c;
  border-radius: 0px 0px 32px 32px;
  align-items: center;
  justify-content: space-between;
  display: flex;
  padding: 16px 32px;
}

.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.logo {
  height: 32px;
  width: auto;
}

.logo-mobile {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  line-height: 19px;
  text-decoration: none;
  color: #041709;
}

.nav-link.active {
  color: #041709;
  border-bottom: 1px solid #a7d3b3;
}

.nav-icon-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
}

.nav-icon-text i {
  font-size: 18px;
  margin-bottom: 4px;
  color: #000;
}

.user-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.user-actions .nav-icon {
  color: #041709;
  text-decoration: none;
}

/* SIDEBAR */

.filter-section {
  background-color: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 16px;
  padding: 24px;
}

.filter-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.filter-header h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 25px;
  margin-right: 8px;
}

.filter-header img {
  width: 24px;
  height: 24px;
}

/* CHECKBOX */
.checkbox-group {
  margin-bottom: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  background-color: #f9f9f9;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  cursor: pointer;
}

.checkbox-item input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #041709;
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.checkbox-item label {
  font-size: 16px;
  font-weight: 400;
  line-height: 21px;
}

/* SELECT */

.sort-options {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  font-size: 16px;
  font-weight: 400;
  line-height: 21px;
  color: #4e5252;
}

.sort-value {
  font-size: 16px;
  font-weight: 400;
  line-height: 21px;
  color: #041709;
  display: flex;
  align-items: center;
}

.sort-value img {
  margin-left: 4px;
}

.sort-select {
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  background-color: #fff;
  color: #041709;
  appearance: none;
  cursor: pointer;
}

/* RADIUS SLIDER */

.slider-container {
  margin-bottom: 16px;
}

.slider {
  width: 100%;
  height: 8px;
  background-color: #dcdcdc;
  border-radius: 4px;
  margin-bottom: 8px;
}

.slider-value {
  font-size: 16px;
  font-weight: 400;
  line-height: 21px;
}

#radius-slider-container {
  position: relative;
}

#radius-slider {
  width: 100%;
  height: 8px;
  background-color: #dcdcdc;
  border-radius: 4px;
  position: relative;
}

.radius-slider-fill {
  position: absolute;
  height: 100%;
  background-color: #74e8c3;
  border-radius: 4px;
  width: 0%;
  left: 0;
}

.radius-slider-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: #ffffff;
  border: 2px solid #74e8c3;
  border-radius: 50%;
  top: -4px;
  cursor: pointer;
}

/* NAVIGATION */
.navigation {
  display: flex;
  justify-content: space-between;
  padding: 36px 64px;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  line-height: 21px;
  color: #041709;
}

i {
  color: #a7d3b3;
}

.fa-solid.fa-heart {
  color: #000;
}

.fa-heart {
  font-size: 20px;
}

.logo-mobile {
  display: none;
  width: 32px;
  height: 32px;
}

.view-options {
  display: flex;
  gap: 8px;
}

.owl-carousel .owl-item img {
  position: initial;
}

.carousel-wrapper {
  position: relative;
  width: 80%;
  margin: 0 auto;
}

#goTopBtn {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  background-color: #041709;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease, transform 0.2s ease;
}

#goTopBtn:hover {
  background-color: #07421f;
  transform: scale(1.05);
}

.wishlist-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background-color: #fff;
  box-shadow: -2px 0 6px rgba(0, 0, 0, 0.2);
  padding: 20px;
  z-index: 9999;
  overflow-y: auto;
  transition: right 0.3s ease-in-out;
}

.wishlist-sidebar.open {
  right: 0;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  display: none;
}

.sidebar-overlay.active {
  display: block;
}

.wishlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.wishlist-section {
  margin-top: 24px;
}

.wishlist-section h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #041709;
}

.wishlist-items .job-card {
  margin-bottom: 20px;
}

.close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
}

@media (min-width: 769px) {
  .logo-mobile,
  .logo-mobile-text {
    display: none;
  }

  .nav-icon-text i {
    display: none;
  }

  .nav-icon-text span {
    font-size: 16px;
  }

  .nav-icon {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .logo {
    display: none;
  }

  .logo-mobile {
    display: inline-block;
  }

  .container {
    padding: 0 16px;
  }
  .logo-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-link {
    font-size: 12px;
  }

  .user-actions {
    display: flex;
    align-items: center;
  }

  .job-actions {
    flex-direction: row;
    gap: 8px;
  }

  .footer {
    padding: 32px;
  }

  .footer-content {
    flex-direction: column;
    gap: 32px;
    padding: 32px 16px;
  }

  .footer-column {
    width: 100%;
  }

  .footer-copyright {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 16px;
  }

  .legal-links {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .legal-link {
    font-size: 14px;
  }

  .owl-nav {
    display: none;
  }

  .view-options {
    display: none;
  }

  .carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
  }

  .wishlist-sidebar {
    width: 100vw;
    height: 100vh;
    right: -100vw;
  }
}
