@font-face {
  font-family: "Camship Khmer Bokor";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/bokor/Bokor-Regular-khmer.woff2") format("woff2");
  unicode-range: U+1780-17FF, U+19E0-19FF, U+200C-200D, U+25CC;
}

:root {
  --camship-public-font-family: "Montserrat", sans-serif;
}

html[lang="km"] {
  --camship-public-font-family: "Camship Khmer Bokor", "Montserrat", sans-serif;
  font-synthesis: none;
}

.tailored-delivery-title {
  color: #f56a11;
  line-height: 1;
}

html[lang="km"] .tailored-delivery-title {
  line-height: 1.35;
}

html[lang="km"] .footer-newsletter-description {
  line-height: 1.7;
}

body.modal-open {
  overflow: hidden;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.site-page-hero-banner,
.news-hero-banner,
.careers-hero-banner,
.contact-hero-banner {
  height: 100vh;
  max-height: 440px;
}

.home-partners-band {
  background-image: url("../img/home/bg-home-partner.svg");
  background-position: center top;
  background-size: cover;
}

.home-services-section {
  position: relative;
}

@media (min-width: 1280px) {
  .site-logo-desktop {
    height: 56px;
  }
}

@media (max-width: 1023.98px) {
  .home-partners-band {
    display: flex;
    align-items: center;
    aspect-ratio: 1920 / 443;
    min-height: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background-size: 100% 100%;
  }

  .home-partners-band > div {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .home-partners-band .home-partners-carousel {
    line-height: 1;
  }

  .home-partners-band .owl-stage-outer,
  .home-partners-band .owl-stage,
  .home-partners-band .owl-item {
    line-height: 0;
  }

  .home-partners-band .owl-stage,
  .home-partners-band .owl-item {
    display: flex;
    align-items: center;
  }

  .home-services-section {
    margin-top: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
}

@media (max-width: 639.98px) {
  .home-partners-band {
    aspect-ratio: auto;
    min-height: clamp(7.25rem, 32vw, 8rem);
    background-image: url("../img/home/bg-home-partner-m.svg");
    background-size: 100% auto;
  }

  .home-partners-band > div {
    width: 100%;
  }

  .home-partners-band h3 {
    margin-bottom: clamp(0.625rem, 2.6vw, 0.75rem) !important;
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(0.6875rem, 3.2vw, 0.8125rem) !important;
    line-height: 1.2 !important;
    text-overflow: clip;
    white-space: nowrap;
  }

  .home-partners-band .item > div > .flex {
    height: clamp(1.375rem, 6.4vw, 1.625rem) !important;
  }

  .home-partners-band .home-partners-carousel {
    min-height: clamp(1.5rem, 7vw, 1.75rem);
    overflow: hidden;
  }

  .home-partners-band .home-partners-carousel:not(.owl-loaded) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.875rem, 4vw, 1.25rem);
  }

  .home-partners-band .home-partners-carousel:not(.owl-loaded) .item {
    flex: 0 0 calc((100% - 2.25rem) / 3);
    max-width: calc((100% - 2.25rem) / 3);
  }

  .home-partners-band .owl-stage-outer {
    height: clamp(1.5rem, 7vw, 1.75rem);
  }

  .home-services-section {
    padding-top: 1.25rem !important;
  }
}

@media (min-width: 640px) and (max-width: 1023.98px) {
  .home-partners-band {
    min-height: 11rem;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .home-partners-band > div {
    width: 100%;
  }

  .home-partners-band h3 {
    display: block;
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem !important;
    color: #fff;
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
    opacity: 1;
    visibility: visible;
  }

  .home-partners-band .owl-stage-outer {
    min-height: 2.5rem;
  }

  .home-services-section {
    padding-top: 2rem !important;
  }
}

@media (min-width: 768px) {
  .site-page-hero-banner,
  .news-hero-banner,
  .careers-hero-banner,
  .contact-hero-banner {
    max-height: 671px;
  }
}

#mobile-menu {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease-in-out,
    visibility 0.3s;
}

#mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.submenu {
  opacity: 0;
  visibility: hidden;
  transform: translatey(10px);
  transition: all 0.2s ease-in-out;
}

