/* Fixed Navigation Styles */
.navigation-fixed {
  position: fixed;
  bottom: 5%;
  right: 0;
  z-index: 999;
  pointer-events: none;
}

.navigation-item--career {
  position: fixed;
  bottom: 56%;
  right: -101px;
  background: linear-gradient(90deg, #ff6a68 0%, #e31c23 53.82%);
  width: 250px;
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  rotate: 90deg;
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: auto;
}

.navigation-item--career::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: #e31c231a;
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 12px;
  pointer-events: none;
  z-index: -1;
}

.navigation-item--career svg {
  rotate: -90deg;
}

.navigation-item--career__title {
  color: var(--color-white);
}

@media (max-width: 450px) {
  .navigation-item--career__title {
    font-size: 10px !important;
    white-space: nowrap;
  }
}

.navigation-fixed-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.navigation-item {
  background: linear-gradient(90deg, #ff6a68 0%, #e31c23 53.82%);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  width: max-content;
  color: var(--color-white);
  max-width: 180px;
  width: 100%;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
}

.navigation-item::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: #e31c231a;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  pointer-events: none;
  z-index: -1;
}

.navigation-item--content {
  text-align: center;
}

.navigation-item--content a {
  color: var(--color-white);
  text-decoration: none;
}

.navigation-item--hover {
  transform: translateX(110px);
  transition: all 0.5s ease-in-out;
}

.navigation-item--hover:hover {
  transform: translateX(0);
}

/* Scroll to Top Button Styles */
.navigation-item--scroll-to-top {
  background: linear-gradient(90deg, #ff6a68 0%, #e31c23 53.82%);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: start;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  width: max-content;
  color: var(--color-white);
  max-width: 180px;
  width: 100%;
  cursor: pointer;
  pointer-events: none; /* Initially invisible and not clickable */
  position: relative;
  transform: translateX(110px);
  opacity: 0;
  transition:
    all 0.5s ease-in-out,
    opacity 0.3s ease-out; /* Add opacity transition */
}

.navigation-item--scroll-to-top::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: #e31c231a;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  pointer-events: none;
  z-index: -1;
}

.navigation-item--scroll-to-top:hover {
  /* transform: translateX(0); */
}

.navigation-item--scroll-to-top svg {
  fill: white;
}

/* Modal Styles */
.modal-career-hot {
  display: none;
  position: fixed;
  z-index: 1000;
  /* Default positioning for desktop */
  top: 50%;
  right: 10%;
  transform: translate(0, -50%);
  border-radius: 16px;
}

.modal-career-hot.show {
  display: flex;
  z-index: 5001;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translate(0, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
  }
}

/* Modal positioning classes */
.modal-career-hot.modal-desktop {
  top: 50%;
  right: 5%;
  left: auto;
  transform: translate(0, -50%);
}

.modal-career-hot.modal-mobile {
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
}

.modal-career-hot.modal-desktop.show {
  animation: modalFadeIn 0.3s ease-out;
}

.modal-career-hot.modal-mobile.show {
  animation: modalFadeInMobile 0.3s ease-out;
}

/* Mobile animation */
@keyframes modalFadeInMobile {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.modal-career-hot-content {
  position: relative;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.modal-career-hot-image {
  width: 240px;
  height: 627px;
  box-shadow: 0px 0px 8px 0px #00000033;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-brown-200);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.modal-career-hot-imageBox {
  position: absolute;
  inset: 0;
  will-change: auto;
}

.modal-career-hot-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-career-hot-image-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  align-items: center;
  justify-content: center;
  z-index: 1;
  width: 100%;
  padding: 0 28px;
}
.modal-career-hot-image-body .title-job {
  text-decoration: none;
  color: #e52920;
  text-transform: uppercase;
  text-align: left;
  font-weight: 700;
}
@media screen and (max-width: 768px) {
  .modal-career-hot-image-body {
    gap: 20px;
    padding: 0 20px;
  }
}

.modal-career-hot-close {
  position: absolute;
  z-index: 10;
  top: -10px;
  right: -10px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0px 4px 4px 0px #0000001a;
  transition: all 0.2s ease;
}

.modal-career-hot-close:hover {
  transform: scale(1.1);
  box-shadow: 0px 6px 8px 0px #0000002a;
}

/* Loading state */
.modal-career-hot-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 627px;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--color-brown-600);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .modal-career-hot {
    right: 5%;
  }

  .modal-career-hot-image {
    width: 200px;
    height: 520px;
  }
}

@media (max-width: 768px) {
  .navigation-fixed {
    bottom: 50px;
  }

  .navigation-item--career {
    bottom: 400px;
  }

  .modal-career-hot {
    right: 2%;
  }

  .modal-career-hot-image {
    width: 180px;
    height: 470px;
  }

  .navigation-item {
    max-width: 160px;
  }

  .navigation-item--hover {
    transform: translateX(109px);
  }
}

@media (max-width: 480px) {
  .navigation-item--career {
    width: 250px;
    right: -101px;
    bottom: 360px;
  }

  .modal-career-hot {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
  }

  .modal-career-hot.show {
    animation: modalFadeInMobile 0.3s ease-out;
  }

  .modal-career-hot-image {
    width: 200px;
    height: 525px;
  }

  .navigation-item {
    max-width: 140px;
    padding: 10px;
  }

  .navigation-item--hover {
    transform: translateX(92px);
  }
}

@media (max-width: 360px) {
  .navigation-fixed,
  .navigation-item--career {
    display: none !important;
  }
}

.navigation-fixed-mobile {
  display: none;
}

@media screen and (max-width: 350px) {
	.navigation-fixed-mobile .item-mobile {
		padding: 12px !important;
	}
}

@media screen and (max-width: 600px) {
  .navigation-item--career,
  .navigation-fixed {
    display: none !important;
  }
  .navigation-fixed-mobile {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    display: flex;
    flex-grow: 1;
    gap: 1px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    z-index: 50;
    background: #fff;
  }
  .navigation-fixed-mobile .item-mobile:first-child {
    background: linear-gradient(90deg, #ff6a68 0%, #e31c23 53.82%);
    flex-grow: 2;
  }
  .navigation-fixed-mobile .item-mobile {
    width: max-content;
    background: #e31c23;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 16px;
  }
  .navigation-fixed-mobile .item-mobile:not(:first-child) {
    aspect-ratio: 1/1;
  }
  .navigation-item--scroll-to-top-mobile {
    background: linear-gradient(90deg, #ff6a68 0%, #e31c23 53.82%);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    color: var(--color-white);
    cursor: pointer;
    pointer-events: none;
    position: fixed;
    bottom: 80px;
    right: 16px;
    opacity: 0;
    transition:
      all 0.5s ease-in-out,
      opacity 0.3s ease-out;
    aspect-ratio: 1/1;
    border-radius: 50%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001;
  }
}

@media screen and (min-width: 601px) {
  .navigation-item--scroll-to-top-mobile {
    display: none !important;
  }
}
.item-mobile-job {
  display: flex;
  align-items: center;
  gap: 8px;
}