.group:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translatey(0);
}

.tab-btn {
  transition: all 0.3s ease;
}

.mobile-dropdown-container {
  position: relative;
  z-index: 20;
}

.mobile-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  margin-top: 0.5rem;
  overflow: hidden;
}

.mobile-dropdown-item {
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-dropdown-item:hover {
  background-color: #f9fafb;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: grid;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.is-invalid {
  border-color: #ef4444 !important;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.has-error .error-message {
  display: block;
}

.link-underline {
  position: relative;
  display: inline-block;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width 0.3s ease;
}

.link-underline:hover::after {
  width: 100%;
}

textarea::-webkit-scrollbar-button {
  display: none;
}

textarea::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

textarea::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

.shared-info-popup-overlay {
  z-index: 80;
}

.shared-info-popup-shell {
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 98px;
}

.shared-info-popup-panel {
  width: 100%;
  max-width: 100%;
  max-height: calc(100dvh - 98px);
  border-radius: 24px 24px 0 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.12);
}

.shared-info-popup-inner {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 16px;
  padding: 24px 16px 0;
}

.shared-info-popup-title {
  color: #0b0b09;
  font-family: var(--camship-public-font-family, "Montserrat", sans-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: -0.02em;
}

.shared-info-popup-search {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 40px;
  gap: 8px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 999px;
  border: 1px solid #d7d7d7;
  background: #f4f4f4;
  padding: 0 16px;
}

.shared-info-popup-search img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}

.shared-info-popup-search:focus-within {
  border-color: #d7d7d7;
  box-shadow: none;
  outline: none;
}

.shared-info-popup-search-input {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100% !important;
  box-sizing: border-box;
  border: 0 !important;
  background: transparent !important;
  padding: 0;
  margin: 0;
  color: #0b0b09;
  font-family: var(--camship-public-font-family, "Montserrat", sans-serif);
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.02em;
  text-align: left;
  box-shadow: none !important;
  outline: none !important;
  border-color: transparent !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.shared-info-popup-search-input:focus,
.shared-info-popup-search-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
  border-color: transparent !important;
  background: transparent !important;
}

.shared-info-popup-search-input::placeholder {
  color: #9e9f9e;
}

.shared-info-popup-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 4px;
}

.shared-info-popup-body p,
.shared-info-popup-body li,
.shared-info-popup-body div {
  font-family: var(--camship-public-font-family, "Montserrat", sans-serif);
}

.shared-info-popup-footer {
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}

.shared-info-popup-close {
  width: 100%;
  height: 40px;
  border-radius: 100px;
  border: 1px solid #0b0b09;
  background: #fff;
  color: #0b0b09;
  font-family: var(--camship-public-font-family, "Montserrat", sans-serif);
  font-size: 12px;
  font-weight: 600;
  line-height: 120%;
  letter-spacing: 0;
  text-align: center;
}

.shared-info-popup-highlight {
  background: #fff1b8;
  color: inherit;
  padding: 0;
}

.shared-info-popup--terms .shared-info-popup-body {
  color: #444444;
}

.shared-info-popup--terms .shared-info-popup-body p,
.shared-info-popup--terms .shared-info-popup-body li {
  color: #444444;
  font-family: var(--camship-public-font-family, "Montserrat", sans-serif);
  font-size: 12px;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: -0.02em;
}

.shared-info-popup--terms .shared-info-popup-body strong {
  color: #202020;
  font-family: var(--camship-public-font-family, "Montserrat", sans-serif);
  font-size: 12px;
  font-weight: 700;
  line-height: 130%;
  letter-spacing: -0.02em;
}

.shared-info-popup--terms .shared-info-popup-body p + p,
.shared-info-popup--terms .shared-info-popup-body ul + p,
.shared-info-popup--terms .shared-info-popup-body p + ul,
.shared-info-popup--terms .shared-info-popup-body ul + ul {
  margin-top: 12px;
}

.shared-info-popup--terms .shared-info-popup-body ul {
  padding-left: 18px;
  list-style: disc;
}

.shared-info-popup--terms .shared-info-popup-body li + li {
  margin-top: 6px;
}

.shared-info-popup--faq .shared-info-popup-body {
  color: #202020;
}

.shared-faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shared-faq-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.shared-faq-icon {
  display: inline-flex;
  height: 28px;
  width: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f3f3f3;
  color: #555655;
}

.shared-faq-icon img {
  height: 16px;
  width: 16px;
  object-fit: contain;
}

.shared-faq-question {
  color: #0b0b09;
  font-family: var(--camship-public-font-family, "Montserrat", sans-serif);
  font-size: 12px;
  font-weight: 700;
  line-height: 130%;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.shared-faq-answer {
  color: #202020;
  font-family: var(--camship-public-font-family, "Montserrat", sans-serif);
  font-size: 12px;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: -0.02em;
}

.shared-faq-answer br + br {
  display: none;
}

@media (min-width: 640px) {
  .shared-info-popup-shell {
    align-items: center;
    padding: 32px 16px;
  }

  .shared-info-popup-panel {
    max-width: 584px;
    max-height: 840px;
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  }

  .shared-info-popup-inner {
    padding: 22px 32px 0;
  }

  .shared-info-popup-title {
    font-size: 32px;
  }

  .shared-info-popup-search-input {
    font-size: 16px;
    line-height: normal;
    letter-spacing: 0;
  }

  .shared-info-popup-footer {
    padding: 16px 32px 22px;
  }

  .shared-info-popup-close {
    height: 52px;
    font-size: 24px;
    line-height: 36px;
  }

  .shared-info-popup--terms .shared-info-popup-body p,
  .shared-info-popup--terms .shared-info-popup-body li {
    font-size: 16px;
  }

  .shared-info-popup--terms .shared-info-popup-body strong {
    font-size: 16px;
  }

  .shared-faq-list {
    gap: 24px;
  }

  .shared-faq-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .shared-faq-icon {
    height: 36px;
    width: 36px;
  }

  .shared-faq-icon img {
    height: 18px;
    width: 18px;
  }

  .shared-faq-question {
    font-size: 16px;
  }

  .shared-faq-answer {
    font-size: 16px;
  }
}

#newsletterForm #errorMessageContainer {
  position: static;
}

@media (min-width: 1024px) {
  .about-us-en-warehouse-title,
  .about-us-km-warehouse-title,
  .about-us-vi-warehouse-title,
  .about-us-zh-warehouse-title,
  .our-services-km-warehouse-title {
    transform: translateX(-25%);
  }
}

@media (min-width: 640px) {
  #newsletterForm #errorMessageContainer {
    position: absolute;
    bottom: -1.5rem;
    left: 1rem;
    padding-right: 0;
    padding-left: 0;
  }
}

/* Bokor needs component-specific leading; Latin locales keep their existing rhythm. */
html[lang="km"] .home-about-title,
html[lang="km"] .home-network-title,
html[lang="km"] .home-services-intro-title,
html[lang="km"] .careers-hero-title,
html[lang="km"] .careers-list-title,
html[lang="km"] .contact-hero-title,
html[lang="km"] .job-detail-title,
html[lang="km"] .page-hero-title,
html[lang="km"] .page-list-title {
  line-height: 1.3;
}

html[lang="km"] .home-about-description,
html[lang="km"] .home-network-description,
html[lang="km"] .home-services-intro-description,
html[lang="km"] .about-km-intro-description,
html[lang="km"] .about-km-purpose-description,
html[lang="km"] .our-services-km-intro-description,
html[lang="km"] .careers-list-description,
html[lang="km"] .page-list-description {
  line-height: 1.5;
}

html[lang="km"] .home-service-card-title,
html[lang="km"] .home-faq-question {
  line-height: 1.4;
}

html[lang="km"] .home-service-card-description {
  line-height: 1.5;
}

html[lang="km"] .about-km-capability-title {
  line-height: 1.35;
}

html[lang="km"] .about-us-km-warehouse-title,
html[lang="km"] .our-services-km-warehouse-title {
  line-height: 1.3;
}

html[lang="km"] .our-services-km-feature-title {
  line-height: 1.3;
}

html[lang="km"] .our-services-km-process-title {
  height: auto;
  min-height: 0;
  line-height: 1.35;
}

html[lang="km"] .our-services-km-process-description {
  line-height: 1.55;
}

html[lang="km"] .our-services-km-display-title {
  line-height: 1.35;
}

html[lang="km"] .our-services-km-scale-description {
  line-height: 1.5;
}

html[lang="km"] .development-km-title-frame {
  height: auto;
  min-height: 96px;
}

html[lang="km"] .development-km-title {
  line-height: 1.3;
}

html[lang="km"] .contact-info-card-description {
  line-height: 1.45;
}

html[lang="km"] .contact-info-card-title,
html[lang="km"] .contact-form-title {
  line-height: 1.25;
}

html[lang="km"] .contact-info-card-details {
  height: auto;
  min-height: 48px;
  line-height: 1.5;
}

html[lang="km"] .contact-form-description {
  line-height: 1.5;
}

html[lang="km"] .content-success-title {
  line-height: 1.4;
}

html[lang="km"] .content-success-description,
html[lang="km"] .forgot-success-description,
html[lang="km"] .signup-alert-message {
  line-height: 1.5;
}

html[lang="km"] .forgot-success-title,
html[lang="km"] .signup-alert-title {
  line-height: 1.4;
}

html[lang="km"] .get-in-touch-title {
  line-height: 1.4;
}

html[lang="km"] .get-in-touch-item-title {
  height: auto;
  min-height: 48px;
  line-height: 1.4;
}

html[lang="km"] .get-in-touch-item-content {
  height: auto;
  min-height: 48px;
}

html[lang="km"] .get-in-touch-item-content > p,
html[lang="km"] .get-in-touch-item-content > div {
  line-height: 1.5;
}

html[lang="km"] .shared-info-popup--terms .shared-info-popup-body p,
html[lang="km"] .shared-info-popup--terms .shared-info-popup-body li,
html[lang="km"] .shared-info-popup--terms .shared-info-popup-body strong,
html[lang="km"] .terms-modal-content p,
html[lang="km"] .terms-modal-content li,
html[lang="km"] .terms-modal-content strong {
  line-height: 1.6;
}

html[lang="km"] .shared-faq-question {
  line-height: 1.45;
}

html[lang="km"] .shared-faq-answer {
  line-height: 1.6;
}

@media (max-width: 639.98px) {
  html[lang="km"] .contact-info-card {
    height: auto;
    min-height: 343px;
  }

  html[lang="km"] .our-services-km-transport-title {
    line-height: 1.4;
  }

  html[lang="km"] #forgot-page-title {
    line-height: 1.3;
  }
}

@media (min-width: 640px) {
  html[lang="km"] .home-about-description,
  html[lang="km"] .home-network-description,
  html[lang="km"] .home-services-intro-description,
  html[lang="km"] .about-km-intro-description,
  html[lang="km"] .about-km-purpose-description,
  html[lang="km"] .our-services-km-intro-description {
    line-height: 1.45;
  }

  html[lang="km"] .home-service-card-description {
    line-height: 1.5;
  }

  html[lang="km"] .about-us-km-warehouse-title,
  html[lang="km"] .our-services-km-warehouse-title {
    line-height: 1.25;
  }

  html[lang="km"] .our-services-km-feature-title {
    line-height: 1.25;
  }

  html[lang="km"] .our-services-km-process-title {
    line-height: 1.3;
  }

  html[lang="km"] .our-services-km-process-description,
  html[lang="km"] .our-services-km-scale-description {
    line-height: 1.45;
  }

  html[lang="km"] .our-services-km-display-title {
    line-height: 1.3;
  }

  html[lang="km"] .careers-list-description,
  html[lang="km"] .page-list-description {
    line-height: 1.4;
  }

  html[lang="km"] .contact-info-card-description,
  html[lang="km"] .contact-info-card-details {
    line-height: 1.4;
  }

  html[lang="km"] .contact-info-card-details {
    min-height: 48px;
  }

  html[lang="km"] .content-success-title {
    line-height: 1.35;
  }

  html[lang="km"] .get-in-touch-title,
  html[lang="km"] .get-in-touch-item-title {
    line-height: 1.35;
  }

  html[lang="km"] .get-in-touch-item-content {
    min-height: 50px;
  }

  html[lang="km"] .get-in-touch-item-content > p,
  html[lang="km"] .get-in-touch-item-content > div {
    line-height: 1.4;
  }

  html[lang="km"] .shared-info-popup--terms .shared-info-popup-body p,
  html[lang="km"] .shared-info-popup--terms .shared-info-popup-body li,
  html[lang="km"] .shared-info-popup--terms .shared-info-popup-body strong,
  html[lang="km"] .terms-modal-content p,
  html[lang="km"] .terms-modal-content li,
  html[lang="km"] .terms-modal-content strong,
  html[lang="km"] .shared-faq-answer {
    line-height: 1.5;
  }

  html[lang="km"] .shared-faq-question {
    line-height: 1.4;
  }
}

@media (min-width: 1024px) {
  html[lang="km"] .home-about-title,
  html[lang="km"] .home-network-title,
  html[lang="km"] .home-services-intro-title,
  html[lang="km"] .careers-hero-title,
  html[lang="km"] .careers-list-title,
  html[lang="km"] .contact-hero-title,
  html[lang="km"] .job-detail-title,
  html[lang="km"] .page-hero-title,
  html[lang="km"] .page-list-title {
    line-height: 1.22;
  }

  html[lang="km"] .contact-info-card-title,
  html[lang="km"] .contact-form-title {
    line-height: 1.2;
  }

  html[lang="km"] .home-about-description,
  html[lang="km"] .home-network-description,
  html[lang="km"] .home-services-intro-description,
  html[lang="km"] .about-km-intro-description,
  html[lang="km"] .about-km-purpose-description,
  html[lang="km"] .our-services-km-intro-description {
    line-height: 1.4;
  }

  html[lang="km"] .home-service-card-title,
  html[lang="km"] .home-faq-question {
    line-height: 1.35;
  }

  html[lang="km"] .home-service-card-description {
    line-height: 1.45;
  }

  html[lang="km"] .about-km-capability-title {
    line-height: 1.3;
  }

  html[lang="km"] .our-services-km-process-title {
    line-height: 1.22;
  }

  html[lang="km"] .our-services-km-process-description,
  html[lang="km"] .our-services-km-scale-description {
    line-height: 1.4;
  }

  html[lang="km"] .our-services-km-display-title {
    line-height: 1.25;
  }

  html[lang="km"] .development-km-title-frame {
    min-height: 180px;
  }

  html[lang="km"] .development-km-title {
    line-height: 1.18;
  }

  html[lang="km"] .contact-info-card-details {
    min-height: 160px;
  }

  html[lang="km"] .get-in-touch-title,
  html[lang="km"] .get-in-touch-item-title {
    line-height: 1.3;
  }

  html[lang="km"] .get-in-touch-item-content {
    min-height: 130px;
  }
}

@media (min-width: 1536px) {
  html[lang="km"] .about-us-km-warehouse-title,
  html[lang="km"] .our-services-km-warehouse-title {
    line-height: 1.18;
  }

  html[lang="km"] .our-services-km-process-title {
    min-height: 80px;
  }
}
